vasnprintf: Don't use %n on Android.
[gnulib.git] / ChangeLog
blobf3972fd0825499cb30f068c76cf80624a90a57be
1 2019-01-22  Bruno Haible  <bruno@clisp.org>
3         vasnprintf: Don't use %n on Android.
4         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
5         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
6         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
8 2019-01-22  Bruno Haible  <bruno@clisp.org>
10         *printf: Support cross-compilation to Android.
11         * m4/printf.m4: Add cross-compilation guesses for Android.
13 2019-01-21  Bruno Haible  <bruno@clisp.org>
15         diacrit: Mark deprecated.
16         * modules/diacrit (Status, Notice): Mark as deprecated.
17         * NEWS: Mention it.
19 2019-01-20  Bruno Haible  <bruno@clisp.org>
21         rintl: Override broken implementation on NetBSD.
22         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
23         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
24         REPLACE_RINTL.
25         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
26         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
27         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
28         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
30 2019-01-20  Bruno Haible  <bruno@clisp.org>
32         log10l: Work around inaccurate implementation on NetBSD.
33         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
34         * lib/log10l.c: Comment out too simplistic override.
35         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
37 2019-01-20  Bruno Haible  <bruno@clisp.org>
39         logl: Work around inaccurate implementation on NetBSD.
40         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
41         * lib/logl.c: Comment out unused code.
42         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
44 2019-01-20  Bruno Haible  <bruno@clisp.org>
46         expm1l: Work around inaccurate implementation on NetBSD.
47         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
48         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
49         REPLACE_EXPM1L.
50         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
51         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
52         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
53         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
55 2019-01-20  Bruno Haible  <bruno@clisp.org>
57         expl: Work around inaccurate implementation on NetBSD.
58         * lib/math.in.h (expl): Test also REPLACE_EXPL.
59         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
60         REPLACE_EXPL.
61         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
62         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
63         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
64         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
66 2019-01-20  Bruno Haible  <bruno@clisp.org>
68         exp2l: Work around inaccurate implementation on NetBSD.
69         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
70         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
72 2019-01-20  Bruno Haible  <bruno@clisp.org>
74         floor, floorl: Avoid autoconf warnings.
75         * modules/floor (configure.ac): Use AC_REQUIRE.
76         * modules/floorl (configure.ac): Likewise.
78 2019-01-20  Bruno Haible  <bruno@clisp.org>
80         Defeat current GCC optimizations in math autoconf tests.
81         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
82         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
83         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
84         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
85         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
86         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
87         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
88         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
89         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
90         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
91         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
92         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
93         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
94         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
95         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
96         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
97         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
98         * m4/log.m4 (gl_FUNC_LOG): Likewise.
99         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
100         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
101         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
102         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
103         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
104         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
105         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
106         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
107         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
108         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
109         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
110         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
111         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
112         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
113         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
114         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
115         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
116         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
117         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
118         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
120 2019-01-19  Pádraig Brady  <P@draigBrady.com>
122         gettext: support disabling use of VLAs
123         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
125 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
127         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
128         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
130 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
132         fcntl: Fix syntax error (regression from 2018-10-05).
133         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
135 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
137         relocatable: improve documentation.
138         * doc/relocatable-maint.texi (Supporting Relocation): For
139         substitutions performed by config.status, we need more variables
140         (for instance datarootdir defaults to '${prefix}/share' so we need
141         prefix).
143 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
145         backup: update dependencies
146         * modules/backup-rename (Depends-on): It now depends on opendirat
147         instead of opendir.  It also uses stdint, and xalloc-oversized.
148         But no longer dirfd.
149         * modules/backupfile (Depends-on): Add xalloc-oversized.
151 2019-01-13  Bruno Haible  <bruno@clisp.org>
153         getcwd: Fix test failure when building on a Linux 9p file system.
154         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
155         EINVAL from mkdir like ENAMETOOLONG.
156         * tests/test-getcwd.c (test_long_name): Likewise.
158 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
160         Fix typos found by codespell.
161         * lib/*.[hc]: Fix typos in comments.
162         * pygnulib/*.py: Fix typos in error messages and comments.
164 2019-01-12  Bruno Haible  <bruno@clisp.org>
166         doc: Fix documentation about container data types.
167         Reported by Werner Lemberg <wl@gnu.org>.
168         * doc/containers.texi (Container data types): Fix typo.
170 2019-01-10  Bruno Haible  <bruno@clisp.org>
172         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
173         Reported by Reuben Thomas <rrt@sc3d.org>.
174         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
176 2019-01-06  Bruno Haible  <bruno@clisp.org>
178         maintainer-makefile: Make the configure.ac section optional.
179         * top/maint.mk (GREP, SED): Define if not defined.
181 2019-01-06  Bruno Haible  <bruno@clisp.org>
183         localename: Assume setlocale function.
184         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
185         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
187 2019-01-06  Bruno Haible  <bruno@clisp.org>
189         doc: Add documentation about container data types.
190         * doc/containers.texi: New file.
191         * doc/gnulib.texi (Particular Modules): Include it.
193 2019-01-06  Bruno Haible  <bruno@clisp.org>
195         doc: Update documentation about 'progname' module.
196         * doc/progname.texi: Rename from doc/error.texi. Change node name and
197         title. Rewrite.
198         * doc/gnulib.texi (Particular Modules): Update.
200 2019-01-06  Bruno Haible  <bruno@clisp.org>
202         doc: Document the xstdopen and *-safer modules.
203         * doc/xstdopen.texi: New file.
204         * doc/gnulib.texi (Particular Modules): Include it.
206 2019-01-06  Bruno Haible  <bruno@clisp.org>
208         xstdopen: Add tests.
209         * tests/test-xstdopen.c: New file.
210         * tests/test-xstdopen.sh: New file.
211         * modules/xstdopen-tests: New file.
213         xstdopen: New module.
214         * lib/xstdopen.h: New file.
215         * lib/xstdopen.c: New file.
216         * modules/xstdopen: New file.
218 2019-01-06  Bruno Haible  <bruno@clisp.org>
220         stdopen: Fix compilation error with IRIX cc.
221         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
223 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
225         xfreopen need not include stdio--.h
226         * lib/xfreopen.c: Do not include stdio--.h.
228         xfreopen need not depend on freopen-safer
229         * modules/xfreopen (Depends-on):
230         Depend on freopen, not freopen-safer.
232         stdopen: modernize and simplify
233         * lib/stdopen.c: Update copyright date
234         Do not include sys/types.h; no longer needed these days.
235         (stdopen): Use C99-style decl in loop.  Return int errno
236         value, rather than just a bool.  Do not worry about fd mismatches,
237         since the caller cares only if 0, 1, 2 are occupied.
238         * lib/stdopen.h: No need to include <stdbool.h>.
239         * m4/stdopen.m4: Remove.
240         * modules/stdopen: New file.
242         stdopen: copy from last use in coreutils
243         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
244         New files, taken from their last commit in coreutils
245         2007-07-23T12:35:58Z!jim@meyering.net
246         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
248 2019-01-05  Bruno Haible  <bruno@clisp.org>
250         argp: Don't pass an invalid argument to dgettext().
251         Reported by He X <xw897002528@gmail.com>.
252         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
253         dgettext().
255 2019-01-05  Bruno Haible  <bruno@clisp.org>
257         argp: Don't pass an invalid argument to dgettext().
258         Reported by He X <xw897002528@gmail.com>.
259         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
260         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
261         dgettext().
263 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
265         stdioext: port to newer 32-bit Android
266         Problem reported by Tom Yan in:
267         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
268         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
269         (fp_) [__ANDROID__]: Use it.
271 2019-01-04  Bruno Haible  <bruno@clisp.org>
273         lock: Fix link error with --enable-threads=pth.
274         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
275         Mark as weak.
277 2019-01-04  Bruno Haible  <bruno@clisp.org>
279         Fix link errors in unit tests.
280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
281         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
282         * modules/array-map-tests (Makefile.am): Link test-array_map against
283         libintl.
284         * modules/array-set-tests (Makefile.am): Link test-array_set against
285         libintl.
286         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
287         libintl.
288         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
289         libintl.
290         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
291         against libintl.
292         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
293         against libintl.
295 2019-01-04  Bruno Haible  <bruno@clisp.org>
297         Fix incorrect 'Link' sections.
298         * modules/regex (Link): Mention the link requirement of module 'lock'.
299         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
301 2019-01-04  Bruno Haible  <bruno@clisp.org>
303         Fix some 'Link' sections.
304         * modules/c-stack (Link): Add link directive from the 'gettext-h'
305         dependency.
306         * modules/getaddrinfo (Link): Likewise.
308 2019-01-04  Bruno Haible  <bruno@clisp.org>
310         Remove redundant 'Link' sections.
311         * modules/canon-host (Link): Remove section.
312         * modules/timevar (Link): Likewise.
314 2019-01-04  Bruno Haible  <bruno@clisp.org>
316         Remove incorrect 'Link' sections.
317         * modules/acl (Link): Remove section. Use combined 'Link' sections from
318         the dependencies instead.
319         * modules/crypto/md5 (Link): Likewise.
320         * modules/crypto/sha1 (Link): Likewise.
321         * modules/crypto/sha256 (Link): Likewise.
322         * modules/crypto/sha512 (Link): Likewise.
323         * modules/faccessat (Link): Likewise.
324         * modules/fdutimensat (Link): Likewise.
325         * modules/iconv_open-utf (Link): Likewise.
326         * modules/propername (Link): Likewise.
327         * modules/qacl (Link): Likewise.
328         * modules/unicodeio (Link): Likewise.
329         * modules/utimecmp (Link): Likewise.
330         * modules/utimensat (Link): Likewise.
331         * modules/xstriconv (Link): Likewise.
332         * modules/xstriconveh (Link): Likewise.
334 2019-01-04  Bruno Haible  <bruno@clisp.org>
336         gnulib-tool: New option --extract-recursive-link-directive.
337         * gnulib-tool (func_usage): Document the new options
338         --extract-recursive-dependencies, --extract-recursive-link-directive.
339         (func_verify_module): Document output variables.
340         (func_get_dependencies_recursively): New function.
341         (func_get_link_directive_recursively): New function.
342         Use them to implement the new options
343         --extract-recursive-dependencies, --extract-recursive-link-directive.
344         * doc/gnulib-tool.texi (Link-time requirements): New section.
346 2019-01-04  Bruno Haible  <bruno@clisp.org>
348         Clarify meaning of 'Link' section in module description.
349         * doc/gnulib.texi (Module description): Clarify the meaning of the
350         'Link' section versus the one of the dependencies.
351         * NEWS: Mention the change.
353 2019-01-04  Bruno Haible  <bruno@clisp.org>
355         pselect: Fix module description.
356         * modules/pselect (Link): Put one link option per line.
358 2019-01-04  Bruno Haible  <bruno@clisp.org>
360         cosl: Fix module description.
361         * modules/cosl (Link): Fix typo.
362         * modules/mathl (configure.ac): Likewise.
364 2019-01-04  Bruno Haible  <bruno@clisp.org>
366         c-xvasprintf: Fix module dependencies.
367         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
369 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
371         bootstrap: die when some submodules are not initialized
372         * build-aux/bootstrap: Make sure all submodules are initialized.
374 2019-01-04  Bruno Haible  <bruno@clisp.org>
376         bitsetv: Fix module dependencies.
377         * lib/bitsetv.c: Include xalloc.h.
378         * modules/bitsetv (Depends-on): Add 'xalloc'.
380 2019-01-04  Bruno Haible  <bruno@clisp.org>
382         xmemdup0: Remove redundant code.
383         * lib/xmemdup0.h (xalloc_die): Remove declaration.
385 2019-01-04  Bruno Haible  <bruno@clisp.org>
387         backupfile: Fix module dependencies.
388         * modules/backupfile (Depends-on): Add 'xalloc'.
390 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
392         bitset, crypto/gc: fix conflicts with Solaris 11
393         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
394         avoid clash with Solaris 11 <sys/bitset.h>.
395         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
396         with Solaris 11 <xorg/gc.h>.
398 2019-01-04  Bruno Haible  <bruno@clisp.org>
400         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
401         Reported by Andy Fiddaman <andy@omniosce.org>.
402         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
404 2019-01-03  Eric Blake  <eblake@redhat.com>
406         maintainer-makefile: fix typo in previous patch
407         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
408         of Roman's work.
410 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
412         maintainer-makefile: prefer $(GREP) over grep
413         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
414         defined.
415         * top/maint.mk: Use it everywhere.
417         maintainer-makefile: split long argument lines
418         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
419         it would be too long for exec limits on BSD.
421 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
423         mkfifo: bring back HAVE_MKFIFO macro
424         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
425         Problem reported by Andrew Janke in:
426         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
428 2018-12-21  Bruno Haible  <bruno@clisp.org>
430         Assume Autoconf >= 2.63.
431         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
432         versions < 2.60.
434 2018-12-21  Bruno Haible  <bruno@clisp.org>
436         memcmp: Mention the clang bug.
437         * tests/test-memcmp.c: Add comment about a known test failure.
438         * doc/posix-functions/memcmp.texi: Mention the clang bug.
440 2018-12-20  Jim Meyering  <meyering@fb.com>
442         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
443         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
444           echo '123-x'|LC_ALL=C grep -E '.\bx'
445         The goal is to revert the first, but reverting it requires to restore
446         the function deleted in the second. I ran this to restore the deleted
447         function:
448           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
449             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
450             | patch -R -p1
451         * lib/dfa.c (charclass_context): Restore deleted function.
452         Reverting the primary commit removes this change:
453         dfa: Simplify a building state
454         * lib/dfa.c (build_state): Simplify a building state.
456 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
458         version-etc: allow zero authors
459         * lib/version-etc.c (version_etc_arn): If no authors are given,
460         omit authorship info instead of dumping core.
462 2018-12-19  Bruno Haible  <bruno@clisp.org>
464         lchown tests: Be more permissive regarding errno values.
465         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
466         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
467         alternative to ENOSYS.
468         * modules/lchown-tests (Depends-on): Add 'errno'.
469         * modules/fchownat-tests (Depends-on): Likewise.
471 2018-12-18  Bruno Haible  <bruno@clisp.org>
473         duplocale: Avoid test failure on AIX 7.
474         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
475         (configure.ac): Invoke gt_FUNC_USELOCALE.
476         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
477         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
478         works.
480 2018-12-18  Bruno Haible  <bruno@clisp.org>
482         localename: Fix test failure on AIX 7.
483         Reported by Assaf Gordon in
484         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
485         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
486         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
487         instead of ac_cv_func_uselocale.
488         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
489         HAVE_USELOCALE.
490         * lib/localename-table.h: Likewise.
491         * lib/localename-table.c: Likewise.
492         * tests/test-localename.c: Likewise.
493         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
495 2018-12-18  Bruno Haible  <bruno@clisp.org>
497         localename: Update comments regarding Cygwin.
498         * lib/localename.c: Update comment.
499         * doc/posix-functions/uselocale.texi: Update platforms list.
500         * doc/posix-functions/newlocale.texi: Likewise.
501         * doc/posix-functions/duplocale.texi: Likewise.
502         * doc/posix-functions/freelocale.texi: Likewise.
504 2018-12-16  Bruno Haible  <bruno@clisp.org>
506         c-stack: Fix for Linux/sparc.
507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
508         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
510 2018-12-16  Bruno Haible  <bruno@clisp.org>
512         localename: Avoid test failure on some glibc systems.
513         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
514         Unset environment variables that might disturb the first setlocale call,
515         and verify that this setlocale call succeeds.
517 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
519         random: Fix build error on native Windows (regression from 2018-06-21).
520         * lib/random.c (__srandom, __initstate, __setstate, __random,
521         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
522         to the symbols without '__' prefix.
524 2018-12-16  Bruno Haible  <bruno@clisp.org>
526         obstack, libc-config: Support HP-UX cc in C99 mode.
527         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
528         compiler, even when in C99 mode.
529         * lib/cdefs.h (__flexarr): Likewise.
530         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
532 2018-12-16  Bruno Haible  <bruno@clisp.org>
534         localename: Fix test failure on OpenBSD >= 6.2.
535         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
536         locale system. Define HAVE_FAKE_LOCALES in this case.
537         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
538         HAVE_USELOCALE.
539         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
540         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
541         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
542         platforms list.
543         * doc/posix-functions/newlocale.texi: Likewise.
544         * doc/posix-functions/duplocale.texi: Update platforms list.
545         * doc/posix-functions/freelocale.texi: Likewise.
547 2018-12-16  Bruno Haible  <bruno@clisp.org>
549         duplocale tests: Re-enable the test on platforms without <monetary.h>.
550         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
551         of the test, on platforms without <monetary.h>.
553 2018-12-16  Bruno Haible  <bruno@clisp.org>
555         localename: Update comments.
556         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
558 2018-12-15  Jim Meyering  <meyering@fb.com>
560         regex: fix indentation
561         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
563 2018-12-15  Bruno Haible  <bruno@clisp.org>
565         openat-safer tests: Avoid test failure on NetBSD 8.
566         * tests/test-openat-safer.c (main): Execute a Linux specific test only
567         on Linux.
569 2018-12-15  Jim Meyering  <meyering@fb.com>
571         regex: work around a bug in glibc-2.27 and prior
572         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
573         assertion for /0|()0|\1|0/.
574         * tests/test-regex.c (main): Add the same test here.
576 2018-12-15  Bruno Haible  <bruno@clisp.org>
578         localename: Fix use of uninitialized shell variable.
579         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
580         gt_cv_locale_solaris114 always before use. Remove assignment without
581         effect.
583 2018-12-15  Bruno Haible  <bruno@clisp.org>
585         dfa tests: Avoid test failure on Alpine Linux.
586         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
587         command found on Alpine Linux.
589 2018-12-15  Jim Meyering  <meyering@fb.com>
591         dfa: avoid new warnings from gcc
592         These would prevent building with -Werror and a Dec snapshot of gcc.
593         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
594         Rename each inner instance to "p".
595         (charclass_context): Remove unused static function.
597 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
599         mkdir-p: improve diagnostic for FUSE mounts
600         Problem reported by Niklas Hambüchen in:
601         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
602         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
603         errno to mkdir errno if the stat errno is likely more interesting.
605 2018-12-14  Bruno Haible  <bruno@clisp.org>
607         hash-map: Add tests.
608         * tests/test-hash_map.c: New file.
609         * modules/hash-map-tests: New file.
611         linkedhash-map: Add tests.
612         * tests/test-linkedhash_map.c: New file.
613         * modules/linkedhash-map-tests: New file.
615         array-map: Add tests.
616         * tests/test-array_map.c: New file.
617         * modules/array-map-tests: New file.
619         xmap: New module.
620         * lib/gl_xmap.h: New file.
621         * lib/gl_xmap.c: New file.
622         * modules/xmap: New file.
624         hash-map: New module.
625         * lib/gl_hash_map.h: New file.
626         * lib/gl_hash_map.c: New file.
627         * modules/hash-map: New file.
629         linkedhash-map: New module.
630         * lib/gl_linkedhash_map.h: New file.
631         * lib/gl_linkedhash_map.c: New file.
632         * lib/gl_anyhash1.h: Update comments.
633         * lib/gl_anyhash2.h: Likewise.
634         * modules/linkedhash-map: New file.
636         array-map: New module.
637         * lib/gl_array_map.h: New file.
638         * lib/gl_array_map.c: New file.
639         * modules/array-map: New file.
641         map: New module.
642         * lib/gl_map.h: New file.
643         * lib/gl_map.c: New file.
644         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
645         conflict with gl_map.h.
646         * modules/map: New file.
648 2018-12-13  Bruno Haible  <bruno@clisp.org>
650         select tests: Avoid test failure on Cygwin.
651         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
653 2018-12-13  Bruno Haible  <bruno@clisp.org>
655         localtime-buffer: Avoid endless recursion in localtime and gmtime.
656         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
658 2018-12-13  Bruno Haible  <bruno@clisp.org>
660         localeconv tests: Avoid test failure on Cygwin.
661         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
662         'mon_grouping' tests.
664 2018-12-11  Bruno Haible  <bruno@clisp.org>
666         omap: Don't dispose the old value when the function returns it.
667         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
668         here.
669         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
670         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
671         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
672         here.
674         array-omap, avltree-omap, rbtree-omap: Tweak style.
675         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
676         false.
677         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
679         rbtree-omap: Add tests.
680         * tests/test-rbtree_omap.c: New file.
681         * modules/rbtree-omap-tests: New file.
683         avltree-omap: Add tests.
684         * tests/test-avltree_omap.c: New file.
685         * modules/avltree-omap-tests: New file.
687         array-omap: Add tests.
688         * tests/test-array_omap.c: New file.
689         * modules/array-omap-tests: New file.
691         xomap: New module.
692         * lib/gl_xomap.h: New file.
693         * lib/gl_xomap.c: New file.
694         * modules/xomap: New file.
696         rbtree-omap: New module.
697         * lib/gl_rbtree_omap.h: New file.
698         * lib/gl_rbtree_omap.c: New file.
699         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
700         Parameterize.
701         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
702         * modules/rbtree-omap: New file.
703         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
704         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
706         avltree-omap: New module.
707         * lib/gl_avltree_omap.h: New file.
708         * lib/gl_avltree_omap.c: New file.
709         * lib/gl_avltree_ordered.h: Code moved to here from
710         lib/gl_avltree_oset.c. Parameterize.
711         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
712         * lib/gl_anytree_omap.h: New file.
713         * modules/avltree-omap: New file.
714         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
715         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
717         array-omap: New module.
718         * lib/gl_array_omap.h: New file.
719         * lib/gl_array_omap.c: New file.
720         * modules/array-omap: New file.
722         omap: New module.
723         * lib/gl_omap.h: New file.
724         * lib/gl_omap.c: New file.
725         * modules/omap: New file.
727 2018-12-11  Bruno Haible  <bruno@clisp.org>
729         hash-set, linkedhash-set: Reduce code duplication.
730         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
731         lib/gl_anyhash_set1.h.
732         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
733         lib/gl_anyhash_set2.h. Parameterize.
734         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
735         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
736         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
737         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
738         * lib/gl_rbtreehash_list.c: Likewise.
739         * lib/gl_linkedhash_list.c: Likewise.
740         (hash_resize_after_add): Remove function.
741         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
742         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
743         * gl_hash_set.c: Likewise.
744         * modules/avltreehash-list (Files, Makefile.am): Update file list.
745         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
746         * modules/linkedhash-list (Files, Makefile.am): Likewise.
747         * modules/linkedhash-set (Files, Makefile.am): Likewise.
748         * modules/hash-set (Files, Makefile.am): Likewise.
750 2018-12-11  Bruno Haible  <bruno@clisp.org>
752         array-set: Optimize.
753         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
754         outside the loop, not inside the loop.
756 2018-12-11  Bruno Haible  <bruno@clisp.org>
758         times: Fix tests.
759         * tests/test-times.c (doublecmp): Implement a total order.
761 2018-12-11  Bruno Haible  <bruno@clisp.org>
763         array-set, linkedhash-set, hash-set: Fix tests.
764         * tests/test-array_set.c (cmp_objects_in_array): New function.
765         (check_equals): Use it.
766         * tests/test-hash_set.c: Likewise.
767         * tests/test-linkedhash_set.c: Likewise.
769 2018-12-08  Bruno Haible  <bruno@clisp.org>
771         Fix comments.
772         * lib/gl_list.h (gl_list_free): Clarify what it does.
773         * lib/gl_oset.h (gl_oset_free): Likewise.
774         * lib/gl_set.h (gl_set_free): Likewise.
775         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
776         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
777         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
778         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
780 2018-12-03  Bruno Haible  <bruno@clisp.org>
782         hash-set: Add tests.
783         * tests/test-hash_set.c: New file.
784         * modules/hash-set-tests: New file.
786         linkedhash-set: Add tests.
787         * tests/test-linkedhash_set.c: New file.
788         * modules/linkedhash-set-tests: New file.
790         array-set: Add tests.
791         * tests/test-array_set.c: New file.
792         * modules/array-set-tests: New file.
794         xset: New module.
795         * lib/gl_xset.h: New file.
796         * lib/gl_xset.c: New file.
797         * modules/xset: New file.
799         hash-set: New module.
800         * lib/gl_hash_set.h: New file.
801         * lib/gl_hash_set.c: New file.
802         * modules/hash-set: New file.
804         linkedhash-set: New module.
805         * lib/gl_linkedhash_set.h: New file.
806         * lib/gl_linkedhash_set.c: New file.
807         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
808         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
809         * lib/gl_anyhash_primes.h: New file, extracted from
810         lib/gl_anyhash_list2.h.
811         * lib/gl_anyhash_list2.h: Include it.
812         (primes, next_prime): Remove definitions.
813         * modules/linkedhash-set: New file.
814         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
815         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
816         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
817         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
818         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
819         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
821         array-set: New module.
822         * lib/gl_array_set.h: New file.
823         * lib/gl_array_set.c: New file.
824         * modules/array-set: New file.
826         set: New module.
827         * lib/gl_set.h: New file.
828         * lib/gl_set.c: New file.
829         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
830         gl_set.h.
831         * modules/set: New file.
833 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
835         bison: don't force the Yacc mode
836         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
837         errors when Bison features are used in the grammar file.  Some of
838         these features (such as %expect) were flagged non-yacc recently.  Most
839         of the time, -y is actually used to please Automake's ylwrap which
840         expects the output to be y.tab.c.
841         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
843 2018-12-01  Bruno Haible  <bruno@clisp.org>
845         gnupload: Document short options.
846         * build-aux/gnupload (usage): Document the short options.
848 2018-11-28  Ben Elliston  <bje@gnu.org>
850         gnupload: Support option -h as alias of --help.
851         * build-aux/gnupload: Support -h.
853 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
855         memrchr: port better to clang
856         * lib/memrchr.c (__memrchr): Cast to void * instead of to
857         longword *, to pacify clang -Wcast-align (Bug#33544).
859 2018-11-29  Eric Blake  <eblake@redhat.com>
861         docs: mention printf %m considerations
862         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
863         is not portable, and is easy enough to work around.
864         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
865         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
866         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
867         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
868         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
869         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
870         * doc/posix-functions/printf.texi (printf): Likewise.
871         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
872         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
873         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
874         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
875         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
876         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
877         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
878         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
879         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
880         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
881         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
882         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
884 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
886         bitset: rename ebitset/expandable.* as tbitset/table.*
887         See
888         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
889         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
890         * lib/bitset/table.h, lib/bitset/table.c: these.
891         Rename all the ebitset* symbols as tbitset*.
892         Adjust dependencies.
894 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
896         bitset: check the operations
897         * tests/test-bitset.c (bitset_random): New.
898         Use it.
899         * lib/bitset/expandable.c (ebitset_not): Fix typo.
901 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
903         bitset: properly use false/true instead of 0/1 for Booleans
904         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
905         0/1, as Booleans.
907 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
909         bitset: rename BITSET_VARRAY as BITSET_VECTOR
910         For consistency with the name of the file.
911         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
912         * lib/bitset/stats.c, lib/bitset/vector.c
913         (BITSET_VARRAY): Rename as...
914         (BITSET_VECTOR): this.
916 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
918         strerror_r-posix: memmove, not memcpy
919         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
920         since the source and destination might overlap in the call
921         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
922         Simplify.
924 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
926         bitsetv: new module
927         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
929 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
931         bitset: add tests and doc
932         First stabs at providing a documentation and test for the bitset
933         module.
934         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
936 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
938         bitset: new module
939         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
940         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
941         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
942         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
943         * lib/bitset/vector.h, modules/bitset:
944         New.
946 2018-11-23  Bruno Haible  <bruno@clisp.org>
948         localename: Fix gettext test failures on mingw.
949         * lib/localename.c (gl_locale_name_posix): Convert the result of
950         gl_locale_name_environ to XPG syntax.
952 2018-11-23  Karl Berry  <karl@freefriends.org>
954         * config/srclistvars.txt,
955         * config/srclist.txt: remove all gettext references;
956         the gettext maintainers will sync as needed.
958 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
960         mktime: add libc-config dependency
961         I missed this when we synced from glibc.
962         * modules/mktime (Depends-on): Add libc-config.
964 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
966         longlong: fix comment typo
967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
969 2018-11-11  Bruno Haible  <bruno@clisp.org>
971         havelib: Remove the need to include asm-underscore.m4.
972         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
973         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
974         gl_HOST_CPU_C_ABI.
975         * modules/havelib (Files): Add host-cpu-c-abi.m4.
976         (Depends-on): Remove host-cpu-c-abi.
978 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
980         parse-datetime: simplify test for mktime failure
981         * lib/parse-datetime.y (mktime_ok): Simplify.
982         Remove args TZ and T; no longer needed.  Callers changed.
984         posixtm: simplify test for mktime failure
985         * lib/posixtm.c (posixtime): Simplify.
987         nstrftime: simplify test for mktime failure
988         * lib/nstrftime.c (__strftime_internal): Simplify.
990 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
992         gnulib-common.m4: port _Noreturn to C++
993         Problem reported by Akim Demaille in:
994         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
995         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
996         Merge adjustments from _Noreturn.h and from glibc into the non-C++
997         version.
998         * lib/_Noreturn.h: Match gnulib-common.
1000 2018-10-30  Bruno Haible  <bruno@clisp.org>
1002         gnu-make: Fix for NetBSD 8 'make'.
1003         Reported by Reuben Thomas in
1004         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
1005         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
1006         output, ignoring exit codes.
1008 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
1010         maintainer-makefile: fix syntax-check rule for "same.h"
1011         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
1012         for 'same_nameat', too.
1014 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1016         havelib: fix nested ‘configure’ chatter
1017         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
1018         AC_CACHE_CHECK calls, which resulted in confusing output like
1019         “checking for the common suffixes of directories in the library
1020         search path... checking for 64-bit host... no lib,lib”.
1022         backupfile: tweak for better code
1023         * lib/backupfile.c: Sort include directives, and remove
1024         unnecessary <limits.h> include.
1025         (FALLTHROUGH): New macro, copied from other modules.
1026         (backupfile_internal): Use it to avoid code duplication.
1027         This lets GCC 8.2.1 generate better code by inlining the
1028         call to check_extension.
1030 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1032         backupfile: new dir_fd args
1033         New module opendirat with code taken from fts.
1034         Use this module to let backupfile use a directory file descriptor.
1035         * NEWS: Document the incompatible change.
1036         * lib/backup-find.c (find_backup_file_name):
1037         * lib/backup-rename.c (backup_file_rename):
1038         New arg DIR_FD.
1039         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
1040         (SIZE_MAX): Remove.
1041         Include opendirat.h rather than dirent--.h.
1042         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
1043         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
1044         (backupfile_internal): New arg DIR_FD.  All callers changed.
1045         * lib/fts.c: Include opendirat.h.
1046         (opendirat): Move to opendirat.c.
1047         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
1048         * modules/backupfile (Depends-on): Remove dirfd, opendir.
1049         Add opendirat.
1050         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
1051         Add opendirat.
1053 2018-10-23  Bruno Haible  <bruno@clisp.org>
1055         localename: Simplify support for per-thread locales on Solaris 11.4.
1056         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
1057         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
1058         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
1059         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
1060         specific code.
1061         * lib/localename-table.h: Update comments.
1062         * lib/localename-table.c: Update comments.
1063         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
1064         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
1065         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
1066         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
1067         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
1068         HAVE_NAMELESS_LOCALES here.
1069         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
1070         m4/intlsolaris.m4.
1071         * modules/gettext (Files): Likewise.
1073 2018-10-22  Bruno Haible  <bruno@clisp.org>
1075         std-gnu11: Support Autoconf versions < 2.64.
1076         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
1077         when _AC_DO_LIMIT does not exist.
1079 2018-10-22  Bruno Haible  <bruno@clisp.org>
1081         Assume Autoconf >= 2.63.
1082         * DEPENDENCIES: Mention the requirement.
1084         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
1085         (func_get_filelist): Don't list m4/onceonly.m4 any more.
1086         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
1087         * m4/onceonly.m4: Remove file.
1089         * m4/openmp.m4: Remove file.
1090         * modules/openmp (Files): Remove m4/openmp.m4.
1092         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
1093         htmldir, dvidir, pdfdir, psdir, localedir.
1094         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
1096         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
1097         Autoconf < 2.60.
1098         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
1099         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
1101         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
1102         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
1103         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
1105         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
1106         exists.
1107         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
1109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
1110         Autoconf < 2.61.
1112         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
1113         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
1114         Autoconf >= 2.52.
1116         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
1117         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
1118         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
1120 2018-10-22  Bruno Haible  <bruno@clisp.org>
1122         Assume Automake >= 1.11.
1123         * m4/configmake.m4: Update comments.
1124         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1125         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1126         of 'eval'.
1127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1128         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1129         requires Automake >= 1.11.
1131 2018-10-22  Bruno Haible  <bruno@clisp.org>
1133         localename: Fix typo in comment.
1134         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1136 2018-10-22  Bruno Haible  <bruno@clisp.org>
1138         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1139         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1141 2018-10-21  Bruno Haible  <bruno@clisp.org>
1143         locale: Ease integration with GNU libintl.
1144         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1145         GNULIB_defined_freelocale): New macros.
1147 2018-10-21  Bruno Haible  <bruno@clisp.org>
1149         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1150         * lib/localename-table.h: New file, extracted from lib/localename.c.
1151         * lib/localename-table.c: Likewise.
1152         * lib/localename.c: Include localename-table.h.
1153         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1154         locale_hash_function instead of pointer_hash.
1155         * modules/localename (Files): Add lib/localename-table.h,
1156         lib/localename-table.c.
1157         (lib_SOURCES): Add localename-table.c.
1158         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1159         for Solaris 11.4 locale system only on Solaris. Test for it
1160         independently whether getlocalename_l exists.
1161         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1162         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1163         HAVE_NAMELESS_LOCALES.
1164         * modules/gettext (Files): Add m4/intlsolaris.m4.
1166 2018-10-21  Bruno Haible  <bruno@clisp.org>
1168         Small update from gettext.
1169         * m4/intl.m4: Update from gettext:
1170         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1171         mode on AIX.
1172         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1173         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1175 2018-10-16  Bruno Haible  <bruno@clisp.org>
1177         mountlist: Remove support for Cray with UNICOS 9.
1178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1179         MOUNTED_LISTMNTENT.
1180         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1182 2018-10-16  Bruno Haible  <bruno@clisp.org>
1184         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1186         STAT_STATFS2_FS_DATA.
1187         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1189         MOUNTED_GETMNT.
1190         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1191         * lib/getloadavg.c (decstation): Remove definition and case.
1192         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1193         * lib/getgroups.c: Likewise.
1194         * doc/posix-functions/getgroups.texi: Likewise.
1195         * lib/time.in.h: Update comments.
1197 2018-10-16  Bruno Haible  <bruno@clisp.org>
1199         getloadavg: Remove support for ConvexOS.
1200         * lib/getloadavg.c: Remove convex case.
1202 2018-10-16  Bruno Haible  <bruno@clisp.org>
1204         getloadavg: Remove support for Sony NEWS.
1205         * lib/getloadavg.c: Remove sony_news case.
1207 2018-10-16  Bruno Haible  <bruno@clisp.org>
1209         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1210         * lib/fsusage.c: Remove _SEQUENT_ case.
1211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1212         * lib/mountlist.c: Don't test for MNTTABNAME.
1213         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1214         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1215         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1216         * lib/stat-size.h: Don't mention the Sequent bug.
1217         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1219 2018-10-16  Bruno Haible  <bruno@clisp.org>
1221         fsusage: Remove support for AIX 3.
1222         * lib/fsusage.c: Remove code for AIX 3.
1223         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1225 2018-10-16  Bruno Haible  <bruno@clisp.org>
1227         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1228         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1229         * lib/fsusage.c: Remove code for AIX PS/2.
1230         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1231         * lib/getloadavg.c: Likewise.
1233 2018-10-16  Bruno Haible  <bruno@clisp.org>
1235         getloadavg: Remove support for HP-UX on m68k.
1236         * lib/getloadavg.c: Remove hp9000s300 case.
1238 2018-10-16  Bruno Haible  <bruno@clisp.org>
1240         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1241         * lib/fsusage.c: Remove DOLPHIN case.
1242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1243         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1245 2018-10-16  Bruno Haible  <bruno@clisp.org>
1247         getloadavg: Remove support for Alliant FX/2800.
1248         * lib/getloadavg.c: Remove alliant case.
1250 2018-10-16  Bruno Haible  <bruno@clisp.org>
1252         getloadavg: Remove support for tek4300.
1253         * lib/getloadavg.c: Remove tek4300 case.
1255 2018-10-16  Bruno Haible  <bruno@clisp.org>
1257         getloadavg: Remove support for Ardent.
1258         * lib/getloadavg.c: Remove ardent case.
1260 2018-10-16  Bruno Haible  <bruno@clisp.org>
1262         mountlist: Remove support for SVR2.
1263         Reported by Andrew Borodin <aborodin@vmail.ru> in
1264         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1265         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1266         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1267         MOUNTED_FREAD.
1269 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1271         libc-config: merge from glibc
1272         * lib/cdefs.h (__glibc_has_attribute): New macro.
1274         regex: depend on libc-config
1275         * modules/regex (Depends-on): Add libc-config.
1276         This is needed after the recent autoupdate from glibc.
1278 2018-10-14  Bruno Haible  <bruno@clisp.org>
1280         localename: Add support for per-thread locales on Solaris 11.4.
1281         * lib/locale.in.h (newlocale, freelocale): New declarations.
1282         (duplocale): Declare also when the 'localename' module requests it.
1283         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1284         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1285         (struniq): Update.
1286         (struct locale_categories_names, struct locale_hash_node): New types.
1287         (LOCALE_HASH_TABLE_SIZE): New constant.
1288         (locale_hash_table, locale_lock): New variables.
1289         (pointer_hash, get_locale_t_name): New functions.
1290         (newlocale, duplocale, freelocale): New overridden functions.
1291         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1292         * m4/intlsolaris.m4: New file.
1293         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1294         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1295         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1296         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1297         declared.
1298         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1299         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1300         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1301         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1302         * modules/localename (Files): Add intlsolaris.m4.
1303         (Depends-on): Add 'locale'.
1304         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1305         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1306         the signatures.
1308 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1310         timevar: use gethrxtime to get wall clock time
1311         clock_gettime is not portable.  gethrxtime takes the best available
1312         option to get the wall clock time, including clock_gettime (monotonic
1313         clock), and gettime (non monotonic).
1314         Also, using xtime_t instead of float preserves the precision.
1315         Suggested by Bruno Haible.
1316         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1317         * modules/timevar (Depends-on): We need gethrxtime.
1318         We no longer use times().
1319         (Link): Update.
1320         * lib/timevar.h (timevar_time_def): Use xtime_t.
1321         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1322         (timevar_print): Instead of checking whether the timings themselves
1323         are large enough for the timevar to be printed, check the percentages.
1325 2018-10-14  Bruno Haible  <bruno@clisp.org>
1327         wcsnrtombs: Work around Solaris 11.4 bug.
1328         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1329         macro.
1330         (gl_FUNC_WCSNRTOMBS): Invoke it.
1331         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1333 2018-10-14  Bruno Haible  <bruno@clisp.org>
1335         mbsnrtowcs: Work around Solaris 11.4 bug.
1336         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1337         macro.
1338         (gl_FUNC_MBSNRTOWCS): Invoke it.
1339         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1341 2018-10-14  Bruno Haible  <bruno@clisp.org>
1343         doc: Update for Solaris 11.4.
1344         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1345         mention Solaris 11.4.
1346         * m4/printf.m4: Update comments about Solaris.
1347         * m4/log.m4: Likewise.
1348         * m4/log10.m4: Likewise.
1349         * m4/logb.m4: Likewise.
1350         * m4/logbf.m4: Likewise.
1351         * m4/logbl.m4: Likewise.
1352         * m4/rename.m4: Likewise.
1353         * m4/wcrtomb.m4: Likewise.
1354         * m4/hostent.m4: Likewise.
1355         * m4/servent.m4: Likewise.
1357 2018-10-14  Bruno Haible  <bruno@clisp.org>
1359         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1360         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1361         pointer.
1362         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1363         pointer.
1364         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1365         pointer.
1366         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1367         pointer.
1368         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1369         pointer.
1371 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1373         bootstrap: fix wget command for po files.
1374         * build-aux/bootstrap (po_download_command_format): Fix comment,
1375         and adjust callers.
1377 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1379         timevar: improve the output format
1380         Suggested by Bruno Haible.
1381         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1382         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1383         wall, since its resolution is much higher.
1385 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1387         timevar: expect that getrusage is available.
1388         Don't keep both times and getrusage as backend: both are guaranteed by
1389         gnulib, a single one suffices.  Using getrusage is open to possibly
1390         tracking other types of resources in the future.
1391         * modules/timevar (Depends-on): Add getrusage.
1392         (configure.ac): Remove gl_TIMEVAR.
1393         (Files): Remove m4/timevar.m4.
1394         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1395         * lib/timevar.h (timevar_enabled): Clarify documentation.
1396         * lib/timevar.c: Remove all the code about times.
1397         Remove all the CPP guards about getrusage: expect it to be present
1398         (courtesy of gnulib).
1400 2018-10-12  Bruno Haible  <bruno@clisp.org>
1402         mountlist: Improve support for Solaris in 64-bit mode.
1403         Reported by David Wood <David.Wood@deshaw.com> in
1404         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1406         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1407         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1409 2018-10-12  Bruno Haible  <bruno@clisp.org>
1411         mountlist: Add support for Minix.
1412         Reported by Assaf Gordon in
1413         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1415         AC_CHECK_FUNCS to check for 'getmntinfo'.
1416         * lib/mountlist.c: Update comments.
1418 2018-10-12  Bruno Haible  <bruno@clisp.org>
1420         Make better use of Autoconf.
1421         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1422         * m4/manywarnings.m4: Likewise.
1423         * m4/manywarnings-c++.m4: Likewise.
1424         * m4/socklen.m4: Likewise.
1425         * m4/sockpfaf.m4: Likewise.
1426         * m4/stdarg.m4: Likewise.
1427         * m4/visibility.m4: Likewise.
1428         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1429         indentation.
1430         * m4/ls-mntd-fs.m4: Likewise.
1432 2018-10-11  Bruno Haible  <bruno@clisp.org>
1434         mountlist: Modernize platform lists.
1435         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1436         platforms, deemphasizing the obsolete ones.
1437         * lib/mountlist.c: Likewise.
1439 2018-10-11  Bruno Haible  <bruno@clisp.org>
1441         getprogname: Add support for 32-bit programs on HP-UX.
1442         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1443         try the similar functions 32-bit programs on 64-bit HP-UX.
1445 2018-10-11  Bruno Haible  <bruno@clisp.org>
1447         getprogname: Work around program name truncation when possible.
1448         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1449         possibly use pst_cmd instead.
1451 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1453         fts: cleanup after FTS_NOATIME removal
1454         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1455         (FTS_STOP): Shrink to minimal values.  We don’t need to
1456         worry about binary compatibility in Gnulib, and the old way
1457         of doing things had a hole in the user options that caused
1458         FTS_OPTIONMASK to not work as desired.
1460 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1462         fts: remove FTS_NOATIME
1463         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1464         We cannot guarantee that O_NOATIME works: e.g. openat fails
1465         with EPERM if the effective user ID of the caller does not match
1466         the owner of the file and the caller is not privileged.
1467         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1468         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1469         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1470         (FTS_OPTIONMASK): Adjust.
1471         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1472         (fd_ring_check): Likewise.
1474 2018-10-08  Bruno Haible  <bruno@clisp.org>
1476         csharpcomp*, csharpexec*: Remove support for pnet.
1477         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1478         HAVE_CSCC.
1479         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1480         Don't test HAVE_CSCC.
1481         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1482         (compile_csharp_class): Don't invoke it.
1483         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1484         HAVE_ILRUN.
1485         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1486         Don't test HAVE_ILRUN.
1487         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1488         (execute_csharp_program): Don't invoke it.
1489         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1490         any more.
1492 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1494         renameatu: prefer renameat2 to syscall
1495         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1496         Use renameat2 instead of syscall (Bug#32796).
1497         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1499 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1501         bootstrap, gnulib-tool: use https instead of insecure rsync
1502         * build-aux/bootstrap (download_po_files, po_download_command_format):
1503         Don't try using rsync; always use wget over https to fetch PO files.
1504         * gnulib-tool (func_import): Likewise.
1505         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1507 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1509         bootstrap, gnulib-tool: correct the translations wget command
1510         * build-aux/bootstrap (po_download_command_format2): Restrict
1511         recursion to a single level.
1512         * gnulib-tool (func_import): Likewise.
1513         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1515 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1517         doc: the gnulib snapshots are not maintained
1518         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1520 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1522         timevar: add to lib_SOURCES
1523         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1525 2018-10-07  Bruno Haible  <bruno@clisp.org>
1527         dirent: Update documentation.
1528         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1530 2018-10-05  Bruno Haible  <bruno@clisp.org>
1532         strpbrk: Make it possible to namespace the defined symbol.
1533         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1535 2018-10-05  Bruno Haible  <bruno@clisp.org>
1537         strcspn: Make it possible to namespace the defined symbol.
1538         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1540 2018-10-05  Bruno Haible  <bruno@clisp.org>
1542         raise: Make it possible to namespace the defined symbol.
1543         * lib/raise.c (raise): Undefine only after the replacement function has
1544         been defined.
1545         (raise): Renamed from rpl_raise.
1546         (raise_nothrow): Move to the end of the compilation unit.
1548 2018-10-05  Bruno Haible  <bruno@clisp.org>
1550         memcmp: Make it possible to namespace the defined symbol.
1551         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1553 2018-10-05  Bruno Haible  <bruno@clisp.org>
1555         explicit_bzero: Make it possible to namespace the defined symbol.
1556         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1557         glibc.
1559 2018-10-05  Bruno Haible  <bruno@clisp.org>
1561         mkdir-p: Depend on 'mkdir'.
1562         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1564 2018-10-05  Bruno Haible  <bruno@clisp.org>
1566         tempname: Depend on 'mkdir'.
1567         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1568         at <https://savannah.gnu.org/bugs/?33379>.
1569         * modules/tempname (Depends-on): Add 'mkdir'.
1571 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1573         timevar: rely on gnulib modules for time portability.
1574         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1575         * m4/timevar.m4: Don't check for clock_t and struct tms,
1576         guaranteed by gnulib.
1577         * lib/timevar.h: Use extern "C" protection.
1578         Include <stdio.h> for FILE.
1579         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1580         they are guaranteed by gnulib.
1581         Remove uses of clock as (now useless) fallback.
1583 2018-10-04  Bruno Haible  <bruno@clisp.org>
1585         sh-filename: New module.
1586         * m4/sh-filename.m4: New file.
1587         * modules/sh-filename: New file.
1588         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1589         "/bin/sh".
1590         * tests/test-posix_spawn1.c (main): Likewise.
1591         * tests/test-posix_spawn2.c (main): Likewise.
1592         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1593         is_envjavac_gcj43): Likewise.
1594         * lib/javaexec.c (execute_java_class): Likewise.
1595         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1596         * modules/posix_spawnp-tests (Depends-on): Likewise.
1597         * modules/javacomp (Depends-on): Likewise.
1598         * modules/javaexec (Depends-on): Likewise.
1600 2018-10-04  Bruno Haible  <bruno@clisp.org>
1602         spawn-pipe tests: Avoid test failure on native Windows.
1603         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1604         that fd 2 is closed.
1606 2018-10-04  Bruno Haible  <bruno@clisp.org>
1608         fcntl: Make it possible to namespace the defined symbol.
1609         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1610         been defined.
1611         (fcntl): Renamed from rpl_fcntl.
1612         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1613         from fcntl.
1614         (klibc_fcntl): Move to the end of the compilation unit.
1616 2018-10-02  Bruno Haible  <bruno@clisp.org>
1618         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1619         * tests/test-vasnprintf.c (test_function): Change the test added on
1620         2018-09-23 to check only the 18 most significant digits.
1622         vasnprintf tests: Avoid test failure on Cygwin.
1623         * tests/test-vasnprintf.c (test_function): Change the test added on
1624         2018-09-23 to check only the 42 most significant digits.
1626 2018-10-01  Bruno Haible  <bruno@clisp.org>
1628         mkostemp, mkostemps: Update documentation.
1629         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1630         * doc/glibc-functions/mkostemps.texi: Likewise.
1632 2018-10-01  Tom Tromey  <tom@tromey.com>
1634         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1635         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1636         on OS X.
1638 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1640         hmac-*: refactor to remove repetitive code
1641         * lib/hmac.c: A new parameterized single implementation.
1642         * lib/hmac-md5.c: Define parameters and include implementation.
1643         * lib/hmac-sha1.c: Likewise.
1644         * lib/hmac-sha256.c: Likewise.
1645         * lib/hmac-sha512.c: Likewise.
1646         * modules/crypto/hmac-md5: Reference the new implementation file.
1647         * modules/crypto/hmac-sha1: Likewise.
1648         * modules/crypto/hmac-sha256: Likewise.
1649         * modules/crypto/hmac-sha512: Likewise.
1650         * tests/test-hmac-md5.c: Refactor common code to a single function.
1651         * tests/test-hmac-sha1.c: Likewise.
1652         * tests/test-hmac-sha256.c: Likewise.
1653         * tests/test-hmac-sha512.c: Likewise.
1655 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1657         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1658         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1659         key length to that output by sha512, not the blocksize.
1660         Otherwise uninitialized data from the stack
1661         is used when computing the hash.
1662         * tests/test-hmac-sha512.c: Add a shortened key test case.
1663         Reported at https://github.com/coreutils/gnulib/pull/5
1665 2018-09-30  Bruno Haible  <bruno@clisp.org>
1667         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1668         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1669         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1670         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1671         'unsigned int' before comparison with an unsigned value.
1673 2018-09-30  Bruno Haible  <bruno@clisp.org>
1675         grantpt: Remove unnecessary dependency.
1676         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1678 2018-09-30  Bruno Haible  <bruno@clisp.org>
1680         timevar: Small tweaks.
1681         * lib/timevar.h: Fix comments. Add parameter names to function
1682         declarations.
1683         * lib/timevar.c: Include timevar.h immediately after config.h.
1684         * lib/timevar.def: Fix comments.
1685         * modules/timevar (Maintainer): List Akim Demaille.
1687 2018-09-30  Bruno Haible  <bruno@clisp.org>
1689         timevar: Include documentation in gnulib manual.
1690         * doc/timevar.texi: Change node and section name to 'Profiling of
1691         program phases'.
1692         In the code snippets, tweak the #includes and use GNU coding style.
1693         * doc/gnulib.texi: Include timevar.texi.
1695 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1697         timevar: import from Bison.
1698         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1699         New files.
1700         * lib/timevar.def: New file.
1701         * doc/timevar.texi: New file.
1703 2018-09-26  Bruno Haible  <bruno@clisp.org>
1705         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1706         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1707         * lib/javacomp.c (default_target_version): Likewise.
1709 2018-09-26  Bruno Haible  <bruno@clisp.org>
1711         javacomp-script, javacomp: Add support for Java 11.
1712         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1713         target-version 11.
1714         * lib/javaversion.h: Update comments.
1715         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1716         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1717         TARGET_VERSION_BOUND, target_version_index,
1718         corresponding_classfile_version): Accept source_version 11 and
1719         target_version 11.
1720         * lib/javacomp.h: Update comments accordingly.
1722 2018-09-23  Bruno Haible  <bruno@clisp.org>
1724         vasnprintf: Fix heap memory overrun bug.
1725         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1726         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1727         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1728         memory.
1729         * tests/test-vasnprintf.c (test_function): Add another test.
1731 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1733         maint: mktime.c now shared with glibc
1734         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1735         are now the same in Gnulib and glibc.
1737         mktime: fix _LIBC typo
1738         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1740 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1742         dfa: optimization for state merge
1743         * lib/dfa.c (merge2): New function.
1744         (merge_nfa_state): Use it.
1746 2018-09-18  Jim Meyering  <meyering@fb.com>
1748         dfa: trivial comment fix: s/is/if/
1749         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1751 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1753         dfa: use more-informative function name
1754         * lib/dfa.c (maybe_disable_superset_dfa):
1755         Rename from dfautf8noss.  Use change.
1757         dfa: tweak allocation performance
1758         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1759         Prefer ptrdiff_t for indexes some more.
1760         Use char for flags, as it’s wide enough.
1761         Allocate queue and flags together, with one malloc call.
1762         No need to use xnmalloc since the multiplication and
1763         addition cannot overflow (it’s already been checked by
1764         earlier allocation).  Prefer memset to open-coding.
1766         dfa: prune states as we go
1767         * lib/dfa.c (prune): Remove.
1768         dfa: reorder enum for efficiency
1769         (merge_nfa_state): Prune as we go instead of at the end.
1770         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1772         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1773         of the enumeration to make it easier for GCC to generate
1774         efficient code by using fewer comparisons to check for
1775         ranges of values.
1776         (atom): Take advantage of the reordering.
1778 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1780         dfa: optimize alternation in NFA
1781         Even when similar states exist in alternation, the DFA treats them
1782         as separate items, which may complicate the transition in NFA and
1783         cause slowdown.  This change assembles the states into one.  For
1784         example, ab|ac is changed into a(b|c).  This change speeds-up
1785         matching for many branched patterns.  For example, grep speeds up
1786         more than 30× in:
1788           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1789           time -p env LC_ALL=C grep -vf in in
1791         * lib/dfa.c (prune): New function.
1792         (merge_nfa_state): New function.  It merges similar NFA states.
1793         (dfaoptimize): New function.  It seeks merged and removed nodes.
1794         (dfaanalyze): Call new function.
1795         (dfautf8noss): Change name from dfaoptimize because of addition of new
1796         function.
1797         (dfacomp): Update caller.
1799         dfa: simplify initial state
1800         Simplifying the initial state enables easier optimization of the NFA.
1801         * lib/dfa.c (enum token): Add new element BEG.
1802         (prtok): Adjust due to adding element BEG.
1803         (dfaparse): Put BEG at a head of tokens.
1804         (state_index): Adjust due to adding element BEG.
1805         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1806         build initial state.
1807         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1809 2018-09-18  Bruno Haible  <bruno@clisp.org>
1811         file-has-acl: Fix test failure on Cygwin 2.9.
1812         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1813         * lib/acl-internal.h: Likewise.
1814         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1815         * lib/acl-internal.c: Update comments regarding Cygwin.
1816         * lib/acl_entries.c: Likewise.
1817         * lib/file-has-acl.c: Likewise.
1818         (file_has_acl): For Cygwin, use a different way to determine whether
1819         the "default" ACL of a directory is nontrivial.
1820         * lib/get-permissions.c: Update comments regarding Cygwin.
1821         * lib/set-permissions.c: Likewise.
1823 2018-09-18  Bruno Haible  <bruno@clisp.org>
1825         stat-time tests: Fix test failure on Cygwin.
1826         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1828 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1830         doc: OS X 10.11 lacked ns time functions
1831         According to <https://github.com/zeromq/libzmq/issues/2175>,
1832         nanosecond-resolution timestamp functions were introduced
1833         in macOS 10.12, so document the last version (OS X 10.11)
1834         where they were absent.
1836         gettime: nanotime never existed
1837         Problem reported by Bruno Haible in:
1838         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1839         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1840         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1842 2018-09-18  Bruno Haible  <bruno@clisp.org>
1844         doc: Update statement about target platforms.
1845         Reported by Simon Sobisch.
1846         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1847         restrictions on MSVC versions.
1849 2018-09-18  Bruno Haible  <bruno@clisp.org>
1851         posix_spawn tests: Fix link error on 64-bit Cygwin.
1852         * tests/test-posix_spawn1.c (environ): Remove declaration.
1853         * tests/test-posix_spawn2.c (environ): Likewise.
1854         * tests/test-posix_spawn3.c (environ): Likewise.
1855         * tests/test-posix_spawn4.c (environ): Likewise.
1856         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1857         * modules/posix_spawnp-tests (Depends-on): Likewise.
1859 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1861         timespec: new function current_timespec
1862         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1863         and don’t worry about it failing on a CLOCK_REALTIME arg.
1864         POSIX requires it to succeed and I don’t know of any
1865         counterexamples where the fallbacks would work.
1866         (current_timespec): New function, taken from Emacs.  It is more
1867         convenient than gettime, and can help register allocation.
1868         * lib/timespec.h: Include arg-nonnull.h.
1869         (current_timespec): New declaration.
1870         (gettime, settime): Declare args to be nonnull.
1871         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1873 2018-09-16  Bruno Haible  <bruno@clisp.org>
1875         setlocale: Improve locale handling on macOS 10.12 or newer.
1876         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1877         gl_locale_name_canonicalize.
1878         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1879         and LC_MESSAGES.
1880         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1882 2018-09-16  Bruno Haible  <bruno@clisp.org>
1884         Update list of locale names with scripts on macOS.
1885         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1886         match Mac OS X 10.13 and recent glibc.
1888 2018-09-16  Bruno Haible  <bruno@clisp.org>
1890         gettext: Use newer macOS APIs when possible.
1891         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1892         CFLocaleCopyPreferredLanguages.
1894 2018-09-16  Bruno Haible  <bruno@clisp.org>
1896         localename: Revisit macOS specific code.
1897         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1898         Fix comments about Mac OS X versions.
1900 2018-09-15  Bruno Haible  <bruno@clisp.org>
1902         setlocale: Improve support for locales not supported by libc.
1903         Reported by Dapeng Gao <peter@dpgao.cc> at
1904         <https://savannah.gnu.org/bugs/?54479>.
1905         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1906         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1907         to be set is not supported by libc: Emit warnings instead of failing.
1909 2018-09-15  Bruno Haible  <bruno@clisp.org>
1911         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1912         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1913         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1914         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1916         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1917         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1918         * doc/glibc-functions/strcasestr.texi: Likewise.
1920 2018-09-14  Bruno Haible  <bruno@clisp.org>
1922         doc: Fix bottom of top-level page.
1923         Reported by Akim Demaille <akim.demaille@gmail.com> in
1924         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1925         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1926         mode.
1927         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1928         accordingly.
1930 2018-09-12  Bruno Haible  <bruno@clisp.org>
1932         Add test case from a recent glibc bug.
1933         * tests/test-strstr.c (main): Add test of long needle.
1934         * tests/test-strcasestr.c (main): Likewise.
1935         * tests/test-c-strstr.c (main): Likewise.
1936         * tests/test-c-strcasestr.c (main): Likewise.
1937         * tests/test-memmem.c (main): Likewise.
1939 2018-09-12  Bruno Haible  <bruno@clisp.org>
1941         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1942         * tests/test-c-strstr.c (main): Add the same tests here as well.
1944 2018-09-12  Bruno Haible  <bruno@clisp.org>
1946         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1947         * tests/test-memmem.c (main): Free haystack.
1948         * tests/test-strcasestr.c (main): Likewise.
1949         * tests/test-c-strcasestr.c (main): Likewise.
1951 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1953         xstrtol: fix missing-TYPE_SIGNED typo
1954         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1956 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1958         timespec: fix resolution confusion
1959         In normal usage, clock resolution is given in seconds, but the
1960         code was mistakenly using inverse seconds and calling it
1961         “resolution”.  Fix this, partly by renaming two identifiers.
1962         The old names will be kept for a bit, to ease transition.
1963         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1964         New constants, replacing TIMESPEC_RESOLUTION and
1965         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1966         All uses changed.
1968 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1970         mktime: simplify in prep for glibc merge
1971         * lib/mktime.c, lib/timegm.c [_LIBC]:
1972         Include mktime-internal.h (a small file just for glibc)
1973         instead of using a typedef.
1975 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1977         intprops: minor clarification of code
1978         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1979         Use _GL_INT_CONVERT rather than reinventing it.
1981 2018-09-07  Bruno Haible  <bruno@clisp.org>
1983         Fix a comment.
1984         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1986 2018-09-07  Bruno Haible  <bruno@clisp.org>
1988         posix_spawn_file_actions_addchdir: Add tests.
1989         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1990         * tests/test-posix_spawn4.c: New file.
1991         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1993 2018-09-07  Bruno Haible  <bruno@clisp.org>
1995         posix_spawn_file_actions_addchdir: New module.
1996         Suggested by Eric Blake in
1997         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1998         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1999         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
2000         union member 'chdir_action'.
2001         * lib/spawn_faction_addchdir.c: New file.
2002         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
2003         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
2004         HAVE_WORKING_POSIX_SPAWN.
2005         * lib/spawn_faction_adddup2.c: Likewise.
2006         * lib/spawn_faction_addopen.c: Likewise.
2007         * m4/posix_spawn_faction_addchdir.m4: New file.
2008         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
2009         'posix_spawn_file_actions_addchdir' is present and whether
2010         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
2011         instead of HAVE_WORKING_POSIX_SPAWN.
2012         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
2013         posix_spawn_file_actions_addchdir is declared.
2014         (gl_SPAWN_H_DEFAULTS): Initialize
2015         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2016         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2017         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2018         * modules/spawn (Makefile.am): Substitute
2019         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2020         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2021         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2022         * modules/posix_spawn_file_actions_addchdir: New file.
2023         * modules/posix_spawn_file_actions_addclose (Depends-on,
2024         configure.ac): Test also REPLACE_POSIX_SPAWN.
2025         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
2026         configure.ac): Likewise.
2027         * modules/posix_spawn_file_actions_addopen (Depends-on,
2028         configure.ac): Likewise.
2029         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
2030         signature.
2031         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2032         * doc/posix-functions/posix_spawnp.texi: Likewise.
2034 2018-09-06  Bruno Haible  <bruno@clisp.org>
2036         stddef: Override max_align_t on NetBSD 8.0/x86.
2037         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
2038         the value of __alignof__ (max_align_t).
2039         * doc/posix-headers/stddef.texi: Mention the issue.
2041 2018-09-06  Bruno Haible  <bruno@clisp.org>
2043         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
2044         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
2045         system fcntl.
2046         * doc/posix-functions/fcntl.texi: Document the issue.
2048 2018-09-06  Bruno Haible  <bruno@clisp.org>
2050         count-trailing-zeros tests: Rely on limits-h module.
2051         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
2052         definition.
2053         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
2055 2018-09-06  Bruno Haible  <bruno@clisp.org>
2057         count-leading-zeros tests: Rely on limits-h module.
2058         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
2059         definition.
2060         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
2062 2018-09-06  Bruno Haible  <bruno@clisp.org>
2064         count-one-bits tests: Rely on limits-h module.
2065         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
2066         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
2068 2018-09-06  Bruno Haible  <bruno@clisp.org>
2070         xstrtoll: Rely on limits-h module.
2071         * lib/xstrtol.c: Don't include intprops.h.
2072         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2073         * modules/xstrtol (Depends-on): Remove 'intprops'.
2074         * modules/xstrtoll (Depends-on): Add 'limits-h'.
2076 2018-09-06  Bruno Haible  <bruno@clisp.org>
2078         strtoll, strtoull: Rely on limits-h module.
2079         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
2080         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2081         * modules/strtoll (Depends-on): Add limits-h.
2082         * modules/strtoull (Depends-on): Likewise.
2084 2018-09-06  Bruno Haible  <bruno@clisp.org>
2086         intprops tests: Fix compilation error with pre-C99 compiler.
2087         * tests/test-intprops.c (verify_stmt): New macro.
2088         (VERIFY, main): Use it.
2090 2018-09-06  Bruno Haible  <bruno@clisp.org>
2092         limits-h: Provide numerical limits macros.
2093         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
2094         IRIX and for GCC.
2095         (WORD_BIT, LONG_BIT): Define.
2096         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
2097         <limits.h> does not define LLONG_MAX or WORD_BIT.
2098         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
2099         TYPE_MAXIMUM): New macros, from intprops.h.
2100         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
2101         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
2102         provides.
2104 2018-09-05  Bruno Haible  <bruno@clisp.org>
2106         fcntl: Don't access nonexistent optional argument.
2107         Reported by Frank Busse <f.busse@imperial.ac.uk> in
2108         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
2109         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
2110         don't consume an argument. For actions that take an 'int' argument,
2111         consume an 'int' argument.
2113 2018-09-05  Eric Blake  <eblake@redhat.com>
2115         doc: mention environ pitfall
2116         * doc/posix-functions/environ.texi (environ): Assigning NULL to
2117         environ is a glibc extension.
2119 2018-09-03  Bruno Haible  <bruno@clisp.org>
2121         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
2122         Reported by Antoine Luong <antoine.luong@c-s.fr> in
2123         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2124         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2125         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2126         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2128 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2130         mktime: fix unlikely race+overflow bug
2131         Problem reported by Alexandre Oliva in:
2132         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2133         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2134         to avoid an unlikely race if the compiler delays a load and
2135         if this cascades into a signed integer overflow.
2137 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2139         mktime, timegm: simplify glibc time64_t
2140         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2141         Now long int, not time_t, since long int is the longstanding type
2142         for this in glibc and there is no need to change it even if time_t
2143         becomes 64 bits - even int would do, though this would be a change
2144         to the glibc generated code.  When this change is merged into
2145         glibc, it should simplify the time_t vs time64_t situation.
2147         mktime, timegm: simplify merge to glibc
2148         Move code around to make a merge to glibc easier to audit.
2149         This should not change behavior.
2150         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2151         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2152         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2153         simplify later conditionals; default the others to zero.  In uses
2154         of these conditionals, explicitly spell out how _LIBC affects
2155         things, so it’s easier to review from a glibc viewpoint.
2156         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2157         compartmentalize tzset issues.  Move system-dependent tzsettish
2158         code here from mktime.
2159         (mktime): Move tzsettish code to my_tzset, and move
2160         localtime_offset to within mktime so that it doesn’t
2161         need a separate ifdef.
2163 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2165         intprops: avoid evaluation of some expressions
2166         This makes EXPR_SIGNED (e) easier to use, as it no longer
2167         evaluates the expression E.  Formerly, E was required to be free
2168         of side effects.
2169         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2170         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2171         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2173 2018-08-23  Bruno Haible  <bruno@clisp.org>
2175         getcwd: Add cross-compilation guesses.
2176         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2177         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2178         Based on a patch by Paul Eggert.
2179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2180         guesses for all GNU systems.
2182 2018-08-19  Bruno Haible  <bruno@clisp.org>
2184         glob-h: Formalize side effects from other modules.
2185         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2186         * m4/glob.m4 (gl_GLOB): Invoke it.
2188         fnmatch-h: Formalize side effects from other modules.
2189         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2190         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2192         limits-h: Formalize side effects from other modules.
2193         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2194         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2196 2018-08-19  Bruno Haible  <bruno@clisp.org>
2198         getpass: Move declaration to <unistd.h>.
2199         * lib/unistd.in.h (getpass): New declaration.
2200         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2201         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2202         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2203         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2204         On glibc systems, don't set REPLACE_GETPASS to 1.
2205         * modules/getpass (Depends-on): Add 'unistd'.
2206         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2207         (Include): Specify <unistd.h> instead of "getpass.h".
2208         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2209         (configure.ac): Sync with the configure.ac section of modules/getpass.
2210         (Include): Specify <unistd.h> instead of "getpass.h".
2211         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2212         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2213         REPLACE_GETPASS.
2214         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2215         REPLACE_GETPASS.
2216         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2217         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2218         and musl.
2219         * NEWS: Mention the change.
2221 2018-08-19  Bruno Haible  <bruno@clisp.org>
2223         glob: Fix over-optimization due to attribute __nonnull__.
2224         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2226 2018-08-19  Bruno Haible  <bruno@clisp.org>
2228         glob: Fix another compilation error when glob.h is not replaced.
2229         Reported by Reuben Thomas <rrt@sc3d.org> in
2230         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2231         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2232         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2234 2018-08-18  Bruno Haible  <bruno@clisp.org>
2236         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2237         Reported by Reuben Thomas <rrt@sc3d.org> in
2238         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2239         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2240         in config.h.
2242 2018-08-18  Bruno Haible  <bruno@clisp.org>
2244         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2245         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2246         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2247         Solution proposed by Eli Zaretskii.
2248         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2249         * lib/gettimeofday.c (GetProcAddress): Likewise.
2250         * lib/link.c (GetProcAddress): Likewise.
2251         * lib/physmem.c (GetProcAddress): Likewise.
2252         * lib/poll.c (GetProcAddress): Likewise.
2253         * lib/select.c (GetProcAddress): Likewise.
2254         * lib/stat-w32.c (GetProcAddress): Likewise.
2256 2018-08-18  Bruno Haible  <bruno@clisp.org>
2258         glob: Fix another compilation error when glob.h is not replaced.
2259         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2260         * lib/globfree.c: Include <libc-config.h>.
2262 2018-08-18  Bruno Haible  <bruno@clisp.org>
2264         glob: Fix compilation error when glob.h is not replaced.
2265         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2266         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2267         * lib/glob_pattern_p.c: Include <libc-config.h>.
2268         * modules/glob (Depends-on): Add libc-config.
2270 2018-08-18  Bruno Haible  <bruno@clisp.org>
2272         scratch_buffer: Add tests.
2273         * tests/test-scratch-buffer.c: New file.
2274         * modules/scratch_buffer-tests: New file.
2276 2018-08-18  Bruno Haible  <bruno@clisp.org>
2278         scratch_buffer: Fix include file.
2279         Reported by Reuben Thomas <rrt@sc3d.org> in
2280         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2281         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2282         double-inclusion guard.
2284 2018-08-18  Bruno Haible  <bruno@clisp.org>
2286         glob-h: Revert Paul Eggert's revert.
2287         * m4/glob_h.m4: Revert to previous state.
2288         * modules/glob-h: Likewise.
2290 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2292         glob-h: always build glob.h
2293         This works around a problem reported by Reuben Thomas in:
2294         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2295         This workaround always builds glob.h, even on platforms that
2296         do not need it; perhaps this could be improved someday.
2297         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2298         is always created now.
2299         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2301 2018-08-13  Bruno Haible  <bruno@clisp.org>
2303         monetary: Simplify m4 code.
2304         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2305         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2307 2018-08-13  Bruno Haible  <bruno@clisp.org>
2309         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2310         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2311         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2312         and by Paul J. Lucas <paul@lucasmail.org> in
2313         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2314         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2316 2018-08-11  Bruno Haible  <bruno@clisp.org>
2318         setlocale: Trivial simplification.
2319         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2321 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2323         verify: port 'assume' to traditional tools
2324         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2325         and other tools that use /*NOTREACHED*/ comments.
2327 2018-08-10  Bruno Haible  <bruno@clisp.org>
2329         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2330         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2331         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2332         'fnmatch-gnu' is in use.
2334 2018-08-07  Bruno Haible  <bruno@clisp.org>
2336         glob-h: Add tests.
2337         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2338         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2339         tests/test-glob-h.c.
2340         * modules/glob-h-tests: New file.
2341         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2342         conditions.
2343         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2344         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2346 2018-08-07  Bruno Haible  <bruno@clisp.org>
2348         glob-h: New module.
2349         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2350         replacements.
2351         * lib/glob.c: Include <config.h>.
2352         * m4/glob_h.m4: New file.
2353         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2354         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2355         REPLACE_GLOB_PATTERN_P as appropriate.
2356         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2357         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2358         * modules/glob-h: New file.
2359         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2360         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2361         lstat, sys_stat. Change conditions.
2362         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2363         REPLACE_GLOB_PATTERN_P. Set module indicator.
2364         (Makefile.am): Remove code that is moved to glob-h.
2365         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2366         * modules/posixcheck (Depends-on): Add glob-h.
2368 2018-08-06  Bruno Haible  <bruno@clisp.org>
2370         Force generation of substitute .h file when C++ support is enabled.
2371         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2372         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2373         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2374         FNMATCH_H to non-empty.
2375         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2376         ICONV_H to non-empty.
2377         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2378         MONETARY_H to non-empty.
2379         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2380         non-empty.
2382 2018-08-06  Bruno Haible  <bruno@clisp.org>
2384         fnmatch-h: Fix test compilation error on mingw (regression from today).
2385         * lib/fnmatch.in.h: Fix conditions.
2387 2018-08-06  Bruno Haible  <bruno@clisp.org>
2389         sys_resource: Relicense under LGPLv2+.
2390         John Malmberg's approval is in
2391         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2392         * modules/sys_resource (License): Change to LGPLv2+.
2394 2018-08-06  Bruno Haible  <bruno@clisp.org>
2396         fnmatch-h: Add tests.
2397         * tests/test-fnmatch-h.c: New file.
2398         * modules/fnmatch-h-tests: New file.
2399         * tests/test-fnmatch-h-c++.cc: New file.
2400         * modules/fnmatch-h-c++-tests: New file.
2402 2018-08-06  Bruno Haible  <bruno@clisp.org>
2404         fnmatch-h: New module.
2405         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2406         replacements.
2407         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2408         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2409         'posixcheck' warning.
2410         * m4/fnmatch_h.m4: New file.
2411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2412         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2413         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2414         as appropriate.
2415         * modules/fnmatch-h: New file.
2416         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2417         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2418         conditions.
2419         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2420         indicator.
2421         (Makefile.am): Remove code that is moved to fnmatch-h.
2422         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2423         REPLACE_FNMATCH.
2424         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2425         * modules/posixcheck (Depends-on): Add fnmatch-h.
2427 2018-08-06  Bruno Haible  <bruno@clisp.org>
2429         Enable more C++ tests.
2430         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2431         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2432         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2433         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2434         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2436 2018-08-06  Bruno Haible  <bruno@clisp.org>
2438         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2439         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2440         getopt.h.
2441         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2443 2018-08-05  Bruno Haible  <bruno@clisp.org>
2445         utime-h: Generate header file when module 'posixcheck' is in use.
2446         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2447         UTIME_H to non-empty.
2449 2018-08-05  Bruno Haible  <bruno@clisp.org>
2451         monetary: Generate header file when module 'posixcheck' is in use.
2452         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2453         use, set MONETARY_H to non-empty.
2455 2018-08-05  Bruno Haible  <bruno@clisp.org>
2457         iconv-h: Generate header file when module 'posixcheck' is in use.
2458         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2459         set ICONV_H to non-empty.
2461 2018-08-05  Bruno Haible  <bruno@clisp.org>
2463         Optimize the "checking whether ... is declared without a macro" checks.
2464         Suggested by Paul Eggert in
2465         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2466         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2467         Gnulib module 'posixcheck' is not in use.
2469 2018-08-05  Bruno Haible  <bruno@clisp.org>
2471         iconv-h: Enable 'posixcheck' warnings.
2472         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2473         iconv_open.
2474         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2476 2018-08-05  Bruno Haible  <bruno@clisp.org>
2478         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2479         * m4/extern-inline.m4: Add more comments.
2480         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2481         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2482         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2484 2018-08-04  Bruno Haible  <bruno@clisp.org>
2486         New module 'posixcheck'.
2487         * modules/posixcheck: New file.
2488         * m4/posixcheck.m4: New file.
2489         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2490         (Which modules?): Reference it.
2492 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2494         dfa: fix memory leak
2495         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2497 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2499         ieee754-h: new module
2500         It looks like Emacs can use this for some NaN processing.
2501         Emacs uses it only on double NaNs so it should be safe.
2502         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2503         * config/srclist.txt: Mention ieee754.h in a comment.
2504         * doc/glibc-headers/ieee754.texi (ieee754.h):
2505         Gnulib now has a substitute that should work
2506         except for long double and for non-IEEE platforms.
2507         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2508         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2510 2018-07-27  Bruno Haible  <bruno@clisp.org>
2512         iswcntrl: Mention minor problem on macOS.
2513         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2515 2018-07-26  Colin Watson  <cjwatson@debian.org>
2517         bootstrap, gnulib-tool: fix translations rsync
2518         Previously, we created files such as $pobase/Makefile.in.in and then the
2519         subsequent rsync would immediately delete them.
2520         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2521         non-.po files in target directory when rsyncing translations.
2522         * gnulib-tool (func_import): Likewise.
2523         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2525 2018-07-25  Jim Meyering  <meyering@fb.com>
2527         bootstrap: reinstate definition fo gnulib_mk.
2528         That variable is used at least by cppi.
2529         * build-aux/bootstrap (gnulib_mk): Restore definition.
2530         This reverts the deletion from v0.1-1844-gc66dba9ba.
2532 2018-07-23  Bruno Haible  <bruno@clisp.org>
2534         doc: For module names, use texinfo markup @code{} or @samp{}.
2535         * doc/alloca.texi: Mark gnulib module names with @code.
2536         * doc/alloca-opt.texi: Likewise.
2537         * doc/quote.texi: Likewise.
2538         * doc/posix-functions/freopen.texi: Likewise.
2539         * doc/posix-functions/open.texi: Likewise.
2540         * doc/posix-functions/readlink.texi: Likewise.
2541         * doc/posix-functions/readlinkat.texi: Likewise.
2542         * doc/posix-functions/stdout.texi: Likewise.
2543         * doc/posix-functions/stderr.texi: Likewise.
2544         * doc/posix-functions/unlink.texi: Likewise.
2545         * doc/posix-functions/unlinkat.texi: Likewise.
2546         * doc/posix-functions/utime.texi: Likewise.
2547         * doc/posix-functions/utimensat.texi: Likewise.
2548         * doc/posix-functions/utimes.texi: Likewise.
2549         * doc/posix-headers/stdint.texi: Likewise.
2550         * doc/glibc-functions/futimesat.texi: Likewise.
2551         * doc/glibc-functions/lutimes.texi: Likewise.
2552         * doc/glibc-functions/memmem.texi: Likewise.
2554 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2556         doc: Avoid some overfull lines in the TeX output.
2557         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2558         @example.
2559         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2560         newline before the long URL.
2561         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2562         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2563         Add line breaks in code snippets.
2565 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2567         hard-locale: simplify by removing hard-locale.m4
2568         * m4/hard-locale.m4: Remove.
2569         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2570         (configure.ac): Do not call gl_HARD_LOCALE.
2572         gnulib-tool: limit line length for git send-email
2573         * gnulib-tool (func_import): Break actioncmd log line
2574         into multiple lines.
2576 2018-07-16  Bruno Haible  <bruno@clisp.org>
2578         ffs: Ensure declaration on mingw.
2579         Reported by Daniel P. Berrangé <berrange@redhat.com>
2580         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2581         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2582         also declared.
2584 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2586         regex-tests: add dependency
2587         * modules/regex-tests (Depends-on): Add gettext-h.
2588         This is needed given the recent changes to regex,
2589         which no longer depends on gettext-h.
2591 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2593         regex: now in sync with glibc
2594         * config/srclist.txt: Gnulib and glibc regex code
2595         are synchronized again.
2597 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2599         renameatu: rename from renameat2
2600         It's looking like Glibc will add a renameat2 function
2601         that is incompatible with Gnulib renameat2; see:
2602         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2603         To help avoid future confusion, rename renameat2 to something else.
2604         Use the name 'renameatu', as the Gnulib function is close to the
2605         Glibc function.  Perhaps someday there will also be a renameat2
2606         Gnulib module, which mimicks the future glibc renameat2, but that
2607         can wait as nobody seems to need such a module now.
2608         * NEWS: Mention this.
2609         * lib/renameatu.c: Rename from lib/renameat2.c.
2610         * lib/renameatu.h: Rename from lib/renameat2.h.
2611         * modules/renameatu: Rename from modules/renameat2.
2612         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2613         All uses of "renameat2" in identifiers or file name
2614         changed to "renameatu", except for two instances in
2615         lib/renameatu.c that deal with the Linux kernel's
2616         renameat2 syscall.
2618 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2620         gnulib-tool: minor tweaks for --gnu-make
2621         * gnulib-tool: Do not allow --gnu-make in test modes,
2622         since they all require automake.
2623         (func_emit_lib_Makefile_am): Don’t emit automake comment
2624         if --gnu-make.
2626         regex: work around conditional-dependencies glitch
2627         * modules/regex (Depends-on): Add langinfo.
2628         Without this change, I had problems building an experimental
2629         version of GNU Emacs.  The symptom of the bug was a message
2630         ‘./configure: line 12726: test: =: unary operator expected’.
2631         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2632         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2633         was unset.  Although gl_FUNC_NL_LANGINFO has
2634         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2635         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2636         --conditional-dependencies sometimes arranges for the
2637         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2638         code.  Since the regex code includes <langinfo.h> it should be
2639         depending on the langinfo module anyway, and this happens to work
2640         around the bug, so install that as a workaround for now.  To
2641         reproduce the original problem, run the following shell script on
2642         the version of Gnulib just before this patch was installed.
2643                 rm -fr foo
2644                 mkdir foo
2645                 cat >foo/configure.ac <<'EOF'
2646                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2647                 gl_EARLY
2648                 gl_INIT
2649                 AC_OUTPUT
2650                 EOF
2651                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2652                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2653                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2654                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2655                 cd foo
2656                 aclocal -I m4
2657                 autoconf
2658                 ./configure --with-included-regex
2660 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2662         wchar: fix bug when checking for ‘inline’
2663         I discovered this when looking into using the regex module
2664         with Emacs.
2665         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2666         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2667         conftest1.c and conftest2.c but these files were not created.
2668         As far as I can see, this check never worked and nobody reported
2669         it until now, which is a bit worrisome.
2671 2018-06-30  Jim Meyering  <meyering@fb.com>
2673         bootstrap: s/--option val/--option=val/
2674         * build-aux/bootstrap (gnulib_tool_options): Change the
2675         spelling of "--option val" pairs to "--option=val", for
2676         aesthetics, and also so that this file no longer triggers
2677         a common help2man syntax-check warning when copied into
2678         projects like grep, gzip, etc.
2680 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2682         manywarnings: omit -Wswitch-default
2683         This should make things more consistent, as we already ignore
2684         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2685         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2686         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2687         Add -Wswitch-default.
2688         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2689         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2690         Remove -Wswitch-default.
2692         regex: revert most trimming
2693         Problems reported by Bruno Haible in:
2694         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2695         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2696         and wctype back in.  lock because regex users shouldn’t
2697         need to know that regex needs locking, and the rest because
2698         gnulib-tool should ordinarily ignore them anyway.
2700 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2702         regex: trim module dependencies
2703         * modules/regex (Depends-on): Remove gettext-h and lock,
2704         since the regex code should work OK without these modules,
2705         and Emacs uses it that way.  Also remove memcmp, memmove,
2706         and wctype, as these modules are obsolete and should not be
2707         needed any more.
2709 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2711         regex: glibc does not use intprops.h
2712         Maybe we can talk glibc into using intprops.h someday, but
2713         now doesn’t seem to be a good time.
2714         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2715         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2716         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2718 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2720         regex: port to recently proposed glibc regex merge
2721         This patch is inspired by Adhemerval Zanella's recent proposal
2722         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2723         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2724         the glibc side, without keeping Gnulib portable.
2725         * lib/regex.h: Fix a problem with glibc installed-header checking,
2726         as follows:
2727         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2728         (_Restrict_arr_): Prefer __restrict_arr if defined,
2729         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2730         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2731         (build_wcs_upper_buffer, build_upper_buffer)
2732         (re_string_translate_buffer, re_string_context_at):
2733         Move decls here from lib/regex_internal.h, for glibc internal tests.
2734         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2735         glibc BZ #18496.
2736         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2737         -Wunused-value.
2738         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2739         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2740         (bitset_mask): Now static inline, and without any __attribute__
2741         ((unused)) decoration, for glibc internal tests.
2743 2018-06-25  Bruno Haible  <bruno@clisp.org>
2745         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2746         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2747         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2748         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2749         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2750         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2751         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2752         / -lthread / -lpth does not get optimized away by a preceding
2753         --as-needed option.
2755 2018-06-25  Bruno Haible  <bruno@clisp.org>
2757         Continue to use spaces for indentation, not tabs.
2758         * MODULES.html.sh: Untabify.
2759         * doc/regex.texi: Likewise.
2760         * lib/acl-internal.c: Likewise.
2761         * lib/dfa.c: Likewise.
2762         * lib/exclude.c: Likewise.
2763         * lib/exclude.h: Likewise.
2764         * lib/get-permissions.c: Likewise.
2765         * lib/gettimeofday.c: Likewise.
2766         * lib/parse-datetime.y: Likewise.
2767         * lib/pselect.c: Likewise.
2768         * lib/set-permissions.c: Likewise.
2769         * lib/time.in.h: Likewise.
2770         * m4/canonicalize.m4: Likewise.
2771         * m4/gc.m4: Likewise.
2772         * m4/gnulib-common.m4: Likewise.
2773         * m4/pthread_sigmask.m4: Likewise.
2774         * m4/vararrays.m4: Likewise.
2775         * tests/test-digest.h: Likewise.
2776         * tests/test-fcntl-h.c: Likewise.
2777         * tests/test-timespec.c: Likewise.
2778         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2780 2018-06-25  Bruno Haible  <bruno@clisp.org>
2782         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2783         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2784         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2785         -Wjump-misses-init.
2787 2018-06-25  Jim Meyering  <meyering@fb.com>
2789         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2790         * lib/acl-internal.h (free_permission_context): Remove that
2791         attribute directive.  Otherwise, it would provoke this from GCC 9:
2792         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2793           returning 'void' [-Werror=attributes]
2795 2018-06-24  Jim Meyering  <meyering@fb.com>
2797         parse-datetime: accommodate gcc-4.8.5
2798         Bruno Haible reported the build failure in
2799         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2800         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2801         on declaration of new local.
2803 2018-06-24  Bruno Haible  <bruno@clisp.org>
2805         af_alg: Fail in continuable manner on Linux/powerpc64le.
2806         Reported by Assaf Gordon <assafgordon@gmail.com>
2807         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2808         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2809         byte send() as the first round.
2811 2018-06-24  Bruno Haible  <bruno@clisp.org>
2813         af_alg: Fix state of stream after sendfile() succeeds.
2814         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2815         the stream is correctly positioned afterwards.
2816         * modules/crypto/af_alg (Depends-on): Add fflush.
2817         * tests/test-digest.h (test_digest_on_files): Verify that after the
2818         operation the stream is positioned at end of file.
2820 2018-06-24  Jim Meyering  <meyering@fb.com>
2822         canon-host: take GCC9's advice rather than ignoring warning
2823         Pádraig Brady suggested not to ignore this GCC9 advice.
2824         * lib/canon-host.c: Undo preceding change.
2825         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2827         parse-datetime.y: avoid spurious GCC 9 warning
2828         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2829         a function local prior to the first "goto fail".  The prior use would
2830         evoke this:
2831         parse-datetime.y: In function 'parse_datetime2':
2832         parse-datetime.y:1791:19: error: jump skips variable initialization \
2833           [-Werror=jump-misses-init]
2834         parse-datetime.y:2385:2: note: label 'fail' defined here
2835         parse-datetime.y:188:43: note: '({anonymous})' declared here
2836         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2838         canon-host.c: avoid spurious GCC 9 warning
2839         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2841         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2842         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2843         * m4/manywarnings.m4: Remove them.
2844         Otherwise, building coreutils, I would see this:
2845         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2846         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2847         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2848           which is also used by default
2849         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2851 2018-06-24  Bruno Haible  <bruno@clisp.org>
2853         af_alg tests: Add another test.
2854         * tests/test-digest.h (test_digest_on_files): Also check a large file
2855         with a skipped header.
2856         * tests/test-md5.c: Include macros.h.
2857         * tests/test-sha1.c: Likewise.
2858         * tests/test-sha256.c: Likewise.
2859         * tests/test-sha512.c: Likewise.
2860         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2861         * modules/crypto/sha1-tests (Files): Likewise.
2862         * modules/crypto/sha256-tests (Files): Likewise.
2863         * modules/crypto/sha512-tests (Files): Likewise.
2865 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2867         maint: clarify comments about sticky EOF
2868         * lib/af_alg.c: Be more direct that we can't
2869         assume stickiness of EOF for portability reasons.
2870         * lib/md5.c: Clarify that this isn't just a glibc issue.
2871         * lib/sha1.c: Likewise.
2872         * lib/sha256.c: Likewise.
2873         * lib/sha512.c: Likewise.
2875 2018-06-24  Bruno Haible  <bruno@clisp.org>
2877         af_alg: Comment and style improvements.
2878         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2879         (afalg_buffer, afalg_stream): Improve comments.
2881 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2883         af_alg: disable kernel hash functions by default
2884         All the kernel routines were seen to be significantly slower
2885         with these relatively recent components on an i3-2310M system:
2886           kernel-4.10.6-200.fc25.x86_64
2887           openssl-1.0.2m-1.fc25.x86_64
2888         sha1 was nearly twice as slow in the kernel for example.
2889         Further considerations why this should not be the default, at:
2890         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2892         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2893         * m4/gl-openssl.m4: Tweak accordingly.
2895 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2897         af_alg: avoid hangs when reading from streams
2898         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2899         and thus avoid doing a fread() when feof() is set.
2900         * lib/md5.c: Ensure feof() is called before fread().
2901         * lib/sha1.c: Likewise.
2902         * lib/sha256.c: Likewise.
2903         * lib/sha512.c: Likewise.
2905 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2907         af_alg: fix error handling when hash not returned
2908         * lib/af_alg.c (afalg_stream): Handle the case where we've
2909         successfully written data to the kernel in the read/write loop,
2910         but the kernel doesn't respond with the hash.
2912 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2914         libc-config: merge from glibc
2915         * lib/cdefs.h (__inline, __restrict):
2916         Copy from current glibc.  This fixes glibc bug 17721,
2917         which Gnulib had already fixed in a different way.
2918         (__nonnull): Lessen the distance from glibc by using the
2919         glibc definition inside an ‘#ifndef __nonnull’.
2920         (__attribute_nonstring__): New macro, copied from
2921         current glibc.
2922         * lib/libc-config.h (__attribute_nonstring__): New undef.
2923         (__restrict): Remove; workaround no longer needed.
2924         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2925         support more compilers than the glibc __inline can.
2927 2018-06-24  Bruno Haible  <bruno@clisp.org>
2929         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2930         * lib/mbrtowc.c (enc_t): New enum type.
2931         (locale_enc, locale_enc_cached): New functions.
2932         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2933         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2934         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2935         instead.
2936         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2937         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2938         * modules/wcwidth (configure.ac): Invoke it.
2940 2018-06-24  Bruno Haible  <bruno@clisp.org>
2942         wchar-single: Fix test failure in wcwidth tests.
2943         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2944         skip the tests in the C locale.
2946 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2948         crypto: mention --without-linux-crypto in --with-openssl --help
2949         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2950         routines take precedence in --with-openssl help output.
2952 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2954         wchar-single: a new module to enable optimizations in wchar replacements
2955         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2956         GNULIB_WCHAR_SINGLE is enabled.
2957         * lib/wcwidth.c (wcwidth): Likewise.
2959 2018-06-23  Bruno Haible  <bruno@clisp.org>
2961         libc-config: Fix conflict with FreeBSD include files.
2962         * lib/cdefs.h (__nonnull): Remove definition.
2963         * lib/libc-config.h (__nonnull): Remove undefinition.
2965 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2967         random_r: do not crash if state is unaligned
2968         Problem reported by Bruce Korb in:
2969         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2970         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2971         with 'cc -O2 -xmemalign=8s'.
2972         * lib/random_r.c: Include string.h, for memcpy.
2973         (get_int32, set_int32): New functions.
2974         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2975         Use them to avoid assumption that state pointer is aligned.
2976         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2977         * tests/test-random_r.c (test_failed): New function.
2978         (main): Use it, to test for alignment bugs.
2980         random_r: omit unnecessary include
2981         * lib/random_r.c: Do not include limits.h.
2983         random, random_r: merge from glibc
2984         * lib/random.c, lib/random_r.c:
2985         Include libc-config.h if !_LIBC, not config.h unilaterally.
2986         * lib/random.c:
2987         Do not include stdint.h or time.h; not needed.
2988         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2989         (unsafe_state): Rename from generator.  All uses changed.
2990         Use C99-style initializers.
2991         (__random, __srandom, __initstate, __setstate): Rename from
2992         non-underscored version, but define it to non-underscored version
2993         on Gnulib.  Add a lock.
2994         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2995         Likewise.
2996         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2997         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2998         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2999         (__random_r): Use uint32 to fix glibc bug 17343.
3000         * modules/random, modules/random_r (Depends-on): Add libc-config.
3001         Depend on stdint only if $HAVE_RANDOM = 0.
3003 2018-06-19  Jim Meyering  <meyering@fb.com>
3005         README-release: also run any check-very-expensive tests
3006         * top/README-release: Adjust instructions so they run the
3007         check-very-expensive tests when there is such a target.
3009 2018-06-18  Bruno Haible  <bruno@clisp.org>
3011         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
3012         * m4/pthread_rwlock_rdlock.m4: Add comment.
3013         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
3014         are reader-preferring in glibc.
3015         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
3016         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
3018 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3020         crypto: use byteswap
3021         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3022         * lib/sm3.c: Include <byteswap.h>.
3023         (SWAP): Use its macros rather than reinventing the wheel.
3024         * modules/crypto/md4, modules/crypto/md5-buffer:
3025         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
3026         * modules/crypto/sha512-buffer, modules/crypto/sm3:
3027         (Depends-on): Add byteswap.
3029 2018-06-17  Pádraig Brady  <P@draigBrady.com>
3031         gendocs.sh: fix support for legacy --texi2html
3032         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
3033         to the default makeinfo invocation.
3034         Reported by Bruce Korb
3036 2018-06-17  Bruno Haible  <bruno@clisp.org>
3038         gettext po infrastructure: Update from current gettext git.
3039         Reported by Akim Demaille <akim@lrde.epita.fr>.
3040         * build-aux/po/Makefile.in.in: Update from current gettext git.
3041         * build-aux/po/remove-potcdate.sin: Likewise.
3042         * config/srclist.txt: Temporarily disable sync for these files.
3044 2018-06-17  Bruno Haible  <bruno@clisp.org>
3046         getloadavg: Return 0 on Windows without Cygwin.
3047         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
3049 2018-06-17  Paul Smith  <psmith@gnu.org>
3051         getloadavg: Allow building on Windows without Cygwin
3052         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
3053         * m4/getloadavg.m4: Check for unistd.h.
3055 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3057         Port crypto/af_alg to GCC 4.8.4
3058         Problem reported by Peter Simons in:
3059         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
3060         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
3062 2018-05-27  Colin Watson  <cjwatson@debian.org>
3064         bootstrap: document source fetching in --help
3065         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
3067 2018-04-09  Colin Watson  <cjwatson@debian.org>
3069         bootstrap: allow non-submodule control of gnulib
3070         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
3071         bootstrap.conf when fetching gnulib using "git clone" or via
3072         GNULIB_SRCDIR.
3074 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3076         crypto: omit stream ops Emacs doesn’t need
3077         * lib/md5.c (md5_stream):
3078         * lib/sha1.c (sha1_stream):
3079         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
3080         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3081         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
3082         defined.  Emacs needs this, as it does not use the stream
3083         operations and doesn’t need all the af_alg stuff we’ve recently
3084         added.  Perhaps a similar change is needed to the other crypto
3085         modules, but this patch changes only those needed for Emacs.
3086         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
3087         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
3088         New modules, used by Emacs.
3089         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3090         * modules/crypto/sha512: Rewrite to depend on the new modules.
3092 2018-05-20  Pádraig Brady  <P@draigBrady.com>
3094         fts: avoid a memory leak edge case
3095         * lib/fts.c (fts_open): Set an appropriate fts_level
3096         so that an immediate fts_close() will free the allocation.
3097         * tests/test-fts.c (fts_dealloc): Add a test case which
3098         will trigger under valgrind or address sanitizer.
3099         Fixes https://bugs.gnu.org/31439
3101 2018-05-20  Bruno Haible  <bruno@clisp.org>
3103         wcwidth tests: Fix link error.
3104         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
3105         $(LIBUNISTRING).
3107 2018-05-20  Bruno Haible  <bruno@clisp.org>
3109         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
3110         * modules/regex (Files): Add m4/glibc21.m4.
3112 2018-05-20  Bruno Haible  <bruno@clisp.org>
3114         localcharset: Optimize.
3115         * lib/localcharset.c (alias_table): Comment out no-op mappings for
3116         platforms where these don't matter. This reduces the table size,
3117         which in turn reduces the lookup time.
3119 2018-05-19  Bruno Haible  <bruno@clisp.org>
3121         localcharset: Map the locale encodings found in newer OSes.
3122         * lib/localcharset.c (alias_table): Add mapping for locale encodings
3123         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3124         IRIX 6.5, Minix 3.3.
3125         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3127 2018-05-19  Bruno Haible  <bruno@clisp.org>
3129         localcharset: Move mapping tables into the code. Use a binary search.
3130         * lib/localcharset.h: Document the GNU canonical names for character
3131         encodings here.
3132         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3133         relocatable.h, configmake.h.
3134         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3135         macros.
3136         (charset_aliases): Remove variable.
3137         (get_charset_aliases): Remove function.
3138         (struct table_entry): New type.
3139         (alias_table, locale_table): New constants.
3140         (locale_charset): Use the alias_table or locale_table to get the
3141         canonicalized encoding name.
3142         * lib/config.charset: Remove file.
3143         * lib/ref-add.sin: Remove file.
3144         * lib/ref-del.sin: Remove file.
3145         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3146         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3147         * modules/localcharset (Notice): Remove.
3148         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3149         glibc21.m4.
3150         (Depends-on): Remove configmake.
3151         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3152         (Makefile.am): Simplify.
3153         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3155 2018-05-19  Bruno Haible  <bruno@clisp.org>
3157         localcharset: Add a manual test.
3158         * tests/test-localcharset.c: New file.
3159         * modules/localcharset-tests: New file.
3161 2018-05-19  Bruno Haible  <bruno@clisp.org>
3163         localcharset: Remove support for obsolete platforms.
3164         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3165         Mac OS X 10.2. Comment out dubious entry for Solaris.
3167 2018-05-19  Jim Meyering  <meyering@fb.com>
3169         gnupload: adjust comment
3170         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3171         more likely we'll remove the just-added code in a year or two.
3173 2018-05-19  Bruno Haible  <bruno@clisp.org>
3175         gnupload: Fix "gpg-agent is not available in this session" error.
3176         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3178 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3180         crypto/af_alg: fix --help
3181         * m4/af_alg.m4: Avoid spurious newline in --help output.
3183 2018-05-13  Bruno Haible  <bruno@clisp.org>
3185         nl_langinfo: Fix compilation error on Android.
3186         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3187         INT_CURR_SYMBOL, etc. only if these items are defined.
3189 2018-05-13  Bruno Haible  <bruno@clisp.org>
3191         truncate: Fix compilation error on Android.
3192         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3193         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3194         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3195         HAVE_TRUNCATE.
3196         * modules/truncate: Likewise.
3197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3198         not HAVE_TRUNCATE.
3199         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3200         HAVE_TRUNCATE.
3201         * doc/posix-functions/truncate.texi: Mention the issue.
3203 2018-05-13  Bruno Haible  <bruno@clisp.org>
3205         pthread: Fix compilation error on Android.
3206         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3207         recursive inclusion of this file.
3209 2018-05-13  Bruno Haible  <bruno@clisp.org>
3211         posix_spawn: Fix compilation error on Android.
3212         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3213         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3214         (posix_spawn_file_actions_t): Consider also the case
3215         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3217 2018-05-13  Bruno Haible  <bruno@clisp.org>
3219         tsearch: Move from K&R C to ANSI C.
3220         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3222 2018-05-13  Bruno Haible  <bruno@clisp.org>
3224         tsearch: Fix compilation error on Android.
3225         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3226         is 0.
3227         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3228         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3229         GNULIB_defined_tsearch is true.
3230         (twalk): Define only if GNULIB_defined_twalk is true.
3231         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3232         is 0.
3233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3234         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3235         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3237 2018-05-13  Bruno Haible  <bruno@clisp.org>
3239         imaxdiv: Fix compilation error on Android.
3240         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3241         is not defined.
3242         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3243         HAVE_DECL_IMAXDIV, is 0.
3244         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3245         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3247 2018-05-13  Bruno Haible  <bruno@clisp.org>
3249         Support selective inclusion mechanism of recent mingw.org header files.
3250         Reported by Eli Zaretskii <eliz@gnu.org>.
3251         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3252         __need_ssize_t, or __need_time_t is defined, just include the system's
3253         <sys/types.h>.
3254         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3255         include the system's <locale.h>.
3257 2018-05-13  Bruno Haible  <bruno@clisp.org>
3259         Avoid compilation error due to 'mmap' on Android.
3260         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3261         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3262         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3263         Undefine on Android.
3265 2018-05-13  Bruno Haible  <bruno@clisp.org>
3267         Add cross-compilation guesses for Linux systems without glibc.
3268         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3270         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3271         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3272         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3273         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3274         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3275         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3276         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3277         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3278         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3280         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3281         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3282         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3283         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3284         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3285         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3287 2018-05-13  Bruno Haible  <bruno@clisp.org>
3289         getpagesize: Fix compilation error on Android.
3290         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3291         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3292         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3293         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3294         HAVE_GETPAGESIZE accordingly.
3295         * modules/getcwd (Files): Add m4/getpagesize.m4.
3297 2018-05-13  Bruno Haible  <bruno@clisp.org>
3299         tcgetsid: Fix compilation error on Android.
3300         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3301         AC_CHECK_FUNC.
3303 2018-05-13  Bruno Haible  <bruno@clisp.org>
3305         getpass: Fix configure test for Android.
3306         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3307         AC_CHECK_FUNC.
3309 2018-05-13  Bruno Haible  <bruno@clisp.org>
3311         ffs: Fix compilation error on Android.
3312         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3314 2018-05-13  Bruno Haible  <bruno@clisp.org>
3316         mkfifo: Fix compilation error on Android.
3317         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3318         AC_CHECK_FUNC.
3320 2018-05-13  Bruno Haible  <bruno@clisp.org>
3322         c-strtod: Fix configure test for Android.
3323         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3324         AC_CHECK_FUNC.
3326 2018-05-13  Bruno Haible  <bruno@clisp.org>
3328         random: Fix compilation error on Android.
3329         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3330         AC_CHECK_FUNC.
3332 2018-05-13  Bruno Haible  <bruno@clisp.org>
3334         grantpt: Fix compilation error on Android.
3335         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3336         AC_CHECK_FUNC.
3338 2018-05-13  Bruno Haible  <bruno@clisp.org>
3340         stdioext: Fix compilation errors with newer Android headers.
3341         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3342         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3343         fallbacks for Android.
3344         * lib/fpending.c: Update comments.
3345         * lib/fpurge.c: Likewise.
3346         * lib/freadable.h: Likewise.
3347         * lib/freadable.c: Likewise.
3348         * lib/freadahead.c: Likewise.
3349         * lib/freading.h: Likewise.
3350         * lib/freadptr.c: Likewise.
3351         * lib/fseterr.c: Likewise.
3352         * lib/fwritable.h: Likewise.
3353         * lib/fwritable.c: Likewise.
3354         * lib/fwriting.h: Likewise.
3355         * lib/fwriting.c: Likewise.
3357 2018-05-13  Bruno Haible  <bruno@clisp.org>
3359         doc: Add info about Android versions 2.0 to 8.1.
3360         * doc/**/*.texi: Add info about functions in all released versions of
3361         Bionic.
3363 2018-05-12  Bruno Haible  <bruno@clisp.org>
3365         fseeko: On mingw, don't use the hidden function _fseeki64.
3366         Reported by Eli Zaretskii <eliz@gnu.org>.
3367         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3368         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3370 2018-05-12  Bruno Haible  <bruno@clisp.org>
3372         glob: Choose 'dirent_type' in a way that works better on mingw.
3373         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3374         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3376 2018-05-12  Bruno Haible  <bruno@clisp.org>
3378         execute, spawn-pipe: Avoid warning about redefining 'close'.
3379         Reported by Eli Zaretskii <eliz@gnu.org>.
3380         * lib/execute.c: Undefine 'close' before redefining it.
3381         * lib/spawn-pipe.c: Likewise.
3383 2018-05-12  Bruno Haible  <bruno@clisp.org>
3385         nanosleep: Avoid test failure on mingw when it has nanosleep.
3386         Reported by Eli Zaretskii <eliz@gnu.org>.
3387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3388         If it does not exist, use a simpler test program that does not call
3389         alarm().
3391 2018-05-10  Bruno Haible  <bruno@clisp.org>
3393         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3394         Reported by Devin Hussey <husseydevin@gmail.com>.
3395         Based on a patch by Paul Eggert.
3396         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3397         as witness of libpthread.
3398         * lib/glthread/cond.h (pthread_in_use): Likewise.
3399         * lib/glthread/thread.h (pthread_in_use): Likewise.
3400         * lib/glthread/tls.h (pthread_in_use): Likewise.
3402 2018-05-10  Bruno Haible  <bruno@clisp.org>
3404         cond tests: Fix compilation error on Solaris.
3405         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3406         macro.
3408 2018-05-10  Bruno Haible  <bruno@clisp.org>
3410         doc: Add partial info about Android 4.3.
3411         * doc/*-functions/*.texi: Add info about functions that were added
3412         to Bionic between Android 4.3 and Android 9.0.
3414 2018-05-10  Bruno Haible  <bruno@clisp.org>
3416         doc: Add info about Android 9.0.
3417         * doc/**/*.texi: Add info about functions and headers in Bionic from
3418         Android 9.0.
3420 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3422         af_alg: fix my typo in afalg_buffer
3423         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3424         (afalg_stream): Simplify and avoid the need for a runtime test
3425         at the end.
3427         af_alg: recover better from crypto failures
3428         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3429         input stream is seekable, by repositioning the stream back to
3430         where it was, possibly by just calling sendfile with an offset
3431         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3432         cases, which lets our callers try again with user-mode code.
3433         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3434         instead of on fflush and lseek.
3436         af_alg: distiguish I/O errors better
3437         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3438         not -EIO, if it’s OK for the caller to try again with user-mode code.
3439         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3440         some other error number) if fflush fails, as the caller should not
3441         try again that case.
3443         af_alg: avoid gotos
3444         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3445         gotos, as they were a source of unreliability and made the code a
3446         bit harder to follow.
3448         af_alg: don’t leak file descriptors into children
3449         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3450         This code should be compiled only on recent GNU/Linux platforms
3451         so we shouldn’t have to also depend on the accept4 module.
3453         af_alg: coalesce socket creation
3454         * lib/af_alg.c (alg_socket): New function.
3455         (afalg_buffer, afalg_stream): Use it.  This avoids some
3456         code duplication and gotos.
3458         af_alg: fix file descriptor leak
3459         * lib/af_alg.c (afalg_stream): Close leak.
3461         af_alg: Pacify --enable-gcc-warnings on GCC 8
3462         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3463         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3465 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3467         af_alg: Pacify --enable-gcc-warnings
3468         Problem reported by Assaf Gordon in:
3469         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3470         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3471         gcc -Wjump-misses-init.
3472         * lib/sha512.c (shaxxx_stream): Now static.
3474 2018-05-06  Bruno Haible  <bruno@clisp.org>
3476         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3477         * lib/af_alg.h (afalg_buffer): New declaration.
3478         * lib/af_alg.c (afalg_buffer): New function.
3480 2018-05-06  Bruno Haible  <bruno@clisp.org>
3482         af_alg: Avoid warnings.
3483         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3484         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3486 2018-05-06  Bruno Haible  <bruno@clisp.org>
3488         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3489         * tests/bench-digest.h: New file.
3490         * tests/bench-md5.c: New file.
3491         * tests/bench-sha1.c: New file.
3492         * tests/bench-sha224.c: New file.
3493         * tests/bench-sha256.c: New file.
3494         * tests/bench-sha384.c: New file.
3495         * tests/bench-sha512.c: New file.
3496         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3497         tests/bench-digest.h.
3498         (Depends-on): Add getrusage, gettimeofday.
3499         (Makefile.am): Add variables to build bench-md5.
3500         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3501         tests/bench-digest.h.
3502         (Depends-on): Add getrusage, gettimeofday.
3503         (Makefile.am): Add variables to build bench-sha1.
3504         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3505         tests/bench-sha256.c, tests/bench-digest.h.
3506         (Depends-on): Add getrusage, gettimeofday.
3507         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3508         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3509         tests/bench-sha512.c, tests/bench-digest.h.
3510         (Depends-on): Add getrusage, gettimeofday.
3511         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3513 2018-05-06  Bruno Haible  <bruno@clisp.org>
3515         af_alg: Fix a resource leak.
3516         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3517         New local variable 'result'.
3519 2018-05-06  Bruno Haible  <bruno@clisp.org>
3521         af_alg: Fix bug with streams that are not at position 0.
3522         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3523         assume that the stream is positioned at position 0.
3524         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3525         of the stream.
3526         * lib/md5.h (md5_stream): Likewise.
3527         * lib/sha1.h (sha1_stream): Likewise.
3528         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3529         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3530         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3532         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3533         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3534         stream that is not positioned at the beginning.
3536 2018-05-06  Bruno Haible  <bruno@clisp.org>
3538         af_alg: Add configure option to enable/disable use of Linux crypto API.
3539         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3540         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3541         USE_LINUX_CRYPTO_API.
3542         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3543         * lib/af_alg.c: Likewise.
3545 2018-05-06  Bruno Haible  <bruno@clisp.org>
3547         Followup to 'af_alg: New module.'.
3548         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3549         * modules/crypto/sha1 (Depends-on): Likewise.
3550         * modules/crypto/sha256 (Depends-on): Likewise.
3551         * modules/crypto/sha512 (Depends-on): Likewise.
3553 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3555         crypto/{md5,sha1,sha256,sha512}: simplify
3556         * lib/md5.c (md5_stream):
3557         * lib/sha1.c (sha1_stream):
3558         * lib/sha256.c (shaxxx_stream):
3559         Simplify, partly by assuming C99.
3560         * lib/sha256.c (shaxxx_stream):
3561         New function, which implements both sha256 and sha224.
3562         Simplify, partly by assuming C99.
3563         (sha256_stream, sha224_stream):
3564         Use it to avoid code duplication, removing a FIXME.
3565         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3566         Likewise.
3568         af_alg: Improve comments.
3569         * lib/af_alg.h: Use imperatives and tighten up wording.
3571 2018-05-05  Bruno Haible  <bruno@clisp.org>
3573         af_alg: Improve comments.
3574         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3576 2018-05-05  Bruno Haible  <bruno@clisp.org>
3578         af_alg: New module.
3579         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3580         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3581         * lib/md5.c: Include "af_alg.h" unconditionally.
3582         (md5_stream): Invoke afalg_stream unconditionally.
3583         * lib/sha1.c: Include "af_alg.h" unconditionally.
3584         (sha1_stream): Invoke afalg_stream unconditionally.
3585         * lib/sha256.c: Include "af_alg.h" unconditionally.
3586         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3587         * lib/sha512.c: Include "af_alg.h" unconditionally.
3588         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3589         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3590         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3591         * modules/crypto/af_alg: New file.
3592         * modules/crypto/md5 (Files): Remove files that are now in the
3593         'crypto/af_alg' module.
3594         (Depends-on): Add crypto/af_alg.
3595         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3596         (Makefile.am): Don't mention af_alg.c here.
3597         * modules/crypto/sha1 (Files): Remove files that are now in the
3598         'crypto/af_alg' module.
3599         (Depends-on): Add crypto/af_alg.
3600         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3601         (Makefile.am): Don't mention af_alg.c here.
3602         * modules/crypto/sha256 (Files): Remove files that are now in the
3603         'crypto/af_alg' module.
3604         (Depends-on): Add crypto/af_alg.
3605         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3606         (Makefile.am): Don't mention af_alg.c here.
3607         * modules/crypto/sha512 (Files): Remove files that are now in the
3608         'crypto/af_alg' module.
3609         (Depends-on): Add crypto/af_alg.
3610         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3611         (Makefile.am): Don't mention af_alg.c here.
3613 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3615         crypto tests: pacify GCC
3616         * tests/test-digest.h (test_digest_on_files):
3617         Don’t assume digest size fits in int (!).
3619         af_alg: minor style improvements
3620         * lib/af_alg.c (afalg_stream): Prefer C99 style
3621         decl-after-statement, since we’re already assuming C99.  Clarify
3622         by strengthening the bind test and omit unnecessary assignment.
3624 2018-05-05  Bruno Haible  <bruno@clisp.org>
3626         af_alg: Fix bug on empty files.
3627         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3628         stream is empty.
3630 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3632         sys-limits.h: new file for crypto and safe I/O
3633         * lib/af_alg.c: Include sys-limits.h.
3634         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3635         (afalg_stream): Also reject negative sizes for sendfile; they
3636         should not happen and the code is a bit cleaner and faster this way.
3637         * lib/safe-read.c: Include sys-limits.h.
3638         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3639         * lib/sys-limits.h: New file, with values and commentary derived
3640         from the old safe-read.c and from GNU Emacs sysdep.c.
3641         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3642         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3643         Add lib/sys-limits.h to Files section.
3645 2018-05-05  Bruno Haible  <bruno@clisp.org>
3647         af_alg: Improve function signature.
3648         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3649         * lib/af_alg.c (afalg_stream): Likewise.
3650         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3652 2018-05-05  Bruno Haible  <bruno@clisp.org>
3654         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3655         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3656         * modules/crypto/sha1 (Depends-on): Likewise.
3657         * modules/crypto/sha256 (Depends-on): Likewise.
3658         * modules/crypto/sha512 (Depends-on): Likewise.
3660 2018-05-05  Bruno Haible  <bruno@clisp.org>
3662         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3663         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3664         * modules/crypto/sha1 (Depends-on): Likewise.
3665         * modules/crypto/sha256 (Depends-on): Likewise.
3666         * modules/crypto/sha512 (Depends-on): Likewise.
3668 2018-05-05  Bruno Haible  <bruno@clisp.org>
3670         af_alg: Add documentation.
3671         * lib/af_alg.h: Add comments.
3673 2018-05-05  Bruno Haible  <bruno@clisp.org>
3675         sha512: Add tests.
3676         * tests/test-sha512.c: New file.
3677         * modules/crypto/sha512-tests: New file.
3679 2018-05-05  Bruno Haible  <bruno@clisp.org>
3681         sha256: Add tests.
3682         * tests/test-sha256.c: New file.
3683         * modules/crypto/sha256-tests: New file.
3685 2018-05-05  Bruno Haible  <bruno@clisp.org>
3687         sha1 tests: Add test for sha1_stream.
3688         * tests/test-sha1.c: Include test-digest.h.
3689         (main): Invoke test_digest_on_files on 'sha1_stream'.
3690         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3692 2018-05-05  Bruno Haible  <bruno@clisp.org>
3694         md5 tests: Add test for md5_stream.
3695         * tests/test-digest.h: New file.
3696         * tests/test-md5.c: Include test-digest.h.
3697         (main): Invoke test_digest_on_files on 'md5_stream'.
3698         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3700 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3702         md5sum: Use AF_ALG when available.
3703         * lib/md5.c: Include af_alg.h.
3704         (md5_stream): Use afalg_stream when available.
3705         * modules/crypto/md5 (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         sha512sum: Use AF_ALG when available.
3712         * lib/sha512.c: Include af_alg.h.
3713         (sha512_stream, sha384_stream): Use afalg_stream when available.
3714         * modules/crypto/sha512 (Files): Add the af_alg files.
3715         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3716         (Makefile.am): Add af_alg.c.
3718 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3720         sha256sum: Use AF_ALG when available.
3721         * lib/sha256.c: Include af_alg.h.
3722         (sha256_stream, sha224_stream): Use afalg_stream when available.
3723         * modules/crypto/sha256 (Files): Add the af_alg files.
3724         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3725         (Makefile.am): Add af_alg.c.
3727 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3729         sha1sum: Use AF_ALG when available.
3730         * lib/af_alg.h: New file.
3731         * lib/af_alg.c: New file.
3732         * lib/sha1.c: Include af_alg.h.
3733         (sha1_stream): Use afalg_stream when available.
3734         * m4/linux-if-alg.m4: New file.
3735         * modules/crypto/sha1 (Files): Add the new files.
3736         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3737         (Makefile.am): Add af_alg.c.
3739 2018-05-05  Bruno Haible  <bruno@clisp.org>
3741         all: Replace more http URLs by https URLs.
3742         * lib/localename.c: Use https: URL.
3743         * lib/timespec.h: Likewise.
3745 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3747         maint: port more modules to GCC 8
3748         * lib/dirname.h (base_name):
3749         * lib/exclude.h (new_exclude):
3750         * lib/xstrndup.h (xstrndup):
3751         Add malloc attribute.
3752         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3753         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3754         This pacifies GCC 8.
3755         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3756         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3758 2018-05-03  Bruno Haible  <bruno@clisp.org>
3760         Simplify code. Drop support for Borland C++ on Windows.
3761         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3762         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3763         'defined _WIN32'.
3764         * lib/canonicalize-lgpl.c: Likewise.
3765         * lib/classpath.c: Likewise.
3766         * lib/clean-temp.c: Likewise.
3767         * lib/csharpexec.c: Likewise.
3768         * lib/ctime.c: Likewise.
3769         * lib/dosname.h: Likewise.
3770         * lib/dup2.c: Likewise.
3771         * lib/errno.in.h: Likewise.
3772         * lib/error.c: Likewise.
3773         * lib/euidaccess.c: Likewise.
3774         * lib/execute.c: Likewise.
3775         * lib/fcntl.in.h: Likewise.
3776         * lib/fcntl.c: Likewise.
3777         * lib/filename.h: Likewise.
3778         * lib/findprog.c: Likewise.
3779         * lib/flock.c: Likewise.
3780         * lib/fopen.c: Likewise.
3781         * lib/freopen.c: Likewise.
3782         * lib/fstat.c: Likewise.
3783         * lib/fsync.c: Likewise.
3784         * lib/gc-gnulib.c: Likewise.
3785         * lib/get-rusage-data.c: Likewise.
3786         * lib/getaddrinfo.c: Likewise.
3787         * lib/getdelim.c: Likewise.
3788         * lib/getdtablesize.c: Likewise.
3789         * lib/gethostname.c: Likewise.
3790         * lib/getlogin.c: Likewise.
3791         * lib/getlogin_r.c: Likewise.
3792         * lib/getopt.c: Likewise.
3793         * lib/getpagesize.c: Likewise.
3794         * lib/getpass.c: Likewise.
3795         * lib/getrusage.c: Likewise.
3796         * lib/gettimeofday.c: Likewise.
3797         * lib/glob.c: Likewise.
3798         * lib/inttypes.in.h: Likewise.
3799         * lib/isapipe.c: Likewise.
3800         * lib/javaexec.c: Likewise.
3801         * lib/link.c: Likewise.
3802         * lib/localcharset.c: Likewise.
3803         * lib/localename.h: Likewise.
3804         * lib/localename.c: Likewise.
3805         * lib/localtime.c: Likewise.
3806         * lib/lseek.c: Likewise.
3807         * lib/mbsinit.c: Likewise.
3808         * lib/mkdir.c: Likewise.
3809         * lib/msvc-nothrow.h: Likewise.
3810         * lib/nanosleep.c: Likewise.
3811         * lib/nl_langinfo.c: Likewise.
3812         * lib/nonblocking.c: Likewise.
3813         * lib/nproc.c: Likewise.
3814         * lib/open.c: Likewise.
3815         * lib/openpty.c: Likewise.
3816         * lib/pathmax.h: Likewise.
3817         * lib/pipe-filter-aux.c: Likewise.
3818         * lib/pipe-filter-gi.c: Likewise.
3819         * lib/pipe-filter-ii.c: Likewise.
3820         * lib/pipe.c: Likewise.
3821         * lib/pipe2.c: Likewise.
3822         * lib/poll.c: Likewise.
3823         * lib/popen.c: Likewise.
3824         * lib/posix_openpt.c: Likewise.
3825         * lib/printf-parse.c: Likewise.
3826         * lib/progreloc.c: Likewise.
3827         * lib/putenv.c: Likewise.
3828         * lib/read.c: Likewise.
3829         * lib/relocatable.c: Likewise.
3830         * lib/rename.c: Likewise.
3831         * lib/same-inode.h: Likewise.
3832         * lib/secure_getenv.c: Likewise.
3833         * lib/select.c: Likewise.
3834         * lib/sethostname.c: Likewise.
3835         * lib/setlocale.c: Likewise.
3836         * lib/sigaction.c: Likewise.
3837         * lib/sigprocmask.c: Likewise.
3838         * lib/sleep.c: Likewise.
3839         * lib/spawn-pipe.h: Likewise.
3840         * lib/spawn-pipe.c: Likewise.
3841         * lib/spawni.c: Likewise.
3842         * lib/stat-time.h: Likewise.
3843         * lib/stat-w32.c: Likewise.
3844         * lib/stat.c: Likewise.
3845         * lib/stdio.in.h: Likewise.
3846         * lib/stdio-impl.h: Likewise.
3847         * lib/stdio-read.c: Likewise.
3848         * lib/stdio-write.c: Likewise.
3849         * lib/stdlib.in.h: Likewise.
3850         * lib/strerror_r.c: Likewise.
3851         * lib/strftime-fixes.c: Likewise.
3852         * lib/sys_stat.in.h: Likewise.
3853         * lib/sys_types.in.h: Likewise.
3854         * lib/sys_wait.in.h : Likewise.
3855         * lib/system-quote.h: Likewise.
3856         * lib/system-quote.c: Likewise.
3857         * lib/tmpdir.c: Likewise.
3858         * lib/tzset.c: Likewise.
3859         * lib/uname.c: Likewise.
3860         * lib/unistd.in.h: Likewise.
3861         * lib/utime.in.h: Likewise.
3862         * lib/utime.c: Likewise.
3863         * lib/utimecmp.c: Likewise.
3864         * lib/utimens.c: Likewise.
3865         * lib/vasnprintf.c: Likewise.
3866         * lib/vma-iter.h: Likewise.
3867         * lib/vma-iter.c: Likewise.
3868         * lib/wait-process.c: Likewise.
3869         * lib/wcsftime.c: Likewise.
3870         * lib/wctype.in.h: Likewise.
3871         * lib/write.c: Likewise.
3872         * tests/nap.h: Likewise.
3873         * tests/test-cloexec.c: Likewise.
3874         * tests/test-dup-safer.c: Likewise.
3875         * tests/test-dup2.c: Likewise.
3876         * tests/test-dup3.c: Likewise.
3877         * tests/test-fcntl.c: Likewise.
3878         * tests/test-get-rusage-data.c: Likewise.
3879         * tests/test-getaddrinfo.c: Likewise.
3880         * tests/test-getlogin.h: Likewise.
3881         * tests/test-isatty.c: Likewise.
3882         * tests/test-localename.c: Likewise.
3883         * tests/test-mbrtowc-w32.c: Likewise.
3884         * tests/test-nonblocking.c: Likewise.
3885         * tests/test-nonblocking-pipe-main.c: Likewise.
3886         * tests/test-nonblocking-socket-main.c: Likewise.
3887         * tests/test-nonblocking-socket.h: Likewise.
3888         * tests/test-pipe.c: Likewise.
3889         * tests/test-pipe2.c: Likewise.
3890         * tests/test-poll.c: Likewise.
3891         * tests/test-pthread_sigmask1.c: Likewise.
3892         * tests/test-select.h: Likewise.
3893         * tests/test-sethostname2.c: Likewise.
3894         * tests/test-sigprocmask.c: Likewise.
3895         * tests/test-spawn-pipe-child.c: Likewise.
3896         * tests/test-stat-time.c: Likewise.
3897         * tests/test-system-quote-main.c: Likewise.
3898         * tests/test-utimens-common.h: Likewise.
3899         * tests/test-wcrtomb-w32.c: Likewise.
3900         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3901         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3902         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3903         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3904         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3905         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3906         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3907         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3908         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3909         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3910         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3911         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3912         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3913         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3914         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3915         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3917 2018-05-02  Bruno Haible  <bruno@clisp.org>
3919         localename: Fix test failures on mingw.
3920         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3921         native Windows.
3922         (gl_locale_name_posix): Move code specific to native Windows here.
3923         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3924         Accept result without charset suffix, as it appears on mingw.
3926 2018-04-28  Paul Smith  <psmith@gnu.org>
3928         bootstrap: Avoid gnulib operations if not needed
3929         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3930         Set $gnulib_extra_files early so it can be overridden in .conf.
3931         Remove redundant --import flag from $gnulib_tool_options.
3932         Set $use_gnulib to false if no gnulib modules or files are needed.
3933         If $use_gnulib is false, don't do anything related to gnulib.
3934         A lot of this is just whitespace (indentation) changes.
3936 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3938         manywarnings: port to GCC 8.0
3939         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3940         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3941         fact that the GCC help message now mentions operands for
3942         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3943         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3944         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3945         and -Wunused-const-variable.
3946         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3947         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3948         -Wmissing-attributes, -Wmultistatement-macros,
3949         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3950         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3952 2018-04-24  Bruno Haible  <bruno@clisp.org>
3954         sys_socket: Make SO_REUSEPORT available across platforms.
3955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3956         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3957         * doc/posix-headers/sys_socket.texi: Mention the issue.
3958         * tests/test-poll.c (SO_REUSEPORT): Remove.
3959         * tests/test-select.h: Include <sys/socket.h>.
3960         (SO_REUSEPORT): Remove.
3961         * modules/select-tests (Depends-on): Add 'sys_socket'.
3963 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3965         localcharset: short-circuit the search for an alias on a Mac
3966         * lib/localcharset.c (get_charset_aliases): Add a tautological
3967         UTF-8 entry to speed up the search for this case.
3968         Most machines default to a UTF-8 locale nowadays, so begin the
3969         list of aliases with a dummy UTF-8 entry so it will be found
3970         immediately and a time-consuming search through the rest of
3971         the list is avoided.
3973 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3975         fts: add comment
3976         * lib/fts.c (fts_build): Explain why ==, not >.
3977         See remark by Bernhard Voelker in:
3978         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3980         fts: fix bug in find across filesystems
3981         This fixes a bug I introduced last summer.
3982         Problem reported by Kamil Dudka in:
3983         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3984         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3985         (leaf_optimization):
3986         New arg for file descriptor.  All callers changed.
3987         (fts_build): Check for whether inodes should be sorted
3988         before closing the directory.
3990 2018-04-07  Bruno Haible  <bruno@clisp.org>
3992         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3993         Reported by Genki Sky <sky@genki.is>.
3994         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3995         version 0.9.10 or newer.
3996         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3997         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3998         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3999         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
4000         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
4002 2018-04-07  Bruno Haible  <bruno@clisp.org>
4004         execute: Update comment.
4005         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
4007 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4009         fts: treat CIFS like NFS
4010         Problem reported by Kamil Dudka in:
4011         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
4012         * lib/fts.c (S_MAGIC_CIFS): New macro.
4013         (dirent_inode_sort_may_be_useful, leaf_optimization):
4014         Treat CIFS like NFS.
4016 2018-03-28  Bruno Haible  <bruno@clisp.org>
4018         c-stack: Fix possible build failure on some platforms.
4019         * lib/c-stack.c (die): Define whenever this function is referenced.
4021 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
4023         time_rz: fix workaround for Mac OS X 10.6 infloop
4024         Problems reported by Charles A. Roelli (Bug#27736#117).
4025         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
4026         Also, discard output, which clutters the 'configure' log.
4028 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4030         havelib: port to Solaris 10 /bin/sh
4031         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
4032         instead of '! test EXPR'.
4034 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4036         time_rz: work around Mac OS X 10.6 infloop
4037         * doc/posix-functions/localtime.texi:
4038         * doc/posix-functions/localtime_r.texi: Mention the bug.
4039         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
4040         better to fix localtime and localtime_r instead, but that would be
4041         more work and is not needed to fix the Emacs problem.
4042         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
4044 2018-03-24  Jim Meyering  <meyering@fb.com>
4046         test-version-etc.sh: don't use diff directly: use init.sh's compare
4047         We'd rather not sacrifice readable "diff -u" output even for
4048         "diff -c" output (not supported by busybox) or for even less
4049         readable ed-style "diff" output.  So use init.sh's compare function
4050         * tests/test-version-etc.sh: Source init.sh and add "." to path.
4051         Remove "./" from invocation of test-version-etc, so we use path.
4052         And s/diff/compare/.
4053         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
4054         to get init.sh.
4055         Prompted by Eric Blake's comments in
4056         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
4058 2018-03-24  Bruno Haible  <bruno@clisp.org>
4060         javacomp-script, javacomp: Add support for Java 10.
4061         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
4062         target-version 10.
4063         * lib/javaversion.h: Update comments.
4064         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4065         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4066         TARGET_VERSION_BOUND, target_version_index,
4067         corresponding_classfile_version): Accept source_version 10 and
4068         target_version 10.
4069         * lib/javacomp.h: Update comments accordingly.
4071 2018-03-24  Bruno Haible  <bruno@clisp.org>
4073         javacomp-script, javacomp: Update comments.
4074         * m4/javacomp.m4: Update comments regarding gcj.
4075         * lib/javacomp.h: Likewise.
4077 2018-03-24  Bruno Haible  <bruno@clisp.org>
4079         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
4080         * lib/javaversion.h: Update comments.
4081         * lib/javacomp.h: Likewise.
4082         * lib/javacomp.c (default_target_version, source_version_index,
4083         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
4084         "1.9".
4085         (TARGET_VERSION_BOUND): Bump to 9.
4086         (target_version_index, corresponding_classfile_version): Recognize "9"
4087         instead of "1.9".
4088         (get_source_version_for_javac): New function.
4089         (is_envjavac_nongcj_usable, is_javac_usable): Add
4090         source_version_for_javac argument.
4091         (compile_java_class): Determine and pass source_version_for_javac.
4092         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
4093         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
4094         appropriate.
4096 2018-03-23  Jim Meyering  <meyering@fb.com>
4098         test-version-etc.sh: port to diff without -c
4099         * tests/test-version-etc.sh: Don't use diff's -c option.
4100         This caused spurious test failure on Alpine Linux, which
4101         uses busybox's diff. Reported by Assaf Gordon in
4102         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
4104 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4106         c-stack: port to recent GCC build
4107         Problem reported by The Fireplace (Bug#30913).
4108         * lib/c-stack.c (die): Define only if used.
4110 2018-03-20  Bruno Haible  <bruno@clisp.org>
4112         euidaccess: Port to native Windows.
4113         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
4114         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
4116 2018-03-19  Bruno Haible  <bruno@clisp.org>
4118         javacomp: Add support for Java 7, 8, 9.
4119         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4120         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4121         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
4122         and target_version 1,7, 1.8, 1.9.
4123         * lib/javacomp.h: Update comments accordingly.
4125 2018-03-19  Bruno Haible  <bruno@clisp.org>
4127         javacomp-script: Add support for Java 9.
4128         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4129         target-version 1.9.
4131 2018-03-16  Bruno Haible  <bruno@clisp.org>
4133         glob: Don't compile replacements on recent glibc systems.
4134         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4135         REPLACE_GLOB is 0, include the system's <glob.h> and use
4136         _GL_CXXALIAS_SYS.
4137         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4138         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4139         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4140         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4141         Remove snippet/warn-on-use.
4142         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4143         (Makefile.am): Create glob.h always. Update list of substitutions in
4144         glob.h. Don't depend on $(WARN_ON_USE_H).
4146 2018-03-16  Bruno Haible  <bruno@clisp.org>
4148         glob: Fix link error on native Windows.
4149         * modules/glob (Depends-on): Add 'lstat'.
4151 2018-03-15  Bruno Haible  <bruno@clisp.org>
4153         glob: Fix compilation error in C++ mode.
4154         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4156 2018-03-15  Bruno Haible  <bruno@clisp.org>
4158         host-cpu-c-abi: Support for RISC-V CPU.
4159         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4160         riscv32 and riscv64 ABIs.
4161         References:
4162         https://github.com/riscv/riscv-toolchain-conventions
4163         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4164         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4166 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4168         fflush: be more paranoid about libio.h change
4169         Suggested by Eli Zaretskii in:
4170         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4171         * lib/fbufmode.c (fbufmode):
4172         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4173         (disable_seek_optimization, rpl_fflush):
4174         * lib/fpending.c (__fpending):
4175         * lib/fpurge.c (fpurge):
4176         * lib/freadable.c (freadable):
4177         * lib/freadahead.c (freadahead):
4178         * lib/freading.c (freading):
4179         * lib/freadptr.c (freadptr):
4180         * lib/freadseek.c (freadptrinc):
4181         * lib/fseeko.c (fseeko):
4182         * lib/fseterr.c (fseterr):
4183         * lib/fwritable.c (fwritable):
4184         * lib/fwriting.c (fwriting):
4185         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4187 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4189         maint: write-file-hooks -> before-save-hook
4190         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4191         it's time to use the recommended replacement.
4192         Problem reported by Glenn Morris in:
4193         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4194         * build-aux/announce-gen, build-aux/bootstrap:
4195         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4196         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4197         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4198         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4199         * build-aux/update-copyright, build-aux/useless-if-before-free:
4200         * build-aux/vc-list-files:
4201         Update hook usage for files where Gnulib is the canonical source.
4203 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4205         binary-io: pacify gcc -Wunused-parameter
4206         Problem reported by Reuben Thomas in:
4207         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4208         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4209         Use _GL_UNUSED where appropriate.
4211         fflush: adjust to glibc 2.28 libio.h removal
4212         Problem reported by Daniel P. Berrangé in:
4213         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4214         * lib/fbufmode.c (fbufmode):
4215         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4216         (disable_seek_optimization, rpl_fflush):
4217         * lib/fpending.c (__fpending):
4218         * lib/fpurge.c (fpurge):
4219         * lib/freadable.c (freadable):
4220         * lib/freadahead.c (freadahead):
4221         * lib/freading.c (freading):
4222         * lib/freadptr.c (freadptr):
4223         * lib/freadseek.c (freadptrinc):
4224         * lib/fseeko.c (fseeko):
4225         * lib/fseterr.c (fseterr):
4226         * lib/fwritable.c (fwritable):
4227         * lib/fwriting.c (fwriting):
4228         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4229         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4230         Define if not already defined.
4232 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4234         environ: fix link error on 32-bit Cygwin
4235         Problem reported for GNU Emacs by Ken Brown in:
4236         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4237         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4239 2018-02-24  Bruno Haible  <bruno@clisp.org>
4241         mbrtowc tests: Fix regression on glibc.
4242         Reported by Bernhard Voelker.
4243         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4245 2018-02-24  Bruno Haible  <bruno@clisp.org>
4247         striconveha, uniconv/*: Avoid test failures on musl libc.
4248         * tests/iconvsupport.c: New file.
4249         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4250         does not support the ISO-2022-JP-2 encoding.
4251         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4252         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4253         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4254         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4255         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4256         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4257         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4258         (Makefile.am): Link test-striconveha with iconvsupport.o.
4259         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4260         tests/iconvsupport.c.
4261         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4262         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4263         tests/iconvsupport.c.
4264         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4265         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4266         tests/iconvsupport.c.
4267         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4268         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4269         tests/iconvsupport.c.
4270         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4271         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4272         tests/iconvsupport.c.
4273         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4274         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4275         tests/iconvsupport.c.
4276         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4278 2018-02-24  Bruno Haible  <bruno@clisp.org>
4280         localename: Add support for musl libc.
4281         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4282         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4283         on Linux platforms which define NL_LOCALE_NAME.
4285 2018-02-24  Bruno Haible  <bruno@clisp.org>
4287         mbrtowc tests: Don't make assumptions about the charset the C locale.
4288         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4289         particular mapping in the C locale.
4291 2018-02-24  Bruno Haible  <bruno@clisp.org>
4293         ptsname_r: Don't expect that this function sets errno.
4294         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4295         from ptsname_r().
4296         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4298 2018-02-23  Bruno Haible  <bruno@clisp.org>
4300         xmalloca: pacify gcc -Wbad-function-cast
4301         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4303 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4305         nl_langinfo: pacify gcc -Wunused-function
4306         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4307         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4308         this case.  Without this change, I got a diagnostic when building
4309         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4311         same: pacify gcc -Wunused-variable
4312         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4313         Omit unused variable.
4315         malloca: pacify gcc -Wbad-function-cast
4316         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4317         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4318         To pacify GCC, I had to cast alloca’s result to some type other
4319         than void * before casting that to uintptr_t.
4321 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4323         utimecmp: new function utimecmpat
4324         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4325         Do not include utimens.h.
4326         (utimecmpat): New function, generalizing utimecmp.
4327         (utimecmp): Now a thin layer around utimecmpat.
4328         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4329         utimensat instead of on lstat and utimens.
4331         same: new function same_nameat
4332         * lib/same.c: Include fcntl.h.
4333         * lib/same.c (same_nameat): New function, generalizing same_name.
4334         (same_name): Now a thin layer around same_nameat.
4335         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4336         * modules/same (Depends-on): Depend on fstatat, openat.
4338 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4340         warnings: Add support for Objective C.
4341         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4342         macro.
4344 2018-02-17  Bruno Haible  <bruno@clisp.org>
4346         lock: Fix test-once1 crash on FreeBSD11.
4347         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4348         'pthread_create', not 'pthread_cancel'.
4350 2018-02-17  Bruno Haible  <bruno@clisp.org>
4352         lock: Add test of gl_once.
4353         * tests/test-once.c: New file.
4354         * modules/lock-tests (Files): Add it.
4355         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4357 2018-02-17  Bruno Haible  <bruno@clisp.org>
4359         thread: Fix compilation error on IRIX.
4360         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4361         needed; include it outside the C++ extern "C" {} block.
4362         * doc/posix-headers/pthread.texi: Mention the problem with
4363         pthread_atfork on IRIX.
4365 2018-02-04  Bruno Haible  <bruno@clisp.org>
4367         nl_langinfo: Override the system's nl_langinfo() when needed.
4368         Reported by Jim Meyering.
4369         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4370         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4372 2018-02-04  Bruno Haible  <bruno@clisp.org>
4374         signal-h, monetary, strings: Fix build failure in some cases.
4375         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4376         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4377         as delimiter in sed command, not '|'.
4378         * modules/monetary (Makefile.am): Likewise.
4379         * modules/strings (Makefile.am): Likewise.
4381 2018-02-03  Jim Meyering  <meyering@fb.com>
4383         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4384         * top/maint.mk (sc_file_system): Don't complain about
4385         "/proc/filesystems".
4387 2018-02-03  Bruno Haible  <bruno@clisp.org>
4389         stdlib: Fix compilation error on OpenIndiana.
4390         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4391         <sys/time.h>.
4392         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4393         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4395 2018-02-03  Bruno Haible  <bruno@clisp.org>
4397         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4398         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4399         and use $EGREP instead of 'grep -E'.
4400         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4401         'grep -E'.
4403 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4405         malloca: Add a compile-time verification.
4406         * lib/malloca.c (small_t): Verify that it is wide enough.
4407         * modules/malloca (Depends-on): Add verify.
4409 2018-02-02  Bruno Haible  <bruno@clisp.org>
4411         malloca: Add an argument check.
4412         Suggested by Paul Eggert.
4413         * lib/malloca.c (freea): Check against an invalid argument.
4415 2018-02-02  Bruno Haible  <bruno@clisp.org>
4417         localename: Add support for OpenIndiana.
4418         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4419         Solaris 11 variants with uselocale() but without getlocalename_l().
4421 2018-02-02  Bruno Haible  <bruno@clisp.org>
4423         malloca, xmalloca: Make multithread-safe.
4424         Reported by Florian Weimer <fweimer@redhat.com>.
4425         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4426         * lib/malloca.h (malloca): In the stack allocation case, return a
4427         pointer that is a multiple of 2 * sa_alignment_max.
4428         (sa_increment): Remove enum item.
4429         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4430         a pointer that is a multiple of 2 * sa_alignment_max.
4431         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4432         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4433         HASH_TABLE_SIZE, mmalloca_results): Remove.
4434         (small_t): New type.
4435         (mmalloca, free): Rewritten.
4436         * lib/malloca.valgrind: Remove file.
4437         * modules/malloca (Files): Remove it.
4438         (Depends-on): Remove verify.
4440 2018-01-31  Bruno Haible  <bruno@clisp.org>
4442         environ: Fix link error on 64-bit Cygwin.
4443         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4444         __declspec(dllimport) attribute.
4445         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4447 2018-01-30  Bruno Haible  <bruno@clisp.org>
4449         get-rusage-data: Add support for Minix 3.
4450         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4452 2018-01-30  Bruno Haible  <bruno@clisp.org>
4454         vma-iter: Add support for Minix 3.
4455         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4456         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4458 2018-01-27  Bruno Haible  <bruno@clisp.org>
4460         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4461         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4462         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4463         _HPUX_ALT_XOPEN_SOCKET_API.
4464         * modules/accept (Depends-on): Add 'extensions'.
4465         * modules/getpeername (Depends-on): Likewise.
4466         * modules/getsockname (Depends-on): Likewise.
4467         * modules/getsockopt (Depends-on): Likewise.
4468         * modules/recvfrom (Depends-on): Likewise.
4469         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4470         * doc/posix-functions/getpeername.texi: Likewise.
4471         * doc/posix-functions/getsockname.texi: Likewise.
4472         * doc/posix-functions/getsockopt.texi: Likewise.
4473         * doc/posix-functions/recvfrom.texi: Likewise.
4475 2018-01-27  Bruno Haible  <bruno@clisp.org>
4477         getsockname tests: More tests.
4478         * tests/test-getsockname.c (open_server_socket): New function, mostly
4479         copied from test-poll.c.
4480         (main): Check that getsockname fills in addr.
4481         * modules/getsockname-tests (Depends-on): Add the necessary
4482         dependencies.
4483         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4485 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4487         manywarnings: fix maintainer comment
4488         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4489         it does not mistakenly think that ‘-1)’ is an option.
4491 2018-01-26  Bruno Haible  <bruno@clisp.org>
4493         langinfo: Fix last commit.
4494         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4495         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4497 2018-01-24  Bruno Haible  <bruno@clisp.org>
4499         langinfo, nl_langinfo: Add support for alternative month names.
4500         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4501         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4502         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4503         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4504         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4505         * doc/posix-functions/nl_langinfo.texi: Likewise.
4507 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4509         Merge strftime.c changes from glibc
4510         This incorporates:
4511         2017-11-14 [BZ #10871] Implement alternative month names
4512         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4513         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4514         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4515         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4516         Use locale_t, not __locale_t.
4517         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4518         (__strftime_internal): Add support for alternate months.
4520 2018-01-23  Bruno Haible  <bruno@clisp.org>
4522         doc: Mention another prerequisite for using Gnulib.
4523         Reported at <https://stackoverflow.com/questions/48378214/>.
4524         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4525         AC_CONFIG_HEADERS.
4527 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4529         build: GuixSD doesn't have /bin/bash
4530         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4532 2018-01-21  Bruno Haible  <bruno@clisp.org>
4534         Avoid test failures on Microsoft Windows Subsystem for Linux.
4535         * tests/test-fcntl.c (main): Allow a different errno.
4536         * tests/test-rename.h (test_rename): Likewise.
4537         * tests/test-renameat.c (main): Likewise.
4538         * tests/test-renameat2.c (main): Likewise.
4540 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4542         filenamecat: make base a suffix of result
4543         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4544         (mfile_name_concat): Always make BASE a suffix of the result, as
4545         cp expects this.  To implement this, separate with '.' instead of
4546         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4547         * tests/test-filenamecat.c (main): Adjust tests to match
4548         current behavior.  Check that BASE_IN_RESULT points to
4549         a copy of BASE and is a suffix of the resultk, and that DIR
4550         is a prefix of the result that is no longer than the prefix
4551         indicated by BASE_IN_RESULT.
4553 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4555         update-copyright: Handle use of ©
4556         * build-aux/update-copyright ($circle_c_re): Update regex to
4557         handle use of © in headers.
4559 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4561         Fix -Wundef warning in user-included header lib/cdefs.h.
4562         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4564 2018-01-04  Bruno Haible  <bruno@clisp.org>
4566         pthread_sigmask: Avoid compilation error on mingw.
4567         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4568         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4569         macro.
4571 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4573         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4574         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4575         Suggested by Bob Proulx (Bug#29968).
4576         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4578 2018-01-02  Eric Blake  <eblake@redhat.com>
4580         stat-time: silence -Wunused-parameter regression
4581         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4582         Prefer attribute over cast-to-void.
4583         (stat_time_normalize): Mark st as potentially unused.
4585 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4587         test-framework-sh: avoid netstat
4588         Problem reported by Kristýna Streitová (Bug#29947).
4589         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4590         deprecated on SuSE and it's not that important anyway.
4592 2018-01-01  Jim Meyering  <meyering@fb.com>
4594         update-copyright: add code to handle more special cases
4595         After running "make update-copyright" this year, five files
4596         required additional manual changes.  Automate those adjustments
4597         for next year.
4598         * Makefile (_year_and_prev): Define.
4599         (update-copyright): Add perl commands to induce this year's post-
4600         update-copyright adjustments.
4602 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4604         version-etc: new year
4605         * build-aux/gendocs.sh (version):
4606         * doc/gendocs_template:
4607         * doc/gendocs_template_min:
4608         * doc/gnulib.texi:
4609         * lib/version-etc.c (COPYRIGHT_YEAR):
4610         Update copyright dates by hand in templates and the like.
4612         maint: fix 'make update-copyright'
4613         * Makefile (update-copyright): Adjust to 2016-11-23 change
4614         to config/srclist-update, which changed the format of srclist.txt.
4616 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4618         chdir-safer: remove this module
4619         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4620         * NEWS: Document removal.
4621         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4622         * modules/chdir-safer: Remove these files.
4624 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4626         Add cross-compilation results for GNU/Hurd.
4627         * m4/calloc.m4: Add GNU/Hurd guess.
4628         * m4/cbrtl.m4: Likewise.
4629         * m4/ceil.m4: Likewise.
4630         * m4/ceilf.m4: Likewise.
4631         * m4/ceill.m4: Likewise.
4632         * m4/chown.m4: Likewise.
4633         * m4/duplocale.m4: Likewise.
4634         * m4/exp2l.m4: Likewise.
4635         * m4/expm1.m4: Likewise.
4636         * m4/fchdir.m4: Likewise.
4637         * m4/floor.m4: Likewise.
4638         * m4/floorf.m4: Likewise.
4639         * m4/fmod.m4: Likewise.
4640         * m4/fmodf.m4: Likewise.
4641         * m4/fmodl.m4: Likewise.
4642         * m4/getcwd.m4: Likewise.
4643         * m4/getgroups.m4: Likewise.
4644         * m4/gettimeofday.m4: Likewise.
4645         * m4/hypot.m4: Likewise.
4646         * m4/hypotf.m4: Likewise.
4647         * m4/hypotl.m4: Likewise.
4648         * m4/link-follow.m4: Likewise.
4649         * m4/link.m4: Likewise.
4650         * m4/linkat.m4: Likewise.
4651         * m4/log.m4: Likewise.
4652         * m4/log10.m4: Likewise.
4653         * m4/log10f.m4: Likewise.
4654         * m4/log1p.m4: Likewise.
4655         * m4/log1pf.m4: Likewise.
4656         * m4/log1pl.m4: Likewise.
4657         * m4/log2.m4: Likewise.
4658         * m4/log2f.m4: Likewise.
4659         * m4/logf.m4: Likewise.
4660         * m4/lstat.m4: Likewise.
4661         * m4/malloc.m4: Likewise.
4662         * m4/mbrlen.m4: Likewise.
4663         * m4/mbrtowc.m4: Likewise.
4664         * m4/mkdir.m4: Likewise.
4665         * m4/mkfifo.m4: Likewise.
4666         * m4/mknod.m4: Likewise.
4667         * m4/mkstemp.m4: Likewise.
4668         * m4/modf.m4: Likewise.
4669         * m4/modff.m4: Likewise.
4670         * m4/modfl.m4: Likewise.
4671         * m4/printf.m4: Likewise.
4672         * m4/pselect.m4: Likewise.
4673         * m4/ptsname.m4: Likewise.
4674         * m4/putenv.m4: Likewise.
4675         * m4/readlink.m4: Likewise.
4676         * m4/realloc.m4: Likewise.
4677         * m4/remainder.m4: Likewise.
4678         * m4/remainderf.m4: Likewise.
4679         * m4/remainderl.m4: Likewise.
4680         * m4/rmdir.m4: Likewise.
4681         * m4/round.m4: Likewise.
4682         * m4/roundf.m4: Likewise.
4683         * m4/roundl.m4: Likewise.
4684         * m4/select.m4: Likewise.
4685         * m4/setenv.m4: Likewise.
4686         * m4/signbit.m4: Likewise.
4687         * m4/sleep.m4: Likewise.
4688         * m4/stat.m4: Likewise.
4689         * m4/strerror.m4: Likewise.
4690         * m4/strtok_r.m4: Likewise.
4691         * m4/symlink.m4: Likewise.
4692         * m4/symlinkat.m4: Likewise.
4693         * m4/trunc.m4: Likewise.
4694         * m4/truncf.m4: Likewise.
4695         * m4/truncl.m4: Likewise.
4696         * m4/tzset.m4: Likewise.
4697         * m4/ungetc.m4: Likewise.
4698         * m4/usleep.m4: Likewise.
4699         * m4/wcwidth.m4: Likewise.
4701 2017-12-28  Bruno Haible  <bruno@clisp.org>
4703         gnulib-tool: Make --conditional-dependencies work better.
4704         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4705         * gnulib-tool (Options): Don't reject the combination of
4706         --conditional-dependencies with --with-tests.
4707         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4708         Don't reference $modules.
4709         (func_import, func_create_testdir): Pass it.
4711 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4713         regex: use re_malloc etc. consistently
4714         Problem and original patch reported by Arnold Robbins in:
4715         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4716         * lib/regcomp.c (re_comp):
4717         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4718         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4720 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4721             Paul Eggert  <eggert@cs.ucla.edu>
4723         glob: Silence warning about void pointer arithmetic.
4724         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4725         arithmetic.
4727 2017-12-15  Bruno Haible  <bruno@clisp.org>
4729         spawn-pipe: Silence a clang warning.
4730         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4731         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4732         in this file.
4734 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4736         explicit_bzero: port to macOS + Clang 9.0.0
4737         Problem reported by Marcus Johnson (Bug#29658).
4738         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4739         Don’t use asm.
4741 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4743         doc: Improve explanation of supporting relocatable libraries.
4744         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4745         properly how to build the relocatable module for
4746         libraries. (Method and example code from Bruno Haible.)
4748 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4750         doc: Use better texinfo tags in a few cases.
4751         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4752         instead of @samp in a few places.
4754 2017-12-11  Bruno Haible  <bruno@clisp.org>
4756         unistr/base: Update comment.
4757         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4759 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4761         test-faccessat.c: unlink temp file to avoid subsequent test failure
4762         * tests/test-faccessat.c: Remove the file to avoid failure
4763         to open the file on subsequent runs due to being created
4764         with no permissions.
4766 2017-12-10  Bruno Haible  <bruno@clisp.org>
4768         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4769         * doc/gnulib-tool.texi (Modified build rules): New node.
4771 2017-12-10  Bruno Haible  <bruno@clisp.org>
4773         doc: Tweak wording.
4774         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4775         "binaries".
4777 2017-12-05  Sam Steingold  <sds@gnu.org>
4778             Bruno Haible  <bruno@clisp.org>
4780         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4781         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4782         AC_EGREP_CPP pattern.
4784 2017-12-03  Bruno Haible  <bruno@clisp.org>
4786         all: Replace more http URLs by https URLs.
4787         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4788         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4789         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4790         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4792 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4794         Port better to CentOS 5
4795         Problems reported by Tom G. Christensen in:
4796         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4797         * doc/glibc-functions/strverscmp.texi (strverscmp):
4798         Document strverscmp bug with glibc 2.9 and earlier.
4799         * doc/posix-functions/tzset.texi (tzset):
4800         Document that TZ with angle brackets is POSIX-2001 and later.
4801         * tests/test-nstrftime.c: Include unistd.h.
4802         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4803         (TZ): Use it to skip tests with angle brackets in TZ,
4804         for older systems.
4806         stat: add missing module dependencies
4807         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4808         Add stat-time.
4810 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4812         stat: fix compilation failure on macOS Sierra
4813         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4814         https://savannah.gnu.org/bugs/?52546
4815         * lib/stat.c: Add missing include of stat-time.h.
4817 2017-11-28  Jim Meyering  <meyering@fb.com>
4819         test-faccessat.c: correct BASE definition to avoid parallel test failure
4820         * tests/test-faccessat.c (BASE): Define using this file's name, not
4821         that of test-lstat.c.  Using the latter caused this test to fail
4822         sometimes when run concurrently with test-lstat.
4824 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4826         unicase: fix VPATH build
4827         * modules/unicase/special-casing (Makefile.am): Ensure that the
4828         base directory is created when generating
4829         unicase/special-casing.h.
4831 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4833         libunistring: update to Unicode 9.0.0
4834         * lib/gen-uni-tables.c (fill_properties): Recognize
4835         Sentence_Terminal and Prepended_Concatenation_Mark.
4836         (is_property_default_ignorable_code_point): Exclude U+08E2.
4837         (fill_arabicshaping): Allow missing whitespace when parsing;
4838         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4839         (output_blocks): Increase the element size of the level1 table to
4840         accommodate more blocks.
4841         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4842         Update each class according to the standard.
4843         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4844         E_Base_GAZ characters.
4845         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4846         Glue_After_Zwj, and E_Base_GAZ characters.
4847         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4848         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4849         enum value.
4850         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4851         value.
4852         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4853         LBP_ZWJ, LBP_EB, and LBP_EM.
4854         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4855         enum value.
4856         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4857         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4858         declaration.
4859         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4860         (uniwbrk_table): Implement WB14.
4861         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4862         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4863         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4864         uc-is-grapheme-break.
4865         * modules/unigbrk/uc-grapheme-breaks: New module.
4866         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4867         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4868         enum value.
4869         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4870         * lib/unigbrk/u-grapheme-breaks.h: New file.
4871         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4872         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4873         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4874         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4875         29.
4876         * tests/unigbrk/test-uc-gbrk-prop.c
4877         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4878         GBP_GAZ, and GBP_EBG.
4879         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4880         * tests/unigbrk/test-uc-is-grapheme-break.c
4881         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4882         GBP_GAZ, and GBP_EBG.
4883         (main): Skip unsupported rules involving 3 or more characters,
4884         namely GB10, GB12, and GB13.
4885         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4886         * all generated files under lib/uni* and tests/uni*: Regenerate.
4887         * all the affected modules: Bump version.
4889 2017-11-26  Bruno Haible  <bruno@clisp.org>
4891         strfmon_l: Fix compilation error with glibc 2.5.
4892         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4893         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4894         * lib/monetary.in.h: Include also <locale.h>.
4896 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4898         posixtm: remove PDS_LEADING_YEAR
4899         This changes the API slightly, in a hopefully-innocuous way.
4900         Without this change the code had undefined behavior when a
4901         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4902         Problem reported by Pádraig Brady in:
4903         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4904         * NEWS: Mention this.
4905         * lib/posixtm.c (posix_time_parse): Treat the absence of
4906         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4907         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4908         present, but define it as zero, for compatibility with existing
4909         source code).  All other PDS_* values moved up.
4910         * tests/test-posixtm.c (LY): New macro.
4911         (T): Use it.  Do not expect a particular numeric encoding
4912         for PDS_CENTURY etc.
4914 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4916         stat: work around Solaris bug with tv_nsec < 0
4917         * doc/posix-functions/fstat.texi (fstat):
4918         * doc/posix-functions/fstatat.texi (fstatat):
4919         * doc/posix-functions/lstat.texi (lstat):
4920         * doc/posix-functions/stat.texi (stat):
4921         Mention Solaris 11 bug.
4922         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4923         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4924         * lib/lstat.c (rpl_lstat):
4925         * lib/stat.c (rpl_stat):
4926         Normalize resulting timestamps.
4927         * lib/fstatat.c (normal_fstatat): New function.
4928         (rpl_fstatat): Use it.
4929         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4930         (stat_time_normalize): New function.
4931         * m4/fstat.m4 (gl_FUNC_FSTAT):
4932         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4933         * m4/lstat.m4 (gl_FUNC_LSTAT):
4934         * m4/stat.m4 (gl_FUNC_STAT):
4935         Replace on Solaris.
4936         * modules/fstat (Depends-on):
4937         * modules/fstatat (Depends-on):
4938         Add stat-time.
4939         * modules/stat-time (Depends-on): Add errno, intprops.
4941 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4943         regex: merge from glibc
4944         * lib/regcomp.c (init_word_char): Add comments.
4946 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4948         regex: merge from glibc
4949         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4950         * lib/regex_internal.h (internal_function): Remove.
4951         All uses removed.
4953 2017-11-20  Bruno Haible  <bruno@clisp.org>
4955         crypto/gc-sm3: Fix buffer overrun.
4956         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4957         Reported by Coverity.
4959 2017-11-12  Jim Meyering  <meyering@fb.com>
4961         maint: shorten https://lists.gnu.org/archive/html/... links
4962         Each /archive/html/ part can be replace with /r/.
4963         Run this to induce the change:
4964         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4965         * ChangeLog: Perform that substitution.
4966         * Makefile: Likewise.
4967         * STATUS-libposix: Likewise.
4968         * build-aux/bootstrap: Likewise.
4969         * doc/maintain.texi: Likewise.
4970         * gnulib-tool: Likewise.
4971         * lib/allocator.h: Likewise.
4972         * lib/argp-ba.c: Likewise.
4973         * lib/argp-pv.c: Likewise.
4974         * lib/canon-host.c: Likewise.
4975         * lib/canonicalize-lgpl.c: Likewise.
4976         * lib/float.in.h: Likewise.
4977         * lib/fstat.c: Likewise.
4978         * lib/getdelim.c: Likewise.
4979         * lib/getprogname.c: Likewise.
4980         * lib/glthread/thread.h: Likewise.
4981         * lib/intprops.h: Likewise.
4982         * lib/mbsrtowcs-state.c: Likewise.
4983         * lib/safe-read.c: Likewise.
4984         * lib/signal.in.h: Likewise.
4985         * lib/stat.c: Likewise.
4986         * lib/stdbool.in.h: Likewise.
4987         * lib/stdio-impl.h: Likewise.
4988         * lib/stdio.in.h: Likewise.
4989         * lib/sysexits.in.h: Likewise.
4990         * lib/timespec.h: Likewise.
4991         * lib/wcsrtombs-state.c: Likewise.
4992         * m4/alloca.m4: Likewise.
4993         * m4/extern-inline.m4: Likewise.
4994         * m4/fstatat.m4: Likewise.
4995         * m4/gnulib-common.m4: Likewise.
4996         * m4/lib-ignore.m4: Likewise.
4997         * m4/printf.m4: Likewise.
4998         * m4/regex.m4: Likewise.
4999         * m4/stat-size.m4: Likewise.
5000         * m4/std-gnu11.m4: Likewise.
5001         * m4/stdbool.m4: Likewise.
5002         * m4/sys_types_h.m4: Likewise.
5003         * m4/threadlib.m4: Likewise.
5004         * m4/vararrays.m4: Likewise.
5005         * pygnulib/GLImport.py: Likewise.
5006         * tests/test-exp.h: Likewise.
5007         * tests/test-exp2.h: Likewise.
5008         * tests/test-expm1.h: Likewise.
5009         * tests/test-fflush2.c: Likewise.
5010         * tests/test-getopt_long.h: Likewise.
5011         * tests/test-intprops.c: Likewise.
5012         * tests/test-log.h: Likewise.
5013         * tests/test-log10.h: Likewise.
5014         * tests/test-log1p.h: Likewise.
5015         * tests/test-log2.h: Likewise.
5016         * tests/test-printf-posix.h: Likewise.
5017         * tests/test-regex.c: Likewise.
5018         * tests/test-snprintf-posix.h: Likewise.
5019         * tests/test-sprintf-posix.h: Likewise.
5020         * tests/test-stdalign.c: Likewise.
5021         * tests/test-stdbool.c: Likewise.
5022         * tests/test-vasnprintf-posix.c: Likewise.
5023         * tests/test-vasprintf-posix.c: Likewise.
5024         * top/maint.mk: Likewise.
5026 2017-11-12  Bruno Haible  <bruno@clisp.org>
5028         faccessat: Make the last change more robust.
5029         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
5030         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
5032 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5034         faccessat: port to macOS (Bug#29231)
5035         macOS faccessat has the same bug that lstat does: if the file
5036         name ends in '/' it ignores the trailing slash.
5037         Problem reported for Emacs by Vincent Zhang.
5038         * doc/posix-functions/faccessat.texi (faccessat): Document this.
5039         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
5040         around the initial includes.  Include errno.h, string.h, sys/stat.h.
5041         (orig_faccessat) [HAVE_FACCESSAT]: New function.
5042         Include "unistd.h" after defining it.
5043         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
5044         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
5045         Handle in the usual way.
5046         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
5047         lstat dereferences symlinks, since faccessat is likely to
5048         have the same problem.
5049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
5050         * modules/faccessat (Depends-on): Add fstatat.
5051         Depend if REPLACE_FACCESSAT is 1, too.
5052         (configure.ac): Link if REPLACE_FACCESSAT is 1.
5053         * modules/faccessat-tests (Depends-on): Add symlink.
5054         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
5055         * tests/test-faccessat.c (main): Test for the bug.
5057 2017-11-11  Bruno Haible  <bruno@clisp.org>
5059         getprogname: Fix compilation error on IRIX.
5060         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
5061         'namesize'.
5063 2017-11-11  Bruno Haible  <bruno@clisp.org>
5065         year2038: Tweak last patch.
5066         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
5068 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5070         year2038: be more insistent about 64-bit time_t
5071         Applications requiring access to arbitrary files should not be
5072         built with 32-bit time_t on hosts that have 64-bit timestamps,
5073         as this can lead to real trouble at runtime.
5074         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
5075         Check on all systems, not just MinGW.  Use a heuristic involving
5076         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
5077         output a failure or just a warning, to make it more likely that
5078         builders will select 64-bit time_t.
5080 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5082         havelib: fix typo in previous change
5083         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
5085         Don’t use AC_EGREP_CPP if affected by CFLAGS
5086         * m4/float_h.m4 (gl_FLOAT_H):
5087         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
5088         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
5089         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
5090         * m4/year2038.m4 (gl_YEAR2038):
5091         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
5092         likely to be affected by the choice of CFLAGS, since CFLAGS are
5093         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
5094         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
5096         fstatat: pacify GCC on unusual platform
5097         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
5098         Omit, as it’s unused in this case.
5100 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
5102         timespec: prefer ‘assume’ to ‘assure’
5103         This avoids some runtime tests.  The rest of the module makes
5104         similar assumptions and there is little point to testing here.
5105         * lib/timespec.h: Include verify.h instead of assure.h.
5106         (timespec_cmp): Use ‘assume’, not ‘assure’.
5107         Also, remove an unnecessary cast to ‘int’, as lots of other
5108         code in this module now causes -Wconversion to complain, and
5109         this is a problem with -Wconversion not with the code.
5111         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
5113         Port recent gnulib-tool change to Dash
5114         * gnulib-tool (func_create_testdir): Don't assume that the shell
5115         retokenizes after expanding "$@" inside the call to
5116         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
5118 2017-10-27  Jim Meyering  <meyering@fb.com>
5120         timespec.h: use "assure" to avoid a spurious warning
5121         * lib/timespec.h: Include "assure.h" and use it to help
5122         gcc7's -Wstrict-overflow avoid a false positive warning
5123         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5124         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5125         * modules/timespec (Depends-on): Add assure.
5127 2017-10-29  Bruno Haible  <bruno@clisp.org>
5129         Avoid several test failures with traditional locales on Haiku.
5130         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5131         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5132         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5134         LOCALE_ZH_CN=none.
5136 2017-10-29  Bruno Haible  <bruno@clisp.org>
5138         strerror_r-posix: Fix behaviour and test failure on Haiku.
5139         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5140         are positive. Work around return value 0 instead of ERANGE on Haiku.
5141         For unknown error numbers, use a format string consistent with perror().
5142         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5143         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5144         are positive.
5146 2017-10-29  Bruno Haible  <bruno@clisp.org>
5148         get-rusage-data: Avoid crash on Haiku.
5149         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5151 2017-10-29  Bruno Haible  <bruno@clisp.org>
5153         get-rusage-as: Avoid crash on Haiku.
5154         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5156 2017-10-29  Bruno Haible  <bruno@clisp.org>
5158         ilogbl: Ensure replacement on Haiku.
5159         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5160         REPLACE_ILOGBL if ilogbl does not work.
5161         (gl_FUNC_ILOGBL_WORKS): New macro.
5162         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5164         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5165         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5166         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5168 2017-10-29  Bruno Haible  <bruno@clisp.org>
5170         expl: Ensure replacement on Haiku.
5171         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5172         zero.
5173         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5175 2017-10-29  Bruno Haible  <bruno@clisp.org>
5177         math: Fix test failure on Haiku.
5178         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5179         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5180         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5181         * doc/posix-headers/math.texi: Mention the Haiku problem.
5183 2017-10-29  Bruno Haible  <bruno@clisp.org>
5185         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5186         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5187         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5189 2017-10-29  Bruno Haible  <bruno@clisp.org>
5191         crypto/*: Verify that the header file is self-contained.
5192         * tests/test-gc-*.c: Include the module's header file immediately after
5193         <config.h>.
5194         * tests/test-hmac-*.c: Likewise.
5195         * tests/test-arcfour.c: Likewise.
5196         * tests/test-arctwo.c: Likewise.
5197         * tests/test-des.c: Likewise.
5198         * tests/test-md2.c: Likewise.
5199         * tests/test-md4.c: Likewise.
5200         * tests/test-md5.c: Likewise.
5201         * tests/test-rijndael.c: Likewise.
5202         * tests/test-sha1.c: Likewise.
5203         * tests/test-sm3.c: Likewise.
5205 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5206             Bruno Haible  <bruno@clisp.org>
5208         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5209         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5211 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5213         New module: crypto/gc-sm3
5214         * lib/gc.h: Declare SM3-related stuffs.
5215         * lib/gc-gnulib.c: Support sm3 in internal functions.
5216         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5217         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5218         * modules/crypto/gc-sm3: Define gc-sm3 module.
5219         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5220         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5221         * MODULES.html.sh: List gc-sm3 module.
5223 2017-10-29  Bruno Haible  <bruno@clisp.org>
5225         random, random_r: Mention different prototypes on Haiku.
5226         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5227         * doc/glibc-functions/random_r.texi: Likewise.
5228         * doc/glibc-functions/initstate_r.texi: Likewise.
5229         * doc/glibc-functions/setstate_r.texi: Likewise.
5231 2017-10-28  Bruno Haible  <bruno@clisp.org>
5233         posix_spawn: Avoid spurious message in configure output.
5234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5235         'cmp' command.
5237 2017-10-28  Bruno Haible  <bruno@clisp.org>
5239         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5240         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5241         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5243 2017-10-28  Bruno Haible  <bruno@clisp.org>
5245         ioctl: Override non-POSIX declaration on Haiku.
5246         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5247         * lib/sys_ioctl.in.h: Add comment about Haiku.
5248         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5249         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5251 2017-10-28  Bruno Haible  <bruno@clisp.org>
5253         crypto/sm3: Add overview documentation to the .h file.
5254         * lib/sm3.h: Add comments.
5256 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5258         New module: crypto/sm3
5259         This new module can be used to compute SM3 message digest of files or
5260         memory blocks according to the specification GM/T 004-2012
5261         Cryptographic Hash Algorithm SM3, published by State Cryptography
5262         Administration, China.
5263         The official SM3 cryptographic hash algorithm specification is
5264         available at
5265         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5266         * lib/sm3.h: Declare the APIs of sm3 module.
5267         * lib/sm3.c: Implement SM3 hash algorithm.
5268         * m4/sm3.m4: m4 file for sm3 module.
5269         * modules/crypto/sm3: Define sm3 module.
5270         * tests/test-sm3.c: Implement SM3 test case.
5271         * modules/crypto/sm3-tests: Define sm3 test module.
5272         * MODULES.html.sh: List sm3 module.
5274 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5276         gc-libgcrypt: fix undefined enum type in switch statement
5277         Resolve the following build failure:
5278         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5279         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5280         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5281              case 0:
5282              ^~~~
5283         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5284         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5286 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5288         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5289         Resolve the following build failure:
5290         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5291         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5292         in signedness [-Werror=pointer-sign]
5293             digest = gcry_md_read (ctx->gch, 0);
5294                    ^
5295         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5297 2017-10-26  Bruno Haible  <bruno@clisp.org>
5299         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5300         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5301         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5303 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5305         glob: fix another heap buffer overflow
5306         Problem reported by Tim Rühsen in:
5307         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5308         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5310 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5312         quotearg: pacify compiler re unsigned
5313         * lib/quotearg.c (quotearg_n_options):
5314         Rewrite to avoid diagnostic from overly-picky compiler.
5315         Problem reported by Sami Kerola in:
5316         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5318         glob: fix heap buffer overflow
5319         * lib/glob.c (glob): Fix off-by-one error introduced into
5320         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5321         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5322         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5323         Fix suggested by Bruno Haible.
5325 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5327         glob: pacify fuzzer for mempcpy
5328         Problem reported by Tim Rühsen in:
5329         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5330         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5332 2017-10-12  Bruno Haible  <bruno@clisp.org>
5334         doc: Fix syntax error (regression from 2017-10-03).
5335         * doc/posix-functions/strncpy.texi: Fix syntax error.
5337 2017-10-12  Bruno Haible  <bruno@clisp.org>
5339         doc: Update for Solaris 11.3.
5340         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5341         mention Solaris 11.3.
5342         * m4/log2.m4: Fix comments.
5343         * m4/log2f.m4: Likewise.
5344         * m4/printf.m4: Update comments.
5345         * m4/rename.m4: Likewise.
5346         * m4/strncat.m4: Likewise.
5348         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5350 2017-10-10  Bruno Haible  <bruno@clisp.org>
5352         doc: Improve doc about ioctl.
5353         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5354         prototype.
5356 2017-10-09  Bruno Haible  <bruno@clisp.org>
5358         wcwidth: Don't use obsolete syntax of 'test'.
5359         Reported by Eric Blake.
5360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5361         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5363 2017-10-09  Bruno Haible  <bruno@clisp.org>
5365         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5366         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5367         and Daniel P. Berrange <berrange@redhat.com>.
5368         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5369         on glibc systems. The getopt-pfx-core.h file declares exactly what
5370         unistd.h needs, nothing more.
5372 2017-10-08  Bruno Haible  <bruno@clisp.org>
5374         vma-iter: Improve support for FreeBSD.
5375         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5376         vma_iterate.
5377         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5379 2017-10-08  Bruno Haible  <bruno@clisp.org>
5381         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5382         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5384 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5386         test-framework-sh: Fix 'invalid path dir' error.
5387         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5388         separator between a drive letter and directory parts.
5389         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5390         treated as an invalid path dir.
5391         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5392         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5393         instead of hard coded ':'.
5395 2017-10-07  Bruno Haible  <bruno@clisp.org>
5397         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5398         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5399         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5400         (rof_open): On Linux, do multiple read() calls and make sure
5401         MIN_LEFTOVER bytes are left when read() returns.
5403 2017-10-07  Bruno Haible  <bruno@clisp.org>
5405         vma-iter: Improve support for GNU/Hurd.
5406         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5407         API, not the /proc file system.
5409 2017-10-07  Bruno Haible  <bruno@clisp.org>
5411         test-framework-sh: Don't require bash on Windows and OS/2.
5412         Reported by KO Myung-Hun.
5413         * tests/test-init.sh: Use 'shopt' only when running in bash.
5415 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5417         wcwidth: check a macro version of wcwidth () as well
5418         * lib/wchar.in.h: Revert commit from 2016-01-14.
5419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5421 2017-10-06  Bruno Haible  <bruno@clisp.org>
5423         getopt-posix: Clarify copyright header.
5424         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5425         * lib/getopt-pfx-core.h: Likewise.
5426         * lib/getopt-pfx-ext.h: Likewise.
5427         * lib/getopt-cdefs.in.h: Likewise.
5429 2017-10-03  Bruno Haible  <bruno@clisp.org>
5431         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5432         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5433         gl_HOST_CPU_C_ABI.
5435 2017-10-03  Bruno Haible  <bruno@clisp.org>
5437         doc: warn about misuse of strncpy and wcsncpy.
5438         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5439         memory allocation.
5440         * doc/posix-functions/wcscpy.texi: Likewise.
5441         * doc/posix-functions/strncpy.texi: Describe what this function is not
5442         useful for.
5443         * doc/posix-functions/wcsncpy.texi: Likewise.
5445 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5447         fsuage: fix typo in previous change
5448         * lib/fsusage.c: Remove stray include of full-read.h.
5449         Problem reported by Sam Steingold for macOS (Bug#28669).
5451 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5453         fsusage: remove SVR2 support
5454         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5455         and its code was getting in the way of use of this module by
5456         Emacs, which has its own ‘read’ function anyway.
5457         * lib/fsusage.c: Do not include sys/filsys.h.
5458         (get_fs_usage): Remove SVR2-specific code.
5459         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5460         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5461         * modules/fsusage (Depends-on): Do not depend on full-read.
5463         Simplify autoupdate of licenses
5464         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5465         place.
5467 2017-10-01  Bruno Haible  <bruno@clisp.org>
5469         vma-iter: Add support for GNU/Hurd.
5470         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5471         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5473 2017-09-30  Bruno Haible  <bruno@clisp.org>
5475         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5476         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5477         fail when module 'largefile' is in use.
5478         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5479         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5480         Don't test HAVE_SYS_PROCFS_H.
5482 2017-09-30  Bruno Haible  <bruno@clisp.org>
5484         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5485         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5486         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5487         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5489 2017-09-30  Bruno Haible  <bruno@clisp.org>
5491         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5492         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5493         scope of local variables.
5495 2017-09-28  Bruno Haible  <bruno@clisp.org>
5497         string: code style
5498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5499         substitutable variables.
5500         * modules/string (Makefile.am): Likewise.
5502 2017-09-26  Bruno Haible  <bruno@clisp.org>
5504         uniname/uniname-tests: Tighten code.
5505         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5506         local variables into one.
5508 2017-09-26  Bruno Haible  <bruno@clisp.org>
5510         vma-iter: Improvements for Linux and BSD platforms.
5511         - Add support for DragonFly BSD.
5512         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5513         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5514         Read the entire file into memory in a single system call.
5515         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5516         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5518 2017-09-26  Bruno Haible  <bruno@clisp.org>
5520         vma-iter: Provide the protection flags on FreeBSD.
5521         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5522         skip three fields between the addresses and the protection flags.
5524 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5526         glob: remove bogus extern decl
5527         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5528         extern declaration.  Problem reported by Adhemerval Zanella in:
5529         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5531 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5533         uniname/uniname-tests: integer overflow fix
5534         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5535         Check for integer overflow.
5537         duplocale-tests: fix unlikely crash
5538         * tests/test-duplocale.c (get_locale_dependent_values):
5539         Don’t crash with absurdly long month names.
5541         maint: fix overflow checking in nap.h
5542         * modules/chown-tests:
5543         * modules/fchownat-tests, modules/fdutimensat-tests:
5544         * modules/futimens-tests, modules/lchown-tests:
5545         * modules/stat-time-tests, modules/utime-tests:
5546         * modules/utimens-tests, modules/utimensat-tests:
5547         Depend on intprops.
5548         * tests/nap.h: Include intprops.h.
5549         (diff_timespec): Handle overflow properly.
5551         sys_types: update URL
5552         * m4/sys_types_h.m4: Use https: URL.
5554         parse-datetime: fix dependency
5555         * modules/parse-datetime (Depends-on): Depend
5556         on nstrftime, not strftime.
5558         parse-datetime, posixtm: avoid uninit access
5559         * lib/parse-datetime.y (parse_datetime2):
5560         * lib/posixtm.c (posixtime):
5561         Do not access uninitialized storage, even though the resulting
5562         value is never used.
5564 2017-09-25  Bruno Haible  <bruno@clisp.org>
5566         vma-iter: Improvements for BSD platforms.
5567         - Add support for GNU/kFreeBSD.
5568         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5569         - Speed up on OpenBSD.
5570         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5571         (vma_iterate_bsd): New function.
5572         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5573         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5574         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5575         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5577 2017-09-23  Bruno Haible  <bruno@clisp.org>
5579         strfmon_l: New module.
5580         * modules/strfmon_l: New file.
5581         * lib/strfmon_l.c: New file.
5582         * m4/strfmon_l.m4: New file.
5583         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5584         * modules/strfmon_l-tests: New file.
5585         * tests/test-strfmon_l.c: New file.
5587         monetary: New module.
5588         * modules/monetary: New file.
5589         * lib/monetary.in.h: New file.
5590         * m4/monetary_h.m4: New file.
5591         * doc/posix-headers/monetary.texi: Mention the new module.
5592         * modules/monetary-tests: New file.
5593         * tests/test-monetary.c: New file.
5594         * modules/monetary-c++-tests: New file.
5595         * tests/test-monetary-c++.cc: New file.
5596         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5598 2017-09-23  Bruno Haible  <bruno@clisp.org>
5600         duplocale tests: Fix test crash on Linux/x86.
5601         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5602         locale from the current thread before freeing it.
5604 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5606         mktime: port to OpenVMS
5607         Problem reported by John E. Malmberg in:
5608         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5609         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5611 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5613         manywarnings: port to GCC on 64-bit MS-Windows
5614         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5615         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5616         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5618 2017-09-13  Bruno Haible  <bruno@clisp.org>
5620         all: Replace many more http URLs by https URLs. Update stale URLs.
5621         * users.txt: Remove mention of 'newts'.
5622         * lib/localename.c: Update comment about LANG_SOTHO.
5624 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5626         all: Replace many http URLs by https URLs.
5628 2017-09-12  Bruno Haible  <bruno@clisp.org>
5630         doc: Prefer https URLs where possible.
5631         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5632         * doc/ld-output-def.texi: Remove unavailable URL.
5634 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5636         maintainer-makefile: FTP -> HTTPS
5637         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5638         of FTP, which is planned to be decommissioned on 2017-11-01.
5640 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5642         libc-config: Fix __GNUC_PREREQ macro.
5643         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5644         __GNUC_MINOR.
5646 2017-09-09  Bruno Haible  <bruno@clisp.org>
5648         gnulib-tool: Simplify commit from 2015-08-20.
5649         * gnulib-tool (func_add_or_update): Remove local variable
5650         is_binary_file.
5652 2017-09-08  Bruno Haible  <bruno@clisp.org>
5654         stddef: Avoid conflict with system-defined max_align_t.
5655         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5656         Reported by Werner Lemberg <wl@gnu.org> in
5657         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5658         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5659         (max_align_t): Define as a macro.
5660         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5661         definitions of rpl_max_align_t in different copies of gnulib-generated
5662         <stddef.h>.
5664 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5666         libc-config: port to MSVC
5667         Problems reported by Gisle Vanem in:
5668         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5669         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5670         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5671         * m4/__inline.m4: New file.
5672         * modules/libc-config (Files): Add it.
5673         (Depends-on): Use it.
5675         glob: Use enum for __glob_pattern_type result
5676         From a patch proposed by Adhemerval Zanella in:
5677         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5678         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5679         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5680         * lib/glob_internal.h (__glob_pattern_type):
5681         * lib/glob.c (glob):
5682         * lib/glob_pattern_p.c (__glob_pattern_p):
5683         Use them.
5685         glob: fix for use in glibc
5686         Problem reported by Adhemerval Zanella in:
5687         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5688         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5689         Do not redefine if _LIBC.
5691 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5693         glob: fix bugs with long login names
5694         Problem reported by Adhemerval Zanella in:
5695         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5696         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5697         (glob): Use the same scratch buffer for both getlogin_r and
5698         getpwnam_r.  Don’t require preallocation of the login name.  This
5699         simplifies storage allocation, and corrects the handling of
5700         long login names.
5702 2017-09-02  Bruno Haible  <bruno@clisp.org>
5704         dirent: Update doc.
5705         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5707 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5709         glob: fix getpwnam_r errno typo
5710         * lib/glob.c (glob): Fix longstanding misuse of errno after
5711         getpwnam_r, which returns an error number rather than setting
5712         errno.
5714         glob: fix typo in recent change
5715         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5716         Fix recently-introduced typo.
5718 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5720         glob: don't save and restore errno unnecessarily
5721         * lib/glob.c (glob): Don't save and restore errno
5722         merely because we have getpwnam_r.
5724         glob: don't assume getpwnam_r
5725         * lib/glob.c (glob): Port recent patches to platforms
5726         lacking getpwnam_r.
5728         scratch_buffer: don’t use private glibc API
5729         Suggested by Florian Weimer in:
5730         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5731         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5732         * lib/scratch_buffer_grow.c: Rename to
5733         lib/malloc/scratch_buffer_grow.c.
5734         * lib/scratch_buffer_grow_preserve.c: Rename to
5735         lib/malloc/scratch_buffer_grow_preserve.c.
5736         * lib/scratch_buffer_set_array_size.c: Rename to
5737         lib/malloc/scratch_buffer_set_array_size.c.
5738         * lib/scratch_buffer.h: New file.
5739         * modules/scratch_buffer (Files, Makefile.am):
5740         Adjust to source-file renaming.
5742 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5744         glob: use scratch_buffer instead of extend_alloca
5745         Much of the lib/glob.c part of this patch comes from a glibc patch
5746         proposed by Adhemerval Zanella in:
5747         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5748         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5749         included via glob.h, does this for us now.
5750         (__set_errno): Remove, as libc-config does this for us now.
5751         Include <scratch_buffer.h>.
5752         (GETPW_R_SIZE_MAX): Remove.
5753         (glob): Use struct scratch_buffer instead of extend_alloca.
5754         * lib/glob.in.h: Include libc-config.h rather than
5755         including <sys/cdefs.h> conditionally.
5756         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5757         (__glibc_unlikely, __restrict, weak_alias):
5758         Remove, as libc-config does this for us now.
5759         * m4/glob.m4 (gl_PREREQ_GLOB):
5760         Remove sys/cdefs.h tests; no longer needed.
5761         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5762         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5764         scratch_buffer: new module
5765         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5766         * lib/scratch_buffer_grow_preserve.c:
5767         * lib/scratch_buffer_set_array_size.c:
5768         New files, copied from glibc with very minor changes that can be
5769         copied back.
5770         * modules/scratch_buffer: New file.
5772         libc-config: new module
5773         * MODULES.html.sh: Add libc-config.
5774         * lib/cdefs.h: New file, copied from the GNU C Library with very
5775         minor changes that can be copied back.
5776         * lib/libc-config.h, modules/libc-config: New files.
5778 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5780         glob: match dangling symlinks
5781         This fixes a bug I inadvertently introduced to Gnulib when I
5782         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5783         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5784         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5785         * doc/posix-functions/glob.texi: Update list of affected platforms.
5786         * lib/glob.c (__lstat64): New macro.
5787         (is_dir): New function.
5788         (glob, glob_in_dir): Match symlinks even if they are dangling.
5789         (link_stat, link_exists_p): Remove.  All uses removed.
5790         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5791         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5792         * modules/glob-tests (Depends-on): Add symlink.
5793         * tests/test-glob.c: Include errno.h, unistd.h.
5794         (BASE): New macro.
5795         (main): Test dangling symlinks, if symlinks are supported.
5797         glob, backupfile: inode 0 is a valid inode number
5798         * doc/posix-functions/readdir.texi (readdir):
5799         * doc/posix-headers/dirent.texi (dirent.h):
5800         Document more readdir portability issues.
5801         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5802         (numbered_backup): Don’t treat inode 0 any differently from
5803         other inode values.
5804         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5805         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5806         All uses removed.
5807         * modules/glob (Depends-on): Remove d-ino.
5809         glob: simplify symlink detection
5810         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5811         uint8_t, as C99 does not require uint8_t.
5812         (struct readdir_result): Use it.  Do not define skip_entry unless
5813         it is needed; this saves a byte on platforms lacking d_ino.
5814         (readdir_result_type, readdir_result_skip_entry):
5815         New functions, replacing ...
5816         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5817         ... these functions, which were removed.  This makes the callers
5818         easier to read.  All callers changed.
5819         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5821 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5823         fts-tests: tag as a longrunning-test so not included by default
5824         * modules/fts-tests: This test takes about 20s on current systems,
5825         and uses about 285M of space on ext4.
5827 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5829         renameat2: fix compilation on alpine linux
5830         * m4/renameat.m4: Check for <linux/fs.h> presence.
5831         * lib/renameat2.h: Only include <linux/fs.h> if present.
5832         Reported by Assaf Gordon on Alpine Linux.
5834 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5836         glob: try to port recent changes to MS-Windows
5837         Problem reported by Bruno Haible in:
5838         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5839         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5840         * lib/glob.in.h (__glob_pattern_p): ... to here.
5842 2017-08-24  Eric Blake  <eblake@redhat.com>
5844         warnings: fix compilation with old autoconf
5845         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5846         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5847         AC_DEFUN.
5848         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5849         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5851 2017-08-24  Bruno Haible  <bruno@clisp.org>
5853         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5854         * modules/glob (Depends-on): Add c99.
5856 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5858         glob: fix typo that broke platforms lacking d_ino
5859         This typo also hurt performance on GNU/Linux and similar hosts.
5860         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5861         in previous change.
5863 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5865         glob: merge from glibc with Zanella glob changes
5866         Merge glob from glibc, with changes for glob proposed
5867         by Adhemerval Zanella in the thread starting here:
5868         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5869         plus some fixes for this merge.
5870         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5871         New files, ported from glibc.
5872         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5873         with __restrict.
5874         (__size_t): Remove.  All uses replaced by size_t.
5875         (size_t): Define by defining __need_size_t and including <stddef.h>.
5876         This should work even in non-glibc platforms, where any name
5877         pollution is OK.
5878         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5879         (struct stat64): Don’t worry about __GLOB_GNULIB.
5880         (glob, globfree, glob_pattern_p): Remove macros for
5881         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5882         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5883         but set errno.
5884         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5885         removed since the glibc behavior works on null pointers.
5886         Do not include stdio.h; old SunOS is irrelevant now.
5887         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5888         Include glob_internal.h.
5889         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5890         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5891         worked only coincidentally.
5892         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5893         Remove macros; now done in glob.in.h.
5894         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5895         (glob): Properly initialize glob structure with
5896         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5897         Remove old code using SHELL since Bash no longer
5898         uses this.
5899         (glob, prefix_array): Separate MS code better.
5900         (glob, glob_in_dir): Use C99 decls before statements when glibc
5901         does.
5902         (glob_in_dir): Remove old Amiga and VMS code.
5903         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5904         separate files.
5905         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5906         (__glibc_unlikely):
5907         Move here from glob.c.
5908         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5909         (weak_alias): New macro.
5910         (__size_t): Remove.  All uses replaced by size_t.
5911         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5912         * modules/glob (Files): Add +lib/glob_internal.h,
5913         lib/glob_pattern_p.c, lib/globfree.c.
5914         (Depends-on): Remove snippet/arg-nonnull.
5916 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5918         glob: port to clang's Undefined Sanitizer
5919         Problem reported by Tim Rühsen in:
5920         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5921         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5922         (glob_in_dir): Do not rely on undefined behavior in accessing
5923         struct members beyond their bounds.  Use a flexible array member
5924         instead.
5926 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5928         vc-list-files: port to Solaris 10
5929         * build-aux/vc-list-files: Don't assume test -e works.
5931 2017-08-21  Karl Berry  <karl@freefriends.org>
5933         * doc/posix-functions/srandom.texi (srandom): typo }.
5935 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5937         git-version-gen: port to Solaris 10
5938         Problem reported by Dagobert Michelsen in:
5939         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5940         * build-aux/git-version-gen (v_from_git):
5941         Use expr instead of shell substitution.
5943 2017-08-19  Bruno Haible  <bruno@clisp.org>
5945         host-cpu-c-abi: Improve detection of MIPS ABI.
5946         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5947         _MIPS_SIM.
5949 2017-08-17  Bruno Haible  <bruno@clisp.org>
5951         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5952         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5954 2017-08-17  Bruno Haible  <bruno@clisp.org>
5956         float: Fix LDBL_MIN value on FreeBSD/x86.
5957         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5959 2017-08-17  Bruno Haible  <bruno@clisp.org>
5961         random: Fix test compilation failure on Cygwin 1.5.25.
5962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5963         HAVE_DECL_SETSTATE.
5964         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5965         declared.
5966         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5967         HAVE_DECL_SETSTATE.
5968         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5969         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5970         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5971         * doc/posix-functions/random.texi: Likewise.
5972         * doc/posix-functions/setstate.texi: Likewise.
5973         * doc/posix-functions/srandom.texi: Likewise.
5975 2017-08-16  Bruno Haible  <bruno@clisp.org>
5977         stdnoreturn: Fix test compilation failure on Cygwin.
5978         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5979         <stdnoreturn.h> replacement.
5980         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5981         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5983 2017-08-16  Bruno Haible  <bruno@clisp.org>
5985         thread: Fix conflict with pthread_sigmask module.
5986         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5987         it's defined as a macro.
5988         * modules/thread (Depends-on): Add pthread_sigmask.
5990 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5992         rename: port better to NetBSD
5993         * doc/posix-functions/rename.texi (rename): NetBSD 7
5994         does not have the link-count bug.
5995         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5996         broken merely because rename ("a", "b") removes "a" when the two
5997         names are hard links to the same file.
5999 2017-08-16  Bruno Haible  <bruno@clisp.org>
6001         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
6002         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
6003         the target file names with '$(srcdir)/'.
6004         * modules/unicase/locale-language (Makefile.am): Likewise.
6005         * modules/unicase/special-casing (Makefile.am): Likewise.
6006         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
6007         * modules/unictype/category-byname (Makefile.am): Likewise.
6008         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6009         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6010         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6011         * modules/unictype/property-byname (Makefile.am): Likewise.
6012         * modules/unictype/scripts (Makefile.am): Likewise.
6013         * modules/uninorm/composition (Makefile.am): Likewise.
6015 2017-08-16  Bruno Haible  <bruno@clisp.org>
6017         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
6018         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
6019         value for OpenBSD.
6021 2017-08-16  Bruno Haible  <bruno@clisp.org>
6023         rename, renameat: Update doc regarding NetBSD.
6024         * doc/posix-functions/rename.texi: Clarify that when using
6025         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
6026         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
6027         version.
6029 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6031         renameat2: port better to macOS
6032         * lib/renameat2.c (renameat2): Use renameatx_np if available.
6034         futimens: don’t assume struct timespec layout
6035         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
6036         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
6037         * tests/test-fdutimensat.c (main):
6038         * tests/test-futimens.h (test_futimens):
6039         * tests/test-lutimens.h (test_lutimens):
6040         * tests/test-utimens.h (test_utimens):
6041         * tests/test-utimensat.c (main):
6042         Don’t assume that struct timespec is a two-member structure in
6043         tv_sec, tv_nsec order.  Although this is true on all platforms we
6044         know about, POSIX does not guarantee it.
6046         rename: document+test NetBSD rename
6047         Test failure reported by Bruno Haible in:
6048         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
6049         This is an area where NetBSD is better-behaved than POSIX,
6050         so allow the NetBSD behavior in tests.
6051         * doc/posix-functions/rename.texi:
6052         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
6053         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
6055 2017-08-15  Bruno Haible  <bruno@clisp.org>
6057         renameat: Ensure declaration in <stdio.h> on NetBSD.
6058         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
6059         * doc/posix-functions/renameat.texi: Mention this problem.
6061 2017-08-15  Bruno Haible  <bruno@clisp.org>
6063         duplocale: Work around NetBSD 7.0 bug.
6064         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
6065         * lib/duplocale.c: Add comment about NetBSD problem.
6066         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
6068 2017-08-15  Bruno Haible  <bruno@clisp.org>
6070         duplocale tests: Verify use with *_l functions.
6071         * modules/duplocale-tests (configure.ac): Test for uselocale and
6072         some *_l functions.
6073         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
6074         from main.
6075         (get_locale_dependent_values_from, test_with_locale_parameter): New
6076         functions.
6077         (main): Test both test_with_uselocale and test_with_locale_parameter.
6079 2017-08-15  Bruno Haible  <bruno@clisp.org>
6081         extensions: Enable NetBSD specific extensions.
6082         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
6084 2017-08-14  Bruno Haible  <bruno@clisp.org>
6086         open, openat: Update doc about O_CLOEXEC.
6087         * doc/posix-functions/open.texi: More concrete list of platforms.
6088         * doc/posix-functions/openat.texi: Likewise.
6090 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6092         open: support O_CLOEXEC
6093         * NEWS, doc/posix-functions/open.texi:
6094         * doc/posix-functions/openat.texi: Document this.
6095         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
6096         (GNULIB_defined_O_CLOEXEC): New symbol.
6097         * lib/open.c: Include cloexec.h.
6098         (open): Support O_CLOEXEC.
6099         * lib/openat.c: Include cloexec.h.
6100         (rpl_openat): Support O_CLOEXEC.
6101         * lib/popen-safer.c: Do not include cloexec.h.
6102         (open_noinherit): Remove.
6103         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
6104         * lib/save-cwd.c: Do not include cloexec.h.
6105         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
6106         * m4/open-cloexec.m4: New file.
6107         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
6108         Replace 'open' if O_CLOEXEC is not present.
6109         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
6110         Replace 'openat' if O_CLOEXEC is not present.
6111         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
6112         * modules/open (Files): Add m4/open-cloexec.m4.
6113         (Depends-on): Depend on cloexec if replacing 'open'.
6114         * modules/openat (Files): Add m4/open-cloexec.m4.
6115         (Depends-on): Depend on cloexec if replacing openat.
6116         * modules/popen-safer (Depends-on): Remove cloexec.
6117         * modules/save-cwd (Depends-on): Remove cloexec, and add
6118         fd-safer-flag and 'open'.
6120 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
6122         reallocarray: minor fixes
6123         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6124         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6125         * modules/reallocarray (License): Change from GPL to LGPL.
6126         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6127         Indent properly and don't use tabs.
6129 2017-08-13  Darshit Shah  <darnir@gnu.org>
6131         reallocarray: New module
6132         reallocarray is a new function in glibc 2.26 to safely allocate an array
6133         of memory locations with integer overflow protection.
6134         * MODULES.html.sh: Add reallocarray.
6135         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6136         * lib/reallocarray.c: New file to implement module reallocarray.
6137         * lib/stdlib.in.h: Add function declarations for reallocarray.
6138         * m4/reallocarray.m4: New file.
6139         * m4/stdlib_h.m4: Declare reallocarray.
6140         * modules/reallocarray: New file.
6141         * modules/reallocarray-test: New file.
6142         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6143         * tests/test-reallocarray.c: New test.
6145 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6147         dirent-safer: fix cloexec race
6148         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6149         (opendir_safer): Use F_DUPFD_CLOEXEC.
6150         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6151         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6152         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6153         instead of dup_safer.
6155         fts: fix cloexec races
6156         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6157         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6158         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6159         (fd_ring_check): Set cloexec flag on new file descriptors.
6160         (fts_build, fd_ring_check): While we’re at it, make sure the
6161         resulting file descriptor is not 0, 1, or 2, since that is easy.
6163 2017-08-11  Bruno Haible  <bruno@clisp.org>
6165         fts tests: Fix link error.
6166         Reported by Tom G. Christensen in
6167         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6168         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6170 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6172         fts: port recent changes to CentOS 6
6173         Problem reported by Tom G. Christensen in:
6174         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6175         * lib/fts.c (fsword): New type.
6176         (struct dev_type, filesystem_type): Use it.
6177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6178         Also, check for f_type only if fstatfs and sys/vfs.h work.
6180 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6182         tempname: do not depend on secure_getenv
6183         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6184         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6185         * modules/tempname (Depends-on): Remove secure_getenv.
6187 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6189         extensions: add _OPENBSD_SOURCE
6190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6192 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6193             Bruno Haible  <bruno@clisp.org>
6195         manywarnings: Add support for C++.
6196         * build-aux/g++-warning.spec: New file.
6197         * m4/manywarnings-c++.m4: New file.
6198         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6199         redirects to manywarnings-c++.m4.
6200         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6202 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6204         git-version-gen: another fix for tags with "-"
6205         * build-aux/git-version-gen: Improve fix for tags containing "-".
6206         Suggested by Markus Armbruster in:
6207         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6209 2017-08-06  Bruno Haible  <bruno@clisp.org>
6211         warnings, manywarnings: Add support for multiple languages, not just C.
6212         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6213         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6214         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6215         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6216         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6217         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6218         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6219         of the current language. If C++ is the current language, modify
6220         WARN_CXXFLAGS instead of WARN_CFLAGS.
6221         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6222         gl_MANYWARN_ALL_GCC.
6223         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6225 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6227         git-version-gen: Fix for tags containing '-'
6229         Really old versions of git-describe (before v1.5.0, Feb 2007)
6230         don't have the number of commits in their long format output,
6231         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6232         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6233         recognizes both patterns, and normalizes the old format to the new one.
6235         Unfortunately, this normalization code gets confused when the tag
6236         contains '-'.  Reproducer:
6238             $ git-tag -m test v0.2-rc1
6239             $ build-aux/git-version-gen .tarball-version; echo
6240             build-aux/git-version-gen: WARNING: git rev-list failed
6241             UNKNOWN
6243         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6244         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6245         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6247         * git-version-gen: We could perhaps drop support for versions from
6248         more than a decade ago.  But tightening the pattern match is easy
6249         enough, so do that.  Still breaks when you use version tags ending in
6250         something matching -g????, but you arguably get what you deserve then.
6252 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6254         valgrind-tests: use ls, and cache
6255         * m4/valgrind-tests.m4: Test ls, not bash.
6256         Problem reported by Reuben Thomas.
6257         Also, cache the result so that it can be overridden.
6259 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6261         manywarnings: port to 64-bit GCC builds of Emacs
6262         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6263         object size rather than hardwiring 2147483647.  This is needed to
6264         build GNU Emacs, which has one conditional (and used
6265         only-in-theory) call to malloc with a literal greater than
6266         2147483647.
6268 2017-08-04  Bruno Haible  <bruno@clisp.org>
6270         Relax the license of some modules with no runtime code.
6271         * modules/std-gnu11 (License): Set to 'unlimited'.
6272         * modules/c99 (License): Likewise.
6273         Reported by Reuben Thomas <rrt@sc3d.org>.
6274         * modules/d-ino (License): Set to 'LGPL'.
6275         * modules/host-os (License): Likewise.
6276         * modules/longlong (License): Likewise.
6278 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6280         renameat2: port to RHEL 7 + NFS
6281         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6282         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6283         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6285 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6287         renameat2: port to non-renameat platforms
6288         Problem reported for MSVC-2015 by Gisle Vanem in:
6289         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6290         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6291         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6293 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6295         manywarnings: port to 32-bit GCC bug
6296         Problem reported by Pino Toscano in:
6297         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6298         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6299         not 2**63 - 1, to work around the following GCC bug:
6300         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6302 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6304         backupfile: new function to validate backup suffix
6305         * lib/backupfile.c (set_simple_backup_suffix): New function.
6306         (backupfile_internal): Use it.
6308         canonicalize: fix EOVERFLOW commentary
6309         Problem reported by Bruno Haible in:
6310         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6311         * lib/canonicalize.c (canonicalize_filename_mode):
6312         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6314         Don't interpret EOVERFLOW to mean nonexistence
6315         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6316         may be EOVERFLOW; this is likely more useful than reporting the
6317         stat errno.
6318         * lib/glob.c (link_stat): Rename from link_exists2_p and
6319         return -1/0 instead of 0/1.  Caller changed.
6320         * lib/glob.c (link_exists_p):
6321         * lib/renameat2.c (rename_noreplace, renameat2):
6322         * lib/tempname.c (try_nocreate):
6323         If errno == EOVERFLOW then the directory entry exists, so do not
6324         act as if it does not exist.
6326         backup-rename: new module
6327         It is like backupfile, except it avoids some race conditions,
6328         and it does not output to stderr or exit.
6329         * MODULES.html.sh: Add backup-rename.
6330         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6331         * modules/backup-rename: New files.
6332         * lib/backupfile.c: Turn this into an internals file, which
6333         contains code common to backupfile and backup_rename.  Include
6334         backupfile-internal.h instead of backupfile.h.  Do not include
6335         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6336         renameat2.h and fcntl.h.
6337         (BACKUP_NOMEM): New constant.
6338         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6339         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6340         (backupfile_internal): Rename from find_backup_file_name.
6341         Support new arg RENAME.
6342         (backup_args, backup_types, get_version, xget_version):
6343         Move to lib/backup-find.c.
6344         * lib/backupfile.h (backup_file_rename): New decl.
6345         * modules/backupfile (Files): Add lib/backup-internal.h,
6346         lib/backup-find.c.
6347         (Depends-on): Add dirfd, fcntl, renameat2.
6348         (lib_SOURCES): Add backup-find.c.
6350         renameat2: port better to older Solaris
6351         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6352         Add goto to use a label, to silence picky compilers.
6354         fts-tests: port to gcc -Wwrite-strings
6355         * tests/test-fts.c (base, base_d): New static vars.
6356         (argv, remove_tree, main): Use them.
6358 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6360         relocatable-lib{,-lgpl}: improve documentation
6361         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6362         Various other updates.
6364 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6365             Bruno Haible  <bruno@clisp.org>
6367         relocatable-lib{,-lgpl}: add Valgrind suppressions
6368         * lib/relocatable.valgrind: New file.
6369         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6370         * modules/relocatable-lib-lgpl: Likewise.
6372 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6374         relocatable: Make the license on the sources the GPL.
6375         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6376         LGPL, which was a special case so that the relocatable source files
6377         could be used without gnulib-tool, to GPL. They can still be used under
6378         the LGPL, using the --lgpl option to gnulib-tool.
6380 2017-07-30  Bruno Haible  <bruno@clisp.org>
6382         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6383         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6384         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6385         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6386         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6388 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6390         faccessat: document AT_SYMLINK_NOFOLLOW issue
6391         * doc/posix-functions/faccessat.texi: Modernize platform list.
6392         Document AT_SYMLINK_NOFOLLOW limitation.
6394         renameat2: port to Solaris 10
6395         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6396         with AT_SYMLINK_NOFOLLOW (which is not portable).
6397         (renameat): Undef before using, to avoid endless recursion when
6398         the replacement renameat calls renameat2 which calls the
6399         replacement renameat.
6400         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6401         * modules/renameat2 (Depends-on): Remove faccessat.
6402         * modules/renameat-tests (test_renameat_LDADD):
6403         * modules/renameat2-tests (test_renameat2_LDADD):
6404         Remove $(LIB_EACCESS).
6406         renameat2: new module
6407         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6408         useful to have access to its RENAME_NOREPLACE flag.
6409         * MODULES.html.sh (func_all_modules): Add renameat2.
6410         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6411         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6412         * lib/renameat.c (renameat): Move most of the implementation
6413         to renameat2, and just call renameat2.
6414         * modules/renameat (Files): Remove lib/at-func2.c.
6415         (Depends-on): Depend only on renameat2.
6416         (Include): Remove <fcntl.h>.
6417         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6418         since renameat (via renameat2) might use faccessat.
6420 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6422         vc-list-files: Adjust the script to support git worktrees
6423         * build-aux/vc-list-files: Require existence, not directory.
6425 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6427         doc: bring MODULES.html.sh up to date
6428         Somehow a few months ago we stopped updating MODULES.html.sh.
6429         I don’t recall explicitly deciding this, so I updated it now.
6430         Alternatively I suppose we could remove it.
6431         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6432         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6433         truncate, utime, utime-h, windows-stat-inodes,
6434         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6436 2017-07-26  Jim Meyering  <meyering@fb.com>
6438         fprintftime: fix build-break caused by recent renaming
6439         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6440         "strftime.c".
6441         * modules/fprintftime: Depend directly on nstrftime.
6443 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6445         regex: work with GCC7's -Werror=implicit-fallthrough=
6446         * lib/regex_internal.h (FALLTHROUGH): New macro.
6447         * lib/regcomp.c (peek_token_bracket, parse_expression):
6448         * lib/regexec.c (check_node_accept): Use it.
6450 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6452         fts: simplify fts_build
6453         * lib/fts.c (fts_build): Simplify, and be lazier about
6454         calling leaf_optimization.
6456         fts: three levels of leaf optimization
6457         * lib/fts.c (enum leaf_optimization): New type with three values.
6458         (S_MAGIC_AFS): New macro.  Sort them.
6459         (leaf_optimization): Rename from leaf_optimization_applies, and
6460         return enum leaf_optimization instead of bool.  All uses changed.
6461         Add cases for unknown type and for AFS.
6462         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6464         fts: cache dirent_inode_sort_may_be_useful too
6465         * lib/fts.c (struct dev_type): New struct.
6466         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6467         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6468         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6469         Now takes FTSENT const *, not int.  All uses changed.  Use
6470         filesystem_type to cache.
6471         (link_count_optimize_ok): Remove.  Caller changed to use
6472         leaf_optimization_applies, which now uses shared cache.
6474         fts: introduce MIN_DIR_NLINK
6475         * lib/fts.c (MIN_DIR_NLINK): New constant.
6476         Use it instead of 2, whenever we are talking about link counts.
6478         fts: nlink_t signedness fixups
6479         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6480         so that root need not be a special case later.
6481         (fts_read): Remove now-redundant test for fts_level.
6482         Do not assume that nlink_t is signed.
6483         (fts_build): Remove useless decrement of nlinks.
6484         (fts_stat): Avoid unlikely signed integer overflow later, if
6485         nlink_t is signed.
6487         fts-tests: new module
6488         * modules/fts-tests, tests/test-fts.c: New files.
6490 2017-07-23  Bruno Haible  <bruno@clisp.org>
6492         Rename module 'strftime' to 'nstrftime'.
6493         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6494         * lib/nstrftime.c: Renamed from lib/strftime.c.
6495         * modules/nstrftime: Renamed from modules/strftime.
6496         (Files, Makefile.am): Update.
6497         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6498         Fix comment.
6499         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6500         (Files, Makefile.am): Update.
6501         * modules/strftime: New file, an obsolete indirection.
6502         * doc/posix-functions/strftime.texi: Update reference.
6503         * config/srclist.txt: Update info.
6504         * NEWS: Mention the change.
6506 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6508         malloca: Silence a warning from clang's memory sanitizer.
6509         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6510         (freea): Use it.
6512 2017-07-18  Bruno Haible  <bruno@clisp.org>
6514         host-cpu-c-abi: Fix detection of MIPS ABI.
6515         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6516         ABI, not the CPU instruction set.
6518 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6520         explicit_bzero: new module
6521         The explicit_bzero function has been added to glibc.
6522         This module is intended to supports its use in GNU programs.
6523         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6524         * m4/explicit_bzero.m4, modules/explicit_bzero:
6525         New files.
6526         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6527         * lib/string.in.h (explicit_bzero): Declare.
6528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6529         * modules/string (string.h): Substitute its vars.
6531 2017-07-16  Bruno Haible  <bruno@clisp.org>
6533         threadlib: Support static linking.
6534         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6535         set gl_cv_have_weak to 'no'.
6537 2017-07-16  Bruno Haible  <bruno@clisp.org>
6539         unicase/locale-language: Fix link dependencies.
6540         * modules/unicase/locale-language (Link): New section.
6541         * modules/unicase/locale-language-tests (Makefile.am): Link
6542         test-locale-language program with $(LIBTHREAD).
6544 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6546         sys_socket: Add support for OpenVMS.
6547         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6548         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6550 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6552         sys_resource: Add support for OpenVMS.
6553         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6554         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6556 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6557             Bruno Haible  <bruno@clisp.org>
6559         math: Add support for OpenVMS.
6560         * lib/math.in.h [__VMS]: Include <fp.h>.
6561         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6563 2017-07-15  Bruno Haible  <bruno@clisp.org>
6565         getdtablesize: Add minimal support for OpenVMS.
6566         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6567         * modules/getdtablesize (Description): Fix.
6568         * lib/getdtablesize.c: Fix comment.
6569         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6570         getdtablesize() function, even though the test fails.
6571         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6572         limitation on OpenVMS.
6574 2017-07-13  Bruno Haible  <bruno@clisp.org>
6576         Revisit cross-compilation guesses.
6577         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6579 2017-07-13  Bruno Haible  <bruno@clisp.org>
6581         Improve cross-compilation guesses for native Windows.
6582         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6583         Windows.
6584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6585         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6586         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6587         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6588         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6589         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6590         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6591         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6593         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6594         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6595         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6596         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6597         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6598         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6599         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6600         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6602         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6603         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6604         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6605         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6606         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6607         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6608         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6609         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6610         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6611         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6613         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6614         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6615         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6616         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6617         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6618         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6619         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6620         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6621         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6622         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6623         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6624         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6625         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6626         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6627         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6628         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6629         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6630         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6631         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6632         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6633         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6634         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6635         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6636         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6637         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6638         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6639         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6640         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6641         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6642         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6643         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6645         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6646         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6647         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6648         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6650         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6651         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6652         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6653         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6654         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6655         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6656         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6657         * m4/regex.m4 (gl_REGEX): Likewise.
6658         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6659         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6660         gl_FUNC_REMAINDERF_WORKS): Likewise.
6661         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6662         gl_FUNC_REMAINDERL_WORKS): Likewise.
6663         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6664         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6666         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6669         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6670         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6671         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6672         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6673         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6674         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6675         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6678         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6679         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6681         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6682         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6683         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6684         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6685         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6686         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6687         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6688         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6689         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6690         Likewise.
6691         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6692         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6693         Windows. Enable also on Autoconf 2.70.
6694         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6695         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6696         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6697         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6698         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6699         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6700         for native Windows.
6701         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6702         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6704 2017-07-13  Bruno Haible  <bruno@clisp.org>
6706         Improve cross-compilation guesses for native Windows.
6707         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6708         Windows.
6709         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6710         memchr.m4.
6711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6713 2017-07-13  Bruno Haible  <bruno@clisp.org>
6715         Improve cross-compilation guesses for native Windows.
6716         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6717         native Windows.
6718         (gl_FUNC_FFLUSH): Update accordingly.
6719         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6720         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6722 2017-07-11  Bruno Haible  <bruno@clisp.org>
6724         More systematic m4 quoting and indentation.
6725         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6726         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6727         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6729         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6730         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6731         gl_WINSIZE_IN_PTEM): Likewise.
6732         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6733         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6734         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6735         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6736         Correct indentation.
6737         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6738         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6739         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6742         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6744 2017-07-10  Bruno Haible  <bruno@clisp.org>
6746         round, roundf: Avoid compiler warning in configure test.
6747         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6750 2017-07-10  Bruno Haible  <bruno@clisp.org>
6752         getlogin tests: Avoid #ifdefs when sharing code between modules.
6753         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6754         * modules/getlogin-tests (Files): Likewise. Remove
6755         tests/test-getlogin_r.c.
6756         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6757         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6758         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6759         getlogin().
6761 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6763         getlogin: don’t assume one name per uid
6764         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6765         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6766         (ttyname): Remove test.
6767         * modules/getlogin_r-tests (ttyname): Remove test.
6768         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6769         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6770         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6771         getlogin rather than getlogin_r.  This avoids code duplication.
6772         (main): Use isatty and fstat rather than ttyname and stat.
6773         Use getpwnam instead of getpwuid, to be portable to test platforms
6774         that have multiple login names for the same uid.
6776 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6777             Bruno Haible  <bruno@clisp.org>
6779         glob: Fix more memory leaks.
6780         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6781         returning.
6782         Reported by Tim Rühsen.
6784 2017-07-10  Bruno Haible  <bruno@clisp.org>
6786         Make sure $host and $host_os are defined when used.
6787         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6788         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6789         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6790         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6791         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6793         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6794         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6795         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6796         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6797         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6800         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6801         m4_ifdef block.
6803 2017-07-09  Bruno Haible  <bruno@clisp.org>
6805         *printf: Fix cross-compilation guess for Solaris.
6806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6807         2010-12-21.
6809 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6810             Bruno Haible  <bruno@clisp.org>
6812         vasnprintf: port to macOS 10.13
6813         Problem reported by comex in:
6814         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6815         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6817 2017-07-06  Bruno Haible  <bruno@clisp.org>
6819         imaxdiv tests: Fix logic.
6820         * tests/test-imaxdiv.c (main): Use == instead of =.
6821         Reported by Coverity.
6823 2017-07-06  Bruno Haible  <bruno@clisp.org>
6825         uninorm/filter: Fix use-after-free bug.
6826         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6827         sortbuf == filter->sortbuf invariant.
6828         Reported by Coverity.
6830 2017-07-06  Bruno Haible  <bruno@clisp.org>
6832         glob: Fix more memory leaks.
6833         * lib/glob.c (glob): Free dirname before returning.
6834         Reported by Coverity and Tim Rühsen.
6836 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6838         parse-datetime: fix uninit var bug
6839         Reported by Bruno Haible in:
6840         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6841         * lib/parse-datetime.y (parse_datetime2): Do not use
6842         uninitialized.
6844 2017-07-05  Bruno Haible  <bruno@clisp.org>
6846         doc: Update for MSVC 14.
6847         * doc/posix-headers/*.texi: Add info about MSVC 14.
6848         * doc/posix-functions/*.texi: Likewise.
6849         * doc/pastposix-functions/*.texi: Likewise.
6850         * doc/glibc-headers/*.texi: Likewise.
6851         * doc/glibc-functions/*.texi: Likewise.
6853 2017-07-05  Bruno Haible  <bruno@clisp.org>
6855         sched: Fix build failure on native Windows (regression from 2017-06-19).
6856         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6858 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6860         stdioext: Port to OpenVMS.
6861         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6862         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6863         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6864         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6865         * lib/fpurge.c (fpurge): Likewise.
6866         * lib/freadable.c (freadable): Likewise.
6867         * lib/freadahead.c (freadahead): Likewise.
6868         * lib/freading.c (freading): Likewise.
6869         * lib/freadptr.c (freadptr): Likewise.
6870         * lib/freadseek.c (freadseek): Likewise.
6871         * lib/fseeko.c (fseeko): Likewise.
6872         * lib/fseterr.c (fseterr): Likewise.
6873         * lib/fwritable.c (fwriteable): Likewise.
6874         * lib/fwriting.c (fwriting): Likewise.
6876 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6878         glob: Declare variables at the very start of their scope.
6879         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6880         its separate scope, so the functions will compile on Haiku.
6882 2017-07-01  Bruno Haible  <bruno@clisp.org>
6884         logbl: Work around a glibc bug on PowerPC64LE.
6885         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6886         numbers.
6887         * doc/posix-functions/logbl.texi: Update.
6889 2017-06-29  Bruno Haible  <bruno@clisp.org>
6891         stat, fstat: Compile stat-w32.c only on platforms that need it.
6892         Suggested by Paul Eggert.
6893         * modules/stat (configure.ac): Request stat-w32.o only on native
6894         Windows.
6895         * modules/fstat (configure.ac): Likewise.
6897 2017-06-25  Bruno Haible  <bruno@clisp.org>
6899         stat: Improve last change.
6900         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6902 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6904         stat: port to xlc 12.01
6905         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6906         12.01 complains "Compilation unit is empty."
6908 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6910         xalloc-oversized: port to icc
6911         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6912         __builtin_mul_overflow if ICC is defined, as this results in
6913         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6914         20170213.
6916 2017-06-19  Bruno Haible  <bruno@clisp.org>
6918         classpath: Avoid including config.h twice, as it produces warnings.
6919         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6920         * lib/classpath.h: Conditionalize the include of config.h.
6922 2017-06-19  Bruno Haible  <bruno@clisp.org>
6923             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6925         sched: Fix compilation failure on OpenVMS.
6926         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6927         test whether <pthread.h> exists and defines struct sched_param.
6928         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6930 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6932         diffseq: port to GCC 7 with --enable-gcc-warnings
6933         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6934         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6935         not complain about big_snake being defined but not used.
6937 2017-06-15  Bruno Haible  <bruno@clisp.org>
6939         gettext-h: Update theoretical condition for use of variable size arrays.
6940         Reported by Paul Eggert.
6941         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6942         to include the theoretical condition for availability of variable size
6943         arrays, if we could trust the value of __STDC_VERSION__.
6945 2017-06-12  Bruno Haible  <bruno@clisp.org>
6947         Relicense some modules under LGPLv2+.
6948         Daiki Ueno's approval is in
6949         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6950         * modules/uniwidth/base (License): Change to LGPLv2+.
6951         * modules/uniwidth/width (License): Likewise.
6953 2017-06-11  Bruno Haible  <bruno@clisp.org>
6955         localename: Fix test failure on DragonFly BSD.
6956         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6957         like FreeBSD.
6959 2017-06-11  Bruno Haible  <bruno@clisp.org>
6961         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6962         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6963         * lib/float.in.h: Likewise.
6964         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6966 2017-06-11  Bruno Haible  <bruno@clisp.org>
6968         gnulib-tool: Clean up after autotools.
6969         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6970         useless directory left over by the Autotools.
6972 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6974         getopt-posix: port to glibc 2.25.90
6975         Problem reported by Daniel P. Berrange in:
6976         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6977         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6978         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6979         #undef if __GETOPT_PREFIX is defined.
6981 2017-06-11  Bruno Haible  <bruno@clisp.org>
6983         strtod-obsolete: Fix license.
6984         * modules/strtod-obsolete (License): Change to LGPL.
6986 2017-06-10  Jim Meyering  <meyering@fb.com>
6988         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6989         * lib/savewd.c (FALLTHROUGH): Define.
6990         (savewd_save, savewd_restore): Use this, rather than a comment,
6991         whenever one switch case falls through into the next.
6993 2017-06-08  Bruno Haible  <bruno@clisp.org>
6995         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6996         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6997         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6998         case.
7000 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7002         doc: remove robots, add prereqs
7003         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
7004         builds.  Simon's robot site does not seem to be up, so remove
7005         mentions of it for now.
7007 2017-06-08  Bruno Haible  <bruno@clisp.org>
7009         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
7010         * gnulib-tool (func_symlink_target): New function, extracted from
7011         func_symlink.
7012         (func_symlink, func_symlink_if_changed): Use it.
7014 2017-06-08  Bruno Haible  <bruno@clisp.org>
7016         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
7017         * gnulib-tool (func_ln_s): Determine cp_src correctly.
7019 2017-06-07  Bruno Haible  <bruno@clisp.org>
7021         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
7022         Reported by John E. Malmberg <wb8tyw@gmail.com> in
7023         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
7024         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
7025         override, pass 2 arguments to getcwd, not 3.
7027 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7029         same-inode: port better to VMS 8.2 and later
7030         Problem reported by John E. Malmberg in:
7031         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
7032         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
7033         Use the usual POSIX definition.
7034         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
7036 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7038         error: fix POSIX violation for va_end
7039         Problem reported by Bruno Haible in:
7040         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
7041         * lib/error.c (error_tail): Do not call va_end here.
7042         (error, error_at_line): Call it here instead.
7044 2017-05-28  Bruno Haible  <bruno@clisp.org>
7046         c-strtod: Make it usable in C++ mode.
7047         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
7049 2017-05-25  Jim Meyering  <meyering@fb.com>
7051         quotearg: fix compilation failure due to FALLTHROUGH misuse
7052         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
7053         macro back to /* fall through */ comment.  The macro can apply only
7054         to a following case statement.  Reported by Assaf Gordon.
7056 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7058         intprops: port to recent icc
7059         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
7060         but does not support __builtin_add_overflow etc.
7061         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
7062         Define to 0.
7064 2017-05-23  Karl Berry  <karl@freefriends.org>
7066         * config/srclist.txt (iconv.m4): sync broken, comment out
7067         until (hopefully) the next gettext release.
7069 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7071         Remove repeated words in comments.
7073 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
7075         fallthrough: reinstate a FALLTHROUGH instance in quotearg
7076         quotearg.c: Reinstate this instance which is significant
7077         when the if branch is not taken.
7079 2017-05-21  Bruno Haible  <bruno@clisp.org>
7081         gnulib-tool: Add options to create hard links.
7082         * gnulib-tool (func_usage): Document options --hardlink,
7083         --local-hardlink, --more-hardlinks.
7084         (func_symlink): Renamed from func_ln.
7085         (func_symlink_if_changed): Renamed from func_ln_if_changed.
7086         (func_hardlink): New function.
7087         (copymode, lcopymode): New variables.
7088         (symbolic, lsymbolic): Remove variables.
7089         (Options): Implement options --hardlink, --local-hardlink,
7090         --more-hardlinks.
7091         (func_should_link): Renamed from func_should_symlink. Set copyaction.
7092         (func_add_file, func_update_file): Update invocation of
7093         func_should_link. Invoke func_hardlink when appropriate.
7094         (func_import): Update comments.
7095         (func_create_testdir): Update invocation of func_should_link. Invoke
7096         func_hardlink when appropriate.
7097         Finally, invoke 'git update-index --refresh' to mitigate the effects of
7098         the hard links on git.
7100 2017-05-20  Bruno Haible  <bruno@clisp.org>
7102         argp: Simplify bit manipulation.
7103         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
7104         on a signed integer type.
7106 2017-05-20  Bruno Haible  <bruno@clisp.org>
7108         Avoid wrong configure results with gcc -fsanitize=address.
7109         This completes the work done on 2016-02-06 on this topic.
7110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
7111         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7113         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7114         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
7115         returning.
7116         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7117         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
7118         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7119         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7120         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7121         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
7123         free allocated memory before returning.
7124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7125         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7126         objects before returning.
7127         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7128         returning.
7130 2017-05-20  Bruno Haible  <bruno@clisp.org>
7132         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7133         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7135 2017-05-20  Bruno Haible  <bruno@clisp.org>
7137         argp, tsearch tests: Fix file list.
7138         * modules/argp-tests (Files): Add tests/macros.h.
7139         * modules/tsearch-tests (Files): Likewise.
7141 2017-05-20  Bruno Haible  <bruno@clisp.org>
7143         getopt-posix tests: Remove redundant include.
7144         * tests/test-getopt.h: Don't include "macros.h". It's already included
7145         by tests/test-getopt-main.h.
7147 2017-05-19  Jim Meyering  <meyering@fb.com>
7149         dfa: two small simplifications
7150         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7152 2017-05-18  Jim Meyering  <meyering@fb.com>
7154         fallthrough: update for GCC 7/8
7155         * lib/quotearg.c (FALLTHROUGH): New macro.
7156         Use it whenever one switch case falls through into the next,
7157         replacing "/* Fall through */" comments.  This exposed one
7158         instance of an unwarranted "fall through" comment: unwarranted
7159         because it preceded a "goto" label not a case statement.
7160         * lib/freopen-safer.c (freopen_safer): Likewise.
7161         * lib/fts.c (leaf_optimization_applies): Likewise.
7162         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7163         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7164         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7165         tests/macros.h for the definition.
7166         * tests/test-argp.c (group1_parser): Likewise.
7167         * tests/test-getopt.h (getopt_loop): Likewise.
7169 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7171         argp: fix shift bug
7172         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7173         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7175         argp: fix pointer-subtraction bug
7176         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7177         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7178         See the thread containing Bruno Haible’s report in:
7179         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7181 2017-05-19  Bruno Haible  <bruno@clisp.org>
7183         printf-posix tests: Avoid test failure with "gcc --coverage".
7184         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7185         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7186         than 5000000.
7187         * tests/test-fprintf-posix2.c (main): Likewise.
7189 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7191         closeout: don’t close stderr when sanitizing
7192         * NEWS: Document this.
7193         * lib/closeout.c (__has_feature): New macro, if not already defined.
7194         (SANITIZE_ADDRESS): New constant.
7195         (close_stdout): Don’t close stderr if sanitizing addresses.
7197 2017-05-19  Bruno Haible  <bruno@clisp.org>
7199         get-rusage-data tests: Avoid failure on Linux/glibc.
7200         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7201         on glibc systems.
7203 2017-05-18  Bruno Haible  <bruno@clisp.org>
7205         localename: Include necessary header files on Cygwin.
7206         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7207         where NL_LOCALE_NAME is defined.
7209 2017-05-18  Bruno Haible  <bruno@clisp.org>
7211         gettext: Update macros from gettext git.
7212         * m4/intldir.m4: Require Autoconf >= 2.60.
7213         * m4/progtest.m4: Fix typos in copyright notice.
7215 2017-05-18  Bruno Haible  <bruno@clisp.org>
7217         copy-file tests: Fix link error (regression from 2017-05-01).
7218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7219         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7220         $(LIB_CLOCK_GETTIME).
7222 2017-05-18  Bruno Haible  <bruno@clisp.org>
7224         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7225         (regression from 2017-02-13).
7226         * lib/unicase/special-casing.in.h: Renamed from
7227         lib/unicase/special-casing.h.
7228         * modules/unicase/special-casing (Files): Add
7229         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7230         (Makefile.am): Add rule for generating unicase/special-casing.h.
7231         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7232         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7233         not "special-casing.h".
7234         * lib/unicase/u*.c: Likewise.
7236 2017-05-17  Bruno Haible  <bruno@clisp.org>
7238         README: Don't ask people to read a TeXinfo file.
7239         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7240         * README: Tell people how to read the HTML formatted manual.
7242 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7244         parse-datetime: Fix memleak
7245         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7246         localtime_rz() failure.
7248 2017-05-16  Bruno Haible  <bruno@clisp.org>
7250         javacomp: Fix handle leak.
7251         Found by Coverity.
7252         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7254 2017-05-16  Bruno Haible  <bruno@clisp.org>
7256         relocate: Make it easier to reclaim allocated memory.
7257         * lib/relocatable.h (relocate2): New declaration/macro.
7258         * lib/relocatable.c (relocate2): New function.
7259         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7260         relocate2 function.
7261         * lib/localcharset.c (relocate2): Define fallback.
7262         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7263         allocated memory.
7264         * lib/javaversion.c (relocate2): Define fallback.
7265         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7266         allocated memory.
7268 2017-05-16  Bruno Haible  <bruno@clisp.org>
7270         relocate: Simplify EMX specific code.
7271         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7272         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7274 2017-05-16  Bruno Haible  <bruno@clisp.org>
7276         sigpipe tests: Fix file list.
7277         * modules/sigpipe-tests (Files): Add tests/macros.h.
7279 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7281         manywarnings: update for GCC 7
7282         * build-aux/gcc-warning.spec:
7283         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7284         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7285         requires a non-comment fallthrough attribute.  This is a bit
7286         cleaner than the comment versions.
7287         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7288         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7289         Use it whenever one switch case falls through into the next.
7290         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7291         Use FALLTHROUGH macro.
7293 2017-05-15  Bruno Haible  <bruno@clisp.org>
7295         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7296         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7297         @ALLOCA@, not @LTALLOCA@.
7299 2017-05-15  Bruno Haible  <bruno@clisp.org>
7301         sys_select: Avoid "was expanded before it was required" warning.
7302         * modules/sys_select (configure.ac): Require, not invoke,
7303         gl_HEADER_SYS_SELECT.
7305 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7307         gnulib-tool: improve GNU Make debugging
7308         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7309         Report autoconf diagnostics when it fails, in the output makefile.
7311 2017-05-14  Bruno Haible  <bruno@clisp.org>
7313         stat-time tests: Improve comment.
7314         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7316 2017-05-14  Bruno Haible  <bruno@clisp.org>
7318         same-inode: Adapt for windows-stat-inodes.
7319         * lib/same-inode.h: Include <sys/types.h>.
7320         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7321         * modules/same-inode (Depends-on): Add sys_types.
7323 2017-05-14  Bruno Haible  <bruno@clisp.org>
7325         windows-stat-inodes: New module.
7326         * m4/windows-stat-inodes.m4: New file.
7327         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7328         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7329         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7330         (_GL_WINDOWS_STAT_INODES): New macro.
7331         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7332         (GetFileInformationByHandleExFunc): New variable.
7333         (initialize): Initialize it.
7334         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7335         st_ino appropriately.
7336         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7337         a fallback, because it does not provide st_dev and st_ino values.
7338         * modules/fstat (Depends-on): Add 'verify'.
7339         * modules/windows-stat-inodes: New file.
7340         * doc/windows-stat-inodes.texi: New file.
7341         * doc/gnulib.texi: Include it.
7342         * doc/posix-headers/sys_stat.texi: Mention the new module.
7344 2017-05-14  Bruno Haible  <bruno@clisp.org>
7346         stat-time tests: Workaround for native Windows.
7347         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7348         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7349         New variables.
7350         (initialize_filenames): New function.
7351         (main): Invoke it.
7352         (cleanup, prepare_test): Update.
7354 2017-05-14  Bruno Haible  <bruno@clisp.org>
7356         stat-time: Adapt for windows-stat-timespec.
7357         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7358         entire st_ctim field.
7360 2017-05-13  Jim Meyering  <meyering@fb.com>
7362         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7363         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7364         file that uses the assume macro, claiming that verify.h is unused.
7366 2017-05-13  Bruno Haible  <bruno@clisp.org>
7368         Use symbolic values for _WIN32_WINNT.
7369         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7370         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7372 2017-05-13  Bruno Haible  <bruno@clisp.org>
7374         year2038: New module.
7375         * m4/year2038.m4: New file.
7376         * modules/year2038: New file.
7377         * doc/year2038.texi: New file.
7378         * doc/gnulib.texi: Include it.
7380 2017-05-13  Bruno Haible  <bruno@clisp.org>
7382         largefile: Simplify.
7383         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7384         of _GL_WINDOWS_64_BIT_ST_SIZE.
7386 2017-05-13  Bruno Haible  <bruno@clisp.org>
7388         largefile: Improve and document.
7389         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7390         the mingw headers already define 'stat' appropriately.
7391         * modules/largefile (Description): Clarify.
7392         * doc/largefile.texi: New file.
7393         * doc/gnulib.texi: Include it.
7394         * doc/posix-headers/sys_types.texi: Update.
7396 2017-05-13  Bruno Haible  <bruno@clisp.org>
7398         truncate: New module.
7399         * lib/unistd.in.h (truncate): New declaration.
7400         * lib/truncate.c: New file.
7401         * m4/truncate.m4: New file.
7402         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7403         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7404         REPLACE_TRUNCATE.
7405         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7406         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7407         * modules/truncate: New file.
7408         * tests/test-unistd-c++.cc (truncate): Test signature.
7409         * doc/posix-functions/truncate.texi: Mention the new module.
7411         * tests/test-truncate.c: New file.
7412         * modules/truncate-tests: New file.
7414 2017-05-13  Bruno Haible  <bruno@clisp.org>
7416         windows-stat-timespec: New module.
7417         * modules/windows-stat-timespec: New file.
7418         * m4/windows-stat-timespec.m4: New file.
7419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7420         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7421         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7422         fields st_atim, st_mtim, st_ctim.
7423         (st_atime, st_mtime, st_ctime): Define as macros.
7424         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7425         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7426         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7427         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7428         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7429         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7430         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7431         FILETIME to 'struct timespec', not 'time_t'.
7432         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7433         FILETIME to 'struct timespec', not 'time_t'.
7434         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7435         _GL_WINDOWS_STAT_TIMESPEC.
7436         * doc/windows-stat-timespec.texi: New file.
7437         * doc/gnulib.texi: Include it.
7439 2017-05-13  Bruno Haible  <bruno@clisp.org>
7441         windows-stat-override: New module.
7442         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7443         definition. Define GNULIB_defined_struct_stat.
7444         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7445         link error if this symbol is used and the corresponding module is not
7446         in use.
7447         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7448         GNULIB_OVERRIDES_STRUCT_STAT.
7449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7450         GNULIB_OVERRIDES_STRUCT_STAT.
7451         * modules/sys_stat (Makefile.am): Substitute
7452         GNULIB_OVERRIDES_STRUCT_STAT.
7453         * modules/windows-stat-override: New file.
7455 2017-05-13  Bruno Haible  <bruno@clisp.org>
7457         fstat: Fix module dependency conditions.
7458         * modules/fstat (Depends-on): Fix typo.
7460 2017-05-13  Bruno Haible  <bruno@clisp.org>
7462         stat, fstat: Complete removal of old native Windows code.
7463         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7464         * lib/fstat.c: Likewise.
7465         * lib/stat-w32.c: Likewise.
7467 2017-05-13  Bruno Haible  <bruno@clisp.org>
7469         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7470         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7472 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7474         getopt-posix: port to mingw
7475         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7476         Problem reported by Daniel P. Berrage in:
7477         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7479 2017-05-11  Bruno Haible  <bruno@clisp.org>
7481         gettimeofday: Increase precision on mingw.
7482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7483         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7484         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7485         GetSystemTimePreciseAsFileTime based implementation always.
7486         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7487         mingw.
7489 2017-05-11  Bruno Haible  <bruno@clisp.org>
7491         poll: Fix confusion between SOCKETs and FDs on native Windows.
7492         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7493         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7495 2017-05-11  Bruno Haible  <bruno@clisp.org>
7497         doc: Clarify doc about socket functions on native Windows.
7498         This reworks doc that was added on 2008-09-29.
7499         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7500         clearer wording.
7501         * doc/posix-functions/accept.texi: Use clearer wording.
7502         * doc/posix-functions/bind.texi: Likewise.
7503         * doc/posix-functions/connect.texi: Likewise.
7504         * doc/posix-functions/getpeername.texi: Likewise.
7505         * doc/posix-functions/getsockname.texi: Likewise.
7506         * doc/posix-functions/getsockopt.texi: Likewise.
7507         * doc/posix-functions/ioctl.texi: Likewise.
7508         * doc/posix-functions/listen.texi: Likewise.
7509         * doc/posix-functions/recv.texi: Likewise.
7510         * doc/posix-functions/recvfrom.texi: Likewise.
7511         * doc/posix-functions/send.texi: Likewise.
7512         * doc/posix-functions/sendto.texi: Likewise.
7513         * doc/posix-functions/setsockopt.texi: Likewise.
7514         * doc/posix-functions/shutdown.texi: Likewise.
7515         * doc/posix-functions/socket.texi: Likewise.
7517 2017-05-10  Bruno Haible  <bruno@clisp.org>
7519         poll: Fix link error on native Windows.
7520         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7522 2017-05-10  Bruno Haible  <bruno@clisp.org>
7524         time: Fix missing initialization of HAVE_TIMEZONE_T.
7525         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7526         here...
7527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7528         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7529         gl_HEADER_SYS_TIME_H_DEFAULTS.
7530         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7531         (configure.ac): Remove useless quoting.
7533 2017-05-10  Bruno Haible  <bruno@clisp.org>
7535         Implement a way to opt out from MSVC support, part 2.
7536         * modules/msvc-inval (Include): Document recommended idiom.
7537         * modules/msvc-nothrow (Include): Likewise.
7539         Implement a way to opt out from MSVC support.
7540         This is useful for Emacs.
7541         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7542         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7543         * lib/error.c: Likewise.
7544         * lib/fcntl.c: Likewise.
7545         * lib/flock.c: Likewise.
7546         * lib/fstat.c: Likewise.
7547         * lib/fsync.c: Likewise.
7548         * lib/ioctl.c: Likewise.
7549         * lib/isapipe.c: Likewise.
7550         * lib/lseek.c: Likewise.
7551         * lib/nonblocking.c: Likewise.
7552         * lib/poll.c: Likewise.
7553         * lib/select.c: Likewise.
7554         * lib/sockets.h: Likewise.
7555         * lib/sockets.c: Likewise.
7556         * lib/stdio-read.c: Likewise.
7557         * lib/stdio-write.c: Likewise.
7558         * lib/utimens.c: Likewise.
7559         * lib/w32sock.h: Likewise.
7560         * lib/w32spawn.h: Likewise.
7561         * tests/test-cloexec.c: Likewise.
7562         * tests/test-dup-safer.c: Likewise.
7563         * tests/test-dup2.c: Likewise.
7564         * tests/test-dup3.c: Likewise.
7565         * tests/test-fcntl.c: Likewise.
7566         * tests/test-pipe.c: Likewise.
7567         * tests/test-pipe2.c: Likewise.
7568         * lib/ftruncate.c: Likewise.
7569         (chsize_nothrow): Renamed from chsize.
7570         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7571         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7572         * lib/close.c: Likewise.
7573         * lib/dup.c: Likewise.
7574         * lib/fclose.c: Likewise.
7575         * lib/raise.c: Likewise.
7576         * tests/test-fgetc.c: Likewise.
7577         * tests/test-fputc.c: Likewise.
7578         * tests/test-fread.c: Likewise.
7579         * tests/test-fwrite.c: Likewise.
7580         * lib/getdtablesize.c: Likewise.
7581         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7582         * lib/isatty.c: Don't include msvc-inval.h if
7583         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7584         Include <io.h> as an alternative to msvc-nothrow.h.
7585         * lib/read.c: Likewise.
7586         * lib/write.c: Likewise.
7587         * lib/dup2.c: Likewise.
7588         (dup2_nothrow): New function.
7589         (ms_windows_dup2): Use it.
7590         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7591         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7592         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7593         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7594         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7595         * m4/read.m4 (gl_FUNC_READ): Likewise.
7596         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7597         * doc/windows-without-msvc.texi: New file.
7598         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7599         section.
7601 2017-05-10  Bruno Haible  <bruno@clisp.org>
7603         wait-process: Adjust native Windows support.
7604         * lib/wait-process.c: Use the usual condition for recognizing a native
7605         Windows platform.
7607 2017-05-10  Bruno Haible  <bruno@clisp.org>
7609         doc: New chapter "Native Windows Support".
7610         * doc/gnulib.texi (Native Windows Support): New chapter.
7611         * doc/windows-libtool.texi: Small wording changes.
7612         * doc/windows-sockets.texi: Small wording and formatting changes.
7614 2017-05-10  Bruno Haible  <bruno@clisp.org>
7616         doc: Move section "Library version handling".
7617         * doc/gnulib.texi: Move section "Library version handling"
7618         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7620 2017-05-10  Bruno Haible  <bruno@clisp.org>
7622         doc: Move section "Running self-tests under valgrind".
7623         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7624         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7626 2017-05-10  Bruno Haible  <bruno@clisp.org>
7628         doc: New chapter "Build Infrastructure Modules".
7629         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7631 2017-05-10  Bruno Haible  <bruno@clisp.org>
7633         Prepare for reordering sections in the manual.
7634         * doc/gnulib.texi: Move several sections to separate files. Include
7635         these files.
7636         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7637         * doc/obsolete.texi: Likewise.
7638         * doc/extra-tests.texi: Likewise.
7639         * doc/transversal.texi: Likewise.
7640         * doc/namespace.texi: Likewise.
7641         * doc/check-version.texi: Likewise.
7642         * doc/windows-sockets.texi: Likewise.
7643         * doc/windows-libtool.texi: Likewise.
7644         * doc/licenses-texi.texi: Likewise.
7645         * doc/build-automation.texi: Likewise.
7646         * doc/c-locale.texi: Likewise.
7648 2017-05-10  Bruno Haible  <bruno@clisp.org>
7650         Fix instructions how to update manual on www.gnu.org.
7651         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7653 2017-05-09  Bruno Haible  <bruno@clisp.org>
7655         tzset: Expand comment about TZ problem on native Windows.
7656         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7657         Paul Eggert.
7658         * lib/ctime.c (rpl_ctime): Likewise.
7659         * lib/localtime.c (rpl_localtime): Likewise.
7660         * lib/mktime.c (mktime): Likewise.
7661         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7662         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7664 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7666         intprops: don’t depend on ‘verify’
7667         Problem reported by Ævar Arnfjörð Bjarmason in:
7668         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7669         * lib/intprops.h: Do not include verify.h, and move compile-time
7670         checks from here ...
7671         * tests/test-intprops.c (main): ... to here, if they’re not here
7672         already.  Check widths of other standard integer types.
7673         * modules/intprops (Depends-on): Remove ‘verify’.
7675 2017-05-07  Bruno Haible  <bruno@clisp.org>
7677         utimens: On native Windows, support 100ns resolution also if fd < 0.
7678         * lib/utime.in.h: Include <time.h>.
7679         (_gl_utimens_windows): New declaration.
7680         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7681         (utime): Invoke it.
7682         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7683         instead of utime.
7684         * modules/utime (Depends-on): Add 'time'.
7686 2017-05-07  Bruno Haible  <bruno@clisp.org>
7688         utimens: Improve error code on native Windows.
7689         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7690         error code EACCES, not EINVAL.
7692 2017-05-07  Bruno Haible  <bruno@clisp.org>
7694         utime: Handle more Windows error codes.
7695         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7696         Based on explanations by Billy O'Neal.
7698 2017-05-05  Bruno Haible  <bruno@clisp.org>
7700         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7701         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7702         union.
7703         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7704         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7705         value of cipher->IV.
7707 2017-05-05  Bruno Haible  <bruno@clisp.org>
7709         wctype-h-c++-tests: Update.
7710         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7712 2017-05-05  Bruno Haible  <bruno@clisp.org>
7714         wchar-c++-tests: Update.
7715         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7717 2017-05-05  Bruno Haible  <bruno@clisp.org>
7719         utime-h-c++-tests: New module.
7720         * tests/test-utime-h-c++.cc: New file.
7721         (utime): Declare, missing since 2017-04-30.
7722         * modules/utime-h-c++-tests: New file.
7724 2017-05-05  Bruno Haible  <bruno@clisp.org>
7726         unistd-c++-tests: Update.
7727         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7728         (read): Declare, missing since 2011-04-15.
7729         (sethostname): Declare, missing since 2011-12-03.
7731 2017-05-05  Bruno Haible  <bruno@clisp.org>
7733         time-c++-tests: Update.
7734         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7735         (localtime, gmtime): Declare, missing since 2017-04-30.
7736         (ctime): Declare, missing since 2017-04-30.
7737         (strftime): Declare, missing since 2017-04-30.
7738         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7739         2015-07-24.
7741 2017-05-05  Bruno Haible  <bruno@clisp.org>
7743         sys_resource-c++-tests: New module.
7744         * tests/test-sys_resource-c++.cc: New file.
7745         (getrusage): Declare, missing since 2012-04-13.
7746         * modules/sys_resource-c++-tests: New file.
7748 2017-05-05  Bruno Haible  <bruno@clisp.org>
7750         strings-c++-tests: New module.
7751         * tests/test-strings-c++.cc: New file.
7752         (ffs): Declare, missing since 2011-07-12.
7753         * modules/strings-c++-tests: New file.
7755 2017-05-05  Bruno Haible  <bruno@clisp.org>
7757         string-c++-tests: Update.
7758         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7759         (ffsll): Declare, missing since 2011-07-15.
7761 2017-05-05  Bruno Haible  <bruno@clisp.org>
7763         stdlib-c++-tests: Update.
7764         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7765         2011-10-18.
7766         (ptsname_r): Declare, missing since 2011-11-07.
7767         (qsort_r): Declare, missing since 2014-08-29.
7768         (random, srandom, initstate, setstate): Declare, missing since
7769         2012-01-14.
7770         (secure_getenv): Declare, missing since 2013-02-05.
7772 2017-05-05  Bruno Haible  <bruno@clisp.org>
7774         stdio-c++-tests: Update.
7775         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7777 2017-05-05  Bruno Haible  <bruno@clisp.org>
7779         signal-h-c++-tests: Update.
7780         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7782 2017-05-05  Bruno Haible  <bruno@clisp.org>
7784         math-c++-tests: Update.
7785         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7786         (fma): Declare, missing since 2011-10-17.
7787         (fmal): Declare, missing since 2011-10-17.
7789 2017-05-05  Bruno Haible  <bruno@clisp.org>
7791         locale-c++-tests: Update.
7792         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7793         2012-03-25.
7795 2017-05-05  Bruno Haible  <bruno@clisp.org>
7797         inttypes-c++-tests: New module.
7798         * tests/test-inttypes-c++.cc: New file.
7799         (strtoimax): Declare, missing since 2012-01-05.
7800         (strtoumax): Declare, missing since 2012-01-05.
7801         * modules/inttypes-c++-tests: New file.
7803 2017-05-05  Bruno Haible  <bruno@clisp.org>
7805         dirent-c++-tests: Update.
7806         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7807         (rewinddir): Declare, missing since 2011-09-13.
7808         (dirfd): Declare, missing since 2010-03-08.
7810 2017-05-04  Bruno Haible  <bruno@clisp.org>
7812         argp: Fix mistake in 2017-04-23 commit.
7813         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7814         assume that strerror_r returns 'int', not 'char *'.
7816 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7818         argp: Fix typo.
7819         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7821 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7823         utimens: port to Emacs + MS-Windows
7824         Skip the new MS-Windows-specific code if Emacs.
7825         * lib/utimens.c [EMACS_CONFIGUATION]:
7826         Avoid new MS-Windows-specific code.
7827         (USE_SETFILETIME): New macro.
7828         (fdutimens): Use it.
7830 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7832         tzset: update doc for TZ problems on MS-Windows
7833         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7834         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7835         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7836         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7837         * doc/posix-functions/wcsftime.texi:
7838         Mention some issues with TZ under MS-Windows.
7840 2017-05-01  Bruno Haible  <bruno@clisp.org>
7842         copy-file: Fix build error on mingw.
7843         * modules/copy-file (Depends-on): Add 'close'.
7845 2017-05-01  Bruno Haible  <bruno@clisp.org>
7847         tzset: Work around TZ problem on native Windows.
7848         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7849         Windows, set REPLACE_TZSET to 1.
7850         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7851         invoke '_tzset' instead of 'tzset'.
7852         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7854         * modules/time_rz (Depends-on): Add tzset.
7855         * lib/time_rz.c (tzset): Remove fallback definition.
7856         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7858 2017-05-01  Bruno Haible  <bruno@clisp.org>
7860         mktime: Fix dependencies.
7861         * modules/mktime (Depends-on): Add 'time'.
7863 2017-05-01  Bruno Haible  <bruno@clisp.org>
7865         New module 'localtime-buffer', split off from module 'gettimeofday'.
7866         * lib/localtime-buffer.h: New file.
7867         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7868         * lib/time.in.h (tzset): New declaration.
7869         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7870         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7871         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7872         moved to lib/localtime-buffer.c or lib/tzset.c.
7873         * m4/localtime-buffer.m4: New file.
7874         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7875         HAVE_TZSET, REPLACE_TZSET.
7876         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7877         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7878         gl_LOCALTIME_BUFFER_NEEDED.
7879         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7880         since 2007-01-18.
7881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7882         tzset.
7883         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7884         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7885         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7886         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7887         * modules/localtime-buffer: New file.
7888         * modules/time (Depends-on): Remove 'gettimeofday'.
7889         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7890         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7891         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7892         (Files): Add lib/tzset.c.
7893         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7894         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7895         gl_TIME_MODULE_INDICATOR.
7896         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7898 2017-05-01  Bruno Haible  <bruno@clisp.org>
7900         copy-file: Preserve sub-second time stamps.
7901         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7902         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7903         transport the time stamps from the original file to the destination
7904         file.
7905         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7906         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7907         utime-h.
7909 2017-05-01  Bruno Haible  <bruno@clisp.org>
7911         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7912         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7913         also on MSVC.
7914         Reported by Eli Zaretskii <eliz@gnu.org>.
7916 2017-05-01  Bruno Haible  <bruno@clisp.org>
7918         wchar: Fix compilation error with the original mingw.org mingw.
7919         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7920         <stddef.h> instead.
7921         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7922         gl_WCTYPE_H.
7923         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7924         gl_TYPE_WINT_T_PREREQ instead.
7925         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7926         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7927         Reported by Eli Zaretskii <eliz@gnu.org>.
7929 2017-04-30  Bruno Haible  <bruno@clisp.org>
7931         utimecmp: Add support for native Windows.
7932         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7934 2017-04-30  Bruno Haible  <bruno@clisp.org>
7936         utimens: Add support for native Windows.
7937         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7938         (fdutimens): Provide a native Windows implementation, like utime.c with
7939         added tv_nsec support.
7940         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7941         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7943 2017-04-30  Bruno Haible  <bruno@clisp.org>
7945         wcsftime: New module.
7946         * lib/wchar.in.h (wcsftime): New declaration.
7947         * lib/wcsftime.c: New file.
7948         * m4/wcsftime.m4: New file.
7949         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7950         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7951         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7953         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7954         * modules/wcsftime: New file.
7955         * doc/posix-functions/wcsftime.texi: Mention the new module.
7957 2017-04-30  Bruno Haible  <bruno@clisp.org>
7959         strftime-fixes: New module.
7960         * lib/time.in.h (strftime): New declaration.
7961         * lib/strftime-fixes.c: New file.
7962         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7963         (gl_FUNC_STRFTIME): Remove macro.
7964         * m4/strftime-fixes.m4: New file.
7965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7966         REPLACE_STRFTIME.
7967         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7968         REPLACE_STRFTIME.
7969         * modules/strftime-fixes: New file.
7970         * doc/posix-functions/strftime.texi: Mention the new module.
7972 2017-04-30  Bruno Haible  <bruno@clisp.org>
7974         mktime: Work around TZ problem on native Windows.
7975         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7976         from the native Windows workaround.
7977         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7978         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7979         'guessing no'.
7980         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7981         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7982         NEED_MKTIME_WINDOWS.
7983         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7984         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7985         NEED_MKTIME_INTERNAL.
7986         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7987         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7988         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7989         not REPLACE_MKTIME.
7990         * doc/posix-functions/mktime.texi: Mention the native Windows
7991         workaround.
7993 2017-04-30  Bruno Haible  <bruno@clisp.org>
7995         localtime: New module.
7996         * lib/time.in.h (localtime): Declare also if requested by module
7997         'localtime'.
7998         * lib/localtime.c: New file.
7999         * m4/localtime.m4: New file.
8000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
8001         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
8002         * modules/localtime: New file.
8003         * doc/posix-functions/localtime.texi: Mention the new module.
8005 2017-04-30  Bruno Haible  <bruno@clisp.org>
8007         ctime: New module.
8008         * lib/time.in.h (ctime): New declaration.
8009         * lib/ctime.c: New file.
8010         * m4/ctime.m4: New file.
8011         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
8012         REPLACE_CTIME.
8013         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
8014         * modules/ctime: New file.
8015         * doc/posix-functions/ctime.texi: Mention the new module.
8017 2017-04-30  Bruno Haible  <bruno@clisp.org>
8019         gettimeofday: Provide higher resolution on native Windows.
8020         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
8021         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
8022         (initialize): Initialize it.
8023         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
8024         'struct timeval'. Don't use _ftime().
8025         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
8026         <sys/timeb.h> and _ftime.
8028 2017-04-30  Bruno Haible  <bruno@clisp.org>
8030         Document the problem with the Cygwin environment variable TZ.
8031         * doc/posix-functions/tzset.texi: Add note about TZ.
8032         * doc/posix-functions/ctime.texi: Likewise.
8033         * doc/posix-functions/localtime.texi: Likewise.
8034         * doc/posix-functions/mktime.texi: Likewise.
8035         * doc/posix-functions/strftime.texi: Likewise.
8036         * doc/posix-functions/wcsftime.texi: Likewise.
8037         * doc/pastposix-functions/ftime.texi: Likewise.
8039 2017-04-30  Bruno Haible  <bruno@clisp.org>
8041         utime-tests: New module.
8042         * tests/test-utime.c: New file, based on tests/test-utimens.h.
8043         * tests/test-utimens-common.h: Include <sys/stat.h>.
8044         * modules/utime-tests: New file.
8046 2017-04-29  Bruno Haible  <bruno@clisp.org>
8048         utime: New module.
8049         * lib/utime.in.h: Add comment for snippets.
8050         (utime): New declaration.
8051         * lib/utime.c: New file.
8052         * m4/utime.m4: New file.
8053         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
8054         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
8055         REPLACE_UTIME.
8056         * modules/utime-h (Depends-on): Add snippets.
8057         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
8058         Insert snippets.
8059         * modules/utime: New file.
8060         * doc/posix-functions/utime.texi: Mention the new module.
8062 2017-04-29  Bruno Haible  <bruno@clisp.org>
8064         utime-h: Modernize handling of 'struct utimbuf'.
8065         * lib/utime.in.h: Include next <utime.h> if it exists.
8066         (utimbuf): Define to _utimbuf on native Windows.
8067         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
8068         Set UTIME_H on native Windows.
8069         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
8070         * modules/utime-h (Depends-on): Add include_next.
8071         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
8072         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
8074         * lib/utimens.c (utimbuf): Remove fallback definition.
8075         * m4/utimens.m4 (gl_UTIMENS): Don't require
8076         gl_CHECK_TYPE_STRUCT_UTIMBUF.
8077         * m4/utimbuf.m4: Remove file.
8078         * modules/utimens (Files): Remove m4/utimbuf.m4.
8080 2017-04-29  Bruno Haible  <bruno@clisp.org>
8082         Make use of module 'utime-h'.
8083         * modules/copy-file (Depends-on): Add utime-h.
8084         * lib/copy-file.c: Assume that <utime.h> exists.
8085         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
8087         * modules/utimens (Depends-on): Add utime-h.
8088         * lib/utimens.c: Assume that <utime.h> exists.
8090 2017-04-29  Bruno Haible  <bruno@clisp.org>
8092         utime-h: New module.
8093         * m4/utime_h.m4: New file.
8094         * lib/utime.in.h: New file.
8095         * modules/utime-h: New file.
8096         * doc/posix-headers/utime.texi: Mention the new module.
8098         * tests/test-utime-h.c: New file.
8099         * modules/utime-h-tests: New file.
8101 2017-04-30  Bruno Haible  <bruno@clisp.org>
8103         Fix a few typos.
8104         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
8105         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
8106         * doc/posix-functions/fstat.texi: Fix a plural typo.
8107         * doc/posix-functions/stat.texi: Likewise.
8108         * m4/include_next.m4: Update comments.
8110 2017-04-29  Bruno Haible  <bruno@clisp.org>
8112         error: Fix mistake in 2017-04-23 commit.
8113         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
8114         assume that strerror_r returns 'int', not 'char *'.
8116 2017-04-29  Bruno Haible  <bruno@clisp.org>
8118         stat: Fix time_t values and other problems on native Windows platforms.
8119         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
8120         implementations of stat().
8121         * lib/stat.c: Include filename.h instead of dosname.h. Include
8122         malloca.h, stat-w32.h.
8123         (is_unc_root): New function.
8124         (rpl_stat): New implementation for native Windows. Remove
8125         REPLACE_FUNC_STAT_DIR code.
8126         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8127         Don't define REPLACE_FUNC_STAT_DIR.
8128         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8129         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8130         (Depends-on): Remove dosname. Add filename, malloca.
8131         (configure.ac): Also compile lib/stat-w32.c.
8133 2017-04-29  Bruno Haible  <bruno@clisp.org>
8135         fstat: Fix time_t values on native Windows platforms.
8136         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8137         * lib/stat-w32.h: New file.
8138         * lib/stat-w32.c: New file.
8139         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8140         stat-w32.h instead.
8141         (fstat_nothrow): Remove function.
8142         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8143         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8144         always.
8145         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8146         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8147         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8148         (configure.ac): Also compile lib/stat-w32.c.
8150 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8152         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8153         Problem reported by Assaf Gordon and Gavin Smith in:
8154         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8155         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8156         #define this, too.
8158 2017-04-29  Bruno Haible  <bruno@clisp.org>
8160         strerror_r-posix: Fixes for MSVC 14.
8161         * lib/strerror_r.c: Include <stdarg.h>.
8162         (strerror_r): Provide error messages for errno values 100...140.
8163         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8165 2017-04-28  Bruno Haible  <bruno@clisp.org>
8167         noreturn: New module.
8168         * lib/noreturn.h: New file.
8169         * modules/noreturn: New file.
8170         * tests/test-noreturn.c: New file.
8171         * modules/noreturn-tests: New file.
8172         * tests/test-noreturn-c++.cc: New file.
8173         * modules/noreturn-c++-tests: New file.
8175 2017-04-27  Bruno Haible  <bruno@clisp.org>
8177         wctype-h: Fix compilation error with the original mingw.org mingw.
8178         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8179         HAVE_CRTDEFS_H.
8180         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8181         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8182         <stddef.h> instead.
8183         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8185 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8187         nap.h: Fix compilation on non windows platforms
8188         * tests/nap.h: Move misplaced endif.
8190 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8191         and Paul Eggert  <eggert@cs.ucla.edu>
8193         time_rz: fix heap buffer overflow vulnerability
8194         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8195         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8196         whether there is enough buffer space available, thus avoiding
8197         the problematic promotion of signed to unsigned causing an invalid
8198         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8199         the start of the buffer.
8200         * tests/test-parse-datetime.c (main): Add a test case written by
8201         Paul Eggert, which overwrites enough of the heap so that
8202         standard glibc will fail with "free(): invalid pointer"
8203         without the patch applied.
8205 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8207         xalloc: add missing integer overflow check
8208         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8209         overflow when P is null.
8211 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8213         parse-datetime: make it standalone
8214         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8215         (_GL_ATTRIBUTE_FORMAT): New macro.
8216         These are needed to get './gnulib-tool --test parse-datetime' to work.
8218 2017-04-23  Bruno Haible  <bruno@clisp.org>
8220         nap.h: Port to native Windows.
8221         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8222         use nap_fd instead. On native Windows, close and reopen nap_fd.
8223         (nap_works): Don't compare the ctimes, because on native Windows, these
8224         are the creation times.
8225         (nap): Update.
8227 2017-04-23  Bruno Haible  <bruno@clisp.org>
8229         nap.h: Fix logic.
8230         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8232 2017-04-23  Bruno Haible  <bruno@clisp.org>
8234         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8235         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8236         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8237         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8238         * lib/argp-help.c (__argp_failure): Likewise.
8240 2017-04-23  Bruno Haible  <bruno@clisp.org>
8242         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8243         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8244         * lib/strerror_r.c: Likewise.
8246 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8248         Target a C99 subset, not a C89 subset
8249         For many years Gnulib has targeted C89 and has resisted using C99
8250         features, as some Gnulib-using programs still wanted to target
8251         C89.  As this no longer seems to be the case, relax the porting
8252         requirements to allow some C99 features.  This is merely a change
8253         to the documentation, to give other Gnulib developers a chance to
8254         weigh in on the topic.
8255         * doc/extern-inline.texi (extern inline):
8256         * doc/gnulib-readme.texi (Portability guidelines):
8257         * doc/gnulib-tool.texi (Initial import):
8258         * doc/gnulib.texi (Header files):
8259         Modernize to talk about C99 and C11 instead of C89 and C99.
8260         * doc/gnulib-readme.texi (Portability guidelines):
8261         Now a section, not merely a subsection, so that it
8262         can be split up.  Modernize a bit.
8263         (C language versions, C99 features assumed)
8264         (C99 features avoided):
8265         New sections.
8267 2017-04-23  Bruno Haible  <bruno@clisp.org>
8269         doc: New section "Modules that modify the way other modules work".
8270         * doc/gnulib.texi (Modules that modify the way other modules work): New
8271         section.
8273 2017-04-23  Bruno Haible  <bruno@clisp.org>
8275         stat-time: Update comments.
8276         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8277         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8278         Windows.
8280 2017-04-01  Bruno Haible  <bruno@clisp.org>
8282         glob: Fix more memory leaks.
8283         * lib/glob.c (glob): Free allocated memory before returning.
8284         Reported by Coverity via Tim Rühsen.
8286 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8288         poll: improve fast check for out-of-range NFD
8289         * lib/poll.c: Do not include intprops.h.
8290         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8291         * modules/poll (Depends-on): Remove intprops.
8293         ftoastr: cite a newer paper
8294         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8295         instead of Loitsch 2010.
8297 2017-04-22  Bruno Haible  <bruno@clisp.org>
8299         poll: Enable argument check also in the Windows implementation.
8300         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8301         Reported by Paul Eggert.
8303 2017-04-22  Bruno Haible  <bruno@clisp.org>
8305         getlogin_r: Work around bug in Mac OS X 10.12.
8306         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8307         bug.
8308         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8309         given size minus 1, call getlogin_r a second time, on a larger buffer.
8310         * modules/getlogin_r (Depends-on): Add malloca.
8311         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8313 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8315         parse-datetime: fix %z and prefer signed int
8316         %z problem reported by Pádraig Brady in:
8317         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8318         While fixing it, I decided to prefer signed ints to size_t, as
8319         they are less error-prone (e.g., ubsan catches overflow).
8320         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8321         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8322         counts, since signed integers make for better debugging.
8323         (date): Don’t assume %z works in printf formats.
8324         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8325         sizes of buffers known to be small, e.g., because we’re using snprintf.
8326         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8328 2017-04-22  Bruno Haible  <bruno@clisp.org>
8330         *printf: Work around rounding bug on Mac OS X.
8331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8332         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8333         Mac OS X and FreeBSD.
8334         * doc/glibc-functions/*printf.texi: Likewise.
8336 2017-04-22  Bruno Haible  <bruno@clisp.org>
8338         vasnprintf tests: Avoid warnings.
8339         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8340         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8341         test.
8343 2017-04-22  Bruno Haible  <bruno@clisp.org>
8345         sys_file tests: Avoid warning.
8346         * tests/test-sys_file.c (main): Add a default clause to the switch
8347         statement.
8349 2017-04-22  Bruno Haible  <bruno@clisp.org>
8351         sethostname: Update doc.
8352         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8353         Mac OS X.
8355 2017-04-22  Bruno Haible  <bruno@clisp.org>
8357         quotearg tests: Avoid warnings.
8358         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8359         false.
8361 2017-04-22  Bruno Haible  <bruno@clisp.org>
8363         poll: Enable argument check.
8364         * lib/poll.c: Include intprops.h.
8365         (poll): Check value of nfd correctly.
8366         * modules/poll (Depends-on): Add intprops.
8368 2017-04-22  Bruno Haible  <bruno@clisp.org>
8370         get-rusage-data: Avoid warnings on Mac OS X.
8371         * lib/get-rusage-data.c: On Mac OS X, don't define
8372         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8373         (get_rusage_data) [Mac OS X]: Just return 0.
8375 2017-04-22  Bruno Haible  <bruno@clisp.org>
8377         xbinary-io: Fix build error.
8378         * modules/xbinary-io (Depends-on): Add gettext-h.
8379         * lib/xbinary-io.c: Include gettext.h and define _().
8380         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8381         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8383 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8385         parse-datetime: overflow and debug cleanups
8386         This long patch was triggered by this bug report from Ruediger Meier:
8387         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8388         I fixed the bug he noted, then found some others nearby, and then
8389         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8390         up some of the code to follow GNU standards while I was at it.
8391         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8392         use c_isdigit.
8393         (EPOCH_YEAR): Remove; unused.
8394         (TM_YEAR_BASE): Now an enum rather than a macro.
8395         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8396         time zone offset, since timezones now are in terms of seconds and
8397         not minutes.
8398         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8399         appropriate.  Verify that intmax_t is wide enough.
8400         (time_overflow, time_zone_str): New functions, used to deal
8401         more reliably with overflow.
8402         (dbg_printf): Add printf attribute, to help catch integer width errors.
8403         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8404         (%union, to_hour, yylex, parse_datetime2):
8405         Use intmax_t instead of long int and/or long_time_t.
8406         All uses changed.
8407         (DBGBUFSIZE): Move earlier.
8408         (relative_time, set_hhmmss, parser_control):
8409         Just use int for nanoseconds and for time zones; that’s wide enough.
8410         (parser_control): Use bool for members like year_seen that can
8411         be booleans instead of counters.  All uses changed.
8412         Remove debug_default_input_timezone; no longer needed.
8413         All uses removed.
8414         (apply_relative_time): Return a bool overflow flag.
8415         All uses changed to check for overflow.
8416         (apply_relative_time, zone, date, relunit, relunit_snumber)
8417         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8418         Check for integer overflow portably.
8419         (str_days): Use just int for N, as it’s wide enough.
8420         Prefer 2D char arrays to arrays of char * when it looks like
8421         2D is a win on typical platforms.
8422         Prefer snprintf to strncpy/strncat, for simplicity;
8423         all buffers are smaller than INT_MAX so this is safe.
8424         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8425         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8426         as this is not true on x32.  Output "." before any nanoseconds.
8427         (debug_print_current_time, parse_datetime2):
8428         Output local zones using a more-consistent format.
8429         (debug_print_current_time, date, parse_datetime2):
8430         (main) [TEST]:
8431         Don’t assume time_t is the same width as long.
8432         (print_rel_part): New function, replacing ...
8433         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8434         (debug_print_relative_time): Use bool for boolean.
8435         (local_zone): dsts_seen now counts only tDST instances.
8436         (date): Fix printf of size_t to use %z.  Do not assume numeric
8437         tokens have negative values merely because the context suggests
8438         a syntax with "-" separating tokens.
8439         (time_zone_hhmm): Return bool success indicator, which checks for
8440         overflow.  Store result into PC->time_zone instead.  All callers
8441         changed.
8442         (tm_year_str): New function.  Return a bool success indicator and
8443         store the result into a buffer.  All callers changed.  Output the
8444         numerically correct string even if adding 1900 to the year would
8445         overflow.
8446         (to_tm_year): New function, replacing the old to_year.  All
8447         callers changed.
8448         (tm_diff): Sync with glibc.
8449         (lookup_word): Use to_uchar instead of doing it by hand.
8450         (TZBUFSIZE): Now local to the only function that needs it.
8451         (debug_strfdatetime): Simplify now that time zones are int seconds.
8452         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8453         (get_effective_timezone): Remove.  All uses removed.
8454         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8455         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8456         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8457         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8458         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8459         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8460         * modules/parse-datetime (Depends-on): Add inttypes.
8462 2017-04-21  Bruno Haible  <bruno@clisp.org>
8464         gettext-h: Avoid -Wundef warning.
8465         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8466         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8467         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8469 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8471         error: Avoid "function declaration isn't a prototype" warning.
8472         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8474 2017-04-21  Bruno Haible  <bruno@clisp.org>
8476         vasnprintf: Fix for MSVC 14.
8477         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8478         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8479         of !HAVE_SNPRINTF_RETVAL_C99.
8481 2017-04-21  Bruno Haible  <bruno@clisp.org>
8483         mbrtowc tests: Fix test failures on MSVC 14.
8484         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8485         behaviour for invalid input.
8487 2017-04-21  Bruno Haible  <bruno@clisp.org>
8489         mbsinit: Fix for MSVC 14.
8490         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8491         implementation that is in sync with mbrtowc.c. On other platforms, use
8492         an adequate ad-hoc implementation.
8494 2017-04-21  Bruno Haible  <bruno@clisp.org>
8496         Fix test-mbrtowc5.sh failure on native Windows.
8497         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8498         "C".
8500 2017-04-21  Bruno Haible  <bruno@clisp.org>
8502         Avoid accidental use of native Windows APIs on Cygwin.
8503         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8504         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8505         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8507 2017-04-20  Bruno Haible  <bruno@clisp.org>
8509         Remove red warnings from the generated MODULES.html.
8510         * modules/fcntl (Description): Disambiguate function references.
8511         * modules/getcwd-lgpl (Description): Likewise.
8512         * modules/hostent (Description): Likewise.
8513         * modules/servent (Description): Likewise.
8514         * modules/tempname (Description): Likewise.
8516 2017-04-20  Bruno Haible  <bruno@clisp.org>
8518         verify tests: Fix spurious failure with parallel make.
8519         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8520         EXTRA_PROGRAMS.
8521         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8522         * tests/test-verify-try.c: New file.
8523         * modules/verify-tests (Files): Add it.
8524         (EXTRA_PROGRAMS): Add test-verify-try.
8525         (MOSTLYCLEANFILES): Update accordingly.
8526         Reported by Adam James Stewart <ajstewart@anl.gov>.
8528 2017-04-18  Bruno Haible  <bruno@clisp.org>
8530         vma-iter: Fix compilation error on Solaris 7.
8531         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8532         like on IRIX, OSF/1.
8533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8535 2017-04-18  Bruno Haible  <bruno@clisp.org>
8537         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8538         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8539         included.
8540         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8541         <sys/procfs.h>.
8542         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8543         <sys/procfs.h> cannot be included.
8544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8546 2017-04-18  Bruno Haible  <bruno@clisp.org>
8548         getopt-gnu: Add comments.
8549         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8550         * modules/getopt-gnu (configure.ac): Likewise.
8552 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8554         regex: port better to Solaris 10
8555         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8556         gettext, and this causes a double #define.
8557         Problem reported by Gavin Smith in:
8558         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8559         * lib/regex_internal.h (gettext): #undef before #defining.
8561 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8563         intprops: improve comments
8564         * lib/intprops.h: Improve and shorten commentary.
8565         For the record, if we ever run into a pedantic compiler that
8566         behaves differently from GCC when converting an out-of-range value
8567         to a signed integer, we can work around the problem with something
8568         like the following code, where UCT is the signed counterpart of T
8569         (UCT is sometimes narrower than UT) and all callers are changed
8570         accordingly:
8571         #if __SUNPRO_C <= 0x5120
8572         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8573            ((t) ((ut) (a) op (ut) (b)))
8574         #else
8575         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8576            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8577             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8578                + TYPE_MINIMUM (t)) \
8579             : (t) (uct) ((ut) (a) op (ut) (b)))
8580         #endif
8582 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8584         intprops: try to avoid tickling similar bugs
8585         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8586         needs to be the same width as T; it can be wider.
8587         Change callers so that UT is at least as wide as unsigned int,
8588         as I suspect that this is less likely to run into compiler bugs.
8590         intprops: port to Oracle Studio 12.3 x86
8591         Problem reported by Gavin Smith in:
8592         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8593         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8594         Convert unsigned to signed via the usual rather than the standard way,
8595         to avoid a compiler bug in Oracle Studio 12.3 x86.
8597 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8599         getopt: prefer - to _ in new file names
8600         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8601         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8602         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8603         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8604         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8605         All uses changed.
8607         getopt: port recent getopt changes to macOS
8608         Problem reported by Harald Maier (Bug#26398).
8609         The macOS C compiler uses __nonnull for its own purposes and that
8610         clashes with glibc's __nonnull.
8611         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8612         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8613         * lib/getopt_core.h (getopt):
8614         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8615         Use _GL_ARG_NONNULL, not __nonnull.
8616         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8617         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8618         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8619         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8621 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8623         getopt-gnu: omit some duplicate code
8624         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8625         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8626         gnulib-tool already does this.
8627         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8628         getopt-posix, which we depend on.
8630         getopt-posix: use angle-bracket include
8631         * lib/getopt1.c: Include <config.h>, not "config.h".
8633 2017-04-06  Zack Weinberg  <zackw@panix.com>
8635         getopt: annotate files with relationship to glibc
8637         As the final act in this patchset, adjust the message at the top of
8638         each file to indicate which files are synced with glibc.  (This has
8639         already been done for most of the headers.)
8641         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8642         Mention in top-of-file boilerplate that these files are shared
8643         between glibc and gnulib.
8646         getopt: split up getopt.in.h and eliminate __need_getopt
8648         Over in glibc, all of the __need macros are being phased out in favor
8649         of small headers that declare only the necessary components, as this
8650         is much simpler and less prone to bugs.  As getopt is shared with
8651         glibc, gnulib needs to do the same for __need_getopt.
8653         __need_getopt is misnamed; what it really means is "we want only the
8654         getopt features specified in POSIX, not the GNU extensions".  glibc
8655         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8656         these files can be shared verbatim with gnulib.  The portability
8657         wrapper, on the other hand, they have renounced altogether; glibc's
8658         getopt.h will no longer be shared with gnulib at all.  In exchange,
8659         certain glibc-specific quirks (having to do with __posix_getopt) no
8660         longer need appear in gnulib's headers at all.
8662         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8663         splits up the current gnulib-side portability wrapper into three
8664         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8665         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8666         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8667         unistd.in.h just use them.  All new files are clearly marked with
8668         whether they are shared with glibc.
8670         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8671         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8672         with glibc, and ...
8673         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8674         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8675         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8676         instead of defining __need_getopt and including the full getopt.h.
8678         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8679         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8680         * modules/getopt-posix (Files): Add new headers and sort list.
8681         (Depends-on): No longer need snippet/arg-nonnull.
8682         (Makefile.am): Generate getopt_cdefs.h.
8685         getopt: better handling of ambiguous options
8687         glibc's getopt uses alloca to construct a linked list of possibilities
8688         for an "ambiguous" long option.  In gnulib, malloc should be used
8689         instead.  Providing for both cases complicates things a fair bit.
8691         This patch rewrites ambiguous-option handling to use a boolean vector
8692         instead of a linked list.  There is then only one allocation that
8693         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8694         and in gnulib we define __libc_use_alloca to always be false, so we
8695         don't need ifdefs in the middle of the function.  This should also be
8696         slightly more efficient in the normal case of long options being fully
8697         spelled out -- I think most people aren't even aware they _can_
8698         sometimes abbreviate long options.
8700         One interesting consequence is that the list of possibilities is now
8701         printed in exactly the order they appear in the list of long options,
8702         instead of the first possibility being shuffled to the end.
8704         (The patch looks bigger than it really is because there's a fair bit
8705         of reindentation and code rearrangement.)
8707         * lib/getopt.c: When used standalone, define __libc_use_alloca
8708         as always false and alloca to abort if called.
8709         (process_long_option): Rewrite handling of ambiguous long options
8710         to use a single boolean vector, not a linked list; use
8711         __libc_use_alloca to decide whether to allocate this using alloca.
8714         getopt: refactor long-option handling
8716         There were two copies of the bulk of the code to handle long options.
8717         Now there is only one.
8719         This change temporarily removes the logic to avoid using alloca when
8720         standalone; the next patch in the series will restore it.
8722         * lib/getopt.c (process_long_option): New function split out
8723         from _getopt_internal_r.
8724         (_getopt_internal_r): Replace both copies of the long-option
8725         processing code with calls to process_long_option.
8728         getopt: tidy up _getopt_initialize a bit
8730         _getopt_data.__posixly_correct is completely redundant to
8731         _getopt_data.__ordering, and some work that logically belongs in
8732         _getopt_initialize was being done by _getopt_internal_r, making the
8733         code harder to understand.
8735         As a side effect, getenv will no longer be called if the first
8736         character of the options string is '+' or '-', which is probably a
8737         Good Thing.  (Perhaps we should have a flag character that
8738         specifically asks for the permutation behavior?)
8740         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8741         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8742         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8745         getopt: merge from glibc: repetition reduction
8747         The definitions of the entry point functions 'getopt' and
8748         '__posix_getopt' can be made substantially less repetitive with a
8749         helper macro.
8751         While I was merging the const-correctness changes from gnulib into
8752         glibc I noticed there are still some unnecessary casts in
8753         _getopt_internal_r.
8755         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8756         a macro.  Consistently cast 'argv' to 'char **' when calling
8757         _getopt_internal.
8758         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8761         getopt: clean up error reporting
8763         getopt can print a whole bunch of error messages, and when used
8764         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8765         cancellation point and getopt isn't, and also applying fprintf to a
8766         stream in wide-character mode is not allowed.  So every single error
8767         reporting case has an #ifdef _LIBC block in which it calls internal
8768         libc functions instead.  The counterpart patch series in glibc makes
8769         it possible to simplify all of that down to a set of #defines at the
8770         top of the file; core code is written as if it is safe to just call
8771         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8772         call any *other* stdio functions.)
8774         * lib/getopt.c: When _LIBC is defined, define fprintf to
8775         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8776         to _IO_funlockfile.  When neither _LIBC nor
8777         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8778         funlockfile as no-ops.
8779         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8780         standalone error-printing code can now be used for libc as well.
8781         Add an flockfile/funlockfile pair around one case where the error
8782         message is printed in several chunks.  Don't use fputc.
8785         getopt: fix fencepost error in ambiguous-W-option handling
8787         getopt_long contains an undocumented (AFAICT) feature in which, if you
8788         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8789         treated as equivalent to '--foo'.  This is implemented with a partial
8790         second copy of the code for handling long options, and that code
8791         increments optind one too many times when recovering from an ambiguous
8792         abbreviated option, which can cause the main loop to walk past the end
8793         of argv and crash.
8795         I discovered this while writing a test case that tries to exercise all
8796         of getopt's error reporting paths; I wouldn't be surprised to learn
8797         that this feature is never used by real applications.
8799         * lib/getopt.c (_getopt_internal_r): Don't increment
8800         d->optind a second time when reporting ambiguous -W options.
8803         getopt: clean up getopt.c and getopt1.c file headers
8805         In getopt.c, there is no need to include wchar.h at all, and it is
8806         safe nowadays to assume that stdlib.h does declare getenv (several
8807         other gnulib modules make this assumption).
8809         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8810         by using "" inclusions consistently, and there is no actual need to
8811         include stdlib.h (except in the #ifdef TEST block, where it should be
8812         unconditional), nor to provide a backup definition of NULL at all.
8814         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8815         Move inclusion of stdlib.h to #ifdef TEST block and make
8816         unconditional.  Do not define NULL.
8817         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8818         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8819         * modules/getopt-gnu, modules/getopt-posix: Don't call
8820         gl_PREREQ_GETENV.
8823         getopt: harmonize comments with glibc
8825         The comments explaining how the behavior of 'getopt' varies depending
8826         on whether it's the standalone version and whether there are special
8827         characters at the beginning of the options string were inconsistent
8828         between gnulib and glibc, and also out of sync with the code.
8830         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8833         getopt: remove USE_NONOPTION_FLAGS
8835         getopt includes code to parse an environment variable named
8836         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8837         in decimal); but all of it has been #ifdefed out since 2001, with no
8838         official way to turn it back on.
8840         According to commentary in glibc's config.h.in, bash version 2.0
8841         set this environment variable to indicate argv elements that were
8842         the result of glob expansion and therefore should not be treated
8843         as options, but the feature was "disabled later" because "it
8844         caused problems".  According to bash's CHANGES file, "later" was
8845         release 2.01; it gives no more detail about what the problems
8846         were.
8848         Version 2.0 of bash was released on the last day of 1996, and version
8849         2.01 in June of 1997.  Twenty years later, I think it is safe to
8850         assume that this environment variable isn't coming back.
8852         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8853         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8854         __libc_argc and __libc_argv externs, which were only used by
8855         #ifdef USE_NONOPTION_FLAGS blocks.
8858         getopt: tabify, in preparation for merge with glibc
8860         glibc sticks to the GNU default of indenting with a mix of
8861         8-column tabs and spaces; make the gnulib copy match.
8863         getopt.h is not included because it is *not* going to be merged in its
8864         present form.
8866         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8868 2017-04-02  Bruno Haible  <bruno@clisp.org>
8870         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8871         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8872         like it was done in modules/relocatable-lib on 2011-05-21 and in
8873         modules/relocatable-prog on 2011-08-15.
8874         Reported by Reuben Thomas <rrt@sc3d.org>.
8876 2017-03-31  Bruno Haible  <bruno@clisp.org>
8878         glob: Fix invalid free() call.
8879         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8880         static storage to home_dir.
8881         Reported by Coverity via Tim Rühsen.
8883 2017-03-31  Bruno Haible  <bruno@clisp.org>
8885         glob: Fix memory leaks.
8886         * lib/glob.c (glob): Free allocated memory before returning.
8887         Reported by Coverity via Tim Rühsen.
8889 2017-03-31  Bruno Haible  <bruno@clisp.org>
8891         md5, sha1, sha256, sha512: Add comments regarding correctness.
8892         * lib/md5.h (buflen): Add comments regarding range.
8893         * lib/sha1.h (buflen): Likewise.
8894         * lib/sha256.h (buflen): Likewise.
8895         * lib/sha512.h (buflen): Likewise.
8896         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8897         * lib/sha1.c (sha1_process_bytes): Likewise.
8898         * lib/sha256.c (sha256_process_bytes): Likewise.
8899         * lib/sha512.c (sha512_process_bytes): Likewise.
8900         Reported by Coverity via Tim Rühsen.
8902 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8904         getopt: merge from glibc
8905         This does not change anything substantial; it merely simplifies
8906         hypothetical merges back to glibc.
8907         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8908         Change copyright notice to match what is in glibc.
8909         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8910         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8911         __open_memstream rather than open_memstream and __glibc_likely
8912         instead of __builtin_expect.
8913         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8915 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8917         dfa: make [0-9] faster in non-C locales
8918         Problem reported by John P. Linderman (Bug#26193).
8919         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8920         If both ends of the range are ASCII digits, do not worry about
8921         multi-character collating sequences and the like.  Be consistent
8922         about using isalpha as a precondition for setbit_case_fold_c.
8924 2017-03-19  Bruno Haible  <bruno@clisp.org>
8926         lock: Fix compilation error with HP-UX IA64 cc.
8927         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8928         weak on non-glibc platforms.
8930 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8932         stdalign: tweak version# and test for HP-UX IA64
8933         Problems reported by Bruno Haible in:
8934         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8935         * lib/stdalign.in.h (_Alignas):
8936         * m4/stdalign.m4 (gl_STDALIGN_H):
8937         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8938         used octal (as that is how they document it), but it is decimal in
8939         practice now and the ancient implementations no longer matter.
8940         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8942 2017-03-19  Bruno Haible  <bruno@clisp.org>
8944         vma-iter: Add support for Solaris.
8945         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8946         approach.
8947         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8948         * lib/get-rusage-as.c: Update comment about Solaris.
8949         * lib/get-rusage-data.c: Likewise.
8951 2017-03-19  Bruno Haible  <bruno@clisp.org>
8953         vma-iter: Prefer HP-UX specific API on HP-UX.
8954         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8955         * lib/vma-iter.h: Update.
8956         Just in case HP-UX ever implements mquery().
8958 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8960         stdalign: restore previous behavior for HP-UX IA64
8961         See Bruno Haible's email in:
8962         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8963         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8964         * lib/stdalign.in.h (_Alignas):
8965         Assume the '061200' applies to Itanium, not to PA-RISC.
8966         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8968 2017-03-17  Bruno Haible  <bruno@clisp.org>
8970         stat-time, timespec: Support use of the header files in C++ mode.
8971         * lib/stat-time.h: Add "C" linkage declaration.
8972         * lib/timespec.h: Likewise.
8974 2017-03-17  Bruno Haible  <bruno@clisp.org>
8976         stdalign: Make it work with HP-UX cc.
8977         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8978         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8979         for HP-UX cc.
8981 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8983         flexmember: try to detect HP-UX 11.31 cc bug
8984         Problem reported by Bruno Haible in:
8985         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8986         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8987         Attempt to detect bug in HP-UX 11.31 cc.
8989 2017-03-16  Bruno Haible  <bruno@clisp.org>
8991         stdint: Fix test compilation failure with HP-UX 11 cc.
8992         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8993         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8994         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8995         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8997 2017-03-14  Bruno Haible  <bruno@clisp.org>
8999         gnulib-tool: Don't produce a tests directory with only snippet .h files.
9000         * gnulib-tool (func_modules_transitive_closure_separately): If
9001         testsrelated_modules ends up with no "real" modules, aside from
9002         modules with applicability 'all', set it to empty.
9004 2017-03-14  Bruno Haible  <bruno@clisp.org>
9006         vma-iter: Add support for HP-UX.
9007         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
9008         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
9009         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
9010         * lib/get-rusage-as.c: Update comment about HP-UX.
9011         * lib/get-rusage-data.c: Likewise.
9012         (get_rusage_data): Use get_rusage_data_via_setrlimit.
9014 2017-03-14  Bruno Haible  <bruno@clisp.org>
9016         limits-h: Make it work with HP-UX cc.
9017         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
9018         defined.
9020 2017-03-14  Bruno Haible  <bruno@clisp.org>
9022         Fix test failures on DragonFlyBSD.
9023         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
9024         * tests/test-select.h (test_bad_fd): Likewise.
9025         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
9027 2017-03-14  Bruno Haible  <bruno@clisp.org>
9029         freadahead: Silence warning on DragonFlyBSD.
9030         * lib/freadahead.c (__sreadahead): Declare ourselves.
9032 2017-03-14  Bruno Haible  <bruno@clisp.org>
9034         vma-iter: Add comment about AIX.
9035         * lib/vma-iter.c: Add comment about why this module is not implemented
9036         on AIX.
9038 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9040         snippets: move unadjusted snippet sources to lib
9041         Problem reported by Michal Privoznik in:
9042         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
9043         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
9044         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
9045         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
9046         * lib/unused-parameter.h: Rename from
9047         build-aux/snippet/unused-parameter.h.
9048         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
9049         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
9050         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
9051         * modules/snippet/c++defs (Files:, CXXDEFS_H):
9052         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
9053         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
9054         Adjust to file renamings.
9056 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
9058         gnulib-tool: don't automatically distribute files from top/
9059         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
9060         not distribute top/README-release by default, don't distribute files
9061         from top/ unconditionally.
9062         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
9063         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
9065 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9067         gnulib-tool: fix typo in comment output
9068         * gnulib-tool (func_import): Fix typo with previous change.
9070         snippets: work around GNU Make 3.82 VPATH
9071         When using 'gnulib-tool --gnu-make' on Emacs, and building
9072         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
9073         an out-of-source (VPATH) build failed because the sans-copyright
9074         snippet file was not built before the file that used it.
9075         Presumably this is some sort of VPATH thing.  Work around the
9076         problem by using the original snippet, i.e., don’t bother to
9077         remove its copyright notice.
9078         * modules/snippet/_Noreturn, modules/snippet/link-warning:
9079         Don’t assume Automake in comments.  Omit long-incorrect comment.
9080         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
9081         (MOSTLYCLEANFILES):
9082         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
9083         (MOSTLYCLEANFILES):
9084         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
9085         (MOSTLYCLEANFILES):
9086         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
9087         (MOSTLYCLEANFILES):
9088         Remove.
9089         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
9090         * modules/snippet/c++defs (CXXDEFS_H):
9091         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
9092         * modules/snippet/warn-on-use (WARN_ON_USE_H):
9093         Don’t bother to remove the copyright notice; just use the
9094         original snippet as-is.
9096 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9098         gnulib-tool: minor --gnu-make fixups
9099         * gnulib-tool (func_emit_lib_Makefile_am):
9100         Remove useless code that was a blind alley during implementation.
9101         Problem reported by Thien-Thi Nguyen in:
9102         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
9103         (func_import): Note the "--gnu-make" option in the output comment.
9105 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
9107         gnulib-tool: new option --gnu-make
9108         This is for applications like GNU Emacs that use GNU Make
9109         features instead of Automake.
9110         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
9111         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
9112         Do not assume Automake.
9113         * gnulib-tool (func_determine_path_separator)
9114         (func_modules_transitive_closure, func_update_file)
9115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9116         (func_import): Add support for --gnu-make.
9118 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9120         gnulib-common.m4: avoid aclocal.m4 bloat
9121         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
9122         Hide AM_PROG_AR from aclocal, so that aclocal does not
9123         install irrelevant macro definitions into aclocal.m4.
9125 2017-03-10  Bruno Haible  <bruno@clisp.org>
9127         vma-iter: Let callers know about error.
9128         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9129         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9131 2017-03-05  Bruno Haible  <bruno@clisp.org>
9133         Fix value of LD for 64-bit compilers on AIX.
9134         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9135         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9137 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9139         dtotimespec: simplify
9140         * lib/dtotimespec.c (dtotimespec): Simplify.
9142 2017-03-04  Bruno Haible  <bruno@clisp.org>
9144         test-calloc-gnu: Reenable test also for GCC 7.
9145         * tests/test-calloc-gnu.c (eight): New function.
9146         (main): Don't skip test; use eight() instead.
9148 2017-03-04  Jim Meyering  <meyering@fb.com>
9150         test-calloc-gnu: port to GCC7
9151         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9152         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9153         and newer would detect that at compilation time.
9155 2017-03-04  Bruno Haible  <bruno@clisp.org>
9157         tests: Avoid compiler warning about uses of null_ptr.
9158         * tests/null-ptr.h: New file.
9159         * tests/test-canonicalize.c: Include null-ptr.h.
9160         (null_ptr): Remove function.
9161         * tests/test-canonicalize-lgpl.c: Likewise.
9162         * tests/test-memmem.c: Likewise.
9163         * tests/test-ptsname_r.c: Likewise.
9164         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9165         * modules/canonicalize-lgpl-tests: Likewise.
9166         * modules/memmem-tests: Likewise.
9167         * modules/ptsname_r-tests: Likewise.
9168         Reported by Jim Meyering.
9170 2017-03-03  Bruno Haible  <bruno@clisp.org>
9172         doc: Mention Mac OS X deficiencies regarding semaphores.
9173         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9174         * doc/posix-functions/sem_destroy.texi: Likewise.
9175         * doc/posix-functions/sem_getvalue.texi: Likewise.
9177 2017-03-03  Bruno Haible  <bruno@clisp.org>
9179         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9180         Reported by Assaf Gordon <assafgordon@gmail.com> via
9181         Pádraig Brady <P@draigBrady.com>.
9182         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9183         semaphores.
9184         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9185         (atomic_int_semaphore): New macro.
9187 2017-02-28  Bruno Haible  <bruno@clisp.org>
9189         perror tests: Tweak for z/OS.
9190         Reported by Daniel Richard G. <skunk@iskunk.org>.
9191         * tests/test-perror.sh: Don't fail z/OS style perror output.
9193 2017-02-26  Bruno Haible  <bruno@clisp.org>
9195         nproc: Refactor large function.
9196         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9197         from num_processors.
9198         (num_processors): In this function, only deal with OMP.
9200 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9202         nproc: adjust handling of OpenMP environment variables
9203         to match the return value from omp_get_num_threads(), i.e.:
9204          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9205          - Treat 0 as an invalid value and ignore
9206         Also remove the call to omp_get_num_threads() because
9207         it's ineffective without the omp pragmas in place.
9208         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9209         so that it can be ignored.
9210         (num_processors): Honor OMP_THREAD_LIMIT even without
9211         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9212         variable being checked, from the previous recent commit.
9214 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9216         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9217         * lib/nproc.c (parse_omp_threads): A new function refactored
9218         from num_processors() to support parsing both of the
9219         above environment variables.
9220         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9221         to accurately reflect the current OpenMP nesting level.
9222         Also support the OMP_THREAD_LIMIT environment variable
9223         to limit the max value determined from OMP_NUM_THREADS.
9224         * modules/nproc: Depend on minmax header.
9225         Suggested by Oliver Heimlich.
9227 2017-02-25  Bruno Haible  <bruno@clisp.org>
9229         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9230         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9232 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9234         ftoastr: port to -Wdouble-promotion
9235         Work around -Wdouble-promotion false alarm in recent GCCs.
9236         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9237         (ftoastr_snprintf, FTOASTR): Use it.
9239 2017-02-21  Bruno Haible  <bruno@clisp.org>
9241         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9242         Reported by Rene Saavedra <rennes@openmailbox.org> in
9243         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9244         * lib/glthread/lock.h: On glibc systems without
9245         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9246         implementation of rwlocks.
9247         * lib/glthread/lock.c: Likewise.
9249 2017-02-20  Bruno Haible  <bruno@clisp.org>
9251         lock tests: Fix build failure on z/OS.
9252         Reported by Daniel Richard G. <skunk@iskunk.org>.
9253         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9254         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9255         exist.
9257 2017-02-19  Bruno Haible  <bruno@clisp.org>
9259         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9260         This helps when CC=clang.
9261         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9262         of /usr/bin/gcc.
9264         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9265         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9267 2017-02-19  Bruno Haible  <bruno@clisp.org>
9269         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9270         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9271         --with-tests --single-configure is specified.
9273 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9275         users.txt: Update links, use HTTPS where possible
9276         * users.txt: Updated to HTTPS where possible,
9277         fixed some links to new locations.
9279 2017-02-16  Bruno Haible  <bruno@clisp.org>
9281         xbinary-io: Fix inlining.
9282         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9284 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9286         xbinary-io: rename from xsetmode
9287         This patch is taken from suggestions by Bruno Haible in:
9288         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9289         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9290         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9291         not ENOTTY, when it is an inappropriate device.
9292         * lib/binary-io.h (SET_BINARY): Resurrect.
9293         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9294         (xset_binary_mode_error): Rename from xsetmode_error.
9295         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9296         (xset_binary_mode): Rename from xsetmode.
9297         All uses changed.
9298         * modules/xbinary-io: Rename from modules/xsetmode.
9299         Update file names.
9300         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9301         * NEWS: Update to match revised behavior.
9303 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9305         tests: Adjust to recent SET_BINARY change
9306         * tests/test-binary-io.c (main):
9307         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9308         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9309         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9310         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9312         xsetmode: new module
9313         This is to fix a problem noted by Eric Blake.
9314         Code was using xfreopen to change files to binary mode, but this
9315         fails for stdout when in append mode.  Such code should use
9316         xsetmode instead.
9317         * NEWS: Document incompatible changes to binary-io module.
9318         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9319         New function.
9320         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9321         (set_binary_mode): New function, which also checks for tty.
9322         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9324 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9326         headers: fix begin-end typos
9327         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9328         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9330         selinux-h: port to PGI 16.10
9331         * lib/se-selinux.in.h: Don't assume that include_next skips over
9332         duplicate -I DIR options.
9334         argp: port to PGI 16.10
9335         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9337 2017-02-13  Darshit Shah  <darnir@gnu.org>
9339         unicase: Update function protoype to match definition.
9340         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9341         uses 'size_t' as the datatype for the 'len' parameter in the functions
9342         it generates. Update the prototype specified here to match the newly
9343         generated function.
9345 2017-02-12  Bruno Haible  <bruno@clisp.org>
9347         times test: Avoid gcc warnings on Linux/x32.
9348         * tests/test-times.c (main): Really cast printf arguments from clock_t
9349         to 'long int'.
9351 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9353         glob: port better to emscripten
9354         Problem reported by Bruno Haible in:
9355         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9356         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9358 2017-02-11  Bruno Haible  <bruno@clisp.org>
9360         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9361         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9362         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9363         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9364         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9365         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9366         Distinguish hppa64 from hppa.
9368 2017-02-10  Bruno Haible  <bruno@clisp.org>
9370         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9371         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9372         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9373         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9375 2017-02-09  Bruno Haible  <bruno@clisp.org>
9377         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9378         * doc/gnulib.texi (Libtool and Windows): Recommend
9379         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9380         Reported by Reuben Thomas <rrt@sc3d.org>.
9382 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9384         stddef-tests: port to SIZE_MAX <= INT_MAX
9385         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9386         Do not assume that INT_MAX < SIZE_MAX.
9388 2017-02-01  Bruno Haible  <bruno@clisp.org>
9390         lock tests: Fix link error.
9391         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9394 2017-01-31  Bruno Haible  <bruno@clisp.org>
9396         lock: Fix link error (regression from 2017-01-05).
9397         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9398         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9399         pthread_rwlockattr_destroy weak.
9400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9402 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9404         Port to PGI 16.10 x86-64
9405         This patch fixes one real bug in gl_anylinked_list2.h, along with
9406         some minor glitches that are not bugs.  It does not silence PGI’s
9407         thousands of bogus warnings when compiling test-intprops.c.
9408         Fortunately, the warnings do not cause a failure.
9409         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9410         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9411         My goodness, PGI goes back a long ways - this predates C89!
9412         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9413         For example, ASYNCSAFE (const void *) should expand to
9414         ‘const void *volatile’, not to ‘volatile const void *’.
9415         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9416         * lib/verify.h (verify) [!__GNUC__]:
9417         Use shorter albeit meaningless string to bypass silly compiler limits.
9418         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9419         * tests/nan.h (NaNf, NaNd, NaNl):
9420         Use static functions to avoid misguided compiler diagnostics.
9421         Is there some reason we don’t use static functions on all platforms?
9423 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9425         parse-datetime: handle timezones reentrantly
9426         This API change was prompted by a report by Pádraig Brady in:
9427         https://bug.debian.org/851934#10
9428         To help fix the bug, make parse_datetime2 more reentrant.
9429         * NEWS: Document this incompatible change.
9430         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9431         Add two arguments, the timezone and the timezone name.
9432         All callers changed.  If TZ="..." is specified, use it for
9433         calculating defaults.
9434         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9435         this code should be usable in a library.
9436         (mktime_ok, get_effective_timezone):
9437         Accept timezone arg too.  All callers changed.
9438         (get_tz): Remove.
9439         (get_effective_timezone): Check for failures.
9441 2017-01-20  Eric Blake  <eblake@redhat.com>
9443         localename: port to cygwin 2.6
9444         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9445         Cygwin.
9446         * modules/localename (Depends-on): Add extensions, since
9447         NL_LOCALE_NAME() is not visible without it.
9449 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9451         parse-datetime: fix dependence on AC_PROG_SED
9452         * modules/parse-datetime: Use `sed` directly like all other modules.
9453         Reported by J William Piggott
9455 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9457         intprops: update doc URLs
9458         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9460 2017-01-16  Bruno Haible  <bruno@clisp.org>
9462         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9463         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9464         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9465         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9466         distinguish s390 and s390x.
9467         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9468         * NEWS: Mention the change regarding 'armel'.
9470 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9472         localeinfo: case_folded_counterparts and WEOF
9473         * NEWS: Document this.
9474         * lib/localeinfo.c (case_folded_counterparts):
9475         First arg is now wint_t, not wchar_t.  This generalizes the
9476         function to also work on WEOF, where it returns 0.
9478         dfa: port to gcc -fsanitize=undefined
9479         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9480         as this runs afoul of gcc -fsanitize=undefined.
9482 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9484         strftime: %z is -00 if unknown
9485         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9486         the caller's responsibility to set 'negative_number'.  All uses changed.
9487         (__strftime_internal): Put '-' before a zero UTC offset if the time
9488         zone abbreviation starts with "-", which is the recently-introduced
9489         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9490         * tests/test-strftime.c: Test for this.
9492 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9494         dfa: port to older GCC
9495         Problem reported by Assaf Gordon in:
9496         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9497         * modules/c99: New module.  This merely attempts to use the latest
9498         C version, which should be enough to solve this particular problem.
9499         The idea is to document which Gnulib modules assume C99 or later.
9500         * modules/dfa (Depends-on): Add it.
9502 2017-01-10  Bruno Haible  <bruno@clisp.org>
9504         Update DEPENDENCIES.
9505         * DEPENDENCIES: List only https URLs. Update recommended version for
9506         autoconf, automake, gperf.
9508 2017-01-10  Jim Meyering  <meyering@fb.com>
9510         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9511         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9512         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9514 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9516         dfa: minor simplification with emptyset
9517         * lib/dfa.c (build_state): Simplify by using emptyset.
9519 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9521         dfa: shrink constraints from 4 bits to 3
9522         * lib/dfa.c (newline_constraint, letter_constraint)
9523         (other_constraint, prev_newline_dependent)
9524         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9525         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9526         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9527         Constraints need only 3 bits, not 4.  Using smaller integers
9528         shrinks the code a bit and makes grep a tad faster on x86-64.
9530         dfa: omit unnecessary ptrdiff_t check
9531         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9532         overflow, since xnmalloc does that now.
9534         dfa: omit unnecessary allocation
9535         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9536         an all-zero follow set works just fine.
9538         dfa: omit unused local
9539         * lib/dfa.c (build_state): Fix up recent change.
9541         maint: remove stray .texi files
9542         Although these were superseded by other files like
9543         doc/posix-functions/ctime.texi, the old files were not removed.
9544         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9546 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9548         getprogname: fix port to IRIX
9549         * lib/getprogname.c (getprogname) [__sgi]:
9550         Don't dump core if malloc returns NULL.
9552         dfa: fix reallocation bug when matching newlines
9553         Problem reported for sed by S. Gilles (Bug#25390).
9554         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9555         (dfastate): Reallocate before moving any newline transition ...
9556         (build_state): ... instead of reallocating here, where it is too late.
9558 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9560         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9561         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9563 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9565         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9566         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9568 2017-01-07  Bruno Haible  <bruno@clisp.org>
9570         stdioext: Port to Minix 3.2 and newer.
9571         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9572         * lib/fseeko.c (fseeko): Likewise.
9573         Reported by Nelson Beebe via Paul Eggert.
9575 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9577         getprogname: port to IRIX
9578         * lib/getprogname.c (getprogname): Port to IRIX.
9579         Based on an idea by Bastien Roucariès at:
9580         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9581         via code from Bruno Haible at:
9582         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9584         localename-tests: port to NetBSD 7
9585         Problem reported by Nelson H. F. Beebe.
9586         * tests/test-localename.c:
9587         Test newlocale and uselocale only if both exist.
9589         glob, intprops, xalloc: work around Clang bug
9590         Work around LLVM bug 16404, which is still not fixed.
9591         https://llvm.org/bugs/show_bug.cgi?id=16404
9592         Problem reported by Nelson H. F. Beebe.
9593         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9594         Remove.
9595         * lib/glob.c (size_add_wrapv):
9596         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9597         * lib/xalloc-oversized.h (xalloc_oversized):
9598         Do not use overflow builtins if Clang.
9600         dfa: fix 'return' typo
9601         Problem reported by Nelson H. F. Beebe.
9602         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9604 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9606         parse-datetime: fix generated paths for coverage files
9607         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9608         within parse-datetime.c, so that gcc generates appropriate .gcno
9609         files, allowing lcov to proceed without error.  Previously it
9610         would error trying to find "lib/lib/parse-datetime.y".
9612 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9614         maint.mk: support parallel execution of coverage
9615         * top/maint.mk (coverage): Run dependencies serially,
9616         thus supporting parallel processing of each one,
9617         particularly build-coverage, which builds and runs tests.
9619 2017-01-05  Bruno Haible  <bruno@clisp.org>
9621         lock tests: Prefer semaphore over mutex.
9622         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9623         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9624         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9625         Suggested by Torvald Riegel <triegel@redhat.com>.
9627 2017-01-05  Bruno Haible  <bruno@clisp.org>
9629         lock: Provide guarantee to avoid writer starvation for rwlocks.
9630         The rationale is: 1) Read-preferring read-write locks are prone to
9631         writer starvation if the number of reader threads multiplied by the
9632         percentage of time they have the lock held is too high. 2) Write-
9633         preferring read-write locks are the only reliable way to avoid this.
9634         3) There have been reports of 'test-lock' hanging on glibc systems
9635         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9636         and glibc indeed implements read-preferring rwlocks by default, see
9637         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9638         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9639         * m4/pthread_rwlock_rdlock.m4: New file.
9640         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9641         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9642         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9643         of rwlock initialization on glibc systems without
9644         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9645         of rwlocks altogether on non-glibc systems without
9646         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9647         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9648         * lib/glthread/lock.c [USE_POSIX_THREADS]
9649         (glthread_rwlock_init_for_glibc): New function.
9650         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9651         comment.
9652         [USE_PTH_THREADS]: New implementation of rwlocks.
9653         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9654         readers.
9655         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9656         (Depends-on): Add 'extensions'.
9657         * tests/test-rwlock1.c: New file.
9658         * lock-tests (Files): Add it.
9659         (Depends-on): Add usleep.
9660         (Makefile.am): Add test-rwlock1 to the tests.
9662 2017-01-05  Bruno Haible  <bruno@clisp.org>
9664         thread: Fix pth port.
9665         * lib/glthread/thread.h (pth_init): Declare weak.
9666         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9667         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9668         function.
9670 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9672         parse-datetime: fix debug message on lone year number
9673         Input dates such as
9674           date -d "Apr 11 22:59:00 2011"
9675         are parsed as date (Apr 11, with default year 2016), then time, then a
9676         number (2011). Based on the combination of previously seen tokens,
9677         'digits_to_date_time' determines 2011 to be a year value.
9678         This fixes the debug messages to correctly show the updated year.
9679         Before:
9680             $ date --debug -d 'Apr 11 22:59:00 2011'
9681             date: parsed date part: (Y-M-D) 2016-04-11
9682             date: parsed time part: 22:59:00
9683             date: parsed number part: today/this/now
9684         After:
9685             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9686             date: parsed date part: (Y-M-D) 2016-04-11
9687             date: parsed time part: 22:59:00
9688             date: parsed number part: year: 2011
9689         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9690         'debug_year_seen' member fields.
9691         (digits_to_date_time): Update 'year_seen' as needed.
9692         (debug_print_current_time): Inform about year updates.
9693         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9695         parse-datetime: fix local timezone debug messages
9696         "Local timezones" are strings that affect only DST relative to the
9697         default timezone. The debug messages in parse-datetime.y printed
9698         wrong information when encountering local timezones.
9699         Examples:
9700         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9701              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9702              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9703         When the default timezone relates to the zone strings, EET/EEST are
9704         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9705         value (0/1, respectively):
9706              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9707              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9708         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9709         was seen, inform about DST change, don't print actual timezone.
9710         (debug_strfdatetime): If local timezone was seen, use default timezone
9711         (and adjust as needed) instead of using incorrect timezone.
9712         (parse_datetime2): Use correct time-zone source string, and adjust
9713         default timezone as needed.
9715         parse-datetime: add debug warning about DST changes
9716         Incorrect date arithmetic due to daylight saving time (DST) are a
9717         common (false) bug report in coreutils.
9718         Detect two such cases and print a warning:
9719         1. year/month/day adjustments (performed on 'struct tm'),
9720            where 'mktime' returns a different isdst value.
9721         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9722            where the result of 'localtime(3)' on the value will return a
9723            different isdst value.
9724         Note: DST changes could be harmless or unnoticeable.
9725         Examples (with 'TZ=America/New_York'):
9726         Unnoticeable: result is 2016-Dec-14
9727            $ date -d '2016-06-15 EDT + 6 months' +%b
9728            Dec
9729         Unnoticeable: result is 2016-Dec-15 11:00:00
9730            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9731            2016-12-15
9732         This is unexpected:
9733            $ date -d '2016-06-01 EDT + 6 months' +%F
9734            2016-11-30
9735         The new debug warnings will show:
9736            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9737            ...
9738            date: warning: daylight saving time changed after date adjustment
9739            ...
9740         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9741         print an appropriate warning message.
9743         parse-datetime: add debug warning about date arithmetic
9744         Date arithmetic are done directly on the fields of 'struct tm',
9745         which can result in invalid dates. Normalization with 'mktime(3)'
9746         will then produce a different date - which might cause unexpected
9747         results.
9748         Examples:
9749           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9750           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9751         Note that date normalization is not inherently wrong and not rejected,
9752         as it has legitimate uses:
9753           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9754         If the user asked to adjust months but 'mday' changed,
9755         or user asked to adjust years but 'month' changed - warn about it.
9756             $ ./src/date --debug -d '2016-10-31 - 1 month'
9757             ...
9758             date: warning: when adding relative months/years, \
9759                            it is recommended to specify the 15th of the month
9760             ...
9761             date: warning: month/year adjustment resulted in shifted dates:
9762             date:      adjusted Y M D: 2016 09 31
9763             date:    normalized Y M D: 2010 10 01
9764             ...
9765         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9766         a warning message. Improve recommendation of when to use 15 of the
9767         month or noon for date arithmetic.
9769         parse-datetime: fix debug message of relative part after timezone
9770         Relative part (e.g '+8 days') after a timezone string was not
9771         reported (was only reported after a timezone number). Due to the
9772         parser's structure, timezone strings with numbers were handled
9773         separately.
9774         before:
9775              # Timezone number + relative part: OK
9776              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9777              ...
9778              date: parsed relative part: -8 day(s)
9779              # Timezone string + relative part: missing
9780              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9781              [ missing message ]
9782         After: messages are printed in both cases.
9783         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9785         parse-datetime: fix incorrect debug message on lone number
9786         A lone number is an absolute value, not a relative time part.
9787         before:
9788            $ date --debug -d '20130101'
9789            date: parsed number part: today/this/now
9790         After:
9791            $ ./src/date --debug -d '20130101'
9792            date: parsed number part: (Y-M-D) 2013-01-01
9793         * lib/parse-datetime.y ('item'/'number' tokens): Call
9794         'debug_print_current_time' instead of 'debug_print_relative_time'.
9796 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9798         doc: modernize for C11 etc.
9799         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9800         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9801         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9803         dfa: prefer functions to FETCH_WC macro
9804         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9805         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9806         wint_t result into DFA->lex.wctok instead of to a separate arg.
9807         All callers changed.  Move more local decls closer to where
9808         they're used.
9810         dfa: narrow more local var scopes
9811         * lib/dfa.c: Move more local decls to be more local.
9813         dfa: remove duplicate assignment
9814         Problem reported by Bruno Haible in:
9815         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9816         * lib/dfa.c (parse_bracket_exp): Simplify.
9818 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9820         dfa: simplify constraint-dependency checking
9821         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9822         (prev_other_constraint): Remove.
9823         (prev_newline_dependent, prev_letter_dependent):
9824         Simplify, to avoid an unnecessary bitwise AND operation.
9826         dfa: prefer functions and constants to macros
9827         * lib/dfa.c: Prefer constants to macros where either will do.
9828         (streq, isasciidigit, newline_constraint)
9829         (letter_constraint, other_constraint, succeeds_in_context)
9830         (prev_newline_constraint, prev_letter_constraint)
9831         (prev_other_constraint, prev_newline_dependent)
9832         (prev_letter_dependent, accepting, accepts_in_context):
9833         Now static functions instead of function-like macros.
9834         Use lower-case names accordingly.  All uses changed.
9836         dfa: narrow more local var scopes
9837         * lib/dfa.c: Move some more local decls down to nearer where
9838         they're needed.
9840 2016-12-31  Jim Meyering  <meyering@fb.com>
9842         dfa: narrow the scope of many local variables
9843         * lib/dfa.c: Now that we are no longer constrained to c89, move
9844         declarations of many variables (often indices) "down" into the
9845         scope(s) where used or to the point of definition.  This is a
9846         no-semantic-change diff.
9848 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9850         version-etc: new year
9851         * build-aux/gendocs.sh (version):
9852         * doc/gendocs_template:
9853         * doc/gendocs_template_min:
9854         * doc/gnulib.texi:
9855         * lib/version-etc.c (COPYRIGHT_YEAR):
9856         Update copyright dates by hand in templates and the like.
9857         * all files: Run 'make update-copyright'.
9859 2016-12-31  Eric Blake  <eblake@redhat.com>
9861         do-release-commit-and-tag: avoid shell syntax error
9862         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9863         contain spaces when rebasing.
9865         maint.mk: hoist gnulib_dir definition earlier
9866         * top/maint.mk (gnulib_dir): Move near top of file.
9868 2016-12-31  Jim Meyering  <meyering@fb.com>
9870         maint.mk: do not always evaluate intprops-related shell
9871         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9872         using gnulib_dir undefined (gnulib_dir is defined later in the
9873         file, which will be fixed separately), and besides, there is no
9874         need to incur the cost of this shell invocation for every single
9875         use of this .mk file.  Reported by Eric Blake in
9876         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9878 2016-12-30  Jim Meyering  <meyering@fb.com>
9880         maint.mk: improve sc_prohibit_intprops_without_use
9881         * top/maint.mk (_intprops_names): Don't hard-code the list of
9882         symbol names.  Instead, derive it on the fly.
9884 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9886         dfa: shorten sbit, success
9887         * lib/dfa.c (struct regex_syntax.sbit):
9888         (struct dfa.success): Use char, not int, for array elements, since
9889         they are all in the range 0..7.
9891         dfa: simplify multibyte_prop etc.
9892         This follows up on a change made when dfa.c was in grep, namely grep
9893         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9894         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9895         That earlier simplification allows for some more simplification
9896         and trimming down here.
9897         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9898         (struct lexer_state): New mamber brack.
9899         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9900         since they must be in the range 0..3 now.
9901         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9902         the brack member now supersedes them.
9903         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9904         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9905         (dfaparse): Remove unnecessary initializations of already-0 storage.
9906         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9907         (dfassbuild): No need to clear sup->mbcsets.
9909         dfa: minor performance tweak
9910         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9912         dfa: wrap charclass inside a struct
9913         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9914         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9915         about 5% faster, where list.txt is generated by 'aspell dump
9916         master | head -n 100000 >list.txt'.  See Bug#22239.
9917         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9918         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9919         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9920         Adjust to this, e.g., by using charclass * rather than charclass.
9921         All callers changed as needed.
9922         (copyset): Remove.  All uses changed to simple assignment.
9923         (parse_bracket_exp): Use zeroset instead of memset.
9925 2016-12-30  Jim Meyering  <meyering@fb.com>
9927         maint.mk: update list of intprops.h symbol names
9928         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9929         This avoids a false failure of the sc_prohibit_intprops_without_use
9930         rule in grep.
9932 2016-12-29  Eric Blake  <eblake@redhat.com>
9934         getopt: fix parallel test failure
9935         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9936         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9937         * tests/test-getopt-main.h (main): Use different file names
9938         in case test-getopt-gnu and test-getopt-posix run in parallel.
9940 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9942         xalloc: x2nrealloc check for ptrdiff_t overflow
9943         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9944         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9946 2016-12-24  Bruno Haible  <bruno@clisp.org>
9948         lock test: Fix performance problem on multi-core machines.
9949         * tests/test-lock.c (USE_VOLATILE): New macro.
9950         (struct atomic_int): New type.
9951         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9952         functions.
9953         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9954         as 'struct atomic_int'.
9955         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9956         reclock_checker_thread, test_recursive_lock): Use the new functions.
9957         Reported by Eric Blake in
9958         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9959         and by Pádraig Brady in
9960         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9962 2016-12-19  Bruno Haible  <bruno@clisp.org>
9964         vma-iter: Fix endless loop on 64-bit Windows.
9965         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9966         'unsigned long'.
9968 2016-12-19  Bruno Haible  <bruno@clisp.org>
9970         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9971         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9972         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9973         Invoke gt_TYPE_WINT_T instead.
9974         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9975         * modules/stdint (Files): Add m4/wint_t.m4.
9976         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9977         * modules/wctype-h (Makefile.am): Likewise.
9978         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9979         not only on MSVC.
9980         * lib/wctype.in.h (wint_t): Likewise.
9982 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9984         getopt-posix-tests: fix Makefile typo
9985         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9986         Fix typo: the last ‘_’ was missing in the name.
9987         I suspect that the typo explains this build failure:
9988         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9989         although I can’t reproduce the problem on Solaris 10 sparc.
9991 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9993         dfa: improve worst-case 'replace' performance
9994         See my note in Bug#22357#71.
9995         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9996         (merge_constrained): New function, which is like
9997         the old 'merge' function, except with a new argument C2.
9998         Simplify the body by avoiding the need for different sections
9999         of code depending on whether one input is exhausted.
10000         (merge): Use the new function.
10001         (delete): Return the constraint of the deleted position,
10002         not the entire position.  Caller changed.
10003         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
10005 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10007         dfa: performance improvement for removal of epsilon closure
10008         See Bug#22357#32.
10009         * lib/dfa.c (delete): Use binary search to find deleted index.
10010         (replace): New function.  It replaces a position with the followed set.
10011         (epsclosure): Replace it with a new algorithm.  Update caller.
10013 2016-12-18  Bruno Haible  <bruno@clisp.org>
10015         Split tests for getopt-posix and getopt-gnu.
10016         * tests/test-getopt-posix.c: New file.
10017         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
10018         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
10019         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
10020         GNULIB_TEST_GETOPT_GNU.
10021         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
10022         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
10023         (Makefile.am): Test test-getopt-posix instead of test-getopt.
10024         * modules/getopt-gnu-tests: New file.
10025         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
10027 2016-12-18  Bruno Haible  <bruno@clisp.org>
10029         posix-modules: Add options for specific platforms.
10030         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
10031         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
10032         Invoke func_tmpdir. Filter out the excludes.
10034 2016-12-18  Bruno Haible  <bruno@clisp.org>
10036         getopt: Fix link error for users of getopt() in <unistd.h>.
10037         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
10038         __need_getopt is defined. Undefine all macros before defining them.
10039         * modules/getopt (Include): Clarify that including <unistd.h> is also
10040         OK.
10041         * tests/test-getopt.c: Add comment.
10043 2016-12-17  Bruno Haible  <bruno@clisp.org>
10045         getaddrinfo tests: Avoid compilation error on MSVC.
10046         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
10047         getaddrinfo on native Windows.
10049 2016-12-17  Bruno Haible  <bruno@clisp.org>
10051         getlogin, getlogin_r: Fix link errors on MSVC.
10052         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
10053         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
10054         (Link): New section.
10055         * modules/getlogin_r (Files): Add m4/getlogin.m4.
10056         (configure.ac): Require gl_LIB_GETLOGIN.
10057         (Link): New section.
10058         * NEWS: Mention the new link requirements.
10059         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
10060         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
10062 2016-12-17  Bruno Haible  <bruno@clisp.org>
10064         Un-deprecate the 'progname' module.
10065         * NEWS: Describe the appropriate use-cases of 'progname' versus
10066         'getprogname'. Based on discussion summary at
10067         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
10069 2016-12-17  Bruno Haible  <bruno@clisp.org>
10071         Reorganize NEWS a bit.
10072         * NEWS: Move some not so important changes away from section
10073         "Important Notes".
10075 2016-12-17  Bruno Haible  <bruno@clisp.org>
10077         tanhf: Avoid redefinition error on MSVC.
10078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
10079         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
10080         may be defined as an inline function.
10081         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
10082         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
10084 2016-12-17  Bruno Haible  <bruno@clisp.org>
10086         tanf: Avoid redefinition error on MSVC.
10087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
10088         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
10089         may be defined as an inline function.
10090         * modules/math (Makefile.am): Substitute REPLACE_TANF.
10091         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
10093 2016-12-17  Bruno Haible  <bruno@clisp.org>
10095         sqrtf: Avoid redefinition error on MSVC.
10096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
10097         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
10098         may be defined as an inline function.
10099         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
10100         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
10102 2016-12-17  Bruno Haible  <bruno@clisp.org>
10104         sinhf: Avoid redefinition error on MSVC.
10105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
10106         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
10107         may be defined as an inline function.
10108         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
10109         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
10111 2016-12-17  Bruno Haible  <bruno@clisp.org>
10113         sinf: Avoid redefinition error on MSVC.
10114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
10115         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
10116         may be defined as an inline function.
10117         * modules/math (Makefile.am): Substitute REPLACE_SINF.
10118         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
10120 2016-12-17  Bruno Haible  <bruno@clisp.org>
10122         logf: Avoid redefinition error on MSVC.
10123         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10124         may be defined as an inline function.
10126 2016-12-17  Bruno Haible  <bruno@clisp.org>
10128         log10l: Avoid redefinition error on MSVC.
10129         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10130         may be defined as an inline function.
10132 2016-12-17  Bruno Haible  <bruno@clisp.org>
10134         log10f: Avoid redefinition error on MSVC.
10135         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10136         may be defined as an inline function.
10138 2016-12-17  Bruno Haible  <bruno@clisp.org>
10140         hypotl: Avoid redefinition error on MSVC.
10141         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10142         may be defined as an inline function.
10144 2016-12-17  Bruno Haible  <bruno@clisp.org>
10146         hypotf: Avoid redefinition error on MSVC.
10147         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10148         may be defined as an inline function.
10150 2016-12-17  Bruno Haible  <bruno@clisp.org>
10152         fmodl: Avoid redefinition error on MSVC.
10153         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10154         may be defined as an inline function.
10156 2016-12-17  Bruno Haible  <bruno@clisp.org>
10158         fmodf: Avoid redefinition error on MSVC.
10159         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10160         may be defined as an inline function.
10162 2016-12-17  Bruno Haible  <bruno@clisp.org>
10164         expf: Avoid redefinition error on MSVC.
10165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10166         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10167         may be defined as an inline function.
10168         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10169         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10171 2016-12-17  Bruno Haible  <bruno@clisp.org>
10173         coshf: Avoid redefinition error on MSVC.
10174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10175         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10176         may be defined as an inline function.
10177         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10178         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10180 2016-12-17  Bruno Haible  <bruno@clisp.org>
10182         cosf: Avoid redefinition error on MSVC.
10183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10184         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10185         may be defined as an inline function.
10186         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10187         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10189 2016-12-17  Bruno Haible  <bruno@clisp.org>
10191         atan2f: Avoid redefinition error on MSVC.
10192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10193         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10194         may be defined as an inline function.
10195         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10196         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10198 2016-12-17  Bruno Haible  <bruno@clisp.org>
10200         atanf: Avoid redefinition error on MSVC.
10201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10202         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10203         may be defined as an inline function.
10204         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10205         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10207 2016-12-17  Bruno Haible  <bruno@clisp.org>
10209         asinf: Avoid redefinition error on MSVC.
10210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10211         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10212         may be defined as an inline function.
10213         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10214         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10216 2016-12-17  Bruno Haible  <bruno@clisp.org>
10218         acosf: Avoid redefinition error on MSVC.
10219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10220         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10221         may be defined as an inline function.
10222         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10223         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10225 2016-12-17  Bruno Haible  <bruno@clisp.org>
10227         Avoid redefinition errors on MSVC.
10228         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10229         the function may be defined as an inline function.
10230         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10231         the function may be defined as an inline function.
10233 2016-12-17  Bruno Haible  <bruno@clisp.org>
10235         Avoid redefinition errors on MSVC.
10236         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10237         * lib/unistd.in.h: Include <stdio.h> when necessary.
10239 2016-12-17  Bruno Haible  <bruno@clisp.org>
10241         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10242         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10243         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10244         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10245         WINT_MAX.
10247 2016-12-17  Bruno Haible  <bruno@clisp.org>
10249         Avoid autoconf warning.
10250         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10251         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10253 2016-12-17  Bruno Haible  <bruno@clisp.org>
10255         fpending: Revert workaround against Emacs bug.
10256         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10257         The Emacs bug is fixed by Eli Zaretskii in
10258         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10260 2016-12-17  Bruno Haible  <bruno@clisp.org>
10262         getlogin_r tests: Port to mingw.
10263         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10264         regression introduced on 2014-05-19.
10266 2016-12-17  Bruno Haible  <bruno@clisp.org>
10268         getlogin: Port to newer mingw.
10269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10270         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10271         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10272         HAVE_GETLOGIN.
10273         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10274         HAVE_GETLOGIN.
10275         * doc/posix-functions/getlogin.texi: Mention the issue.
10276         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10277         regression introduced on 2014-05-14.
10279 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10281         builtin-expect: improve port to IBM XL C
10282         Problem reported for z/OS by Daniel Richard G. in:
10283         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10284         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10285         Test for <builtins.h> directly.
10287         builtin-expect: port to IBM XL C
10288         Problem reported for z/OS by Daniel Richard G. in:
10289         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10290         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10291         Also allow __builtin_expect defined via a standard include file.
10293         regex: fix dependency
10294         Problem reported by Bruno Haible in:
10295         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10296         * modules/regex: Depend on builtin-expect.
10298         builtin-expect: new module
10299         Fix fnmatch to use it.
10300         Problem reported for z/OS by Daniel Richard G.
10301         * lib/fnmatch.c (__builtin_expect):
10302         * lib/glob.c (__builtin_expect):
10303         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10304         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10305         * lib/scandir.c (__builtin_expect):
10306         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10307         Remove macro; config.h now does this.
10308         * lib/gl_anytreehash_list1.h (add_to_bucket):
10309         * lib/regex_internal.h (BE):
10310         Assume __builtin_expect.
10311         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10312         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10313         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10314         * modules/scandir, modules/strstr-simple:
10315         Depend on builtin-expect.
10317 2016-12-15  Bruno Haible  <bruno@clisp.org>
10319         init.sh: Add possibility to not delete temporary files.
10320         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10321         to yes, don't erase the temporary directory.
10323 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10325         regex: fix integer-overflow bug in never-used code
10326         Problem reported by Clément Pit–Claudel in:
10327         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10328         * lib/regex_internal.h: Include intprops.h.
10329         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10330         behavior on integer overflow.
10331         * modules/regex (Depends-on): Add intprops.
10333         fpending: fix port to MinGW on Emacs
10334         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10335         Problem reported by Eli Zaretskii in:
10336         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10337         Is Plan 9 still a valid porting target, anyway?
10339 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10341         safe-alloc: use xalloc-oversized
10342         * lib/safe-alloc.c: Include xalloc-oversized.h.
10343         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10344         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10346         xalloc: do not exceed PTRDIFF_MAX
10347         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10348         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10349         bytes have pointer-subtraction problems.
10351         malloca: do not exceed PTRDIFF_MAX
10352         * lib/malloca.h: Include xalloc-oversized.
10353         (nmalloca): Use xalloc_oversized instead of rolling our own.
10354         * modules/malloca (Depends-on):
10355         * modules/relocatable-prog-wrapper (Depends-on):
10356         Add xalloc-oversized.
10358         quotearg: pacify GCC better
10359         * modules/quotearg (Depends-on): Add minmax, stdint.
10360         * lib/quotearg.c: Include minmax.h, stdint.h.
10361         (nslots): Now int, as there seems little point to going to extra
10362         work merely to support the INT_MAX slot, which nobody ever uses.
10363         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10364         and to catch (mostly-theoretical) ptrdiff_t problems too.
10365         This can be done via one comparison.
10367 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10369         xalloc-oversized: check for PTRDIFF_MAX too
10370         This avoids undefined behavior when subtracting pointers to
10371         objects containing more than PTRDIFF_MAX bytes.
10372         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10373         Also return 1 if the result would exceed PTRDIFF_MAX>
10374         * modules/xalloc-oversized (Depends-on):
10375         Add stdint.
10377         dfa: fix glitches in previous commit
10378         Sorry, I don't know how I managed to commit the wrong version.
10379         * lib/dfa.c (MIN): Move up.
10380         (xpalloc): Now static.
10382         dfa: fix some unlikely integer overflows
10383         I found these while reviewing the recent Coverity-related fix.
10384         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10385         size_t for object counts.  Using ptrdiff_t is the style typically
10386         used in Emacs; although it wastes a sign bit as sizes can never be
10387         negative, it makes -fsanitize=undefined more likely to catch
10388         integer overflows in index calculation, and nowadays the upside is
10389         typically more important than the downside.  Although perhaps the
10390         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10391         of dfa.c already does, since it uses state_num which is signed),
10392         that is a bigger change and is not needed to fix the bugs I found.
10393         * lib/dfa.c: Include stdint.h and intprops.h.
10394         (TOKEN_MAX): New macro.
10395         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10396         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10397         (realloc_trans_if_necessary, free_mbdata):
10398         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10399         This is safe because xpalloc checks that the sizes do not exceed
10400         either SIZE_MAX or PTRDIFF_MAX.
10401         (xpalloc): New function, mostly taken from Emacs.
10402         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10403         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10404         (charclass_index): Check for integer overflow in computing
10405         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10406         added to it later.
10407         (alloc_position_set): Check for integer overflow.  On typical
10408         platforms this check has zero overhead, since the constant
10409         expression is false.
10410         (realloc_trans_if_necessary):
10411         Remove assertion, which I hope Coverity no longer needs.
10413         * modules/dfa (Depends-on): Add intprops, stdint.
10415 2016-12-12  Jim Meyering  <meyering@fb.com>
10417         dfa: add an assertion to avoid coverity false positive
10418         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10419         warned that "newalloc1 - 2" could overflow.
10421 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10423         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10424         * dfa.h (DFA_CASE_FOLD): Remove.
10425         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10427 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10429         link: fix test to declare use of rename()
10430         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10431         -Werror=implicit-function-declaration
10433 2016-12-12  Bruno Haible  <bruno@clisp.org>
10435         fpending: Port to native Windows with MSVC.
10436         * lib/fpending.c: Include stdio-impl.h.
10437         (__fpending): Include all known implementations. Err out if it's not
10438         ported.
10439         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10440         * modules/fpending (Files): Add lib/stdio-impl.h.
10441         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10443 2016-12-12  Bruno Haible  <bruno@clisp.org>
10445         stdioext: Port to native Windows with MSVC.
10446         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10447         (struct _gl_real_FILE): New type.
10448         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10449         Windows.
10450         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10451         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10452         other SystemV derived implementations.
10453         * lib/fpurge.c (fpurge): Likewise.
10454         * lib/freadable.c (freadable): Likewise.
10455         * lib/freadahead.c (freadahead): Likewise.
10456         * lib/freading.c (freading): Likewise.
10457         * lib/freadptr.c (freadptr): Likewise.
10458         * lib/freadseek.c (freadptrinc): Likewise.
10459         * lib/fseeko.c (fseeko): Likewise.
10460         * lib/fseterr.c (fseterr): Likewise.
10461         * lib/fwritable.c (fwritable): Likewise.
10462         * lib/fwriting.c (fwriting): Likewise.
10463         Reported by Gisle Vanem <gvanem@yahoo.no>.
10465 2016-12-11  Jim Meyering  <meyering@fb.com>
10467         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10468         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10469         to work with most shells, but not with the one provided by many
10470         Solaris 10 systems, so running configure with such a /bin/sh evokes
10471         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10472         Reported by Assaf Gordon in
10473         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10475 2016-12-10  Bruno Haible  <bruno@clisp.org>
10477         threadlib: Optimize out runtime test on Solaris >= 10.
10478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10479         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10480         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10482 2016-12-10  Bruno Haible  <bruno@clisp.org>
10484         stdint: Update doc about Solaris 9.
10485         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10487 2016-12-09  Bruno Haible  <bruno@clisp.org>
10489         c-ctype tests: Fix link error on Solaris 9.
10490         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10491         Reported at <https://savannah.gnu.org/bugs/?46827>.
10493 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10495         dfa: fix performance bug that recomputes trans
10496         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10497         25 on-demand changes.  The bug caused build_state to reset all
10498         d->trans elements to -2 even when d->trans was already non-null.
10499         Use C99 style decls after statements in this function.
10501         same-inode: port to MinGW
10502         Here st_ino is always 0, so change the definition of SAME_INODE so
10503         that 1 means the two files are the same, 0 with st_ino != 0 means
10504         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10505         reported by Bruno Haible (Bug#25146).
10506         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10507         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10509 2016-12-04  Bruno Haible  <bruno@clisp.org>
10511         javacomp-script: Support Java 7 and 8.
10512         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10513         target-version 1.7, 1.8.
10515 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10517         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10518         GPLv2" rewriting.
10520 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10522         * gnulib-tool (func_import): Adhere to the license guideline when
10523         rewriting the license text to "LGPLv3+ or GPLv2":
10524         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10526 2016-12-02  Bruno Haible  <bruno@clisp.org>
10528         localcharset: Avoid theoretical buffer overrun.
10529         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10530         return value from setlocale if it would lead to a buffer overrun.
10532 2016-12-01  Bruno Haible  <bruno@clisp.org>
10534         Relicense some modules under LGPLv2+.
10535         Kevin Cernekee's approval is in
10536         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10537         * modules/fseterr (License): Change to LGPLv2+.
10538         * modules/mbchar (License): Likewise.
10539         * modules/mbiter (License): Likewise.
10540         * modules/mbsnlen (License): Likewise.
10541         * modules/wcwidth (License): Likewise.
10543 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10545         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10546         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10547         OS/2 kLIBC.
10549 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10551         alphasort, scandir: Port to OS/2 kLIBC
10552         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10553         declaration.
10554         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10556 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10558         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10559         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10560         with '/@unixroot'.
10562 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10564         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10565         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10566         OS/2 kLIBC unless TCPV40HDRS is defined.
10568 2016-11-29  Jim Meyering  <meyering@fb.com>
10570         dfa: avoid new infinite loop
10571         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10572         * lib/dfa.c (dfastate): When constructing a new state table, we could
10573         initially declare that we had found a match, and later find that
10574         constraints eliminate that possibility, yet continue to use the
10575         now stale "matched" indicator.  That would lead to an infinite loop.
10576         The solution is to update "matched" when necessary.
10577         Introduced by commit v0.1-983-g403adf1.
10579 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10581         dfa: avoid match middle in multibyte character
10582         * lib/dfa.c (transit_state): If fails in matching single byte characters
10583         on a state including period expression in non-UTF8 multibyte locales,
10584         skip trailing bytes.
10585         (dfa_supported): Revert previous change.
10587 2016-11-27  Jim Meyering  <meyering@fb.com>
10589         dfa: avoid false match in non-UTF8 multibyte locales
10590         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10591         as "not supported" so that callers will resort to using regex-based
10592         matcher.  This will surely hurt performance, but correctness trumps
10593         performance here, and the affected locales are less and less relevant,
10594         these days.  See grep's bug report https://bugs.gnu.org/24975.
10596 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10598         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10599         * lib/ptsname_r.c: Include the appropriate headers.
10600         [__sun]: Delete sys/sysmacros.h include.
10601         [_AIX || __osf__]: Likewise.
10602         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10604 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10606         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10607         * lib/md4.c (md4_process_bytes): The existing define is made internal
10608         in recent versions of glibc, so also use this new public define.
10609         * lib/md5.c (md5_process_bytes): Likewise.
10610         * lib/sha1.c (sha1_process_bytes): Likewise.
10611         * lib/sha256.c (sha256_process_bytes): Likewise.
10612         * lib/sha512.c (sha512_process_bytes): Likewise.
10614 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10616         maint: use a more standard return from mbrtowc test
10617         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10618         from the test program as this often indicates an
10619         unhandled case in the test program.
10620         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10621         (gl_MBRTOWC_SANITYCHECK): Likewise.
10622         (gl_MBRTOWC_NULL_ARG2): Likewise.
10623         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10625 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10627         freopen: work around glibc bug with closed fd
10628         Work around glibc bug#15589, where freopen mishandles the case
10629         where stdin etc. are already closed.
10630         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10631         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10632         instead of __need_FILE, as the latter does not work with glibc.
10633         Include <fcntl.h>, for open flags.
10634         (rpl_freopen): Work around glibc bug.
10635         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10636         * modules/freopen (Depends-on): Add fcntl-h.
10637         * tests/test-freopen.c (main): Test for bug.
10639 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10641         fnmatch: fix typo introduced on 2016-08-17
10642         This fixes the port to non-GCC compilers that lack __builtin_expect.
10643         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10645         dfa: simplify with new function fillset
10646         * lib/dfa.c (fillset): New function.
10647         Use it for clarity when applicable.
10649         dfa: fix glitches with on-demand states
10650         Also, adjust commentary to better match new code.
10651         Some of these glitches predate the recent change.
10652         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10653         only non-initial states.
10654         (dfastate): Rename locals to better match new roles.
10655         Move them into nested scopes if this is easy.
10656         Omit unnecessary calls to zeroset.
10657         Simplify test for whether to throw in the positions of state 0.
10658         Omit C99-ism (decl after statement) since Gawk still wants C89.
10659         (build_state): Omit unnecessary test and assignment.
10660         Fix some confusion that counted transition tables inaccurately
10661         and could cause a memory leak.
10662         (dfaexec_main): Redo to make it clearer to the compiler that
10663         -1 and -2 are the only negative state numbers here.
10665 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10667         dfa: addition of new state on demand
10668         * src/dfa.c (dfastate): Add argument UC, the current input character.
10669         Fill only a group including the character in transition table.
10670         (realloc_trans_if_necessary): Add the dummy state which means that a
10671         transition table is assigned but the next state is not assigned.
10672         (build_state): Return the next state.  All callers updated.
10673         (transit_state_singlebyte): If we get the dummy state,
10674         fill the transition table.
10675         (dfaexec_main): Handle the dummy state.
10676         (free_mbdata, dfafree): Consider the dummy state.
10678 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10680         srclist: sync with released gettext
10681         * config/srclist.txt: Set "release" option to the files under
10682         $GETTEXT.
10684 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10686         srclist: add "release" option
10687         * config/srclist.txt: Change the format so that the first column
10688         of each line points to the top-level directory of the source
10689         archive.
10690         * config/srclist-update: Accept "release" option that checks files
10691         from the most recently tagged revision in the source archive.
10693 2016-11-21  Bruno Haible  <bruno@clisp.org>
10695         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10696         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10697         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10698         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10699         Inline and remove member function 'rpl ()' of the wrapper struct.
10701 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10703         dfa: fix logic typo
10704         Problem reported by Stephane Chazelas (Bug#24973).
10705         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10706         non-simple locales like fr_FR to be treated as simple.
10708 2016-11-20  Jim Meyering  <meyering@fb.com>
10710         fix test driver leaks: exclude, malloc, realloc
10711         * tests/test-exclude.c (main): Fix trivial leak.
10712         * tests/test-malloc-gnu.c (main): Likewise.
10713         * tests/test-realloc-gnu.c (main): Likewise.
10714         With these changes, grep's tests are now leak free.
10715         I.e., running them with ASAN elicits no failure:
10716           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10717             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10719 2016-11-11  Bruno Haible  <bruno@clisp.org>
10721         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10722         * modules/libunistring: (License): Change from LGPL to
10723         "LGPLv3+ or GPLv2".
10724         * modules/libunistring-optional: Likewise.
10725         * modules/unicase/*: Likewise.
10726         * modules/uniconv/*: Likewise.
10727         * modules/unictype/*: Likewise.
10728         * modules/unigbrk/*: Likewise.
10729         * modules/unilbrk/*: Likewise.
10730         * modules/uniname/*: Likewise.
10731         * modules/uninorm/*: Likewise.
10732         * modules/unistdio/*: Likewise.
10733         * modules/unistr/*: Likewise.
10734         * modules/uniwbrk/*: Likewise.
10735         * modules/uniwidth/*: Likewise.
10737 2016-11-12  Bruno Haible  <bruno@clisp.org>
10739         Relicense some modules under LGPLv2+.
10740         Paul Eggert's approval is in
10741         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10742         Eric Blake's approval is in
10743         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10744         Ludovic Courtès's approval is in
10745         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10746         * modules/isnand-nolibm (License): Change to LGPLv2+.
10747         * modules/isnanf-nolibm (License): Likewise.
10748         * modules/isnanl-nolibm (License): Likewise.
10750 2016-11-19  Bruno Haible  <bruno@clisp.org>
10752         Relicense some modules under LGPLv2+.
10753         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10754         modules/vasnprintf.
10755         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10756         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10757         All other significant changes to the files in lib/ of these modules
10758         are from me.
10759         * modules/memcmp2 (License): Change to LGPLv2+.
10760         * modules/amemxfrm (License): Likewise.
10761         * modules/fpieee (License): Likewise.
10762         * modules/fpucw (License): Likewise.
10763         * modules/frexp-nolibm (License): Likewise.
10764         * modules/frexpl-nolibm (License): Likewise.
10765         * modules/printf-frexp (License): Likewise.
10766         * modules/printf-frexpl (License): Likewise.
10767         * modules/printf-safe (License): Likewise.
10768         * modules/signbit (License): Likewise.
10770 2016-11-17  Bruno Haible  <bruno@clisp.org>
10772         Enable Unicode decoder safety unconditionally.
10773         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10774         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10775         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10776         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10777         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10778         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10779         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10780         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10781         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10782         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10783         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10784         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10785         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10786         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10787         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10788         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10789         * lib/unistr/u32-next.c (u32_next): Likewise.
10790         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10791         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10792         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10793         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10794         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10795         CONFIG_UNICODE_SAFETY tests unconditionally.
10796         * tests/unistr/test-u32-mblen.c (main): Likewise.
10797         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10798         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10799         * tests/unistr/test-u32-next.c (main): Likewise.
10800         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10801         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10802         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10803         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10804         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10805         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10806         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10807         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10808         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10809         * lib/unistr/u16-check.c (u16_check): Update comment.
10810         * NEWS: Mention the changes that callers should be aware of.
10812 2016-11-19  Bruno Haible  <bruno@clisp.org>
10814         relocatable-prog-wrapper: Fix breakage on Cygwin.
10815         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10816         (Depends-on): Remove intprops.
10817         * lib/relocwrapper.c: Update dependency tree.
10818         (strerror): Undefine.
10819         * build-aux/install-reloc (func_create_wrapper): Do not compile
10820         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10822 2016-11-19  Bruno Haible  <bruno@clisp.org>
10824         strerror: Make it compile in C++ mode.
10825         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10827 2016-11-15  Pedro Alves  <palves@redhat.com>
10829         sys_time: add gnulib::timeval for C++
10830         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10831         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10832         timeval macro.
10834 2016-11-14  Pedro Alves  <palves@redhat.com>
10836         snippet/c++defs: fix real-floating arg functions in C++ mode
10837         Also, define isfinite, isinf, isnan, signbit in the gnulib
10838         namespace instead of in the global namespace.
10839         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10840         (_GL_END_NAMESPACE): New.
10841         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10842         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10843         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10844         instead of in the global namespace.
10845         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10846         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10847         of in the global namespace.
10849 2016-11-13  Jim Meyering  <meyering@fb.com>
10851         strftime: don't use __THROW
10852         Each use of __THROW would provoke this from gcc-7-to-be:
10854           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10855             on unit local functions [-Wattributes]
10856           static int iso_week_days (int, int) __THROW;
10857           ^~~~~~
10858         * lib/strftime.c (__THROW): Don't define.
10859         Remove each use of __THROW.
10860         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10861         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10863 2016-11-14  Paul Eggert  <eggert@union>
10865         obstack: port to gcc -fcheck-pointer-bounds
10866         Problem found by 'make check' failure on bleeding-edge coreutils
10867         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10868         6.2.0-5ubuntu12), configured via "./configure
10869         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10870         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10871         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10872         New macro, copied from fts_.h.
10873         (struct _obstack_chunk.contents): Use it.
10875 2016-11-14  Eric Blake  <eblake@redhat.com>
10877         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10879         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10881 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10883         strptime: fix compile error in recent change
10884         * lib/strptime.c (__strptime_internal): Fix ported code.
10886 2016-11-11  Bruno Haible  <bruno@clisp.org>
10888         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10889         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10890         (func_import): Extend determination of license_incompatibilities.
10891         (func_create_testdir): Extend table of license compatibility. Handle
10892         also the licenses GPLv3+, GPL, LGPLv3+.
10894 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10896         strftime: tune %q
10897         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10899         Merge strftime.c changes from glibc
10900         This incorporates:
10901         2007-10-16 [BZ #5184] Add tzset_called argument
10902         2008-06-13 [BZ #6612] pass reference to tzset_called around
10903         2009-10-30 Implement Burmese language locale for Myanmar
10904         2010-01-09 Add support for XPG7 testing
10905         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10906         2015-10-20 Convert miscellaneous function definitions to prototype style
10907         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10908         it anyway and this lessens the difference between gnulib and glibc.
10909         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10910         (__THROW): Define if standard headers do not.
10911         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10912         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10913         Declare with __THROW.
10914         (__strftime_internal): Rename from strftime_case_. Add arg for
10915         whether tzset is called.  All uses changed.  Call tzset at most
10916         once.  Allow %OC, for Burmese.
10917         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10918         Don't assume values are in range.
10920 2016-11-12  Eric Blake  <eblake@redhat.com>
10922         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10923         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10924         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10925         different value.
10927 2006-11-12  Pedro Alves  <palves@redhat.com>
10929         Fix gnulib C++ namespace support and std::frexp
10930         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10931         _GL_CXXALIASWARN.
10933 2006-11-12  Pedro Alves  <palves@redhat.com>
10935         GNULIB_NAMESPACE::func need not pull in rpl_func
10936         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10937         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10938         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10939         struct instead of a function pointer.
10941 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10943         manywarnings: fix -Wno-missing-field-initializers detection
10944         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10945         to be independent of -Wunused-variable.  I.E. ensure the latter
10946         warning doesn't occur so that detection of the former is accurate.
10948 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10950         strftime,strptime: support %q to represent the quarter
10951         * lib/strftime.c (strftime_case_): Add %q case.
10952         * lib/strptime.c (__strptime_internal): Likewise.
10953         * tests/test-strftime.c (quarter_test): A new test case.
10955 2016-11-03  Eric Blake  <eblake@redhat.com>
10957         bootstrap: Fix get_version() for AIX 5.3
10958         * build-aux/bootstrap (get_version): Factor out sed script, since
10959         indented comments choke AIX 5.3 sed.
10960         Reported-by: Michael Felt <aixtools@gmail.com>
10962 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10964         intprops: port to older XL C
10965         Problem reported by Alexander Samoilov in:
10966         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10967         http://savannah.nongnu.org/bugs/?49448
10968         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10969         Define to 1 only for XL C 12.1 or later, since this bug
10970         occurs in XL C for AIX 6.0 but not in 12.1.
10972 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10974         backupfile: initialize default suffix within the implementation
10975         * lib/backupfile.c (find_backup_file_name): Initialize the
10976         global variable here, to simplify usage, and to only call
10977         getenv() when needed.
10979 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10981         futimens: remove FIXME for old Linux kernels
10982         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10983         this in 2012" FIXME, like that for utimensat.
10985         utimensat: remove FIXME for old Linux kernels
10986         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10988         this in 2012" FIXME, by assuming the file system bug is absent
10989         unless demonstrated to be present.  We no longer need to worry
10990         about Linux kernel 2.6.32 when building with newer kernels.
10992 2016-10-16  Bruno Haible  <bruno@clisp.org>
10994         qsort_r: Fix macrology for platforms that lack the function.
10995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10996         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10997         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10998         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10999         not exist.
11000         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
11001         the function exists.
11002         * modules/qsort_r: Add comments.
11004 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11006         sys_types: fix Texinfo typos
11007         * doc/glibc-functions/gnu_dev_major.texi:
11008         * doc/glibc-functions/gnu_dev_makedev.texi:
11009         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
11011 2016-10-26  John David Anglin  <dave.anglin@bell.net>
11013         getprogname: port to HP-UX
11014         See Bug#24805.
11015         * lib/getprogname.c (getprogname) [__hpux]: Port.
11016         * tests/test-getprogname.c (STREQ) [__hpux]:
11017         Special-case for HP-UX limitations on program name length.
11019 2016-10-20  Bruno Haible  <bruno@clisp.org>
11021         Update doc about target platforms.
11022         * doc/gnulib-intro.texi (Target Platforms): Update list.
11024 2016-10-15  Bruno Haible  <bruno@clisp.org>
11026         opendir, readdir, closedir: Relicense under LGPLv2+.
11027         * modules/opendir (License): Change to LGPLv2+.
11028         * modules/readdir (License): Likewise.
11029         * modules/closedir (License): Likewise.
11031 2016-10-16  Bruno Haible  <bruno@clisp.org>
11033         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
11034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
11035         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
11036         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
11037         HAVE_DECL_STRERROR_R.
11039 2016-10-16  Bruno Haible  <bruno@clisp.org>
11041         Make the 'argp' module work without the 'error' module.
11042         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
11044 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11046         diffseq: restore TOO_EXPENSIVE heuristic
11047         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
11048         (Bug#24715).  The simplest solution is to restore the
11049         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
11050         using a higher threshold to avoid Bug#16848 on smaller files.
11051         * lib/diffseq.h (struct context): Restore member too_expensive.
11052         (struct partition): Restore members lo_minimal, hi_minimal.
11053         (diag, compareseq): Restore arg find_minimal.  All uses changed.
11054         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
11055         1993 to make 'diff' run faster (but not as well) on large inputs,
11056         but use a threshold of 4096 instead of the old 256.
11057         * lib/fstrcmp.c (strcmp_bounded):
11058         * lib/git-merge-changelog.c (compute_differences):
11059         Adjust to diffseq.h changes.
11061 2016-10-22  Bruno Haible  <bruno@clisp.org>
11063         iconv: Avoid compilation error when bootstrapping GNU libiconv.
11064         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
11065         declaration yet, define ICONV_CONST to empty.
11067 2016-10-15  Bruno Haible  <bruno@clisp.org>
11069         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
11070         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
11071         module.
11073 2016-10-16  Bruno Haible  <bruno@clisp.org>
11075         system-quote tests: Avoid compiler warning on AIX.
11076         * tests/test-system-quote-child.c (fopen): Redefine like the system's
11077         <stdio.h> does.
11079 2016-10-16  Bruno Haible  <bruno@clisp.org>
11081         Fix some "gcc -Wall" warnings.
11082         * tests/test-ffsl.c (main): Use variable x, not i.
11083         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
11084         freopen.
11085         * tests/test-sethostname1.c (main): Explicitly ignore the return value
11086         of sethostname.
11088 2016-10-16  Bruno Haible  <bruno@clisp.org>
11090         gnulib-tool: Make --create-testdir on all modules work again.
11091         * gnulib-tool (func_create_testdir): Don't include the
11092         non-recursive-gnulib-prefix-hack module.
11094 2016-10-21  Daiki Ueno  <ueno@gnu.org>
11096         libunistring: change the maintainer to 'all'
11097         * modules/gen-uni-tables, modules/libunistring:
11098         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
11099         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
11100         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
11101         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
11102         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
11103         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
11104         * modules/uniwidth/*: Change the maintainer to 'all'.
11106 2016-10-16  Bruno Haible  <bruno@clisp.org>
11108         Simplify "configure: checking ..." messages.
11109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
11110         AC_MSG_NOTICE.
11111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11113 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11115         quotearg-tests: pacify gcc -Wall
11116         Problem reported by Bruno Haible in:
11117         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
11118         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
11119         * tests/test-quotearg.h: ... from here.
11121 2016-10-20  Pádraig Brady  <P@draigBrady.com>
11123         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11124         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11125         Needed on Centos <= 4.
11127 2016-10-20  Jim Meyering  <meyering@fb.com>
11129         printf.m4: fix a bug in detecting printf %j support
11130         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11131         uintmax_t is defined in neither stdint.h nor inttypes.h.
11132         Before, this macro might have mistakenly set
11133         gl_cv_func_printf_sizes_c99=yes on such a system.
11134         Spotted by Zev Weiss.
11136 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11138         sched: substitute HAVE_SYS_CDEFS_H too
11139         Problem reported by Tom G. Christensen in:
11140         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11141         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11142         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11144 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11146         quotearg: never write beyond the returned length
11147         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11148         scan of the string when we initially encounter a single quote when
11149         shell quoting, so that if we then switch to a more concise quoting method
11150         we will not have written beyond that returned length.
11151         This is significant for sh-quote, which has separate routines
11152         to determine the length and do the actual quoting.
11153         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11154         now that we never write more than the returned length.
11156 2016-10-18  Bruno Haible  <bruno@clisp.org>
11158         getprogname tests: Avoid failure in packages that use libtool.
11159         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11160         Based on a patch by Jim Meyering.
11162 2016-10-16  Bruno Haible  <bruno@clisp.org>
11164         getprogname: Fix test failure on Cygwin. Comments.
11165         * lib/getprogname.h: Add comments.
11166         * lib/getprogname.c: Add comments. Fix #elif indentation.
11167         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11168         ".exe" suffix.
11170 2016-10-16  Bruno Haible  <bruno@clisp.org>
11172         Make sure the libunistring detection rejects older versions with a
11173         known bug.
11174         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11175         * modules/unistr/u16-strtok (configure.ac): Likewise.
11176         * modules/unistr/u32-strtok (configure.ac): Likewise.
11178 2016-10-18  Bruno Haible  <bruno@clisp.org>
11180         sh-quote, system-quote: revert regression of unit test.
11181         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11182         * tests/test-system-quote-main.c (check_one): Likewise.
11184 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11186         quotearg: fix stale tests
11187         * tests/test-quotearg.c [locale_results]: Add the missing str7
11188         entries to the expected results.
11189         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11190         don't write beyond the returned length, since that's no longer the
11191         case if we switch to a more concise quoting style.
11192         * tests/test-sh-quote.c (check_one): Likewise.
11193         (main): Adjust for the new more concise quoting style.
11194         Reported by Bruno Haible.
11196 2016-10-16  Jim Meyering  <meyering@fb.com>
11198         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11199         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11200         to "$1".  This macro is always invoked with $1 == lib.
11201         Spotted by Bruno Haible
11203 2016-10-16  Bruno Haible  <bruno@clisp.org>
11205         Fix a test crash.
11206         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11207         fails.
11209 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11211         test-limits-h: suppress -Woverlength-strings
11212         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11214 2016-10-15  Bruno Haible  <bruno@clisp.org>
11216         gettime, timespec, utimens: Relicense under LGPL.
11217         * modules/gettime (License): Change to LGPL.
11218         * modules/timespec (License): Likewise.
11219         * modules/utimens (License): Likewise.
11221 2016-10-14  Bruno Haible  <bruno@clisp.org>
11222             Pádraig Brady  <P@draigBrady.com>
11224         canonicalize-lgpl: Support the case path_max > INT_MAX.
11225         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11226         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11228 2016-10-13  Jim Meyering  <meyering@fb.com>
11230         getprogname: IBM z/OS: avoid NULL-dereference
11231         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11232         upon strdup failure.
11234 2016-10-12  Jim Meyering  <meyering@fb.com>
11236         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11237         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11238         and an abbreviated diagnostic rather than verify with the full one,
11239         because the full-length strings would evoke warnings from gcc with
11240         -Woverlength-strings.
11242 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11244         stdint: port SIZE_MAX to glibc s390
11245         Problem reported by Eric Blake in:
11246         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11247         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11248         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11249         correct type, if possible.
11251 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11253         getprogname: port to IBM z/OS
11254         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11256 2016-10-11  Jim Meyering  <meyering@fb.com>
11258         maint: remove stray space after "." in AC_DEFINE comment.
11259         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11260         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11262 2016-10-05  Jim Meyering  <meyering@fb.com>
11264         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11265         * lib/long-options.c (parse_long_options): Add a break statement
11266         to avoid this new warning/failure:
11267         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11268           --create-testdir --dir=/t/x --with-tests --test long-options
11269         ../../gllib/long-options.c: In function 'parse_long_options':
11270         ../../gllib/long-options.c:66:12: error: this statement may \
11271           fall through [-Werror=implicit-fallthrough]
11272                    (*usage_func) (EXIT_SUCCESS);
11273                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11275 2016-10-05  Jim Meyering  <meyering@fb.com>
11277         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11278         Testing this module would fail when using GCC 7 like this:
11279         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11280           --dir=/tmp/x --with-tests --test utimecmp
11281         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11282         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11283           [-Werror=bool-operation]
11284                          time_t s = src_s & ~ (res == 2 * BILLION);
11285                                             ^
11286         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11287           [-Werror=bool-operation]
11288                src_s &= ~ (res == 2 * BILLION);
11289                         ^
11290         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11291         Instead, make it explicit that we intend to apply it to 0 or 1.
11293 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11295         dfa: save memory for states
11296         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11297         states if dfa has a lot of caches.
11299 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11301         wchar, wctype-h: fix for MinGW 3.22.2
11302         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11303         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11304         when included from <string.h>.
11305         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11306         convention for MinGW 3.22.2, to solve issues with their
11307         wctype.h when included from <ctype.h>.
11309 2016-10-05  Jim Meyering  <meyering@fb.com>
11311         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11312         * lib/long-options.c (parse_long_options): Add a break statement
11313         to avoid this new warning/failure:
11314         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11315           --create-testdir --dir=/t/x --with-tests --test long-options
11316         ../../gllib/long-options.c: In function ‘parse_long_options’:
11317         ../../gllib/long-options.c:66:12: error: this statement may \
11318           fall through [-Werror=implicit-fallthrough]
11319                    (*usage_func) (EXIT_SUCCESS);
11320                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11322         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11323         Testing this module would fail when using GCC 7 like this:
11324         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11325           --dir=/tmp/x --with-tests --test utimecmp
11326         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11327         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11328           [-Werror=bool-operation]
11329                          time_t s = src_s & ~ (res == 2 * BILLION);
11330                                             ^
11331         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11332           [-Werror=bool-operation]
11333                src_s &= ~ (res == 2 * BILLION);
11334                         ^
11335         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11336         Instead, make it explicit that we intend to apply it to 0 or 1.
11338 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11340         quotearg: minimize shell quoting using double quotes
11341         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11342         quote in encountered then use double quotes (c style quoting)
11343         when possible, as it simplifies the quoting.
11344         * tests/test-quotearg-simple.c: Add test cases.
11345         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11346         for the fact we now may write beyond the returned length.
11348 2016-10-02  Jim Meyering  <meyering@fb.com>
11350         vasnprintf.c: avoid spurious warning from GCC 7
11351         The presence of cpp directives renders this "FALLTHROUGH" comment
11352         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11353         from GCC 7 built from git on 2016-10-02.
11354         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11355         directives, so that it takes effect once again.  This is clearly
11356         not a proper change, and I will revert it once this bug is fixed:
11357         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11359 2016-10-01  Jim Meyering  <meyering@fb.com>
11361         getprogname: correct the test for a __progname variable
11362         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11363         and AC_LINK_IFELSE to check for a global __progname.  If found,
11364         define HAVE_VAR___PROGNAME.
11365         * lib/getprogname.c (getprogname): Reflect the new name of the
11366         feature- checked preprocessor symbol:
11367         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11369 2016-09-28  Jim Meyering  <meyering@fb.com>
11371         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11372         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11373         fall-through case with a /* fallthrough */ comment.
11375         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11376         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11377         /* fallthrough */ comment.
11379         getprogname: avoid __progname vs program_invocation_short_name pitfall
11380         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11381         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11382         not with Fedora 24's glibc-2.23.1-10.
11383         * lib/getprogname.c (__progname): Move this declaration down...
11384         (getprogname): ... into the #elif block where used, and make it
11385         explicitly "extern".
11387         getprogname: port to OpenBSD 5.1
11388         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11389         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11390         * modules/getprogname (configure.ac): Move most of this code...
11391         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11392         increment serial number, and add a test for __progname.
11393         https://bugs.gnu.org/24562
11394         Reported by Nelson H. F. Beebe.
11396 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11398         sched: port to GCC 6.2.1 on macOS Sierra
11399         Problem reported by Denis Davydov in:
11400         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11401         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11402         Include <sys/cdefs.h> before <sched.h>.
11403         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11404         so that we needn’t worry about the sched.h include bug here.
11405         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11406         and include it before <sched.h> if it exists, when
11407         checking for <sched.h>.
11409         tests/init.sh: port Alpine fix to AIX 7.1
11410         * tests/init.sh (compare_): When attempting to use diff -U3,
11411         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11412         diff -u not outputting a space after leading '+', as the users
11413         of 'compare' should not be that picky about its output format.
11414         In the AIX 7.1 case, return with diff exit status (or with 2 if
11415         trouble), instead of some random nonzero exit status.
11416         * tests/test-init.sh (test_compare): Remove space after leading
11417         '+', so that AIX 7.1 'diff' passes the test.
11419 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11421         nl_langinfo: pacify GCC
11422         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11423         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11425         stdint: also set GL_GENERATE_LIMITS_H
11426         Problem reported by Jim Meyering in:
11427         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11428         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11430         limits-h, stdint: Don't assume extensions, fix typo
11431         * m4/limits-h.m4 (gl_LIMITS_H):
11432         * m4/stdint.m4 (gl_STDINT_H):
11433         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11434         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11435         reported by Jim Meyering in:
11436         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11438 2016-09-21  Jim Meyering  <meyering@fb.com>
11440         getprogname: port to AIX
11441         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11442         and strdup to obtain a short program name string.  Using code from
11443         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11444         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11445         Assaf Gordon reported that this new file would fail to compile on
11446         AIX-7.1 32bit.
11448 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11450         extensions: fix typo in comment
11451         * m4/extensions.m4: Sync from Autoconf master.
11453         stdint: support new _WIDTH macros
11454         * doc/posix-headers/stdint.texi: Document this.
11455         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11456         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11457         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11458         * modules/stdint (Depends-on): Add limits-h.
11459         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11460         * modules/stdint-tests (Depends-on): Add extensions, so that
11461         INTMAX_MAX etc. are defined.
11462         * tests/test-stdint.c: Verify the new macros.
11464         limits-h: new module
11465         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11466         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11467         * doc/posix-headers/limits.texi: Document new module.
11468         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11469         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11471         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11472         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11473         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11474         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11476 2016-09-15  Eric Blake  <eblake@redhat.com>
11478         sys_types: avoid glibc 2.25 warnings about major()
11479         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11480         older autoconf.
11481         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11482         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11483         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11484         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11486         mountlist: include sysmacros.h for glibc
11487         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11488         AC_HEADER_MAJOR.
11489         * lib/mountlist.c (includes): Use correct headers.
11491 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11493         extensions: port to more ISO C TSes
11494         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11495         master, to add support for more recent ISO C TRs and TSes.
11497 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11499         intprops: new macro TYPE_WIDTH
11500         * lib/intprops.h (TYPE_WIDTH): New macro.
11501         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11502         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11503         * lib/parse-datetime.y (parse_datetime2):
11504         Use it.
11506         extensions: port to recent ISO C TRs
11507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11508         Sync from Autoconf master, to add support for recent ISO C TRs.
11509         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11510         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11511         the MinGW option is not an extension.
11513 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11515         dfa: port to Solaris 9
11516         Problems reported by Tom G. Christensen in:
11517         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11518         * modules/dfa (Depends-on): Add isblank.
11519         * modules/dfa-tests (dfa_match_aux_LDADD):
11520         Rename from test_stat_LDADD, to fix typo.
11521         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11523 2016-09-10  Jim Meyering  <meyering@fb.com>
11525         strverscmp: avoid link failure on OS X
11526         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11527         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11529 2016-08-16  Jim Meyering  <meyering@fb.com>
11531         dfa: new module, importing grep's DFA matcher
11532         Since grep's DFA matcher is now being used by two gnulib-enabled
11533         projects, grep and sed, it makes sense to version-control its
11534         sources and unit tests in one place: here.
11535         * modules/dfa: New module.
11536         * modules/dfa-tests: New file.
11537         * lib/dfa.c: New file, from grep.
11538         * lib/dfa.h: Likewise.
11539         * lib/localeinfo.c: Likewise.
11540         * lib/localeinfo.h: Likewise.
11541         * tests/dfa-match-aux.c: Likewise.
11542         * tests/dfa-invalid-char-class.sh: Likewise.
11543         * tests/dfa-match.sh: Likewise, with minor changes.
11544         * MODULES.html.sh (Misc): Add "dfa" to this list.
11546 2016-09-09  Jim Meyering  <meyering@fb.com>
11548         getprogname-tests: don't depend on assert-h
11549         * modules/getprogname-tests (Depends-on): Remove assert-h.
11550         It was not needed, and in fact would cause build failure for
11551         coreutils on some systems.  Reported by Assaf Gordon in https:
11552         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11554 2016-09-07  Jim Meyering  <meyering@fb.com>
11556         getprogname-tests: work also when EXEEXT is nonempty
11557         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11558         * tests/test-getprogname.c (main): Use it.
11559         Suggested by Gisle Vanem.
11561 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11563         getprogname: fix errors in previous change
11564         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11565         s/program_invocation_name/base/
11566         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11568 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11570         parse-datetime: restrict debug output to input string
11571         * lib/parse-datetime.y (parse_datetime2): If we parse
11572         all of the input but determine it's invalid, ensure
11573         we don't output the now invalid input pointer.
11574         This issue was seen with `date -d 'now +1'`.
11576 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11578         flexmember: new macro FLEXALIGNOF
11579         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11580         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11581         this macro.  Update comments.
11583 2016-09-07  Jim Meyering  <meyering@fb.com>
11585         getprogname: port to systems with __argv (mingw, msvc)
11586         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11587         last_component: more general than open coding it with hard-coded "/".
11588         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11589         * modules/getprogname (Depends-on): Add dirname-lgpl.
11590         (configure.ac): Check for __argv in <stdlib.h>.
11591         * modules/getprogname-tests: New file.
11592         * tests/test-getprogname.c: New file.
11593         Suggested by Gisle Vanem in
11594         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11596 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11598         flexmember: port better to GCC + valgrind
11599         With a char[] flexible array member in a struct with nontrivial
11600         alignment, GCC-generated code can access past the end of the
11601         array, because GCC assumes there are padding bytes to get the
11602         struct aligned.  So the common idiom of malloc (offsetof (struct
11603         s, m), n) does not properly allocate an n-byte trailing member, as
11604         malloc’s argument should be the next multiple of alignof (struct s).
11605         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11606         Although C11 apparently permits this GCC optimization (i.e., there
11607         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11608         See the thread containing:
11609         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11610         * lib/flexmember.h: New file.
11611         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11612         * lib/localename.c, lib/time_rz.c:
11613         Include flexmember.h.
11614         * lib/fnmatch_loop.c (struct patternlist):
11615         * lib/localename.c (struct hash_node):
11616         Use FLEXIBLE_ARRAY_MEMBER.
11617         * lib/fnmatch_loop.c (EXT):
11618         * lib/fts.c (fts_alloc):
11619         * lib/glob.c (glob_in_dir):
11620         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11621         * lib/localename.c (gl_lock_define_initialized):
11622         * lib/time_rz.c (tzalloc):
11623         Use FLEXSIZEOF instead of offsetof.
11624         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11625         Check that the size of the struct can be taken.
11626         * modules/flexmember (Files): Add lib/flexmember.h.
11627         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11628         Add flexmember.
11630 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11632         getprogname: port to Solaris 10
11633         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11634         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11635         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11637         stdalign: correct mistake in alignof doc
11638         Problem reported by Joseph Myers in:
11639         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11640         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11641         alignof(S) where S is a structure containing a flexible array
11642         member.  The Gnulib substitute does not support this, but C11 does.
11644 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11646         main.mk: remove sc_program_name, since there is no more need to
11647         use set_program_name in tools (getprogname is enough for most
11648         of the cases).
11649         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11650         * top/maint.mk (sc_program_name): Remove.
11652 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11654         Port tests away from progname, since modules that need the
11655         program name already depend on getprogname.
11656         * modules/acl-tests (Depends-on): Remove progname.
11657         * modules/argmatch (Depends-on): Likewise.
11658         * modules/argmatch-tests (Depends-on): Likewise.
11659         * modules/argp-tests (Depends-on): Likewise.
11660         * modules/argp-version-etc-tests (Depends-on): Likewise.
11661         * modules/array-list-tests (Depends-on): Likewise.
11662         * modules/array-oset-tests (Depends-on): Likewise.
11663         * modules/avltree-list-tests (Depends-on): Likewise.
11664         * modules/avltree-oset-tests (Depends-on): Likewise.
11665         * modules/avltreehash-list-tests (Depends-on): Likewise.
11666         * modules/carray-list-tests (Depends-on): Likewise.
11667         * modules/copy-file-tests (Depends-on): Likewise.
11668         * modules/exclude-tests (Depends-on): Likewise.
11669         * modules/fchownat-tests (Depends-on): Likewise.
11670         * modules/fdopendir-tests (Depends-on): Likewise.
11671         * modules/filenamecat-tests (Depends-on): Likewise.
11672         * modules/fstatat-tests (Depends-on): Likewise.
11673         * modules/fstrcmp-tests (Depends-on): Likewise.
11674         * modules/linked-list-tests (Depends-on): Likewise.
11675         * modules/linkedhash-list-tests (Depends-on): Likewise.
11676         * modules/mkdirat-tests (Depends-on): Likewise.
11677         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11678         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11679         * modules/obstack-printf-tests (Depends-on): Likewise.
11680         * modules/openat-tests (Depends-on): Likewise.
11681         * modules/parse-datetime-tests (Depends-on): Likewise.
11682         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11683         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11684         * modules/quotearg-simple-tests (Depends-on): Likewise.
11685         * modules/quotearg-tests (Depends-on): Likewise.
11686         * modules/rbtree-list-tests (Depends-on): Likewise.
11687         * modules/rbtree-oset-tests (Depends-on): Likewise.
11688         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11689         * modules/spawn-pipe-tests (Depends-on): Likewise.
11690         * modules/system-quote-tests (Depends-on): Likewise.
11691         * modules/uniname/uniname-tests (Depends-on): Likewise.
11692         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11693         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11694         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11695         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11696         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11697         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11698         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11699         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11700         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11701         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11702         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11703         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11704         * modules/unlinkat-tests (Depends-on): Likewise.
11705         * modules/version-etc-tests (Depends-on): Likewise.
11706         * modules/xalloc-die-tests (Depends-on): Likewise.
11707         * modules/xmemdup0-tests (Depends-on): Likewise.
11708         * modules/xprintf-posix-tests (Depends-on): Likewise.
11709         * modules/xvasprintf-tests (Depends-on): Likewise.
11710         * tests/test-argmatch.c: Do not include progname.h.
11711         (main) Stop calling set_program_name.
11712         * tests/test-argp-version-etc.c: Likewise.
11713         * tests/test-argp.c: Likewise.
11714         * tests/test-argv-iter.c: Likewise.
11715         * tests/test-array_list.c: Likewise.
11716         * tests/test-array_oset.c: Likewise.
11717         * tests/test-avltree_list.c: Likewise.
11718         * tests/test-avltree_oset.c: Likewise.
11719         * tests/test-avltreehash_list.c: Likewise.
11720         * tests/test-carray_list.c: Likewise.
11721         * tests/test-copy-acl.c: Likewise.
11722         * tests/test-copy-file.c: Likewise.
11723         * tests/test-exclude.c: Likewise.
11724         * tests/test-fchownat.c: Likewise.
11725         * tests/test-fdopendir.c: Likewise.
11726         * tests/test-filenamecat.c: Likewise.
11727         * tests/test-fstatat.c: Likewise.
11728         * tests/test-fstrcmp.c: Likewise.
11729         * tests/test-linked_list.c: Likewise.
11730         * tests/test-linkedhash_list.c: Likewise.
11731         * tests/test-mkdirat.c: Likewise.
11732         * tests/test-nonblocking-pipe-main.c: Likewise.
11733         * tests/test-nonblocking-socket-main.c: Likewise.
11734         * tests/test-obstack-printf.c: Likewise.
11735         * tests/test-openat.c: Likewise.
11736         * tests/test-parse-datetime.c: Likewise.
11737         * tests/test-pipe-filter-gi1.c: Likewise.
11738         * tests/test-pipe-filter-gi2-main.c: Likewise.
11739         * tests/test-pipe-filter-ii1.c: Likewise.
11740         * tests/test-pipe-filter-ii2-main.c: Likewise.
11741         * tests/test-quotearg-simple.c: Likewise.
11742         * tests/test-quotearg.c: Likewise.
11743         * tests/test-rbtree_list.c: Likewise.
11744         * tests/test-rbtree_oset.c: Likewise.
11745         * tests/test-rbtreehash_list.c: Likewise.
11746         * tests/test-sameacls.c: Likewise.
11747         * tests/test-set-mode-acl.c: Likewise.
11748         * tests/test-spawn-pipe-main.c: Likewise.
11749         * tests/test-system-quote-main.c: Likewise.
11750         * tests/test-unlinkat.c: Likewise.
11751         * tests/test-version-etc.c: Likewise.
11752         * tests/test-xalloc-die.c: Likewise.
11753         * tests/test-xfprintf-posix.c: Likewise.
11754         * tests/test-xmemdup0.c: Likewise.
11755         * tests/test-xprintf-posix.c: Likewise.
11756         * tests/test-xvasprintf.c: Likewise.
11757         * tests/uniname/test-uninames.c: Likewise.
11758         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11759         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11760         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11761         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11762         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11763         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11764         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11765         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11766         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11767         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11768         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11769         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11770         * tests/test-c-stack.c: (program_name): Do not define.
11771         (main): Do not set program_name.
11772         * tests/test-closein.c: Likewise.
11773         * tests/test-xstrtol.c: Likewise.
11774         * tests/test-yesno.c: Likewise.
11776 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11778         Port modules to use getprogname explicitly, instead of requiring
11779         progname to be used (or program_name to be provided).
11780         * lib/argmatch.c: Do not include progname.h.
11781         [TEST] (program_name): Do not define.
11782         [TEST] (main): Call getprogname instead of using program_name.
11783         * lib/c-stack.c: Do not include progname.h.
11784         (program_name): Do not define.
11785         (die): Call getprogname instead of using program_name.
11786         * lib/chdir-long.c: Do not include progname.h.
11787         [TEST_CHDIR] (main): Do not set program_name.
11788         * lib/error.c [!_LIBC]: Include progname.h.
11789         [!_LIBC] (program_name): Define using getprogname.
11790         * lib/euidaccess.c: Do not include progname.h.
11791         [TEST] (main): Do not set program_name.
11792         * lib/git-merge-changelog.c: Include getprogname.h instead of
11793         progname.h.
11794         (usage): Call getprogname instead of using program_name.
11795         (main): Likewise.  Stop calling set_program_name.
11796         * lib/group-member.c: Do not include progname.h.
11797         [TEST] (main): Do not set program_name.
11798         * modules/argmatch (Depends-on): Add getprogname.
11799         * modules/c-stack (Depends-on): Likewise.
11800         * modules/error (Depends-on): Likewise.
11801         * modules/git-merge-changelog (Depends-on): Likewise.
11802         Also remove progname.
11804 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11806         * NEWS: Document the deprecation of the 'progname' module.
11808 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11810         getprogname: new module
11811         This provides a LGPL module for getting the name of the current
11812         program, using the same API found on *BSD systems.
11813         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11814         * modules/getprogname: New files.
11815         * MODULES.html.sh (Misc): Add getprogname.
11817 2016-09-02  Jim Meyering  <meyering@fb.com>
11819         manywarnings: add -fno-common
11820         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11821         to the list.  Quoting the manual, "Compiling with -fno-common is
11822         useful on targets for which it provides better performance, or if
11823         you wish to verify that the program will work on other systems that
11824         always treat uninitialized variable declarations this way [putting
11825         it in the data section]."  If diffutils had been using this sooner,
11826         it would have prevented this duplicate declaration issue:
11827         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11829 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11831         parse-datetime: Fix typo.
11832         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11834 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11836         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11837         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11838         GCC 5 and 6 that have __builtin_sub_overflow but not
11839         __builtin_sub_overflow_p.  With the recent changes, these
11840         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11841         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11842         since the former needs just one runtime comparison whereas the
11843         latter needs two.
11845         strverscmp: sync with glibc
11846         Although this doesn't exactly synchronize with glibc
11847         byte-for-byte, it makes the code behave the same as glibc.
11848         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11849         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11850         difference shouldn't matter in practical use.  All uses changed
11851         back to isdigit.
11852         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11853         (next_state): Now unsigned char array; redo elements.
11854         (result_type): Now signed char array; redo elements.
11855         (__strverscmp): Fix glibc bug 9913 by using new states.
11856         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11858 2016-08-29  Jim Meyering  <meyering@fb.com>
11860         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11861         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11862         similarly to how it was done to intprops.h.
11864 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11866         intprops.h: port recent changes to GCC 6.2.0
11867         * lib/intprops.h (__has_builtin): Move earlier.
11868         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11869         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11870         the last argument can be null.  All uses changed.
11871         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11872         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11873         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11874         and it's not clear which GCC versions it works for.
11875         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11876         its definiens.
11878         intprops.h: use __typeof__ with GCC 7
11879         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11880         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11881         This avoids computing the expression's value (which might overflow!).
11883 2016-08-29  Jim Meyering  <meyering@fb.com>
11885         intprops.h, xalloc-oversized.h: work with gcc 7
11886         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11887         __builtin_mul_overflow each accept a NULL pointer as the third
11888         argument.  However in gcc 7, that is no longer accepted.
11889         Instead, one must use the "_p"-suffixed names, with which, the
11890         third parameter is no longer a pointer.
11891         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11892         the definition: not true for gcc 7 and subsequent.
11893         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11894         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11895         Provide new definitions for gcc 7 and subsequent.
11896         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11897         that works with gcc-7.
11899         intprops.h: fix missing-backslash problems
11900         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11901         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11903 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11905         intprops: fix paren typo on old platforms
11906         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11907         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11908         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11909         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11910         && !defined LLONG_MAX]:
11911         Remove stray paren.
11913         intprops: port to OpenVMS
11914         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11915         * doc/posix-headers/limits.texi: Document the problem.
11916         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11917         Define if not already defined.
11919 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11921         parse-datetime: improve debug implementation
11922         Follow-up to commit 12ad79069 ("add optional debug printing").
11923         Improve parse-datetime's debug implementation: remove macros,
11924         replace global debug flag variable with a function parameter,
11925         use nstrftime for formatting.
11926         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11927         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11928         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11929         debug flag. Existing interface 'parse_datetime' left unmodified.
11930         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11931         (struct parser_control): add 'parse_datetime_debug' member variable.
11932         (parse_datetime): Call new function 'parse_datetime2' without debug.
11933         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11934         pc.parse_datetime_debug variable as needed.
11935         (to_year): Accept new flags parameter, instead of using global variable.
11936         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11937         use struct 'debug' variable instead of global variable.
11938         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11939         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11940         correspnding functions directly instead of using macros.
11941         * modules/parse-datetime: Add gnulib's strftime module.
11943 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11945         c-strcase-tests: port to EBCDIC
11946         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11947         which assume ASCII encoding semantics to run only in ASCII
11948         mode, as they fail in EBCDIC.
11950         sigpipe-tests: fix typo
11951         * tests/test-sigpipe.sh: C, not B.
11953 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11955         canonicalize-lgpl: fix errno after malloca fails
11956         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11957         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11958         * lib/canonicalize-lgpl.c (__realpath):
11959         Don't assume malloca sets errno on failure.
11961 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11963         strtod: port errno handling to z/OS
11964         * lib/strtod.c (strtod): Save and restore errno more reliably.
11966 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11968         strtod: port to z/OS
11969         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11970         implementation.
11972 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11974         strtod: port to z/OS
11975         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11976         implementation.
11978         regex, string: rename to avoid '__string'
11979         * lib/regex.h, lib/string.in.h: Do not use the identifier
11980         '__string', as it is effectively reserved by string.h on z/OS.
11982         c-strcase-tests, wcwidth-tests: depend on c-ctype
11983         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11984         Add c-ctype.
11986 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11988         thread: port to z/OS
11989         * lib/glthread/thread.c, lib/glthread/thread.h:
11990         Rudimentary gl_thread support for z/OS.
11992         maint: port tests to z/OS errno behavior
11993         * tests/test-nonblocking-reader.h:
11994         * tests/test-nonblocking-writer.h:
11995         Accommodate z/OS errno code preferences. (I believe this should
11996         still be within spec; IBM is good at following the letter if not
11997         the spirit of such things.)
11999         maint: preprocessor changes to support z/OS
12000         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
12001         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
12002         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
12003         * tests/test-nonblocking-pipe.h:
12005         fclose, strstr-simple, wchar: port to z/OS
12006         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
12007         Changes to the Autoconf M4 code to support z/OS.  Note that
12008         fclose() is broken in a different way on z/OS than it is on other
12009         systems, thus the special-case in fclose.m4.
12011         iconv_open-utf-tests, iconv-tests: port to EBCDIC
12012         * tests/test-iconv-utf.c, tests/test-iconv.c:
12013         Added appropriately conditional #pragmas so that the test strings
12014         in test-iconv-utf.c are correctly interpreted in ASCII instead of
12015         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
12016         addressed in a more portable way by simply rewriting all the ASCII
12017         literal characters as octal escapes, but then you would lose the
12018         partial readability that the strings have now. Also, iconv_open()
12019         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
12021         c-strcase-tests, wcwidth-tests: port to EBCDIC
12022         * tests/test-c-strcasecmp.c: Include c-ctype.h.
12023         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
12024         * tests/test-wcwidth.c: Likewise.
12026 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12028         stdbool: don't require _Bool for C++
12029         Problem reported by David Seifert in:
12030         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
12031         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
12032         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
12033         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
12034         stricter about checking that bool and _Bool are compatible in C.
12036 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12038         getdelim: remove dependency on realloc-posix
12039         * lib/canonicalize-lgpl.c (alloc_failed)
12040         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
12041         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
12042         Use __set_errno where needed, for consistency.
12043         * lib/getdelim.c (alloc_failed): New function.
12044         (getdelim): Use it.
12046 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
12048         parse-datetime: add optional debug printing
12049         Print parsing information, warnings, and errors to stderr.
12050         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
12051         * lib/parse-datetime.y:
12052         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
12053         (PROGRESS*): Same as DEBUG, for progress reporting.
12054         (dbg_printf): Print message to stderr, with 'date' prefix.
12055         (struct parser_control): Add 'debug_*_seen' variables.
12056         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
12057         (debug_print_current_time, debug_print_relateive_time): Prints the
12058         current/relative date/time value of parser_control.
12059         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
12060         (to_year): Warn about 2-digit year parsing.
12061         (yylex):   Warn about unrecognized words.
12062         (get_effective_timezone): Returns current timezone in minutes.
12063         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
12064         clearly and unambigiously as possible.
12065         (debug_mktime_not_ok): Print detailed information about failed
12066         date/time values.
12067         (parse_datetime): Add DEBUG messages for failures, warnings. Add
12068         PROGRESS messages for status messages.
12069         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
12071 2016-08-06  Jim Meyering  <meyering@fb.com>
12073         tests/init.sh: exclude dash with bad "local" semantics
12074         * tests/init.sh (gl_shell_test_script_): Add a function to
12075         eliminate a shell like "dash" (unlike bash, zsh) that has
12076         surprising/risky "local var='...'" semantics.  Inspired by
12077         the problem and discussion in https://bugs.gnu.org/24116#11.
12079 2016-08-02  Ján Tomko  <jtomko@redhat.com>
12081         maint.mk: expand the prohibit_doubled_word regex
12082         This check has a static list of words that are checked for
12083         repetitions.  Expand it before running the perl script to
12084         avoid using expensive captures.  This decreases the cost
12085         for libvirt from 1.66s to 0.66s.
12086         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
12087         (sc_prohibit_doubled_word): Use it.
12089 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12091         useless-if-before-free: skip non-matching lines early
12092         * build-aux/useless-if-before-free: First match each line with the
12093         simple/quick /\bif\b/ and reject if there is no match. This often
12094         saves the cost of the much more involved regular expression.
12095         For libvirt, this decreases the cost from 1.44s to 1.02s.
12097 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12099         maint.mk: speed up sc_po_check
12100         sc_po_check would skip files based on their names, or on the
12101         existence of files with derived names. Rewrite it to use perl
12102         instead of shell to make the check faster.
12103         * top/maint.mk (perl_translatable_files_list_): Define.
12104         (sc_po_check): Use it.
12106 2016-07-30  Ján Tomko  <jtomko@redhat.com>
12108         maint.mk: speed up require_config_h_first
12109         Instead of spawning three processes per file,
12110         rewrite the check in perl and run it once for all the files.
12111         * top/maint.mk (perl_config_h_first_): Define.
12112         (sc_require_config_h_first): Use it in place of shell code.
12114 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12116         maint.mk: speed up sc_po_check
12117         sc_po_check would skip files based on their names, or on the
12118         existence of files with derived names. Rewrite it to use perl
12119         instead of shell to make the check faster.
12120         * top/maint.mk (perl_translatable_files_list_): Define.
12121         (sc_po_check): Use it.
12123 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12125         obstack: pacify GCC 6 with -Wnull-dereference
12126         Problem reported by Assaf Gordon in:
12127         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12128         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12129         Declare with __attribute_noreturn__.
12130         * lib/obstack.h (__attribute_noreturn__): New macro.
12132 2016-07-13  Eric Blake  <eblake@redhat.com>
12134         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12135         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12136         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12138 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12140         doc: mention glibc SSIZE_MAX buglet
12141         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12143 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12145         printf-posix: Fix mingw build
12146         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12147         expression for detecting C symbol prefixes but forgot to qoute square
12148         brackets in the command line arguments for grep.  That way when
12149         building with mingw the condition was false although it ought to be
12150         true instead.  In particular scenarios this led to the following
12151         compile error:
12153             Cannot export rpl_printf: symbol not found
12154             Cannot export rpl_scanf: symbol not found
12155             collect2: error: ld returned 1 exit status
12157         Fix this by properly quoting square brackets.
12159 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12161         mktime: call tzset as per POSIX
12162         Problem reported by Ludovic Courtès in:
12163         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12164         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12165         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12167 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12169         fts: handle readdir() errors
12170         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12171         but also upon error when it will also set errno.  Therefore
12172         flag the error case from readdir().  We treat the case where
12173         no items are read the same as if the dir can't be accessed,
12174         i.e. by setting fts_errno to FTS_DNR.
12176 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12178         intprops: port better to GCC 7
12179         GCC 7 __builtin_add_overflow supports a new usage form, where the
12180         last argument is a null pointer, and which merely returns 1 if an
12181         overflow would occur.  This is a constant expression if all
12182         arguments are constants, and should generate faster code when code
12183         needs to be generated.
12184         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12185         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12186         Use builtin operations if available.
12187         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12188         operations are available, as it's almost surely faster.
12190 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12192         intprops-test: port to GCC 6
12193         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12194         since the bug is not fixed in GCC 6.1.
12196 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12198         xalloc-oversized: port to GCC 7; fewer warnings
12199         GCC 7 will have a better way to deal with integer overflow.
12200         Plus, fix a warnings problem reported by Tim Ruehsen in:
12201         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12202         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12203         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12204         For GCC 5, use __xalloc_oversized if both args are constants,
12205         or if pedantic.
12207 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12209         regex: port to Sun C
12210         Reported by Daiki Ueno.
12211         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12212         __restrict, in prototype.  This fixes a problem I introduced in
12213         the 2016-02-19 merge from glibc.
12215 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12217         stdbool: Restore __bool_true_false_are_defined check
12218         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12219         __bool_true_false_are_defined is still defined, even with C++11.
12221 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12223         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12224         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12226 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12228         Use GCC_LINT, not lint
12229         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12230         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12231         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12232         Document problem with lint and _Noreturn.
12233         * lib/diffseq.h (IF_LINT, IF_LINT2):
12234         * lib/fts.c (sccsid):
12235         * lib/getndelim2.c (IF_LINT):
12236         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12237         (gl_linked_iterator_from_to):
12238         * lib/gl_anytree_list2.h (gl_tree_iterator)
12239         (gl_tree_iterator_from_to):
12240         * lib/gl_anytree_oset.h (gl_tree_iterator):
12241         * lib/gl_array_list.c (gl_array_iterator)
12242         (gl_array_iterator_from_to):
12243         * lib/gl_array_oset.c (gl_array_iterator):
12244         * lib/gl_carray_list.c (gl_carray_iterator)
12245         (gl_carray_iterator_from_to):
12246         * lib/idcache.c:
12247         * lib/inet_ntop.c (IF_LINT):
12248         * lib/regcomp.c (build_charclass_op, create_tree):
12249         * lib/regex_internal.c (re_acquire_state)
12250         (re_acquire_state_context):
12251         * lib/trigl.c (rcsid):
12252         * lib/trim.c (IF_LINT):
12253         * lib/vasnprintf.c (IF_LINT):
12254         * lib/verify.h (assume):
12255         Treat GCC_LINT like lint.
12257 2016-05-29  Bruno Haible  <bruno@clisp.org>
12259         secure_getenv: Port to many more platforms.
12260         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12261         functions.
12262         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12263         for non-BSD Unix platforms and for native Windows.
12264         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12265         Prompted by a request from Nikos Mavrogiannopoulos.
12267 2016-05-27  Eric Blake  <eblake@redhat.com>
12269         canonicalize: Fix broken probe for realpath.
12270         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12271         in logic introduced in 54615b95.
12273 2016-05-26  Eric Blake  <eblake@redhat.com>
12275         unsetenv: relax to LGPLv2+
12276         * modules/unsetenv (License): Match setenv license.
12278 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12280         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12281         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12282         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12283         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12284         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12285         (generate_html, generate_info, generate_tex, outdir)
12286         (source_extra, split, srcfile, texarg): Move above 'version'.
12287         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12289 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12291         manywarnings: update for GCC 6.1
12292         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12293         Add GCC 6.1 options that apply to C.
12294         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12295         do not apply to C, are obsolescent, etc.
12297 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12299         glob: size_t overflow checks
12300         * lib/glob.c (__has_builtin): New macro.
12301         (size_add_wrapv, glob_use_alloca): New static functions.
12302         (glob, glob_in_dir): Check for size_t overflow in several places,
12303         and fix some size_t checks that were not quite right.
12305         glob: don't assume INT_MAX < SIZE_MAX
12306         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12307         latter is not portable to (probably theoretical) hosts where
12308         SIZE_MAX <= INT_MAX.
12310 2016-05-09  Bruno Haible  <bruno@clisp.org>
12312         Fix undefined behaviour in gettext.h.
12313         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12314         pointer's value after the storage it points to has been freed.
12315         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12316         Spotted by Coverity.
12318 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12320         git-version-gen: avoid undefined shift
12321         Problem reported by Mosè Giordano in:
12322         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12323         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12324         with --prefix or --fallback but without a later argument.  While
12325         we're at it, omit unnecessary quotes.
12327 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12329         glob: merge glibc changes into lib/glob.c
12330         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12331         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12332         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12333           struct dirent [BZ #19779]
12334         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12335           callback gl_readdir
12336         2015-10-20 Convert miscellaneous function definitions to prototype style
12337         2015-10-20 Convert 113 more function definitions to prototype style
12338           (files with assertions)
12339         2015-06-12 Fix getlogin_r namespace (bug 18527).
12340         2014-02-10 Use glibc_likely instead __builtin_expect.
12341         2013-10-20 When glob pattern contains a trailing slash match only
12342           directories. Fixes bug 10278.
12343         2013-09-04 glob: silence -Wattribute warnings
12344         2013-06-07 Avoid use of "register" as optimization hint.
12345         2012-09-25 Use size_t instead of int for internal variables in glob
12346           (bug 14621)
12347         2011-07-20 Check for overflows in expressions
12348         2011-05-28 Remove unused variable
12349         2011-05-22 Add a few more alloca size checks
12350         2010-03-27 Whitespace fixes
12351         2010-03-27 Fix one more issue with the glob patch
12352         2010-03-24 Fix glob with empty pattern
12353         2008-05-27 Remove useless more "if" tests before "free"
12354         * modules/glob (Depends-on): Add stdint.
12356 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12358         mktime: port to stricter signed overflow checking
12359         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12360         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12361         instead of merely for INT_MAX * 2.  In practice platforms that
12362         do the latter also do the former.
12363         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12364         (shr): New static function, replacing SHR.  All uses changed.
12365         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12366         and TIME_T_MAX.  All uses changed.
12367         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12368         Use long_int, not time_t.
12369         (long_int_avg): New static function, replacing time_t_avg.
12370         All uses changed.  Round toward positive infinity, as that
12371         generates slightly better code.
12372         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12373         by INT_ADD_WRAPV.
12374         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12375         (convert_time): New static function.
12376         (ranged_convert): Use it
12377         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12378         Use simpler test for loop exit.
12379         (__mktime_internal): Store negative of guessed offset, to simplify
12380         overflow checking.  Remove no-longer-needed test for small time_t
12381         overflows.
12383         mktime: speed up DEBUG_MKTIME benchmarks
12384         Call tzset just once, at the start, rather than for every test
12385         case.  This lets us measure the CPU cost of mktime as opposed to
12386         that of tzset.  This is relevant when TZ is not set and glibc is
12387         being used.  This speeds up tests by a factor of 40 on my Fedora
12388         23 x86-64 platform.
12389         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12390         to call tzset and as a sanity check.  Later on, use localtime_r
12391         instead of localtime.
12393         mktime: resurrect DEBUG_MKTIME testing
12394         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12395         Include <string.h>, for strcmp.
12397         mktime: simplify DEBUG_MKTIME
12398         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12399         Simplify later usage accordingly.
12401         Port mktime_internal offset to unsigned time_t
12402         This avoids some assumptions about wraparound arithmetic on
12403         signed integer overflow.
12404         * lib/mktime-internal.h (mktime_offset_t): New type.
12405         (mktime_internal): Use it in decl.
12406         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12408         * lib/mktime.c (__mktime_internal, localtime_offset):
12409         * lib/timegm.c (timegm): Use it.
12410         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12411         (gl_FUNC_MKTIME): Require it.
12413 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12415         xstrtol: prohibit monstrosities like "1bB"
12416         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12417         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12418         "B" only if the first suffix needs a base.
12419         * tests/test-xstrtol.sh: Test this.
12421 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12423         xstrtod: reinstate setting of *result upon ERANGE
12424         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12425         the returned limits upon ERANGE, so allow and document that.
12427 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12429         xstrtod: modify *result only if no errors
12430         * lib/xstrtod.c (XSTRTOD).
12432 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12434         btowc: document problems in C locale
12435         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12436         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12438 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12440         mktime: improve integer overflow checking
12441         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12442         (WRAPV): Remove; no longer needed.
12443         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12444         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12445         Remove.  Use intprops.h defns instead.
12446         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12447         Use bool for Boolean, for clarity.
12448         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12449         detect integer overflow.
12450         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12452         intprops: check two's complement assumption
12453         Suggested by Eric Blake in:
12454         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12455         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12456         short, int, long, and (if available) long long are two's complement.
12457         * modules/intprops (Depends-on): Add 'verify'.
12459         intprops, mktime, strtol: assume two's complement
12460         These macros were not portable to every conforming C11 ones'
12461         complement platform.  It's not worth the hassle of porting to some
12462         platforms that use ones' complement or signed magnitude, as such
12463         platforms are almost purely theoretical nowadays and porting even
12464         to some of them makes the code harder to review for little
12465         practical benefit.  Problem reported by Florian Weimer in:
12466         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12467         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12468         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12469         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12470         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12471         (TYPE_SIGNED_MAGNITUDE):
12472         Remove.  All uses rewritten to assume two's complement, which is
12473         all we can reasonably test nowadays anyway.
12474         * top/maint.mk (_intprops_names): Remove the removed macros.
12476 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12478         stdint: port to strict C11 left shift
12479         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12480         Pacify clang -Wshift-negative-value, which should be an issue only
12481         on clang setups where stdint.h does not conform to C11 or to C++11.
12482         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12484 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12486         mbrtowc: work around glibc bug#19932
12487         Fix mbrtowc so that it never returns -1 in the C locale,
12488         as this conflicts with a future version of POSIX
12489         http://austingroupbugs.net/view.php?id=663#c2738
12490         and causes problems with GNU grep: http://bugs.gnu.org/23234
12491         See glibc bug 19932:
12492         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12493         * doc/posix-functions/mbrlen.texi (mbrlen):
12494         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12495         Document the glibc bug.
12496         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12497         Include hard-locale.h, locale.h.
12498         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12499         if the bug is possible.
12500         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12501         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12502         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12503         * modules/mbrtowc (Depends-on): Add hard-locale.
12504         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12505         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12506         * tests/test-mbrtowc5.sh: New file.
12508 2016-04-03  Pedro Alves  <palves@redhat.com>
12510         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12511         When gnulib is configured in C++ mode for a system with a working C99
12512         implementation of stdint.h that predates C++11, gnulib ends up
12513         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12514         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12515         MinGW is LLP64.  Instead of trying to detect the right types, detect
12516         good-enough-pre-C++11 stdint.h and in such case define
12517         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12518         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12519         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12520         conforms to C99.  If it does, check whether it hides symbols
12521         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12522         does, define those macros in config.h.
12524 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12526         argp: merge changes from glibc
12527         Among other things, this should fix problems found by a Coverity
12528         scan and reported by Andrei Borzenkov:
12529         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12530         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12531         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12532         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12533         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12534         * lib/argp.h:
12535         Merge changes from glibc.
12536         * tests/test-argp-2.sh: Adjust to match new behavior.
12538 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12540         stddef: support configuring with g++
12541         Problem reported by Ángel González in:
12542         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12543         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12544         Do not define if _GCC_MAX_ALIGN_T is defined.
12546 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12548         test-framework-sh: minor cleanups
12549         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12550         since strictly speaking POSIX requires this.
12551         (setup_): Do not use the variable 'fail', as that makes the
12552         trace output harder to read ('fail' is typically used by
12553         tests to mean the test failed).  Treat // portably.
12554         Check that new directory is not merely a sibling of the tmp dir.
12555         Avoid unnecessary invocation of tr.
12557         test-framework-sh: revert port to NetBSD 7.0
12558         It was a false alarm; I misinterpreted Assaf Gordon's report.
12559         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12560         Restore.
12561         (test_dir_): Adjust to mktempd_ change.
12562         (mktempd_): Restore 2nd arg.  Use -t again.
12563         (base_template_, template_, nx_): Resurrect old code.
12565         Port better to Alpine Linux
12566         Its diff implementation does not support -c, but does support -U3.
12567         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12568         * tests/init.sh (diff_opt_): New var.
12569         (compare_): Prefer diff -U3 to diff -c to plain diff.
12571 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12573         test-framework-sh: port to NetBSD 7.0
12574         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12575         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12576         Remove.  All uses removed.
12577         (test_dir_): Adjust to mktempd_ change.
12578         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12579         (base_template_, template_, nx_): Simplify by hardcoding.
12581 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12583         gitlog-to-changelog: suppress ignored chatter
12584         * build-aux/gitlog-to-changelog: Do not warn about skipping
12585         an SHA if it would have been ignored anyway.
12587 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12589         setlocale: add "sv" to Windows language table
12590         * lib/setlocale.c (language_table) [W32]: Add "sv".
12591         Reported in <https://savannah.gnu.org/bugs/?44588>.
12593 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12595         sys_select: port to new Cygwin
12596         Problem reported by Ken Brown in:
12597         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12598         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12599         diagnostics.
12601 2016-03-17  Jim Meyering  <meyering@fb.com>
12603         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12604         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12605         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12606           test-userspec.c:176:9: error: statement is indented as if it were \
12607             guarded by... [-Werror=misleading-indentation]
12608                    {
12609                    ^
12610           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12611                  if (!diag && !T[i].result)
12612                  ^~
12614 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12616         time_rz: port to clang -Wunused-const-variable
12617         * lib/time_rz.c (TZ): Remove.  All uses removed.
12619         std-gnu11: improve clang support
12620         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12621         2016-03-15 Also try clang
12622         2016-03-15 Port C11 and C++11 testing to clang
12624         select: port more to Intel 2016.1.150 compiler
12625         Problem reported by Balázs Hajgató in:
12626         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12627         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12629 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12631         select: try to port to 2016.1.150 compiler
12632         Problem reported by Balázs Hajgató in:
12633         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12634         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12635         POSIX specifies 'restrict'.
12637 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12639         localename-tests: memory allocation fixes
12640         * tests/test-localename.c (test_locale_name)
12641         (test_locale_name_thread): Don't call freelocale on a locale
12642         that was the base of a successful newlocale, as that
12643         results in a double free.  Problem reported by Assaf Gordon.
12644         (test_locale_name_thread): Free saved names after use, to pacify
12645         gcc -fsanitize=address.
12647 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12649         intprops: make .h file license match module
12650         * lib/intprops.h: Change the license wording to match glibc format.
12651         This is what is in modules/intprops anyway.  See:
12652         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12654 2016-03-08  Eric Blake  <eblake@redhat.com>
12656         acl: fix missing return on Cygwin
12657         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12658         fall off end of function. Fixes http://bugs.gnu.org/22949
12660 2016-03-05  Bruno Haible  <bruno@clisp.org>
12662         extern-inline: port to PGI CC
12663         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12664         keyword 'inline'.
12665         Reported by Adam James Stewart in:
12666         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12668 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12670         signbit: port back to pre-C++11 GCC
12671         * lib/math.in.h (signbit): Do previous change only if
12672         __cplusplus < 201103.  See Jonathan Wakely in:
12673         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12675 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12677         mountlist: recognize autofs-mounted remote file systems, too
12678         Originally reported at: https://bugzilla.redhat.com/1309247
12679         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12680         "-hosts" because it is used by autofs to mount remote file systems.
12682 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12684         signbit: port to C++ with GCC 6
12685         * lib/math.in.h (signbit) [__cplusplus]:
12686         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12687         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12689         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12691         regex: make it closer to libc
12692         Make Idx a signed type, rather than possibly unsigned.
12693         The unsignedness was not really buying us anything, since the code
12694         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12695         it signed allows us to use -1 and -2 with abandon, like libc does,
12696         thus lessening the number of differences between gnulib and libc.
12697         Also, it should help avoid gratuitous warnings like the one
12698         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12699         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12702         regex: merge patches from libc
12704         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12705         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12706         Convert miscellaneous function definitions to prototype style.
12707         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12708         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12709         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12710         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12711         (re_search_internal):
12712         Convert to prototype-style function definition.
12713         Use internal_function for internal functions.
12715 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12717         stdalign: port to older HP and IBM cc
12718         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12719         C compilers, by checking their version numbers.  These version
12720         numbers appear in MariaDB and in Qt code that dates way back and
12721         that conditiionally uses the 'aligned' attribute.
12723 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12725         stdalign: port to clang 3.7.0
12726         Problem reported by Herbert J. Skuhra in:
12727         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12728         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12729         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12730         https://llvm.org/bugs/show_bug.cgi?id=26547
12732 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12734         readdir_r: now obsolescent
12735         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12736         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12738 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12740         misc: port better to gcc -fsanitize=address
12741         Without these patches, ./configure CFLAGS='-fsanitize=address'
12742         would compute incorrect values.  This patch fixes some (but not all)
12743         test failures with recent glibc, with this configuration.
12744         * m4/acl.m4 (gl_ACL_GET_FILE):
12745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12746         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12747         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12748         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12750         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12751         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12752         * m4/getline.m4 (gl_FUNC_GETLINE):
12753         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12754         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12755         * m4/regex.m4 (gl_REGEX):
12756         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12757         * tests/test-calloc-gnu.c (main):
12758         * tests/test-duplocale.c (main):
12759         * tests/test-getgroups.c (main):
12760         * tests/test-getline.c (main):
12761         * tests/test-inttostr.c (main):
12762         * tests/test-localename.c (test_locale_name)
12763         (test_locale_name_thread, test_locale_name_environ)
12764         (test_locale_name_default):
12765         * tests/test-regex.c (main):
12766         * tests/test-setlocale1.c (main):
12767         * tests/test-stat.h (test_stat_func):
12768         Free heap-allocated storage before exiting.
12769         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12770         Don't match *_foo symbols inserted by AddressSanitizer.
12771         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12773 2016-02-02  Jim Meyering  <meyering@fb.com>
12775         verify-tests: also remove stray test-verify.Tpo
12776         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12777         to remove the test-verify.Tpo file that is left behind by
12778         the automake-generated rule upon compilation failure.
12779         Otherwise, that .Tpo file would cause a failed "make distcheck"
12780         at least for grep.
12782 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12784         std-gnu11: new module
12785         This makes it easier for applications to prefer C11 and C++11
12786         to older variants, when compiling C and C++ code.
12787         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12788         a nontrivial chunk of GPLed Autoconf source code.
12789         * COPYING: Mention the m4/*.m4 copyright situation.
12790         * MODULES.html.sh (std-gnu11): New module.
12791         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12793 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12795         get-permissions, strftime: fix grammar in comments
12796         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12797         some grammar fixes Alan Mackenzie made to GNU Emacs.
12799 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12801         gettext: mark as obsolete
12802         Suggested by Paul Eggert in:
12803         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12804         * modules/gettext (Status): Mark as obsolete.
12805         (Notice): Suggest to use 'gettext-h' instead.
12806         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12807         the 'gettext' module.
12809 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12811         gnulib-tool: don't give up on ln -s so easily
12812         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12813         because an earlier one failed.  The targets could be on different
12814         file systems.  Problem reported by KO Myung-Hun in:
12815         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12817         closedir: fix OS/2-related typos
12818         Problem reported by KO Myung-Hun in:
12819         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12820         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12821         in the last couple of changes.
12823 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12825         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12826         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12827         copying a directory.
12829 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12831         regex: treat [x] as x if x is a unibyte encoding error
12832         Problem reported by Aharon Robbins in:
12833         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12834         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12835         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12837         closedir, dirfd, opendir: port to OpenSolaris 5.10
12838         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12839         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12840         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12841         Don't use ${word##pat} substitution, as it doesn't work in
12842         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12843         http://bugs.gnu.org/22443#11
12845 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12847         bootstrap: use American spelling
12848         * build-aux/bootstrap: Honor American spelling.
12850 2016-01-22  Karl Berry  <karl@freefriends.org>
12852         * doc/posix-functions/localtime.texi,
12853         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12855 2016-01-21  Bruno Haible  <bruno@clisp.org>
12857         hash-pjw-bare: fix comment
12858         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12860         wcwidth: Replace also on OpenBSD 5.8
12861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12862         * doc/posix-functions/wcwidth.texi: Update.
12864 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12866         gnu-web-doc-update: fix addition of new files
12867         If there were already added (emnpty) dirs,
12868         then cvs aborts the add with the message:
12869           cvs [add aborted]: there is a version in <./dirname> already
12870         * build-aux/gnu-web-doc-update: Add directories separately
12871         to the addition of files, to avoid the above issue
12872         impacting the addition of files.
12874 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12876         utimens-tests: avoid pulling gettext .m4 files
12877         Although this is not the right fix to the original problem:
12878         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12879         it makes it possible again for consumer projects to use arbitrary
12880         version of gettext, through the steps described at:
12881         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12882         See here for details:
12883         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12884         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12885         'gettext'.
12886         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12887         'gettext'.
12889 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12891         regex: pacify static checkers
12892         Problem and draft fix reported by Aharon Robbins in:
12893         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12894         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12895         Clear memory to pacify static checkers.
12897         regex: fix [ diagnostic
12898         Problem and fix reported by Aharon Robbins in:
12899         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12900         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12902         regex: fix memory leaks
12903         Problem and draft fix reported by Aharon Robbins in:
12904         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12905         * lib/regcomp.c (build_range_exp, build_charclass_op)
12906         * lib/regex_internal.c (re_dfa_add_node):
12907         Fix memory leak on failure.
12909 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12911         fts: don't unconditionally use leaf optimization for NFS
12912         NFS st_nlink are not accurate on all implementations,
12913         leading to aborts() if that assumption is made.
12914         See <https://bugzilla.redhat.com/1299169>
12915         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12916         the white list, and document the issue.
12918 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12919             KO Myung-Hun  <komh@chollian.net>
12921         gnulib-tool: don't assume ln -s works
12922         * gnulib-tool (func_ln_s): New function.
12923         (func_ln): Use it.
12925 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12927         utimes: detect utimes() correctly on OS/2 kLIBC
12928         utimes() of OS/2 kLIBC has some limitations.
12929         1. OS/2 itself supports a file date since 1980 year in local time.
12930         2. OS/2 itself supports only even seconds for a file time.
12931         3. utimes() of OS/2 kLIBC does not work on an opened file.
12932         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12933         * doc/posix-functions/utimes.texi: Document the above limitations of
12934         utimes() on OS/2 kLIBC.
12936 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12937             KO Myung-Hun  <komh@chollian.net>
12939         openat_proc_name: port to OS/2 kLIBC
12940         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12941         instead of /proc/self/fd.
12942         * lib/openat-proc.c (openat_proc_name):
12943         Don't assume file name length is less than INT_MAX.
12944         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12946 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12948         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12949         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12950         definitions of intptr_t and uintptr_t (which use int and unsigned)
12951         to avoid clashes with declarations of system functions like sbrk.
12952         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12953         _INTPTR_T_DECLARED before defining them.
12955         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12956         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12957         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12958         Declare on kLIBC.
12959         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12960         fd associated with dirp.
12961         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12962         dirp_fd_list.
12963         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12964         (dirfd): Implemented for kLIBC.
12965         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12966         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12967         succeeds.
12968         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12969         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12970         (REPLACE_DIRFD): Define to 1 if replaced.
12971         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12972         * modules/closedir (Depends-on): Add dirfd.
12973         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12974         condition.
12975         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12976         * modules/opendir (Depends-on): Add dirfd.
12978         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12979         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12980         * lib/dup.c (dup_nothrow): New.
12981         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12982         (klibc_dup2): New.
12983         * lib/fcntl.c (klibc_fcntl): New.
12984         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12985         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12986         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12987         fd.
12989         pipe_filter_ii_execute: port to OS/2 kLIBC
12990         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12991         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12992         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12993         Reuse Win32 code on OS/2 kLIBC.
12994         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12995         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12997         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12998         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12999         static inline function.  The implementation of wcwidth in wcwidth.c
13000         causes a "conflicting types" error.
13001         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
13003         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
13004         spawn() on OS/2 kLIBC is not silly like one on Windows
13005         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
13006         empty string on OS/2 kLIBC.
13008         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
13009         On OS/2 kLIBC, select() works only on sockets.
13010         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
13012         binary-io: don't put fd in binary mode if it is a console on EMX
13013         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
13014         a console on EMX.
13016 2016-01-15  Pádraig Brady  <P@draigBrady.com>
13018         doc: mention unfixed issues with unsupported localtime() values
13019         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
13020         returns nonsense for localtime(2^56).
13021         * doc/posix-functions/localtime_r.texi: Likewise.
13023 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13025         doc: mention setlocale() issues on OpenBSD
13026         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
13027         never fails, and the need to check categories individually.
13029 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13031         sig2str: list all signals on FreeBSD >= 7
13032         FreeBSD >= 7 is contravening POSIX by not defining NSIG
13033         to the maximal statically defined signal value.
13034         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
13035         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
13036         where available, even when NSIG is defined.
13038 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13040         acl-permissions: port to USE_ACL==0 platforms
13041         I ran into this problem when building bleeding-edge GNU Emacs
13042         with gcc -fsanitize=address on Fedora 23.  On this platform
13043         the ACL library does not pass the 'configure' test and Emacs
13044         then does not build due in part to what appear to be typos in the
13045         ACL part of Gnulib.
13046         * lib/acl-internal.c (free_permission_context):
13047         * lib/acl-internal.h (struct permission_context):
13048         Test whether USE_ACL is nonzero, not whether it is defined.
13050 2016-01-12  Martin Sebor  <msebor@redhat.com>
13052         mktime: rename macro to avoid glibc clash
13053         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
13054         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
13056 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13058         Port "$@" to OpenIndiana ksh93
13059         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
13060         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
13061         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
13062         bug long-dead shells, so remove the workaround.
13063         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
13064         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13065         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
13066         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
13067         Use "$@" instead of ${1+"$@"}.
13069         Port Universal Time settings to strict POSIX
13070         * build-aux/announce-gen, build-aux/bootstrap:
13071         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
13072         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13073         * build-aux/gnupload, build-aux/mkinstalldirs:
13074         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
13075         * build-aux/update-copyright, build-aux/useless-if-before-free:
13076         * build-aux/vc-list-files, tests/test-strftime.c:
13077         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
13078         but POSIX says the behavior of TZ="UTC" is undefined.
13080 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13082         msvc-inval: fix problem with unset shell var
13083         Problem reported by Karl Berry in:
13084         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
13085         * modules/msvc-inval (Depends-on):
13086         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
13087         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
13089 2016-01-01  Pádraig Brady  <P@draigBrady.com>
13091         tests: for compare_(), use cmp -s where available
13092         * tests/init.sh (compare_): Only fall back to cmp without
13093         the POSIX defined -s option, where this is not available.
13095 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13097         version-etc: new year
13098         * build-aux/gendocs.sh (version):
13099         * doc/gendocs_template:
13100         * doc/gendocs_template_min:
13101         * doc/gnulib.texi:
13102         * lib/version-etc.c (COPYRIGHT_YEAR):
13103         Update copyright dates by hand in templates and the like.
13104         * all files: Run 'make update-copyright'.
13106 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
13108         human: fix output buffer overrun by 1
13109         * lib/human.c (human_readable): Fix off-by-one typo in buffer
13110         calculation that could lead to a one-byte buffer overrun.
13112 2015-12-28  Daiki Ueno  <ueno@gnu.org>
13114         maint: fix operator precedence in mbrtowc test
13115         This is a fix for test breakage introduced by commit 45228d96; the
13116         equality expression must be parenthesized when negated with '!',
13117         otherwise we always get:
13119           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
13121         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13122         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13124 2015-12-23  James Youngman  <jay@gnu.org>
13126         regexprops-generic: update from regex.h
13127         * doc/regexprops-generic.texi: update by running the regexprops binary
13128         from findutils (the command line is 'regexprops "Regular Expressions"
13129         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13130         gnulib with GNU grep had made this document out-of-date.
13132 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13134         strftime-tests: avoid false failure on OS X
13135         * tests/test-strftime.c (struct localtime_rz_test): Add an
13136         ahistorical member which is used to warn rather than fail
13137         when tm_isdst isn't set for such entries.  This is the case for
13138         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13140 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13142         fts: ensure leaf optimization is used for NFS
13143         NFS provides usable dirent.d_type but not necessarily for all entries
13144         of large directories.  See <https://bugzilla.redhat.com/1252549>
13145         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13147 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13149         fts: enable leaf optimization for XFS
13150         XFS provides usable dirent.d_type only for DT_DIR,
13151         but the noleaf optimization still applies.
13152         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13154 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13156         intprops: comment fix
13157         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13158         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13160         intprops-test: work around GCC bug 68971
13161         Problem reported by Pádraig Brady in:
13162         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13163         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13164         (main): Add a case that better tests 64-bit long in this area.
13166 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13168         gnulib-tool: allow multiple --local-dir usage
13169         * gnulib-tool: Use --local-dir to construct compound
13170         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13171         PATH_SEPARATOR early.
13172         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13173         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13174         func_determine_path_separator because that needs to be detected
13175         earlier now.
13176         (func_determine_path_separator): New function.
13177         (func_path_foreach, func_path_foreach_inner): New functions.
13178         (func_path_prepend, func_path_append): Likewise.
13179         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13180         (func_lookup_file, func_all_modules): Use new functions to work
13181         with local_gnulib_path.
13182         (func_modules_in_dir, func_exists_module): New callbacks for
13183         func_path_foreach.
13184         (func_exists_module, func_get_tests_module): Likewise.
13185         (func_is_local_file, func_should_symlink): New helper methods.
13186         (func_add_file, func_update_file): Use new func_should_symlink
13187         instead, DRY.
13188         (func_reconstruct_cached_local_gnulib_path): New helper.
13189         (func_reconstruct_cached_dir): New callback.
13190         (func_import): The cached_local_gnulib_dir renamed to
13191         cached_local_gnulib_path similarly to local_gnulib_dir.
13192         Use new func_reconstruct_cached_local_gnulib_path.
13193         (func_count_relative_local_gnulib_path): New sub-method.
13194         (func_create_testdir): Use func_should_symlink, DRY.
13195         (func_create_megatestdir): Use new functions to work with
13196         local_gnulib_path correctly.
13197         (func_append_local_dir): New helper.
13199 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13201         fix freadptr to work with ungetc on all uClibc configs
13202         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13203         where GNU coreutils cut(1) generates invalid output on uClibc
13204         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13205         * lib/freadptr.c (freadptr): Return NULL if there are
13206         ungotten chars.  In this case freadseek() will iterate
13207         again to process the ungotten character.
13209 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13211         xalloc-oversized: improve performance with GCC 5
13212         * lib/xalloc-oversized.h (xalloc_oversized):
13213         Improve performance with GCC 5 by using __builtin_mul_overflow.
13215 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13217         intprops: new public macro EXPR_SIGNED
13218         Emacs can use this macro, so make it public.
13219         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13220         'Integer Type Determination', since some of these macros apply
13221         to non-integer types.  Clarify what kinds of constant expressions
13222         these macros return.  Say when the arguments can be non-integers.
13223         Mention newly published macro EXPR_SIGNED.
13224         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13225         make it public.  All uses changed.
13227         intprops: fix typo in clang port
13228         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13229         '__builtin_add_overflow' that is not caught by compiler.
13231 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13233         test-timespec: fix typo in previous change
13234         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13236         timespec-sub: fix overflow bug; add tests
13237         * lib/timespec-add.c (timespec_add):
13238         * lib/timespec-sub.c (timespec_sub):
13239         Work even if time_t is narrower than int (a theoretical
13240         possibility).  Redo code for a bit more clarity.
13241         * lib/timespec-sub.c (timespec_sub):
13242         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13243         * modules/timespec-tests, tests/test-timespec.c: New files.
13245         intprops-test: suppress -Woverlength-strings
13246         Problem reported by Pádraig Brady in:
13247         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13248         It is not worth the hassle to port this test to compilers that
13249         cannot handle long strings in diagnostics.
13250         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13252 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13254         quotearg: add quotearg_n_style_colon()
13255         This quotes with default options of the specified style,
13256         but with quoting enabled for instances of ':'.
13257         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13258         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13260 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13262         intprops: revise _WRAPV macros, revert _OVERFLOW
13263         The incompatible changes to the _OVERFLOW macros were too much of
13264         a hassle in practice, so revert them.  Instead, change the new
13265         _WRAPV macros to make them closer in behavior to GCC 5's new
13266         builtin_add_overflow etc. functions.  No other software was using
13267         these newly-added macros yet, so this should be OK.
13268         * NEWS: Revert previous change, since the incompatible change
13269         has been reverted, and nobody used the incompatible version.
13270         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13271         Document revised behavior.
13272         (Integer Range Overflow): Adjust example to match above revisions.
13273         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13274         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13275         these can be used in integer constant expressions again.
13276         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13277         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13278         needed.
13279         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13280         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13281         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13282         Remove, as they did not seem that useful.
13283         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13284         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13285         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13286         Support new semantics.
13287         (__has_builtin): New macro, if not alreay defined.
13288         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13289         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13290         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13291         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13292         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13293         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13294         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13295         New macros.
13296         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13298 2015-11-03  Jim Meyering  <meyering@fb.com>
13300         intprops: add parentheses for when OP has precedence lower than "-"
13301         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13302         "a OP b" must be parenthesized for when OP is like "<<", which has
13303         lower precedence than the following "-". Reported by Pádraig Brady.
13305 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13307         quotearg: constify get_quoting_style parameters
13308         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13309         * lib/quotearg.c (get_quoting_style): Likewise.
13311 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13313         quotearg: add support for $'' shell escaping
13314         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13315         items and descriptions.
13316         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13317         above types by quoting like "shell", but using $'...' syntax
13318         for non printable characters, which should provide unambiguous
13319         printable output for any input.
13320         * tests/test-quotearg-simple.c: Update accordingly.
13322 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13324         maint: use a more standard return from mbrtowc test
13325         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13326         from the test program as this is non standard and often
13327         indicates an unhandled case in the test program.
13328         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13330 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13332         intprops: add WRAPV and const flavors for GCC 5
13333         If available, use GCC 5's builtin functions for efficient integer
13334         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13335         and safely compute the low-order bits of the correct answer.
13336         A downside of these efficient functions is that they cannot be
13337         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13338         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13339         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13340         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13341         Document the changes.
13342         (Wraparound Arithmetic): New section.
13343         (Integer Range Overflow):
13344         Put this subsection last, since it's least useful.
13345         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13346         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13347         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13348         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13349         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13350         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13351         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13352         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13353         New macros.
13354         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13355         Generate calls to GCC builtins if available, for speed.
13356         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13357         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13358         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13359         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13360         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13361         (CHECK_QUOTIENT, CHECK_REMAINDER):
13362         Test WRAPV and CONST flavors (when available) too.
13364 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13366         doc: use extended timezone format in iso-8601 example
13367         * doc/parse-datetime.texi: The standard states that extended format
13368         is to be used consistently throughout.
13369         Note that lib/parse-datetime.y can handle either tz format.
13371 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13373         stdalign: port to Sun C 5.9
13374         * doc/posix-headers/stdalign.texi: Document this.
13375         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13376         __attribute__ ((__aligned__ (...))).
13378 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13380         time_rz: fix comment about tzalloc
13381         * lib/time_rz.c (tzalloc): Fix comment.
13383 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13385         stdalign: work around pre-4.9 GCC x86 bug
13386         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13387         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13388         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13390 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13392         maint.mk: sc_tight_scope: remove extraneous expressions
13393         * top/maint.mk (tight_scope): This is not really required since
13394         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13395         that matches all nm entries.  But it does remove extraneous entries
13396         that may be confusing or cause issue in future maintenance.
13398 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13400         time_rz: return NULL if localtime_r fails
13401         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13402         while still attempting to pacify bleeding-edge GCC.
13404         fts: port to C11 alignof
13405         * doc/posix-headers/stdalign.texi (stdalign.h):
13406         Document the C11 restriction.
13407         * lib/fts.c: Include stddef.h, for max_align_t.
13408         (fts_alloc): Align using max_align_t, not FTSENT.
13409         * modules/fts (Depends-on): Add stddef.
13411 2015-10-18  Jim Meyering  <meyering@fb.com>
13413         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13414         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13415         would see this:
13417         lib/time_rz.c: In function 'localtime_rz':
13418         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13419           [-Werror=nonnull]
13420                    if (tm && !save_abbr (tz, tm))
13421                        ^
13423         That was complaining about "tm" because it is a parameter that was
13424         declared with the __nonnull__ attribute.
13425         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13426         result of localtime_r.
13428 2015-10-17  Jim Meyering  <meyering@fb.com>
13430         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13431         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13432         name-extraction regexp mistakenly used \S+, and would mistakenly
13433         extract "*F" from "extern int *F()" rather than the desired "F".
13434         Use \w+ instead.
13436 2015-10-17  Jim Meyering  <meyering@fb.com>
13438         maint.mk: sc_tight_scope: factor and support OS X
13439         * top/maint.mk (_gl_tight_scope): Address three issues:
13440         - factor out four instances of code that wraps a string in "^...$"
13441         - allow nm-reported symbol names to have an optional leading "_"
13442         - add "main" to the list of ignored variable names, because on os x,
13443         "main" has nm-reported type "S" in the variable-checking section.
13445 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13447         safe-alloc-tests: fix typo in license header
13448         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13450 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13452         copy-file: fix mem leak in error case
13453         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13454         upon error opening or performing I/O to the src and dest files.
13456 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13458         localename: control langinfo.h inclusion
13459         This header is only used to work around buggy behavior in old
13460         versions of glibc, so do not include it all the time.  Otherwise
13461         we get build failures on systems that do not provide langinfo.h.
13462         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13463         in the source later on.
13464         The patch was originally submitted to gettext as:
13465         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13467 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13469         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13470         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13471         * lib/u64.c, lib/unistd.c:
13472         Append 'typedef int dummy;', to pacify compilers that are picky
13473         about empty translation units.
13475 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13477         accept4-tests: fix to avoid non portable flags
13478         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13479         as they are the only documented ones, and passing others may trigger
13480         EINVAL (seen on FreeBSD 10.1-RELEASE).
13481         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13482         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13484 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13486         gnulib-tool: fix tests of 'extensions' module
13487         This complements f8fe25fab60e3c687a124 commit.
13488         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13489         emitting of initial gl_EARLY macros.
13490         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13491         replaced with func_emit_pre_early_macros call.
13493 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13495         unicase/locale-language: fix typo in utf-8 cookie
13496         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13497         Problem reported by Zbigniew Jędrzejewski-Szmek.
13499 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13501         xalloc: do not worry about GCC 5 warning on 32 bit
13502         * lib/xalloc.h: Revert previous change.
13503         I found a better way to fix this in coreutils.
13505 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13507         xalloc: avoid GCC 5.1 warning on 32 bit
13508         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13509         xalloc_oversized(), which was seen to give this warning
13510         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13511         when simplifying conditional".
13513 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13515         uniname/uniname-tests: avoid compiler warnings
13516         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13517         unused local variables.
13518         (test_alias_lookup): Fix alias name display in failure cases.
13520 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13522         c-ctype: do not worry about EBCDIC + char signed
13523         Drop support for EBCDIC with char being signed, as this breaks too
13524         many programs.  Problem reported by Ben Pfaff in:
13525         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13526         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13527         char being signed.
13528         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13529         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13530         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13531         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13532         * tests/test-c-ctype.c (test_all):
13533         Simplify by assuming standard char values cannot be negative.
13534         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13536 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13538         c-ctype: port better to z/OS EBCDIC
13539         Problems reported by Daniel Richard G. in:
13540         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13541         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13542         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13543         (_C_CTYPE_OTHER_CNTRL): New macro.
13544         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13545         from SCHAR_MIN, as the functions are defined only from values
13546         promoted from char or from unsigned char, not necessarily from
13547         signed char.
13549 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13551         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13553         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13554         and ARFLAGS variables.  Doing this unconditionally could break
13555         later Automake's AM_PROG_AR invocation (at least it's
13556         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13558         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13559         Amsterdam Compiler Kit, so make the previous code to have effects
13560         only on ACK, and rather automatically call the Automake's
13561         AM_PROG_AR as soon as possible to decide other cases.
13563         References:
13564         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13566         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13567         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13568         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13569         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13570         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13571         'extensions' module is used.
13572         * modules/extensions (configure.ac-early): Remove as this snippet
13573         is added to gnulib-comp.m4 earlier anyway.
13575 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13577         sockets: MS Windows initalization fixes
13578         Problem reported by Test User in:
13579         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13580         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13581         Correct the endianness.
13582         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13583         number mismatch, not just on <.  Cleanup before any such failure.
13585 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13587         gc: fix detection of installed libgcrypt version
13588         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13589         at least as recent as 1.4.4.  The previously used macro is not
13590         available now, since modules were removed in version 1.6.0.
13592 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13594         c-ctype: rewrite to use inline functions
13595         This simplifies maintenance, since it makes for just one
13596         implementation of each function, letting the compiler have the fun
13597         of optimization.  In practice this works well nowadays with GCC.
13598         E.g., c_isascii might need only three instructions even though the
13599         source code lists every ASCII character individually in a large
13600         switch statement.
13601         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13602         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13603         * NEWS: Document the API change.
13604         * lib/c-ctype.c: Drastically simplify, since this now just expands
13605         inline functions.
13606         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13607         (C_CTYPE_INLINE): New macro.
13608         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13609         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13610         Verify that either ASCII or EBCDIC is being used.
13611         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13612         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13613         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13614         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13615         New private macros.
13616         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13617         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13618         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13619         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13620         (c_tolower, c_toupper): When converting, return the unsigned char,
13621         as that is what z/OS does.
13622         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13623         of some c-ctype.h macros.
13624         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13625         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13626         c_tolower promotion to be compatible with z/OS.
13628 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13630         gitlog-to-changelog: trim only trailing whitespaces
13631         This is fix for --format regression introduced by commit
13632         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13633         doubled %n string) had no effect anymore.  This format
13634         specification has been used e.g. by GNU paxuitils (commit
13635         edfd8bcc3).
13637         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13638         newlines in commmit messages.
13640 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13642         Test that c_iscntrl agrees with iscntrl, etc.
13643         Suggested by Daniel Richard G. in:
13644         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13645         * modules/c-ctype-tests (Depends-on): Add ctype.
13646         * tests/test-c-ctype.c: Include <ctype.h>.
13647         (NCHARS): New constant.
13648         (test_agree_with_C_locale): New function.
13649         (main): Use it.
13650         (test_all): Use named constants.
13652         c-ctype: improve c_isascii testing
13653         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13654         Add a test to count the number of ASCII characters.
13656 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13658         savewd: remove SAVEWD_CHDIR_READABLE
13659         It was problematic in the light of file systems that ignore umask.
13660         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13661         * NEWS: Document this.
13662         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13663         successful, -1 (setting errno) on failure, rather than something
13664         more complicated than that.
13665         * lib/mkdir-p.c (make_dir_parents):
13666         Do not use SAVEWD_CHDIR_READABLE.
13667         * lib/savewd.c (savewd_chdir):
13668         Remove support for SAVEWD_CHDIR_READABLE.
13669         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13671         c-ctype: port better to EBCDIC
13672         Problems reported by Daniel Richard G. in
13673         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13674         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13675         Include "verify.h".
13676         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13677         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13678         Define as enum constants with value false, if not defined, so that
13679         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13680         code more portable, as both branches of the 'if' are compiled on
13681         all platforms.
13682         (C_CTYPE_EBCDIC): New constant.
13683         Verify that the character set is either ASCII or EBCDIC.
13684         (to_char): New static function.
13685         (c_isascii, c_iscntrl):
13686         Assume standard control-character assignments for EBCDIC.
13687         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13688         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13689         Rewrite to use 'if' instead of 'ifdef'.
13690         Use to_char if non-ASCII.  Prefer <= to >=.
13691         Prefer true and false to 1 and 0, for booleans.
13692         (c_iscntrl): Use 'if', not 'ifdef'.
13693         * modules/c-ctype (Depends-on): Add verify.
13694         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13695         (to_char): New function.
13696         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13698 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13700         nanosleep: fix return code for interrupted replacement
13701         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13702         that we return -1 in the case the call is interrupted by a signal,
13703         rather than the current value of 1.
13704         Diagnosed and tested by Daniel Richard G.
13706 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13708         Diagnose ERE '()|\1'
13709         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13710         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13711         track of the set of previously-completed subexpressions available
13712         before the first alternative, and restore this set just before
13713         parsing each subsequent alternative.  This lets us diagnose the
13714         invalid back-reference in the ERE '()|\1'.
13716         regex: merge patches from libc
13718         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13719         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13720         * lib/regex_internal.h:
13721         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13723         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13724         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13725         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13726         wcscoll.
13727         * lib/regexec.c (check_node_accept_bytes): Likewise.
13729         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13730         Fix regex wcrtomb namespace (bug 18496).
13731         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13732         instead of wcrtomb.
13734         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13735         Fix regex wctype namespace (bug 18495).
13736         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13737         instead of towlower.
13738         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13739         instead of iswlower.  Call __towupper instead of towupper.
13740         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13741         instead of iswalnum.
13743         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13744         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13745         COLL_SYM in a couple of places to avoid uninitialized variable
13746         wanings on tilegx gcc 4.8.2.
13748         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13749         * lib/regex_internal.h: Remove NOT_IN_libc.
13751         2014-11-17  Andreas Schwab  <schwab@suse.de>
13752         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13754         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13755         Move findidx nested functions to top-level.
13756         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13757         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13758         Pass new arguments to findidx.
13759         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13760         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13761         Don't #include it inside the function.  Pass new arguments to findidx.
13762         * lib/regex_internal.h:
13763         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13764         (re_string_elem_size_at): Don't #include it inside the function.
13765         Pass new arguments to findidx.
13767         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13768         Check if DEBUG is defined in regex_internal.c
13769         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13771 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13773         ceill: detect buggy OpenBSD implementation
13774         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13775         which returns zero for small values.  Discussed here:
13776         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13778 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13780         mountlist: add me_mntroot field on Linux machines
13781         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13782         mount_entry so Linux machines based on /proc/self/mountinfo can
13783         distinguish between bind mounts and original mounts.  In reality bind
13784         mounts aren't treated differently than mountroot=/ mounts by the
13785         kernel, but the user often wants these bind mounts distinguished.
13786         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13787         More details at https://pad.lv/1432871
13789 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13791         doc: Describe to use multiple instances of gnulib
13792         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13793         instances of gnulib with different modules can be used, for example one
13794         for a lib and another one for associated tools.
13796 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13798         base32: mark function as __attribute__ const
13799         * lib/base32.h (isbase32): Mark __attribute__ const as
13800         suggested by GCC, and consistent with the base64 module.
13802 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13804         gnulib-tool: don't transform binary files with sed
13805         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13806         .mo and .class files.
13807         Reported by Denis Denisov.
13809 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13811         gperf: respect silent rules
13812         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13813         V_GPERF_0 for silent rules.
13814         * modules/iconv_open (Makefile.am): Use V_GPERF.
13815         * modules/unicase/locale-language (Makefile.am): Likewise.
13816         * modules/unicase/special-casing (Makefile.am): Likewise.
13817         * modules/unictype/category-byname (Makefile.am): Likewise.
13818         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13819         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13820         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13821         * modules/unictype/property-byname (Makefile.am): Likewise.
13822         * modules/unictype/scripts (Makefile.am): Likewise.
13823         * modules/uninorm/composition (Makefile.am): Likewise.
13825 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13827         Improve port of stdalign to C++11
13828         Problem reported by Sundaram in:
13829         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13830         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13831         (__alignas_is_defined): Define if C++11 or newer.
13833 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13835         pmccabe2html: fix gawk regex escaping
13836         * build-aux/pmccabe2html: Add one more backslash to properly
13837         escape the gsub replacement value.  Fixes this error:
13838         gawk: ./build-aux/pmccabe2html:425: \
13839         warning: escape sequence `\&' treated as plain `&'
13841 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13843         time_rz: port to pedantic memcpy
13844         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13845         that reject memcpy (..., NULL, 0).
13847 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13849         time_rz: port better to MinGW
13850         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13851         Instead, store the tzname copy in the struct tm_zone object.
13852         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13853         * lib/strftime.c [!_LIBC]:
13854         * lib/time_rz.c: Include time-internal.h.
13855         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13856         name from *TZ rather than from TZNAME, doable because *TZ now has
13857         a tzname_copy member.
13858         * lib/time-internal.h: New file, with contents taken from
13859         lib/time_rz.c.  It's separate because strftime.c now accesses
13860         struct tm_zone members.
13861         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13862         New member tzname_copy.
13863         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13864         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13865         Initialize tzname_copy member.
13866         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13867         in tzname_copy member.
13868         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13869         (restore_tzname): Remove; no longer needed.  All calls removed.
13870         * modules/time_rz (Files): Add lib/time-internal.h.
13872         time: port __need_time_t to MinGW
13873         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13874         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13876 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13878         strftime: fix newly-introduced bug on Solaris
13879         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13880         consistently at the start, rather than doing some of the setup at
13881         the start and some in the %Z format spec.  This is cleaner, and
13882         works better with time_rz on platforms like Solaris where struct
13883         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13884         mktime_z and localtime_rz can mess up the tzname cache.
13886         test-strftime: test for Solaris bug
13887         * modules/strftime-tests (Depends-on): Add strerror.
13888         * tests/test-strftime.c: Include <errno.h>.
13889         (posixtm_test): New function, containing the old 'main'.
13890         (struct tzalloc_test, struct localtime_rz_test): New types.
13891         (TZ, LT): New static vars.
13892         (tzalloc_test): New function.
13893         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13895         time_rz: port to Solaris etc.
13896         Works around a tzname problem on platforms like Solaris that have
13897         tzname but not tm_zone, by setting tzname at the appropriate time
13898         and restoring it later.
13899         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13900         New static vars.
13901         (save_abbr) [HAVE_TZNAME]: Set them.
13902         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13903         (restore_tzname): New function.
13904         (localtime_rz, mktime_z): Use it.
13906         time_rz: now LGPL
13907         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13909         time_rz: make a constant 'const'
13910         * lib/time_rz.c (local_tz): Now const.
13912         time_rz: fix off-by-one typo
13913         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13915 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13917         fprintftime, strftime: use timezone_t args
13918         * NEWS: Document the change.
13919         * lib/fprintftime.h (fprintftime):
13920         * lib/strftime.c (extra_args) [my_strftime]:
13921         * lib/strftime.h (nstrftime):
13922         Time zone arg is now of type timezone_t, not int.
13923         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13924         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13925         (my_strftime) [emacs && !my_strftime]:
13926         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13927         Remove; Emacs doesn't need this any more.
13928         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13929         fprintftime and nstrftime to call tzset.
13930         (ut) [!my_strftime]: Remove, replacing with ...
13931         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13932         (strftime_case_): Use localtime_rz and mktime_z instead
13933         of localtime_r and mktime.
13934         * modules/fprintftime (Depends-on): Add time_rz.
13935         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13936         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13938         time_rz: new module
13939         * MODULES.html.sh: Add time_rz.
13940         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13941         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13942         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13944         New var HAVE_TIMEZONE_T (default 0).
13945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13946         New var GNULIB_TIME_RZ (default 0).
13947         * modules/time (time.h): Substitute the new vars.
13949         flexmember: license is now unlimited
13950         * modules/flexmember (License): Change to unlimited,
13951         since its only source file gives an unlimited license.
13953 2015-07-15  Eric Blake  <eblake@redhat.com>
13955         maint: update copyright paper procedures
13956         * config/srclist.txt: Drop outdated files.
13957         * doc/Copyright/conditions.txt: Update to latest.
13958         * doc/Copyright/assign.changes.manual: Delete.
13959         * doc/Copyright/assign.future.manual: Likewise.
13960         * doc/Copyright/assign.manual: Likewise.
13961         * doc/Copyright/assign.translation.manual: Likewise.
13962         * doc/Copyright/disclaim.changes.manual: Likewise.
13963         * doc/Copyright/disclaim.manual: Likewise.
13964         * doc/Copyright/disclaim.program: Likewise.
13966 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13968         localename: fix link error on Illumos
13969         Illumos defines __sun, but does not have getlocalename_l nor the
13970         equivalent.  This partially reverts commit 387c214.
13971         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13972         available, as well as uselocale.
13973         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13974         use getlocalename_l if it is not available.
13976 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13978         unistr/uN-strtok-tests: avoid a trivial leak
13979         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13980         input and delim after the multibyte delimiter tests.
13982 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13984         file-has-acl, acl-permissions: fix HP-UX typos
13985         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13986         * lib/file-has-acl.c (file_has_acl):
13987         * lib/set-permissions.c (context_acl_from_mode)
13988         (context_aclv_from_mode, set_acls):
13989         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13990         They were introduced by the recent ACL changes.
13992         regex: match current GNU grep behavior
13993         These symbols have not matched GNU grep behavior for quite some time.
13994         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13995         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13996         Change to match current GNU behavior.
13997         Simplify by expressing it as differences from POSIX BREs and EREs.
13998         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
14000 2015-07-03  Jim Meyering  <meyering@fb.com>
14002         set-permissions.c: adjust acl_from_mode's cpp guard
14003         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
14004         directives identical to those guarding the sole use.
14005         Otherwise, on some systems, we'd get a warning about
14006         the function being defined but not used.
14007         Also, filter through cppi to correct misleading indentation
14008         of cpp directives.
14010 2015-07-03  Pádraig Brady  <P@draigBrady.com>
14012         tests: restrict shells to those that support 'local'
14013         The local keyword is very widely supported and used
14014         in tests in coreutils and grep at least.  Therefore
14015         restrict to testing with shells that support it.
14016         This mainly excludes /bin/sh on Solaris.
14017         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
14019 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
14020         and Daiki Ueno  <ueno@gnu.org>
14022         unistr/uN-strtok: handle multibyte delimiters
14023         Previously, uN_strtok moved PTR to the next unit to the token end.
14024         When DELIM contained a multibyte character, the new position could
14025         be a middle of a multibyte character.
14026         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
14027         after the token.
14028         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
14029         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
14030         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
14031         * modules/unistr/u8-strtok (Depends-on): Depend on
14032         unistr/u8-strmblen.
14033         * modules/unistr/u16-strtok (Depends-on): Depend on
14034         unistr/u16-strmblen.
14035         * modules/unistr/u32-strtok (Depends-on): Depend on
14036         unistr/u32-strmblen.
14037         * tests/unistr/test-u-strtok.h: New file.
14038         * tests/unistr/test-u8-strtok.c: New file.
14039         * tests/unistr/test-u16-strtok.c: New file.
14040         * tests/unistr/test-u32-strtok.c: New file.
14041         * modules/unistr/u8-strtok-tests: New file.
14042         * modules/unistr/u32-strtok-tests: New file.
14043         * modules/unistr/u16-strtok-tests: New file.
14045 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
14047         update-copyright: fix test failure with perl >= 5.22 (trivial)
14048         * build-aux/update-copyright: Escape a literal left curly bracket,
14049         required with perl >= 5.22
14051 2015-07-02  Daiki Ueno  <ueno@gnu.org>
14053         u{16,32}-strstr-tests: relax timeout condition
14054         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
14055         tests can take longer than 5 seconds to complete.
14056         Reported by Dagobert Michelsen in:
14057         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
14058         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
14059         seconds to 10 seconds.
14060         * tests/unistr/test-u32-strstr.c (main): Likewise.
14062 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14064         gnulib-common.m4: change the ARFLAGS default to 'cr'
14065         In some GNU/Linux distributions people started to compile 'ar'
14066         binary with --enable-deterministic-archives (binutils project).
14067         That, however, in combination with previous autotools long time
14068         working default AR{_,}FLAGS=cru causes warnings on such
14069         installations:
14070         ar: `u' modifier ignored since `D' is the default (see `U')
14071         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
14072         set already.
14074 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14076         selinux-h: avoid double free after *getfilecon()
14077         Originally reported by Ben Shelton on bug-tar:
14078         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
14079         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
14080         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
14081         param should be freed by freecon(3) (regardless the return value).
14083 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
14085         fix pty related tests issues on Windows (trivial)
14086         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
14087         however it's still present in tests/ subdirectory of the final project.
14088         Therefore avoid it to pass `make check`.
14089         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
14090         will just return -ENOSYS, so avoid this non applicable test allowing
14091         the build to proceed.
14093 2015-07-01  Pádraig Brady  <P@draigBrady.com>
14095         acl: fix definition of acl_from_mode on FreeBSD
14096         This was causing basic coreutils copy operations to fail
14097         with ENOTSUP or ENOENT error messages.
14098         * lib/acl-internal.h (acl_from_mode): Only define when
14099         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
14100         of acl_from_mode() defined in lib/set-permissions.c to
14101         be used on FreeBSD at least.
14102         * lib/set-permissions.c: Fix up comment spelling,
14103         and a redundant variable assignment; noticed in passing.
14105 2015-06-30  Pádraig Brady  <P@draigBrady.com>
14107         readutmp: port to FreeBSD >= 9
14108         * lib/readutmp.h: Map utmpxname() to setutxdb().
14109         With that coreutils who(1) and pinky(1) tests pass.
14111 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14113         mgetgroups: port to strict OS X
14114         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
14115         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
14116         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
14117         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
14119 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14121         mgetgroups: port to strict OS X
14122         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
14123         Document the getgrouplist problem.
14124         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14125         New macro.
14126         (mgetgroups): Use it.
14127         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14128         Check for OS X signature for getgrouplist.
14130 2015-06-29  Jim Meyering  <meyering@fb.com>
14132         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14133         It started like this when building coreutils' latest on OS X,
14134         invoking ./configure with a nonempty --cache=.cache:
14136           lib/linkat.c:46:42: error: operator '||' has no right operand
14137           lib/linkat.c: In function 'rpl_linkat':
14138           lib/linkat.c:330:27: error: #if with no expression
14140         Here's linkat.c's line 46:
14142           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14144         Here's some context:
14146           $ grep linkat_nofoll .cache
14147           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14148           $ grep LINKAT_SYM lib/config.h
14149           #define LINKAT_SYMLINK_NOTSUP
14151         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14152         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14153         but that violates a tenet of AC_CACHE_CHECK: it must
14154         have no side effect other than setting its cache variable.
14156         What happens is that when the cache is set, we'd skip the
14157         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14158         defined to whatever value it happened to have in configure's
14159         environment.  In my case, it was not defined, so this later code:
14161           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14162             [Define to 1 if linkat can create hardlinks to symlinks])
14164         would emit code with an empty RHS.
14166         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14167         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14169 2015-06-28  Jim Meyering  <meyering@fb.com>
14171         mountlist: avoid an unused-label warning on OS X
14172         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14173         Building on OS X, I saw a warning about the "free_then_fail" label
14174         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14176         error.c: correct printf-style format: %d -> %u
14177         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14178         rather than %d, to match the type of "line_number", unsigned int.
14180 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14182         fts: avoid reading beyond the heap allocation
14183         GCC 5.1.1 with -O2 and -fsanitize=address reports
14184         a read of size 4 from a heap object of size 3 is indeed invalid,
14185         though this may be due to incorrect padding assumptions by GCC, see:
14186         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14187         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14188         * modules/fts: Depend on stdalign.
14190 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14192         savedir: avoid undefined behavior in qsort call
14193         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14194         "runtime error: null pointer passed as argument 1,
14195          which is declared to never be null"
14196         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14198 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14200         userspec: avoid undefined behavior in gettext call
14201         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14202         "runtime error: null pointer passed as argument 2,
14203          which is declared to never be null"
14204         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14206 2015-06-20  Glenn Morris  <rgm@gnu.org>
14208         gitlog-to-changelog: improve gitmerge.el commits
14209         Let the Emacs ChangeLog generation process exclude "skipped"
14210         messages from merge commits (Bug#20717).
14211         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14213 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14215         wchar: fix MinGW compilation warnings
14216         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14217         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14218         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14220 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14222         uniname/uniname-tests: use pristine data files
14223         For copyright and maintenance reasons, use the data files from UCD
14224         without modification.
14225         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14226         (getfield): Remove.
14227         (aliases_count): New global variable.
14228         (fill_names): Skip comments and empty lines in the input.  Don't
14229         use getfield.
14230         (fill_aliases): Likewise.
14231         (main): Change the expected command line arguments to:
14232         NAMES... ["--" ALIASES...].
14233         * tests/uniname/test-uninames.sh: Adjust to the change in
14234         test-uninames.c.
14235         * tests/uniname/UnicodeDataNames.txt: Remove.
14236         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14237         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14238         file from Unicode 8.0.0.
14240 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14242         linked-list, linkedhash-list: avoid compiler warnings
14243         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14244         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14246 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14248         libunistring: bump minimum version to 0.9.6
14249         * all modules depending on updated Unicode data: Regenerate.
14250         The modules are listed by a script that does:
14251         - for each file listed by: git show --oneline --name-only 705f4efc
14252           - deduce the containing modules, based on "Files:"
14253         - deduce the modules which depend on the containing modules, based
14254           on "Depends-on:"
14256 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14258         uniname/uniname: update to Unicode 8.0.0
14259         * lib/uniname/uninames.h: Regenerate.
14260         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14261         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14263 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14265         libunistring: update to Unicode 8.0.0
14266         * lib/gen-uni-tables.c (SIZEOF): New macro.
14267         (output_numeric): Increase the maximum number of fractions from
14268         128 to 160.  Increase the level3 value width from 7 bits to 8
14269         bits.  Use SIZEOF instead of a hard-coded integer.
14270         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14271         0x28000.
14272         (fill_blocks): Increase the maximum number of blocks from 256 to
14273         384.  Use SIZEOF instead of a hard-coded integer.
14274         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14275         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14276         value width.
14277         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14278         a new case added to LBP22.
14279         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14280         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14281         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14282         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14283         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14284         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14285         lib/uniwidth/width.c.
14286         * all generated files under lib/uni* and tests/uni*: Regenerate.
14288 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14290         gnu-web-doc-update: add --mirror to remove stale files
14291         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14292         out of date files from the CVS server.  Since this is usually
14293         appropriate, a prompt is given when the option is not specified,
14294         along with the `cvs remove` command that would be run.
14296 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14298         acl-permissions: pacify -Wsuggest-attribute=const
14299         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14300         * lib/acl-internal.h (free_permission_context):
14301         Declare with attribute const if ! (defined USE_ACL &&
14302         (HAVE_ACL_GET_FILE || defined GETACL)).
14304         fsync: document AIX misbehavior
14305         * doc/posix-functions/fsync.texi (fsync):
14306         Document failure on AIX with read-only file descriptor.
14308 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14310         stdio: Don't redefine gets when using C++
14311         * lib/stdio.in.h (gets): Disable warning on C++.
14313 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14315         acl-permissions: port to AIX, C89 HP-UX
14316         Problems reported by Michael Felt.
14317         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14318         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14319         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14320         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14321         Add cast for AIX, whose system calls are declared to accept
14322         char * even though the arguments are really char const *.
14323         * lib/get-permissions.c (get_permissions):
14324         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14325         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14326         that broke a build.
14327         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14328         Rework types to pacify xlc.
14330 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14332         vasprintf-posix: avoid compiling vasnprintf where possible
14333         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14334         module where not required.  For example on a GNU/Linux system
14335         when gnulib-tool is run with the --conditional-dependencies option.
14337 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14339         file-has-acl: fix build on Mac OS X 10
14340         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14341         which has an incompatible 6 parameter getxattr() call.
14342         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14343         call on Mac OS X >= 10.4.
14344         * doc/glibc-functions/fgetxattr.texi: Likewise.
14345         * lib/file-has-acl.c: Revert to more complete combined check.
14346         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14347         Reported by Jack Howarth.
14349 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14351         prefix-gnulib-mk: remove no longer needed special case
14352         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14353         continued lib_SOURCES lines are no longer present,
14354         so special case handling of such entries is not required.
14356 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14358         acl: don't depend on the deprecated qacl module
14359         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14361 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14363         gnulib-tool: concatenate lib_SOURCES to a single line
14364         * gnulib-tool: Refactor the line merging sed logic,
14365         and use that to output a single lib_SOURCES line for each module.
14366         gnulib using projects often postprocess this output to prepend
14367         subdir paths to each item, and having a single line simplifies this
14368         processing allowing better decoupling from the gnulib-tool output.
14370 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14372         pthread_sigmask: discount system version if a simple macro (trivial)
14373         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14374         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14375         function to ensure it's available.
14377 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14379         readlinkat: avoid OS X 10.10 trailing slash bug
14380         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14381         has this bug.
14382         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14383         that OS X 10.10 has this function.
14384         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14385         as done for readlink().
14386         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14387         trailing slash bug, and assume readlinkat() has the same issue.
14388         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14389         rather than the correct $gl_cv_decl_readlinkat_works.
14391 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14393         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14394         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14395         module rewrite.
14397         acl-permissions: Fix build on Solaris and Cygwin
14398         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14399         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14400         ace_entries variables have moved into struct permission_context but
14401         they were still accessed as local variables here.
14403 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14405         linkat: avoid OS X 10.10 trailing slash with symlink bug
14406         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14407         causes the symlink to be dereferenced, and if it points
14408         to a non existent file, that file will be created as
14409         a hard link to "path1".
14410         This fixes a test failure in test-linkat.c.
14411         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14412         this case.  The existing workaround in linkat.c for
14413         trailing slash issues, suffices for this case.
14414         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14415         the list of platforms with trailing slash issues.
14417 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14419         unlinkat: handle ignoring of ".." on Darwin 14
14420         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14421         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14422         so handle in the same manner.
14423         * m4/unlinkat.m4: Comment on this Darwin issue.
14424         * doc/posix-functions/unlink.texi: Update the latest version
14425         where the issue was seen.
14426         * doc/posix-functions/unlinkat.texi: Mention this issue.
14427         Fixes a test failure in test-unlinkat.c.
14429 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14431         qacl: split into qcopy-acl and qset-acl
14432         Emacs needs the former, but not the latter.
14433         * modules/acl-permissions: New file, containing most of the old qacl.
14434         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14435         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14436         * modules/qcopy-acl, modules/qset-acl: New files.
14437         * MODULES.html.sh (File system functions):
14438         Mention the new modules, and mention qacl while we're at it.
14440 2015-05-27  Glenn Morris  <rgm@gnu.org>
14442         gitlog-to-changelog: new option --ignore-line
14443         (This patch is imported from the GNU Emacs master.)
14444         This option ignores individual commit lines matching a pattern.
14445         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14447 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14449         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14450         Implement get_permissions and set_permissions primitives for getting all
14451         the permissions of a file, storing them, and later setting them. (In the
14452         minimal case, the permissions consist only of a file mode.) Reimplement
14453         qset_acl and qcopy_acl based on these new primitives: this avoids code
14454         duplication and makes error handling more consistent.
14455         The Solaris and Cygwin code still uses duplicate code paths for setting
14456         a file mode while making sure that no acls exist and setting an explicit
14457         acl; this is no worse than before, but could be cleaned up.  The AIX
14458         code still doesn't read ACLs, it only makes sure that acls don't get in
14459         the way when setting a file mode.
14460         * lib/acl-internal.h (struct permission_context): New data structure.
14461         (get_permissions, set_permissions, free_permission_context): Declare.
14462         * lib/acl-internal.c (free_permission_context): New helper function.
14463         * lib/get-permissions.c (get_permissions): New helper function split off
14464         from qcopy_acl.
14465         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14466         AIX, set a file's permissions based only on a file mode.
14467         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14468         other platforms construct a temporary acl from the file mode and set
14469         that acl in the same way as setting an acl read from the source file.
14470         This should help avoid code duplication and inconsistent / buggy
14471         behavior.
14472         (set_acls): New helper function Split off from qcopy_acl.
14473         (chmod_or_fchmod): Moved here from qset-acl.c.
14474         (set_permissions): New helper function.
14475         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14476         set_permissions.
14477         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14478         * modules/qacl: Add get-permissions.c and set-permissions.c.
14480         file-has-acl: Split feature tests again (Bug#20667)
14481         * lib/file-has-acl.c: Instead of testing for
14482         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14483         define them when needed.
14484         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14485         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14487 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14489         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14490         This avoids a conflict with "FORTIFY_SOURCE" variants
14491         of the string functions when they're replaced on NetBSD-6.0.1
14492         and Darwin-14.3.0 at least.
14493         * lib/string.in.h: Avoid including our "lib/string.h" while
14494         including the system <string.h>.
14496 2015-05-26  Eric Blake  <eblake@redhat.com>
14498         stdio: limit __gnu_printf__ witness to gcc 4.4+
14499         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14500         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14502         error: use correct printf attributes on mingw
14503         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14505         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14506         * modules/inttypes (Depends-on): Require extensions, so that mingw
14507         always uses GNU style inttypes.
14508         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14510         stdio: fix probe on mingw under gcc 5.1
14511         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14512         around new gcc preprocessor rules.
14514 2015-05-07  Glenn Morris  <rgm@gnu.org>
14516         gitlog-to-changelog: parse "Tiny-change"
14517         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14518         "Copyright-paperwork-exempt".  (Bug#20324)
14520 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14522         doc: document glibc posix_fallocate() issues
14523         * doc/posix-functions/posix_fallocate.texi: Mention the
14524         glibc efficiency problems and issues with NFS.
14526 2015-05-05  Karl Berry  <karl@freefriends.org>
14528         * build-aux/gendocs.sh (usage): document new css default
14529         for HTML (--htmlarg).
14531 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14533         extern-inline: no need for workaround in GCC 5.1
14534         * doc/extern-inline.texi (extern inline):
14535         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14536         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14537         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14538         two we can remove these workarounds.
14540 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14542         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14543         Avoid [-Wunknown-attributes] warnings like:
14544         warning: unknown attribute '__alloc_size__' ignored
14545         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14546         with clang, as support has been fully removed as of clang 3.5:
14547         https://github.com/llvm-mirror/clang/commit/c047507a
14548         * lib/eealloc.h: Likewise.
14549         * lib/pagealign_alloc.h: Likewise.
14551 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14553         tests: pacify GCC 5.1's stricter printf checking
14554         * tests/test-dirname.c (main):
14555         * tests/test-getaddrinfo.c (simple):
14556         * tests/test-getlogin.c (main):
14557         * tests/test-getndelim2.c (main):
14558         * tests/test-inttostr.c (CK):
14559         * tests/test-md5.c (main):
14560         * tests/test-read-file.c (main):
14561         * tests/test-sha1.c (main):
14562         Fix mismatches between printf format and value signedness.
14563         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14564         Remove, as CAST_VAL always returned a value of type uintmax_t.
14566         fts: port to GCC 5.1 with --enable-gcc-warnings
14567         Without this fix, GCC 5.1 (correctly) warns about a subscript
14568         error on the fts_name component of FTSENT.  It's actually a
14569         flexible member, so define it that way on C99 or later hosts.
14570         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14571         structure that now has a flexible array member.
14572         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14573         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14574         * modules/fts (Depends-on): Add flexmember.
14576 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14578         file-has-acl: port to CentOS 6
14579         Problem reported by Tom G. Christensen in:
14580         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14581         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14582         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14583         HAVE_GETXATTR.
14584         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14585         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14586         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14587         file-has-acl.c actually needs.
14589 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14591         file-has-acl: always return false when ACLs aren't supported
14592         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14593         change the GNU/Linux getxattr path, to transform "not supported"
14594         errors to a false return rather than an error.  This is handled
14595         within file_has_acl() due to the platform specific tests to
14596         determine if ACLs are not supported.
14598 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14600         gettext: propagate po/Makefile.in.in too
14601         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14602         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14603         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14604         between Makefile.in.in and the gettext-runtime m4 files.
14606 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14608         file-has-acl: new module, split from acl
14609         And add a new module file-has-acl-tests to match.
14610         I ran into a problem with the recent changes to the acl module,
14611         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14612         When using the fixed version with Emacs, I discovered that
14613         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14614         had multiple libraries, but needed only one), so I fixed that too.
14615         * NEWS: Document this incompatible change.
14616         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14617         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14618         Initialize gl_need_lib_has_acl.
14619         (gl_FUNC_ACL): Require it.
14620         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14621         Move the file-has-acl.c-relevant stuff to ...
14622         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14623         use_xattrs = 0' typo, and omit some needless work.  Set
14624         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14625         when gl_FUNC_ACL is called.
14626         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14627         (Link): Remove $(LIB_HAS_ACL).
14628         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14629         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14630         modules/file-has-acl-tests.
14631         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14633         manywarnings: add GCC 5.1 warnings
14634         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14635         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14636         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14637         -Wsuggest-override, -Wuse-without-only.  Change
14638         -Wnormalized=... operands to match 5.1.
14639         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14640         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14641         -Wdiscarded-qualifiers, -Wformat-signedness,
14642         -Wincompatible-pointer-types, -Wint-conversion,
14643         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14644         -Wshift-count-negative, -Wshift-count-overflow,
14645         -Wsizeof-array-argument, -Wsuggest-final-methods,
14646         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14647         and add -Warray-bounds=2 as a special case.
14649 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14651         doc: update FDL template to match FDL examples.
14652         * doc/alloca-opt.texi:
14653         * doc/alloca.texi:
14654         * doc/c-ctype.texi:
14655         * doc/c-strcase.texi:
14656         * doc/c-strcaseeq.texi:
14657         * doc/c-strcasestr.texi:
14658         * doc/c-strstr.texi:
14659         * doc/c-strtod.texi:
14660         * doc/c-strtold.texi:
14661         * doc/ctime.texi:
14662         * doc/error.texi:
14663         * doc/gcd.texi:
14664         * doc/gnulib-tool.texi:
14665         * doc/inet_ntoa.texi:
14666         * doc/intprops.texi:
14667         * doc/lib-symbol-visibility.texi:
14668         * doc/maintain.texi:
14669         * doc/parse-datetime.texi:
14670         * doc/quote.texi:
14671         * doc/regexprops-generic.texi:
14672         * doc/standards.texi: Remove spurious 'with' in FDL license
14673         template.
14675 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14677         lstat: fix cross-compilation 'ln -s' problem
14678         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14679         Have the test program call 'symlink' rather than a separate
14680         script run 'ln -s'; this is more likely to work in
14681         cross-compilation environments.  Reported by Pavel Fedin in:
14682         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14684 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14686         gendocs.sh: default to a common CSS style sheet for HTML output
14687         * build-aux/gendocs.sh (htmlarg): Change default value.
14689 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14691         gnulib-tool: output bold attribute more portably
14692         * gnulib-tool (func_show_module_list): Change hexadecimal
14693         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14694         encoded numbers as arguments to `printf' is not portable,
14695         and is not claimed by POSIX.  This is the case with FreeBSD.
14697 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14699         qacl: Simplify HP-UX acl_nontrivial check
14700         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14701         acl_nontrivial. Check if the acl has at most three entries instead (it must
14702         have exactly three entries according to the HP-UX documentation). Ignore
14703         uids and gids as long as an entry is either for a user (i.e., the owner),
14704         a group (i.e., the owning group), or others.
14705         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14706         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14708 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14710         acl: On Linux, check for acls without libacl
14711         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14712         library function to check for the presence of acls, avoiding a library.
14713         * lib/file-has-acl.c: Include xattr headers if we have them.
14714         (file_has_acl): On Linux, use getxattr().
14715         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14716         file_has_acl(). Check for xattr headers and getxattr().
14718 2015-04-14  Ángel González  <keisial@gmail.com>
14720         tempname: avoid unused parameter warnings (trivial)
14721         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14722         (try_nocreate): Likewise.
14724 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14726         fseeko: fix build failure on NetBSD >= 6 (trivial)
14727         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14728         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14730 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14732         gitlog-to-changelog: port to MS-Windows
14733         * build-aux/gitlog-to-changelog (git_dir_option):
14734         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14735         MS-Windows Perl.  Reported by Eli Zaretskii in:
14736         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14738 2015-04-07  Karl Berry  <karl@gnu.org>
14740         gendocs: new option --tex for passing args to texi2dvi.
14741         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14742         (TEXI2DVI): cut to just command name.
14743         (usage): mention new option, and update copyright.
14744         <generate_tex>: use it.
14746 2015-04-07  Karl Berry  <karl@gnu.org>
14748         * config/srclistvars.sh (GETTEXT): new definition.
14749         * config/srclist.txt: use it for gettext .m4 files.
14750         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14751         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14752         and continuing into April.
14754 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14756         uniname/uniname-tests: fix failure due to alias
14757         Reported by Jack Howarth in:
14758         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14759         * tests/uniname/test-uninames.c (name_has_alias): New function.
14760         (test_inverse_lookup): Exclude character name with valid alias,
14761         from randomly generated character names.
14762         (main): Fill unicode_aliases before calling test functions.
14764 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14766         hash: remove deprecated hash_insert0 function
14767         * lib/hash.h (hash_insert0): Remove deprecated function.
14768         * lib/hash.c (hash_insert0): Likewise.
14770 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14772         mountlist: remove dependency on libmount
14773         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14774         directly, rather than depending on libmount, which has many
14775         dependencies due to its dependence on libselinux, as detailed at:
14776         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14777         Note we restrict this to __linux__ as that's probably where this
14778         interface will remain.  If ever porting, it would be best
14779         to first pull the makedev() wrapper from coreutils to a gnulib module.
14780         Note also we don't add a getline dependency to the mountlist module,
14781         as all Linux versions are sufficient.
14783 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14785         stddef: port to pre-C11 GCC on x86
14786         On this platform, max_align_t should have an alignment of 8 even
14787         though the storage alignments of double, long, etc. max out at 4.
14788         Inspired by a comment of Andreas Schwab's here:
14789         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14790         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14791         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14792         * tests/test-stddef.c: Test __alignof__ too, if available.
14794 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14796         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14797         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14799 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14801         yesno: make EOL optional in ENABLE_NLS case also (trival)
14802         * lib/yesno.c (yesno): Check for EOL before replacing.
14803         * tests/test-yesno.sh: Add a test case (test along with gettext).
14805 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14807         fdopendir-tests: test it does not close its arg
14808         * tests/test-fdopendir.c (main): Test that fdopendir does not
14809         close its argument.  From a suggestion by David Grayson in:
14810         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14812 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14814         gitlog-to-changelog: trim trailing white space
14815         * build-aux/gitlog-to-changelog (main):
14816         Trim trailing white space from commit message lines.
14817         This is helpful for processing the GNU Emacs repository,
14818         which dates back to 1985 and contains a lot of such lines.
14820         gitlog-to-changelog: new option --ignore-matching
14821         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14822         Support new option --ignore-matching=PAT, which ignores all
14823         commit messages whose first line matches PAT.
14825 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14827         fdopendir: port better to MinGW
14828         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14829         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14830         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14831         * modules/fdopendir (Depends-on): Add dirfd.
14833 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14835         fdopendir: fix typo in comment
14836         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14838 2015-03-09  Eric Blake  <eblake@redhat.com>
14840         error: document all entry points provided
14841         * doc/glibc-functions/error_print_progname.texi
14842         (error_print_progname): Mention the error module.
14843         * doc/glibc-functions/error_at_line.texi (error_at_line):
14844         Likewise.
14845         * doc/glibc-functions/error_message_count.texi
14846         (error_message_count): Likewise.
14847         * doc/glibc-functions/error_one_per_line.texi
14848         (error_one_per_line): Likewise.
14850 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14852         vasnprintf: pacify clang 3.5.0
14853         Problem reported by Werner Lemberg in:
14854         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14855         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14856         The casts aren't needed, since the characters in question are ASCII.
14858 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14860         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14861         * lib/dirent--.h (GNULIB_defined_opendir):
14862         * lib/dirent.in.h (GNULIB_defined_opendir)
14863         (GNULIB_defined_closedir):
14864         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14865         #undef only if Gnulib defined it.
14867         poll: port to MSVC v18 on MS-Windows 8.1
14868         Problem reported by Gisle Vanem in:
14869         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14870         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14871         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14872         Add sys_socket.
14874 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14876         tests: support stderr verification with returns_()
14877         * tests/init.sh (returns_): Disable tracing for this wrapper
14878         function, so that stderr of the wrapped command is unchanged,
14879         allowing for verification of the contents.
14881 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14883         passfd: avoid valgrind uninitalised data warning
14884         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14885         to include just the fd we've initialized, rather than including
14886         the extra space used for alignment.
14888 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14890         uniwbrk/u32-wordbreaks-tests: fix copyright
14891         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14893         dup2: doc and test for Android bug
14894         Reported by Kevin Cernekee in:
14895         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14896         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14897         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14899 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14901         Replace dup2() on Android
14902         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14903         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14904         fails.  Using rpl_dup2() fixes this because it has an explicit test
14905         for this condition.
14907 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14909         Android doesn't define RLIM_SAVED_*
14910         Portability problem reported by Kevin Cernekee in:
14911         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14912         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14913         Mention the portability problem.
14914         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14915         Define if not defined.
14916         * m4/dup2.m4 (gl_FUNC_DUP2):
14917         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14918         Likewise.
14920 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14922         vasnprintf-posix-tests: use consistent test
14923         * tests/test-vasnprintf-posix.c (test_function):
14924         Use "<" in assert instead of "<=", for consistency with other tests.
14926 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14928         printf, isinf, etc.: noncanonical != NaN
14929         Do not require that isinf, printf, etc. treat noncanonical
14930         values as NaNs.  Instead, require only that they do not crash.
14931         Problem reported by Joseph Myers in:
14932         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14933         * doc/posix-functions/dprintf.texi (dprintf):
14934         * doc/posix-functions/fprintf.texi (fprintf):
14935         * doc/posix-functions/isfinite.texi (isfinite):
14936         * doc/posix-functions/isinf.texi (isinf):
14937         * doc/posix-functions/isnan.texi (isnan):
14938         * doc/posix-functions/printf.texi (printf):
14939         * doc/posix-functions/snprintf.texi (snprintf):
14940         * doc/posix-functions/sprintf.texi (sprintf):
14941         * doc/posix-functions/vdprintf.texi (vdprintf):
14942         * doc/posix-functions/vfprintf.texi (vfprintf):
14943         * doc/posix-functions/vprintf.texi (vprintf):
14944         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14945         * doc/posix-functions/vsprintf.texi (vsprintf):
14946         Document this.
14947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14948         * m4/isinf.m4 (gl_ISINFL_WORKS):
14949         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14950         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14951         * tests/test-isfinite.c (test_isfinitel):
14952         * tests/test-isinf.c (test_isinfl):
14953         * tests/test-isnan.c (test_long_double):
14954         * tests/test-isnanl.h (main):
14955         * tests/test-snprintf-posix.h (test_function):
14956         * tests/test-sprintf-posix.h (test_function):
14957         * tests/test-vasnprintf-posix.c (test_function):
14958         * tests/test-vasprintf-posix.c (test_function):
14959 o       Test only that noncanonical values do not cause crashes, not that
14960         they are treated as NaNs.  In some cases this means a larger
14961         output buffer is needed.
14963 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14965         fts: remove redundant close() (trivial)
14966         * lib/fts.c (fts_read): Remove redundant call to close().
14967         Spotted by coverity.
14969 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14971         getdtablesize: port better for Android
14972         Problem reported by Kevin Cernekee in:
14973         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14974         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14975         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14976         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14978         poll: fixes for large fds
14979         * lib/poll.c (poll): Don't check directly for NFD too large.
14980         Don't rely on undefined behavior in FD_SET when an arg exceeds
14981         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14982         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14983         as that makes the test a bit stricter.
14985 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14987         fcntl: Fix cross compiling
14988         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14989         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14991 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14993         dup2, fcntl: cross-compile better for Android
14994         Problem reported by Kevin Cernekee in:
14995         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14996         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14997         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14998         there's little need to cross-compile for older kernels nowadays.
14999         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
15000         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
15002 2015-02-18  Pádraig Brady  <P@draigBrady.com>
15004         getopt: don't crash on memory exhaustion
15005         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
15006         memory exhaustion.  In the _LIBC case we use alloca() as is
15007         already done in glibc, so we don't need to consider the separate
15008         error path in that awkward case.  Also fix a memory leak when
15009         ambiguous options are present.
15010         Reported by Tobias Stoeckmann
15012 2015-02-17  Mike Miller  <mtmiller@ieee.org>
15014         tempname: allow compilation with C++ (trivial)
15015         * lib/tempname.h [C++]: Specify extern "C" linkage.
15016         * lib/tempname.h (try_tempname):
15017         * lib/tempname.c (__try_tempname, __gen_tempname):
15018         Rename 'try' to 'tryfunc'.
15020 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15022         dup2, fcntl: port to AIX
15023         * m4/dup2.m4 (gl_FUNC_DUP2):
15024         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15025         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
15026         The former works on AIX 7.1 but the latter does not.
15027         Also, this may work better with Android; see:
15028         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
15030 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15032         getdtablesize, dup2, fcntl: port to Android
15033         Problem reported by Kevin Cernekee in:
15034         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
15035         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
15036         Mention that getdtablesize doesn't work on Android.
15037         * lib/getdtablesize.c: Use getrlimit substitute only if
15038         getdtablesize is declared.  This should suffice for Cygwin
15039         while not breaking Android.
15040         * m4/dup2.m4 (gl_FUNC_DUP2):
15041         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15042         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
15043         standardized but the latter is not, and sysconf works on Android.
15044         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
15045         Also check that getdtablesize is declared.
15046         This removes the need for a special case for Android.
15048 2015-02-16  Kevin Cernekee  <cernekee@google.com>
15050         localename: Implement gl_locale_name_thread_unsafe for Android
15051         * lib/localename.c: Android API level >= 21 supports two hardcoded
15052         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
15053         the internal __locale_t struct.
15055 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
15057         fts: avoid crash when a cycle is added while traversing
15058         This could be triggered by auto-mounting a recursive bind mount.
15059         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
15060         * lib/fts.c (fts_read): Avoid removing the original hash table item
15061         when leaving a directory that caused a cycle, and preserve the FTS_DC
15062         flag.
15064 2015-02-16  Daiki Ueno  <ueno@gnu.org>
15066         uniname/uniname: support character alias
15067         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
15068         Generate one-way mapping from aliases to codepoints in the
15069         generated tables.  Special case variation selectors to reduce
15070         table size.
15071         * lib/uniname/uniname.c (unicode_character_name): Special case
15072         variation selectors.
15073         (unicode_name_character): Special case variation selectors and
15074         their aliases.
15075         * lib/uniname/uninames.h: Regenerate.
15076         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
15077         * modules/uniname/uniname-tests (Files): Add
15078         tests/uniname/NameAliases.txt.
15079         * tests/uniname/test-uninames.c: Mark as static.
15080         (ALIASLEN): Define.
15081         (struct unicode_alias): New struct.
15082         (unicode_aliases): New variable.
15083         (fill_aliases): New function.
15084         (test_alias_lookup): New test function.
15085         (main): Run the 'test_alias_lookup' test if the second argument is
15086         given.
15087         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
15088         second argument.
15090 2015-02-11  Kevin Cernekee  <cernekee@google.com>
15092         Fix FILE struct compatibility with Android API level >= 21
15093         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
15094         __sferror.  Recent versions of Bionic's stdio.h no longer define
15095         __sferror.
15096         * lib/fbufmode.c: Likewise.
15097         * lib/fflush.c: Likewise.
15098         * lib/fpurge.c: Likewise.
15099         * lib/freadable.c: Likewise.
15100         * lib/freadahead.c: Likewise.
15101         * lib/freading.c: Likewise.
15102         * lib/freadptr.c: Likewise.
15103         * lib/freadseek.c: Likewise.
15104         * lib/fseeko.c: Likewise.
15105         * lib/fseterr.c: Likewise.
15106         * lib/fwritable.c: Likewise.
15108         Assume unbroken ungetc() on Android
15109         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
15110         test case passed when running on an Android host, and the code
15111         hasn't really changed since 2009.
15113         getdtablesize: Fix Android build
15114         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
15115         versions have this symbol in the .so library (at least 32-bit
15116         platforms) but are missing the declaration in the header file,
15117         causing the m4 logic to guess incorrectly.
15119         localename: Fix Android build
15120         * modules/localename (Depends-on): Add langinfo.
15122         getugroups: Fix Android build
15123         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15124         functions.
15126         euidaccess: Fix Android build
15127         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15128         AT_EACCESS gets declared.
15130         linkat_nofollow: Add fallback case for cross compiling
15131         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15133         net_if: Handle content-free <net/if.h> system headers
15134         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15135         struct if_nameindex.  If not, enable the replacement header.
15137         signal_h: Fix Android build
15138         * lib/signal.in.h: Add Android to the list of platforms that declare
15139         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15141         duplocale: Fix Android build of duplocale-tests
15142         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15143         is included by test-duplocale.c (but not by duplocale.c).
15144         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15145         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15146         * doc/posix-headers/monetary.texi: Add Android to the list of
15147         platforms missing monetary.h.
15149 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15151         tests: avoid recent -Werror=unused-variable regression in test-locale
15152         * tests/test-locale.c (main): Reference the variable to avoid the
15153         "unused variable" warning.
15155 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15157         maint: various whitespace cleanups in tempname
15158         * lib/tempname.c: Normalize spacing and line length.
15159         * lib/tempname.h: Likewise.
15160         * modules/tempname: Likewise.
15162 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15164         tests: provide returns_() to simplify exit status checking
15165         * tests/init.sh (returns_): A new function for use in tests,
15166         to allow for easier checking of return values, where you expect
15167         a command to exit with failure status.  By checking for a particular
15168         exit code, you don't hide any crashes for example.
15170 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15172         mountlist: only use libmount when specified
15173         There are currently many shared libs dependencies introduced by
15174         libmount with associated runtime and virt mem overhead.
15175         Therefore don't enable by default.
15176         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15178 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15180         uniname/unimame-tests: don't link with -lunistring
15181         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15182         $(LIBUNISTRING).  Document the rationale why we need to
15183         conditionalize the test.
15185 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15187         fstrcmp: don't assume strlen < INT_MAX
15188         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15189         (uintptr_t): Remove, as we're now assuming stdint.
15190         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15191         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15192         if the input string is long.
15193         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15194         uintptr_t to size_t when the underlying value is a pointer casted
15195         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15196         * modules/fstrcmp (Depends-on): Add stdint.
15198         diffseq: prefer ptrdiff_t to ssize_t
15199         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15200         ptrdiff_t is the natural type for signed indexes.
15201         On a few older platforms, ssize_t is narrower than size_t.
15203         xalloc: fix typo that suppressed warnings
15204         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15205         This typo, introduced a couple of years ago, mistakenly suppressed
15206         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15207         -Wmissing-declarations warnings.
15209         full-read: fix license notice typo
15210         * lib/full-read.h: Remove a stray line in the license notice.
15211         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15213         crypto/gc: fix a -Wswitch warning
15214         Reported by Bruce Korb in:
15215         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15216         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15218 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15220         gnulib-tool: fix handling of patch(1) diagnostics
15221         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15222         as otherwise gnulib-tool will reparse that output and attempt
15223         to lookup modules.
15225 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15227         bootstrap: exit immediately upon gnulib-tool failure
15228         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15229         This was noticed when gnulib-tool exited early due to failure
15230         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15231         but various confusing errors were then given as the build proceeded.
15233 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15235         symlinkat: include all required header files
15236         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15237         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15238         Reported at https://savannah.gnu.org/bugs/index.php?44151
15239         and by Jack Howarth.
15241 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15243         localename: support Solaris 12 and illumos
15244         * lib/localename.c (gl_locale_name_thread_unsafe): call
15245         getlocalename_l() on newer __sun platforms.
15246         Reported by Alexander Pyhalov.
15247         Fix suggested by Rich Burridge.
15249 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15251         locale: fix tests on illumos (trivial)
15252         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15253         so move from global scope to main().
15255 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15257         unictype: avoid undefined left-shift behavior
15258         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15259         gcc's -fsanitize=shift and running its tests triggered:
15260           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15261             places cannot be represented in type 'int'
15262         Cast LHS to 'unsigned int' after integer promotion.
15263         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15264         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15266 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15268         libunistring: bump version of unitypes dependants
15269         Due to the header file search order, all the headers which depend
15270         on unitypes.h need to be generated, when the preinstalled
15271         libunistring is older.
15272         * modules/unicase/base (configure.ac): Bump minimum version to
15273         0.9.4.
15274         * modules/uniconv/base (configure.ac): Likewise.
15275         * modules/unilbrk/base (configure.ac): Likewise.
15276         * modules/uninorm/base (configure.ac): Likewise.
15277         * modules/unistdio/base (configure.ac): Likewise.
15278         * modules/unistr/base (configure.ac): Likewise.
15279         * modules/uniwbrk/base (configure.ac): Likewise.
15280         * modules/uniwidth/base (configure.ac): Likewise.
15282 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15284         unictype/category-none: fix link with libunistring
15285         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15286         prefixed with "libstring_" when compiled as part of libunistring.
15287         To avoid undefined symbol at link time, increase the minimum
15288         version when the dependant modules are updated.
15289         * modules/unictype/category-none (configure.ac): Bump minimum
15290         version to 0.9.5.
15292 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15294         unitypes: fix build with installed libunistring
15295         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15296         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15297         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15299 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15301         time: port to MinGW32 3.21
15302         Problem reported by Eli Zaretskii in:
15303         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15304         * lib/time.in.h:
15305         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15306         * modules/time (Depends-on):
15307         Fall back on unistd.h if the other include files don't define
15308         struct timespec.
15310         update-copyright: apply to self
15311         * build-aux/update-copyright: Fix copyright date.  How ironic!
15313 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15315         libunistring: update to Unicode 7.0.0
15316         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15317         Manichaean names.
15318         * lib/unictype/joininggroup_name.h: Likewise.
15319         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15320         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15321         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15322         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15323         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15324         enum values.
15325         (is_property_alphabetic): Accept newly added characters to
15326         cuneiform numeric signs.
15327         (is_property_default_ignorable_code_point): Reject U+0605.
15328         (FIELDLEN): Increase from 120 to 160.
15329         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15330         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15331         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15332         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15333         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15334         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15335         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15336         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15337         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15338         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15339         U+1E8D0..U+1E8D6.
15340         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15341         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15342         lib/uniwidth/width.c.
15343         * all generated files under lib/uni* and tests/uni*: Regenerate.
15345 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15347         libunistring: update to Unicode 6.3.0
15348         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15349         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15350         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15351         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15352         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15353         Update WB5, WB9, WB10, WB13a, and WB13b.
15354         * tests/uniwbrk/test-uc-wordbreaks.c
15355         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15356         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15357         (UC_BIDI_PDI): New enumeration values.
15358         (bidi_category_byname): Support those enum values.
15359         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15360         dedicated property assigned.
15361         (is_property_case_ignorable): Check 0x0027.
15362         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15363         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15364         (output_wbp): Support those enum values.
15365         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15366         (UC_BIDI_PDI): New enumeration values.
15367         * lib/unictype/bidi_byname.gperf: Add those property names.
15368         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15369         U+180E, U+1A1B, and U+2066..U+2069.
15370         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15371         lib/uniwidth/width.c.
15372         * all generated files under lib/uni* and tests/uni*: Regenerate.
15374 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15376         libunistring: update to Unicode 6.2.0
15377         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15378         (unilbrk_table): Adjust table size.
15379         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15380         for LBP_RI.
15381         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15382         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15383         Normalize table index skipping ignored properties.
15384         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15385         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15386         the table.
15387         * lib/uniwbrk/wbrktable.h: Adjust table size.
15388         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15389         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15390         Support rule GB8a.
15391         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15392         * tests/unigbrk/test-uc-is-grapheme-break.c
15393         (graphemebreakproperty_to_string): Support GBP_RI.
15394         * tests/uniwbrk/test-uc-wordbreaks.c
15395         (wordbreakproperty_to_string): Support WBP_RI.
15396         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15397         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15398         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15399         LBP_AL to LBP_ID.
15400         (output_lbp): Support LBP_RI.
15401         (WBP_RI): New enumeration value.
15402         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15403         (output_wbp): Support WBP_RI.
15404         (GBP_RI): New enumeration value.
15405         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15406         * all generated files under lib/uni* and tests/uni*: Regenerate.
15408 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15410         libunistring: update to Unicode 6.1.0
15411         * lib/gen-uni-tables.c (output_joining_group): Switch to
15412         3-level table to accommodate joining groups defined with higher
15413         codepoint value.  Since there are only 88 groups defined in
15414         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15415         (get_lbp): Update for Unicode 6.1.0.
15416         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15417         3-level table.
15418         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15419         joining group name.
15420         * lib/unictype/joininggroup_name.h: Likewise.
15421         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15422         (unilbrk_table): Adjust table size.
15423         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15424         for LBP_HL.
15425         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15426         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15427         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15428         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15429         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15430         U+302E..U+302F.
15431         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15432         lib/uniwidth/width.c.
15433         * all generated files under lib/uni* and tests/uni*: Regenerate.
15434         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15436 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15438         uniwbrk/u32-wordbreaks-tests: add conformance test
15439         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15440         tests/uniwbrk/test-uc-wordbreaks.c,
15441         tests/uniwbrk/test-uc-wordbreaks.sh, and
15442         tests/uniwbrk/WordBreakTest.txt.
15443         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15444         test-uc-wordbreaks to $(check_PROGRAMS), and define
15445         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15446         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15447         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15449 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15451         uniwbrk: ignore Extended/Format characters at BOL not BOS
15452         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15453         characters if the previous character property is one of
15454         WBP_NEWLINE, WBP_CR, and WBP_LF.
15456 2015-01-11  Jim Meyering  <meyering@fb.com>
15458         test-strstr.c: avoid a trivial leak
15459         * tests/test-strstr.c (main): Free haystack.
15461         update-copyright: recognize groff's \(co marker
15462         * build-aux/update-copyright (circle_c_re): Also accept
15463         uses of \(co, as found in gzip.1.
15465 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15467         maint.mk: fix compatibility with OS X nm
15468         * top/maint.mk (_gl_tight_scope): Use the -g option to
15469         show exported items rather than the -e option which is
15470         ignored on all platforms except OS X where it gives an error.
15471         Reported by Assaf Gordon.
15473 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15475         localcharset: improve charset detection on OS/2
15476         Use system codepage when appropriate.  Map OS/2 codepages to
15477         GNU canonical charset names if possible.
15478         * lib/config.charset: Don't output aliases if "$os" is os2*.
15479         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15480         result for OS/2.
15481         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15482         from the locale name which is neither "C" nor "POSIX".
15484 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15486         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15487         This reverts the last patch but one, as it shouldn't be needed now
15488         that the typo is fixed.
15489         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15490         * lib/count-trailing-zeros.h:
15491         * lib/count-one-bits.h:
15492         Go back to using 64-bit intrinsics.
15494         count-leading-zeros: fix pragma typos
15495         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15496         Fix typos in declaration of intrinsics when _MSC_VER.
15498 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15500         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15501         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15502         intrinsics in this case.
15503         * lib/count-trailing-zeros.h: Likewise.
15504         * lib/count-one-bits.h: Likewise.
15506 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15508         uniname/uniname: update to Unicode 7.0.0
15509         To accommodate new characters added since Unicode 5.1.0, this
15510         changes the internal representation of codepoint ranges.
15511         Previously, we grouped codepoint ranges by manually assigned 4-bit
15512         tag, which only allowed 16 groups.  This removes the limitation by
15513         switching to binary search on a table.  For the detail rationale
15514         and the benchmark results, see:
15515         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15516         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15517         to INDEX, as it no longer represents a codepoint.
15518         (range): New struct.
15519         (main): Switch to intervals list from a bit-pattern based
15520         classification.
15521         * lib/uniname/uninames.h: Regenerate.
15522         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15523         * modules/uniname/base (configure.ac): Bump minimum version to
15524         0.9.5.
15525         * modules/uniname/uniname (configure.ac): Bump minimum version to
15526         0.9.5.
15528 2015-01-05  Eric Blake  <eblake@redhat.com>
15530         doc: update INSTALL from autoconf
15531         * doc/install.texi: Resync from autoconf.
15532         * doc/INSTALL: Reflect recent autoconf update.
15533         * doc/INSTALL.ISO: Likewise.
15534         * doc/INSTALL.UTF-8: Likewise.
15536         stdio: fix use of PRIdMAX on modern mingw
15537         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15538         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15539         to work with modern mingw.
15541 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15543         pthread: detect git mingw builds with only partial pollution
15544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15545         pollution, as seen temporarily in Fedora 21.
15547 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15549         lib-symbol-versions: cache script check
15550         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15551         Cache the check for linker version scripts.
15552         From a suggestion by Christophe Curis in:
15553         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15555 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15557         maint: fix grammar nits in propername (trivial change)
15558         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15559         and use an adequate verb and tense.
15561 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15563         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15564         * module/gendocs: Add 'doc/gendocs_template_min'.
15566         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15567         from to Gnulib's.
15568         (scripturl, templateurl): Adjust accordingly.
15570 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15572         gendocs: copyright date and version fix
15573         Reported by Karl Berry in:
15574         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15575         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15576         Fix copyright date.
15577         * build-aux/gendocs.sh (scriptversion): Update.
15579 2015-01-01  Karl Berry  <karl@gnu.org>
15581         * doc/install.texi,
15582         * build-aux/mdate-sh,
15583         * build-aux/depcomp,
15584         * build-aux/config.guess,
15585         * build-aux/config.sub,
15586         * build-aux/ar-lib,
15587         * build-aux/compile: revert copyright updates (some from last
15588         year) in slaved files.
15590 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15592         version-etc: new year
15593         * doc/gnulib.texi:
15594         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15595         * all files: Run 'make update-copyright'.
15597 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15599         xstrtol: ensure errno is reset
15600         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15601         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15603         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15605 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15607         utimens: fix dependency typo
15608         * modules/utimens (Depends-on): Remove 'assure'.
15609         This bug was introduced in the recent 'assure' patch.
15611 2014-12-22  Eric Blake  <eblake@redhat.com>
15613         docs: mention why libgen.h is bad
15614         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15616 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15618         assure: new module
15619         This works better than 'assert' when compiling with -DNDEBUG,
15620         as it avoids some compiler diagnostics in that case.
15621         Reported by Norihiro Tanaka in:
15622         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15623         * MODULES.html.sh (func_all_modules): Add 'assure'.
15624         * lib/assure.h, modules/assure: New files.
15625         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15626         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15627         Prefer 'assure' to 'assert'.
15628         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15629         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15630         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15631         Depend on 'assure'.
15633 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15635         stdalign: port better to HP compilers
15636         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15637         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15639         stdalign: work around Apple GCC 4.0 bug
15640         Reported by David Fang in:
15641         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15642         * lib/stdalign.in.h (_Alignas):
15643         * m4/stdalign.m4 (gl_STDALIGN_H):
15644         Do not use aligned attribute with GCC 4.0 on Apple.
15646 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15648         getcwd: fix test failure on OS X 10.9
15649         * m4/getcwd-path-max.m4: Avoid the replacement if it
15650         won't be effective due to the PATH_MAX limitation of lstat().
15651         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15652         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15653         for this case for use in tests, and also exclude this
15654         case when setting REPLACE_GETCWD.
15655         * tests/test-getcwd.c (test_long_name): Restrict the
15656         tested path length so that lstat() will not be passed
15657         a path greater than PATH_MAX.
15658         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15659         than AT_FDCWD, since the latter is set unconditionally
15660         since Sep 2009 in commit 52c658e9.
15662 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15664         parse-datetime: avoid a compiler warning with byacc (trivial)
15665         * lib/parse-datetime.y (yylex): Use the same prototype in the
15666         function definition as the declaration, to avoid a -Wstrict-prototypes
15667         warning seen when using byacc.
15669 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15671         unicase/locale-language-tests: fix LOCALE_FR test
15672         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15673         a French locale with traditional encoding.
15674         Reported by umerqayam in:
15675         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15677 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15679         stddef: support C11's max_align_t
15680         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15681         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15682         Do not undef, as that might cause max_align_t to be defined twice.
15683         Instead, change use to check for _GL_STDDEF_WINT_T too.
15684         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15685         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15686         Check for max_align_t.
15687         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15688         * modules/stddef-tests (Depends-on): Add stdalign.
15689         * tests/test-stddef.c: Test max_align_t.
15691 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15693         unistd: fix iOS check conditional
15694         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15695         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15696         yielded true on non-iOS environment.
15697         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15698         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15699         they are defined.
15701 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15703         posixtm: avoid compiler warning in a better way
15704         * lib/posixtm.c (IF_LINT): Remove.
15705         (year, posix_time_parse):
15706         Return true (not 0) if successful.  All callers changed.
15707         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15709 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15711         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15712         started with '/' on EMX.
15714 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15716         freopen: workaround freopen() on OS/2 kLIBC
15717         * lib/freopen.c (rpl_freopen): Workaround.
15718         * m4/freopen.m4: Add os2* case.
15720         get_shared_library_fullname: port to EMX
15721         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15722         on EMX, respectively.
15723         (_DLL_InitTerm): New on EMX.
15724         (get_shared_library_fullname): Implement on EMX.
15726         find_executable: port to EMX
15727         * lib/progreloc.c (find_executable): Implement on EMX.
15729         sched: check struct sched_param in spawn.h as well
15730         * lib/sched.in.h: Include spawn.h on kLIBC.
15731         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15733 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15735         bootstrap: Allow perl modules in $buildreq
15736         * build-aux/bootstrap: Add case for perl modules.
15738 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15740         apply _GL_ATTRIBUTE_PURE to some inline functions
15741         clang 3.4.2 flagged these inline functions as pure
15742         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15743         * lib/sig-handler.h (get_handler): Likewise.
15744         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15745         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15747 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15749         vasnprintf: fix potential use after free
15750         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15751         flagged by clang-analyzer 3.4.2.
15753 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15755         filevercmp, posixtm: avoid compiler warnings with -O3
15756         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15757         * lib/posixtm.c: (IF_LINT): Define.
15758         (posix_time_parse): Use it to void a "may be used uninitialized"
15759         warning, seen only with -O3.
15761 2014-12-05  Bruno Haible  <bruno@clisp.org>
15763         Fix LDBL80_WORDS macro on big endian platforms.
15764         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15765         LDBL80_WORDS macro.
15766         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15768         * tests/test-isfinite.c (test_isfinitel): Likewise.
15769         * tests/test-isinf.c (test_isinfl): Likewise.
15770         * tests/test-isnan.c (test_long_double): Likewise.
15771         * tests/test-isnanl.h (main): Likewise.
15772         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15773         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15774         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15775         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15776         Reported by Pádraig Brady.
15778 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15780         git-version-gen: do not print new line characters
15781         * build-aux/git-version-gen: Use printf instead of echo and tr.
15783         gnulib-tool: recognize x:* as an absolute path
15784         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15785         (func_relconcat): Likewise.
15787 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15789         argp: avoid extraneous translation and mem leak with empty pre doc
15790         * lib/argp-help.c (argp_doc): Never translate the empty string,
15791         when "\v" is the first or last character of the string, as that
15792         has a reserved meaning to return the header info from a po file.
15793         This also fixes a small memory leak in the !post case.
15794         The issue can be seen with this command for example:
15795         LC_MESSAGES=en_US grub2-mknetdir --help
15797 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15799         uniname/uniname-tests: skip if system's libunistring is used
15800         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15801         uniname/uniname module is not compiled.
15803 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15805         printf: fix configure check on big endian systems
15806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15808 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15810         pipe-filter-gi, pipe-filter-ii: port to AIX
15811         On AIX 7.1, 'select' is defined as static and cannot be referred
15812         to from inline function.
15813         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15814         the definition...
15815         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15816         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15818 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15820         gitlog-to-changelog: add --until
15821         * build-aux/gitlog-to-changelog: Support new --until option.
15822         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15824 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15826         extern-inline: update commentary about GCC bugs
15827         * m4/extern-inline.m4: Add another GCC bug number to comments.
15829 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15831         gen-uni-tables: untabify
15832         * lib/gen-uni-tables.c: Untabify.
15834 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15836         gen-uni-tables: check out-of-range values added to 3-level tables
15837         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15838         (output_joining_type, output_ident_category): Check out-of-range
15839         values added to 3-level tables.
15841 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15843         gen-uni-tables: utilize 'assert'
15844         * lib/gen-uni-tables.c: Include <assert.h>.
15845         (output_category, output_combclass, output_decimal_digit_test)
15846         (output_decimal_digit, output_digit_test, output_digit)
15847         (output_numeric, get_mirror_value, fill_properties)
15848         (fill_property30, is_property_alphabetic)
15849         (is_property_default_ignorable_code_point)
15850         (is_property_uppercase, is_property_lowercase)
15851         (is_property_cased, is_property_case_ignorable)
15852         (is_property_changes_when_lowercased, is_property_iso_control)
15853         (is_property_math, fill_arabicshaping, output_joining_group)
15854         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15855         (output_wbp, fill_org_gbp, get_decomposition)
15856         (output_decomposition, fill_composition_exclusions)
15857         (debug_output_composition_tables, output_composition_tables)
15858         (redistribute_casefolding_rules, output_casing_rules): Use
15859         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15860         reporting.
15862 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15864         gen-uni-tables: cosmetic improvements
15865         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15866         variables specification.
15867         (is_outdigit): Remove unused function.
15869 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15871         fcntl-h-tests: port to PA-RISC GNU/Linux
15872         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15874 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15876         fts: port to C89
15877         Problem reported for MSVC 16 by Gisle Vanem in:
15878         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15879         * lib/fts.c (fts_build): Avoid declaration before statement.
15881 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15883         unistd: port to iOS
15884         Problem reported by André Klitzing in:
15885         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15886         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15888 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15890         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15891         Problem reported by Alan Modra in:
15892         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15893         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15894         Always cast the function arg, reverting this part of the previous
15895         change.
15897 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15899         obstack: avoid potentially-nonportable function casts
15900         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15901         Remove, replacing with ...
15902         (call_chunkfun, call_freefun): New static functions.
15903         All uses changed.  Avoid potentially-nonportable casts.
15904         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15905         (_obstack_begin_worker): Omit last two args, since they
15906         rely on potentially-nonportable casts.  All callers changed.
15907         * lib/obstack.h (_OBSTACK_CAST): New macro.
15908         Use it everywhere the old API used a potentially-nonportable cast.
15909         The new API doesn't cast.
15910         (struct obstack): Use unions rather than requiring
15911         potentially-nonportable casts.
15912         (obstack_chunkfun, obstack_freefun): Return void.
15914 2014-11-03  Alan Modra  <amodra@gmail.com>
15916         obstack: fix macro return values
15917         * lib/obstack.h (obstack_next_free): Return void *.
15918         (obstack_1grow_fast, obstack_blank_fast): Return void.
15919         For __GNUC__ macros:
15920         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15921         For !__GNUC__ macros:
15922         (obstack_make_room, obstack_grow, obstack_grow0)
15923         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15925 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15927         obstack: do not assume system-supplied obstack is size_t safe
15928         * m4/obstack.m4: New file.
15929         * modules/obstack (Files): Add it.
15931         obstack: port to platforms that #define __alignof__
15932         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15933         not if !_LIBC.  We don't know of any platforms that #define
15934         __alignof__, but it might be useful in tests.  Conversely,
15935         glibc assumes GCC.
15937 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15939         linkat: don't unconditionally replace on GNU/Linux
15940         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15941         was redundant for a few reasons.  It was present to support compiling
15942         on new systems but running on the old narrow window of Linux 2.6.1[67].
15943         It setup and cleaned up test files which weren't actually used.
15944         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15945         implicit in the following check.
15947 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15949         linkat: wrap to handle symlinks on OS X 10.10
15950         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15951         but not usable because it doesn't support creating hardlinks
15952         to symlinks.  Therefore add a generic test for this capability
15953         and fallback to our emulation if linkat() fails with ENOTSUP.
15955 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15957         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15958         * doc/posix-functions/open.texi (open):
15959         * doc/posix-functions/openat.texi (openat):
15960         Document that these functions do not set errno to ELOOP when
15961         a symlink is opened with O_NOFOLLOW.
15963 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15965         obstack: add NEWS entry for recent incompatible changes
15966         * NEWS: Describe recent changes.
15968 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15970         mountlist: don't use libmount to decide on dummy/remote
15971         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15972         routines to determine whether a file system is dummy or remote,
15973         as they're not currently compatible.  For example the remoteness
15974         is determined on file system type (for which the list seems incomplete),
15975         rather than simply checking for a ':' in the device name.
15976         Also libmount currently determines that 'tmpfs' is a dummy file system
15977         even though it has associated storage.
15979 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15981         obstack: prefer __alignof__ to alignof
15982         This is for portability to pre-4.7 GCC when compiling glibc.
15983         See Joseph S. Myers in:
15984         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15985         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15986         New macro, defined by including and using <alignof.h>.
15987         (MAX): New macro.
15988         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15989         Do not use enums as they are not portable to some broken compilers.
15990         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15992         obstack: prefer alignof to calculating alignments by hand
15993         * lib/obstack.c: Include <stdalign.h>.
15994         (struct fooalign): Remove.
15995         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15996         * modules/obstack (Depends-on): Add stdalign.
15998 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16000         obstack: use size_t alignments and check for overflow
16001         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
16002         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
16003         * lib/obstack.h (struct obstack.alignment_mask):
16004         Use _OBSTACK_SIZE_T, not int, for alignments.
16005         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
16006         overflows, e.g., when adding the alignment.
16008 2014-10-29  Alan Modra  <amodra@gmail.com>
16010         obstack: 64-bit obstack support, part 3
16011         This finally enables full 64-bit obstack support.  The glibc
16012         shared library specific code is removed from obstack.c too, and
16013         the error handling code conditionally compiled under control of
16014         another macro, _OBSTACK_NO_ERROR_HANDLER.
16015         * lib/obstack.h: Include string.h earlier.
16016         (_OBSTACK_INTERFACE_VERSION): Define.
16017         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
16018         * lib/obstack.c: Don't include shlib-compat.h.
16019         (OBSTACK_INTERFACE_VERSION): Delete.
16020         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
16021         glibc code is compatible with version 2.  Don't include stdio.h for
16022         __GNU_LIBRARY.
16023         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
16024         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
16025         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
16026         glibc shared library specific source.
16028         obstack: 64-bit obstack support, part 2
16029         This gets us 4G obstack support, without changing ABI
16030         compatibility, apart from possibly introducing some
16031         signed/unsigned comparison warnings in code that uses obstack.h.
16032         a) Replace "int" size parameters, return values, and macro local vars
16033            with _OBSTACK_SIZE_T, an "unsigned int" for now.
16034         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
16035         c) Make all obstack macros checking available room use obstack_room.
16036            "next_free + desired > chunk_limit" may wrap the lhs for chunks
16037            allocated near the top of memory.
16038         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
16039         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
16040         in place of "int" size parameters, return values and local vars.
16041         (_CHUNK_SIZE_T): Define.
16042         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
16043         union use an _OBSTACK_SIZE_T integer type.
16044         For __GNUC__ versions of the following macros...
16045         (obstack_room): Rename local var.
16046         (obstack_make_room): Use obstack_room.
16047         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16048         obstack_int_grow, obstack_blank): Likewise.
16049         (obstack_finish): Use unsigned comparison when comparing aligned
16050         next_free against chunk_limit.
16051         (obstack_free): Cast OBJ to remove possible const qualifier.
16052         For !__GNUC__ versions of the following macros...
16053         (obstack_make_room): Use obstack_room.
16054         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16055         obstack_int_grow, obstack_blank): Likewise.
16056         (obstack_finish): Use unsigned comparision when comparing aligned
16057         next_free against chunk_limit.
16058         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
16059         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
16060         _OBSTACK_SIZE_T.
16061         (_obstack_begin, _obstack_begin_1): Likewise.
16062         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
16063         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
16065         obstack: 64-bit obstack support, part 1
16066         a) Correct calls to alloc function, to use a size_t arg.  "long" is
16067            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
16068            and "size_t" 64 bits.
16069         b) Consolidate _obstack_begin and _obstack_begin1 code.
16070         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
16071         use "size_t" rather than "long".
16072         (_obstack_begin, _obstack_begin1): Likewise.
16073         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
16074         obstack_chunkfun): Update alloc function casts.
16075         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
16076         (chunkfun_type, freefun_type): New typdefs.
16077         (_obstack_begin_worker): Split out from ..
16078         (_obstack_begin, _obstack_begin_1): ..here.
16080         obstack: tidy part 2
16081         a) Don't be concerned about "not polluting the namespace with stddef.h
16082            symbols" in obstack.h, since gnulib string.h includes stddef.h
16083            anyway, and it seems unlikely that anyone would care.
16084         b) Don't roll our own slow memcpy in _obstack_newchunk.
16085         c) Rename obstack_free to _obstack_free.  This makes the naming
16086            consistent with other obstack functions and obviates the need for
16087            __obstack_free.  Ancient obstack.c defined both obstack_free and
16088            _obstack_free.  We continue to do that for _LIBC via an alias.
16089         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
16090            is clever, but nowadays gcc warns on undefined macros.  You'll get
16091            an undefined macro warning if simulating an old gcc with -U__GNUC__
16092            -U__GNUC_MINOR__ -D__GNUC__=1.
16093         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
16094         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
16095         (__obstack_free): Delete, update refs.
16096         (_obstack_free): Rename from obstack_free.
16097         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
16098         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
16099         * lib/obstack.c: Don't include stddef.h.
16100         (COPYING_UNIT): Delete.
16101         (_obstack_begin): Formatting fix.
16102         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
16103         (_obstack_free): Rename from __obstack_free, update alias.  Move
16104         undef of obstack_free to where it is needed.
16106         obstack: tidy part 1
16107         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
16108            to me, and result in overlong lines after later patches.
16109         b) Move error handling code, to avoid a forward declaration and to
16110            simplify later patches in this series.
16111         * lib/obstack.h (struct obstack <temp>): Rename fields of union
16112         and update all uses.
16113         * lib/obstack.c: Include stdlib.h earlier.
16114         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
16115         in file.
16116         (print_and_abort): Remove now redundant forward declaration.
16118 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16120         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
16121         Without this change, in bleeding-edge fileutils Autoconf complains
16122         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
16123         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16124         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16125         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16127 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16129         iconv: avoid false detection of non-working iconv
16130         The INBUF arguments of iconv can be either 'const char **'
16131         or 'char **'.  If CC is g++, the difference causes a compile error
16132         and thus leads to a false detection of non-working iconv.
16133         Reported by Eli Zaretskii and Werner LEMBERG in:
16134         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16135         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16136         iconv.  Bump serial number.
16138 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16140         bootstrap: print more diagnostics for missing programs
16141         * build-aux/bootstrap: only suppress stderr when checking for
16142         alternative program names.  This supports programs issuing non
16143         standard error messages.
16145 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16147         bootstrap: only update the gnulib submodule
16148         * build-aux/bootstrap: Restrict the "submodule update" command
16149         to the gnulib path.
16151 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16153         symlinkat: port to AIX 7.1
16154         * doc/posix-functions/symlinkat.texi (symlinkat):
16155         Mention AIX porting problem.
16156         * lib/symlinkat.c: Always include errno.h.
16157         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16158         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16159         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16161         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16162         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16163         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16165         readlinkat: port to AIX 7.1
16166         * doc/posix-functions/readlink.texi (readlink):
16167         * doc/posix-functions/readlinkat.texi (readlinkat):
16168         Mention AIX porting problem.
16169         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16170         New function.
16171         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16172         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16174         * modules/readlinkat (configure.ac): Also compile replacement
16175         if REPLACE_READLINKAT.
16176         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16178 2014-10-12  Karl Berry  <karl@gnu.org>
16180         * doc/posix-functions/dirname.texi: remove spurious {.
16182 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16184         basename, dirname: Improve documentation.
16185         * doc/posix-functions/basename.texi: Mention dirname module and
16186         base_name() function.
16187         * doc/posix-functions/dirname.texi: Mention dir_name() and
16188         mdir_name() functions.
16189         Suggested by Werner LEMBERG <wl@gnu.org>.
16191 2014-09-24  Jim Meyering  <meyering@fb.com>
16193         exclude: declare exclude_patopts static
16194         * lib/exclude.c (exclude_patopts): Declare static,
16195         to avoid triggering a -Wmissing-prototypes warning.
16196         The alternative (declaring it in the .h file) would
16197         require publicizing the private "struct patopts".
16199 2014-09-21  Werner Lemberg  <wl@gnu.org>
16201         dirname: support compilation with C++
16202         * lib/dirname.h: Add necessary C linkage declarations.
16204 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16206         qsort_r: include <config.h>
16207         Problem reported by Tom G. Christensen in:
16208         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16209         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16211 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16213         avltree-list: avoid compiler warnings (trivial)
16214         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16215         -Werror=suggest-attribute=pure.
16216         * lib/gl_array_list.c: Likewise.
16217         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16218         declaration to avoid -Werror=missing-prototypes.  This is not added
16219         to a header as only exported for tests.  Add (void) to the
16220         check_invariants() call to indicate we're discarding the result
16221         in this context which avoids -Werror=unused-value.  Note we don't
16222         use ignore_value here to avoid a dependency as we know we'll not
16223         be adding __attribute__((warn_unused_result)) to check_invariants().
16224         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16226 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16228         qsort_r: new module, for GNU-style qsort_r
16229         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16231 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16233         strerror_r-posix: support compilation with C++
16234         * lib/strerror_r.c: Add necessary C linkage declarations.
16236 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16238         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16239         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16241 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16243         mountlist: use /proc/self/mountinfo when available
16244         Use libmount to propagate device IDs provided by Linux in
16245         /proc/self/mountinfo.  This will give more accurate output when
16246         using df in chroot'ed environments as the device IDs are not
16247         determined by stat() which may be inaccurate within the chroot.
16248         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16249         from util-linux to parse "/proc/self/mountinfo" or fall back to
16250         standard getmntent() processing.
16251         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16252         getmntent() is used, as is the case on GNU/Linux.
16254 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16256         users.txt: add cmogstored
16257         cmogstored has used gnulib since the beginning in 2012 to support
16258         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16260 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16262         Trivial change.
16263         * gnulib-tool: Use same options as build-aux/bootstrap to download
16264         PO files.
16266 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16268         Trivial change.
16269         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16271 2014-09-04  Eric Blake  <eblake@redhat.com>
16273         maintainer-makefile: add syntax check for useless ';;'
16274         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16276 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16278         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16279         Problem reported by Assaf Gordon in:
16280         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16281         Apparently Ubuntu is doing some fancy link-time optimization
16282         that doesn't work with -lpthread but does work with -pthread.
16283         Work around the bug by preferring -pthread to -lpthread.
16284         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16285         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16286         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16287         Treat -pthread like -lpthread.
16289 2014-09-04  Eric Blake  <eblake@redhat.com>
16291         error: drop spurious semicolon
16292         * lib/error.c (__error_at_line): Fix ';;'.
16294 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16296         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16297         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16298         Override AC_C_RESTRICT unconditionally.
16299         Update from autoconf, incorporating:
16300         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16301         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16303 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16305         manywarnings: add GCC 4.9 warnings
16306         Also, make it easier to maintain this in the future.
16307         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16308         -Wconditionally-supported, -Wdelete-incomplete,
16309         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16310         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16311         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16312         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16313         only for older GCC versions that need them.  Handle
16314         -Wnormalized=nfc specially, so that the 'comm' command used
16315         for maintenance doesn't get confused.
16317 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16319         vasnprintf: fix bugs in width computation
16320         * lib/vasnprintf.c (VASNPRINTF):
16321         Rework previous change, which introduced a bug,
16322         to avoid the warning in a different way.
16323         Avoid undefined behavior if the width arg is less than -INT_MAX.
16324         Avoid unnecessary use of HAS_WIDTH local.
16326 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16328         vasnprintf: Avoid signed/unsigned comparison warning.
16329         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16330         compare end addr of generated string w/ maximum end addr.
16332 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16334         parse-datetime: Avoid pointer difference.
16335         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16336         instead of calculating difference of pointers.  This removes an
16337         annoying warning, devoid of any use.
16339 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16341         qsort_r: new module, for GNU-style qsort_r
16342         This works even on FreeBSD, which has an incompatible qsort_r API.
16343         * MODULES.html.sh: Add it.
16344         * doc/glibc-functions/qsort_r.texi: It's now supported.
16345         * lib/qsort.c: New file, taken from glibc with minor changes
16346         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16347         removed.
16348         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16349         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16351         * modules/qsort_r, modules/qsort_r-tests: New files.
16352         * modules/stdlib (Makefile): Set up its defaults.
16353         * tests/test-qsort_r.c: New file.
16355 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16357         vla: new module
16358         GNU RCS can use this, mostly for documentation I expect.  See:
16359         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16360         * MODULES.html.sh: Add vla.
16361         * lib/vla.h, modules/vla: New files.
16363 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16365         localename: make gl_locale_name_thread really thread-safe on Windows
16366         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16367         "glthread/lock.h".
16368         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16369         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16371 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16373         getpass: don't assume struct termios
16374         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16375         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16376         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16378         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16379         Problem reported by Jonas 'Sortie' Termansen in:
16380         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16381         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16382         Implement via sysconf for platforms that lack getdtablesize.
16384         vararrays: modernize AC_C_VARARRAYS for C11
16385         This backports a change I recently made to Autoconf.
16386         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16387         VLAs are not supported, as this is what C11 does.  The old macro
16388         HAVE_C_VARARRAYS is still defined if they are supported, but is
16389         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16391 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16393         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16394         * build-aux/install-reloc (func_create_wrapper): Also wrap
16395         strerror-override, stat, stat.
16397 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16399         sys_select: fix FD_ZERO problem on Solaris 10
16400         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16401         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16402         to expand to an expression that invoked memset without necessarily
16403         including <string.h>.  The problem was that the first include
16404         defined _SYS_TIME_H, causing the second include to short-circuit.
16405         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16406         Also, fix what appears to be a cut-and-paste typo, by replacing
16407         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16408         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16410         accept: document Solaris 10 type glitch
16411         * doc/posix-functions/accept.texi (accept): Mention that
16412         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16414 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16416         extern-inline: port to FreeBSD, DragonFly
16417         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16418         is present if either __DragonFly__ or __FreeBSD__ is defined.
16419         FreeBSD problem reported by Andrey Borzenkov in:
16420         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16421         Also, worry about __APPLE__ only if __MACH__ is also defined,
16422         as this is more consistent with the rest of gnulib.
16423         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16424         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16426 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16428         regex: Make #if/#ifdef usage consistent for DEBUG
16429         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16430         of the inconsistent usage of #if and #ifdef as that works with
16431         both Glibc and Gnulib's style.
16433 2014-07-31  Eric Blake  <eblake@redhat.com>
16435         openat-die: use _Noreturn markup
16436         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16437         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16438         _Noreturn.
16440 2014-07-30  Eric Blake  <eblake@redhat.com>
16442         test-open: port to cygwin, which lacks Fortify
16443         * tests/test-open.h (ALWAYS_INLINE): New macro.
16444         (__always_inline): Don't abuse internal symbol on non-glibc.
16446 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16448         localename: Enforce declarations before statements.
16449         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16450         first statement.
16452 2014-07-18  Jim Meyering  <meyering@fb.com>
16454         test-userspec: don't look up numeric user names
16455         * tests/test-userspec.c: I found a system for which getpwnam("0")
16456         returned a pointer to a non-root user's entry, and that made the
16457         test fail.
16458         (T): Prefix each numeric input with "+", to inhibit lookup.
16460 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16462         localcharset, localename: MS-Windows support for non-default locales
16463         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16464         falling back on the default system codepage, try extracting
16465         the codepage from what 'setlocale' returns.  This allows to
16466         take into account changes of the codeset due to non-default
16467         locale set by a previous call to 'setlocale'.
16468         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16469         Define if not already defined.
16470         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16471         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16472         current locale by calling 'setlocale', then converting the
16473         locale name into LCID by calling 'get_lcid'.  This allows to
16474         take into account changes in the current locale from the
16475         default one, in contrast to GetThreadLocale.
16477 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16479         announce-gen: avoid failure when Digest::SHA is installed
16480         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16481         Digest::SHA1->new in print_checksums fails.
16482         * build-aux/announce-gen (digest_classes): New associative array
16483         for available message digest implementations.
16484         (print_locations): Use it.
16486 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16488         gettext: revert "update macros to version 0.19"
16489         This reverts commit 9b9370ca, as it currently requires that
16490         developers of any project that explicitly uses the gettext module
16491         or implicitly uses it through the utimens-tests or
16492         futimens-tests modules, use gettext >= 0.19.
16493         However there are some stability and availablity issues with
16494         that version at present.  We can reinstate this soon, when stability
16495         is addressed and packages are more readily available.
16497 2014-07-12  Jim Meyering  <meyering@fb.com>
16499         regex: don't deref NULL upon heap allocation failure
16500         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16501         failure in one more place.
16502         To trigger the segfault, configure grep -with-included-regex,
16503         build it, and run these commands:
16504         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16505         I discovered this while replying to a private report from
16506         Jens Schleusener about excessive memory consumption by grep
16507         when using a regular expression like the one above.
16509 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16511         regex: fix memory leak in compiler
16512         Fix by Andreas Schwab in:
16513         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16514         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16515         constructed tree before returning error.
16517 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16519         announce-gen: avoid perl warnings
16520         * build-aux/announce-gen: add two minor checks to avoid
16521         "use of uninitialized value" warnings when command-line parameters are
16522         missing.
16524 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16526         localename: avoid -Wsuggest-attribute={const,pure} warnings
16527         * lib/localename.c (string_has): Tag internal function as pure.
16528         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16529         as const when appropriate.
16531 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16533         nl_langinfo: Fix last change.
16534         * lib/nl_langinfo.c (includes): Drop redundant include.
16536 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16538         error: Fix -Wundef warnings in glibc
16539         * lib/error.c [_LIBC]: Define default macros for
16540         glibc.
16541         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16542         Check _LIBC before STRERROR_R_CHAR_P.
16544         error: Sync from glibc master
16545         * lib/error.c [_LIBC]: Remove INTUSE usage.
16546         (error_tail): Remove unused macro ALLOCA_LIMIT.
16547         Fix potential buffer overflow.  Fix potential NULL dereference
16548         in strcmp.
16550 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16552         nl_langinfo: fix build under mingw
16553         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16555 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16557         mountlist: do not classify a bind-mounted dir entry as "dummy"
16558         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16559         1-argument getmntent() (instead of assuming absence).
16561 2014-07-08  Eric Blake  <eblake@redhat.com>
16563         maint.mk: less syntax-check noise when SIGPIPE is ignored
16564         * top/maint.mk (_sc_header_without_use)
16565         (sc_require_config_h_first): Parse full list.
16567 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16568             Paul Eggert  <eggert@cs.ucla.edu>
16570         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16571         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16572         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16573         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16574         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16575         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16576         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16577         Include <stdio.h> if Microsoft Windows.
16578         Include <time.h> if !REPLACE_NL_LANGINFO.
16579         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16580         and with improvements for Microsoft Windows.
16581         (rpl_nl_langinfo): Use it.
16582         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16583         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16584         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16585         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16586         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16587         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16588         corresponding values returned by 'localeconv'.  Compute the values
16589         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16590         'strftime' with a suitable struct tm value.
16592 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16594         Bruno Haible has stepped down as maintainer.
16595         See Karl Berry in:
16596         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16597         Daiki Ueno has volunteered to maintain libunistring; see:
16598         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16599         * modules/gen-uni-tables, modules/libunistring:
16600         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16601         * modules/unicase/base, modules/unicase/cased:
16602         * modules/unicase/empty-prefix-context:
16603         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16604         * modules/unicase/locale-language, modules/unicase/special-casing:
16605         * modules/unicase/tocasefold, modules/unicase/tolower:
16606         * modules/unicase/totitle, modules/unicase/toupper:
16607         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16608         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16609         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16610         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16611         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16612         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16613         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16614         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16615         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16616         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16617         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16618         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16619         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16620         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16621         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16622         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16623         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16624         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16625         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16626         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16627         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16628         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16629         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16630         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16631         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16632         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16633         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16634         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16635         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16636         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16637         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16638         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16639         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16640         * modules/uniconv/u16-conv-to-enc:
16641         * modules/uniconv/u16-strconv-from-enc:
16642         * modules/uniconv/u16-strconv-from-locale:
16643         * modules/uniconv/u16-strconv-to-enc:
16644         * modules/uniconv/u16-strconv-to-locale:
16645         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16646         * modules/uniconv/u32-strconv-from-enc:
16647         * modules/uniconv/u32-strconv-from-locale:
16648         * modules/uniconv/u32-strconv-to-enc:
16649         * modules/uniconv/u32-strconv-to-locale:
16650         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16651         * modules/uniconv/u8-strconv-from-enc:
16652         * modules/uniconv/u8-strconv-from-locale:
16653         * modules/uniconv/u8-strconv-to-enc:
16654         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16655         * modules/unictype/bidicategory-all:
16656         * modules/unictype/bidicategory-byname:
16657         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16658         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16659         * modules/unictype/bidiclass-byname:
16660         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16661         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16662         * modules/unictype/block-all, modules/unictype/block-list:
16663         * modules/unictype/block-of, modules/unictype/block-test:
16664         * modules/unictype/category-C, modules/unictype/category-Cc:
16665         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16666         * modules/unictype/category-Co, modules/unictype/category-Cs:
16667         * modules/unictype/category-L, modules/unictype/category-LC:
16668         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16669         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16670         * modules/unictype/category-Lu, modules/unictype/category-M:
16671         * modules/unictype/category-Mc, modules/unictype/category-Me:
16672         * modules/unictype/category-Mn, modules/unictype/category-N:
16673         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16674         * modules/unictype/category-No, modules/unictype/category-P:
16675         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16676         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16677         * modules/unictype/category-Pi, modules/unictype/category-Po:
16678         * modules/unictype/category-Ps, modules/unictype/category-S:
16679         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16680         * modules/unictype/category-Sm, modules/unictype/category-So:
16681         * modules/unictype/category-Z, modules/unictype/category-Zl:
16682         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16683         * modules/unictype/category-all, modules/unictype/category-and:
16684         * modules/unictype/category-and-not, modules/unictype/category-byname:
16685         * modules/unictype/category-longname, modules/unictype/category-name:
16686         * modules/unictype/category-none, modules/unictype/category-of:
16687         * modules/unictype/category-or, modules/unictype/category-test:
16688         * modules/unictype/category-test-withtable:
16689         * modules/unictype/combining-class:
16690         * modules/unictype/combining-class-all:
16691         * modules/unictype/combining-class-byname:
16692         * modules/unictype/combining-class-longname:
16693         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16694         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16695         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16696         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16697         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16698         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16699         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16700         * modules/unictype/digit, modules/unictype/joininggroup-all:
16701         * modules/unictype/joininggroup-byname:
16702         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16703         * modules/unictype/joiningtype-all:
16704         * modules/unictype/joiningtype-byname:
16705         * modules/unictype/joiningtype-longname:
16706         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16707         * modules/unictype/mirror, modules/unictype/numeric:
16708         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16709         * modules/unictype/property-ascii-hex-digit:
16710         * modules/unictype/property-bidi-arabic-digit:
16711         * modules/unictype/property-bidi-arabic-right-to-left:
16712         * modules/unictype/property-bidi-block-separator:
16713         * modules/unictype/property-bidi-boundary-neutral:
16714         * modules/unictype/property-bidi-common-separator:
16715         * modules/unictype/property-bidi-control:
16716         * modules/unictype/property-bidi-embedding-or-override:
16717         * modules/unictype/property-bidi-eur-num-separator:
16718         * modules/unictype/property-bidi-eur-num-terminator:
16719         * modules/unictype/property-bidi-european-digit:
16720         * modules/unictype/property-bidi-hebrew-right-to-left:
16721         * modules/unictype/property-bidi-left-to-right:
16722         * modules/unictype/property-bidi-non-spacing-mark:
16723         * modules/unictype/property-bidi-other-neutral:
16724         * modules/unictype/property-bidi-pdf:
16725         * modules/unictype/property-bidi-segment-separator:
16726         * modules/unictype/property-bidi-whitespace:
16727         * modules/unictype/property-byname:
16728         * modules/unictype/property-case-ignorable:
16729         * modules/unictype/property-cased:
16730         * modules/unictype/property-changes-when-casefolded:
16731         * modules/unictype/property-changes-when-casemapped:
16732         * modules/unictype/property-changes-when-lowercased:
16733         * modules/unictype/property-changes-when-titlecased:
16734         * modules/unictype/property-changes-when-uppercased:
16735         * modules/unictype/property-combining:
16736         * modules/unictype/property-composite:
16737         * modules/unictype/property-currency-symbol:
16738         * modules/unictype/property-dash:
16739         * modules/unictype/property-decimal-digit:
16740         * modules/unictype/property-default-ignorable-code-point:
16741         * modules/unictype/property-deprecated:
16742         * modules/unictype/property-diacritic:
16743         * modules/unictype/property-extender:
16744         * modules/unictype/property-format-control:
16745         * modules/unictype/property-grapheme-base:
16746         * modules/unictype/property-grapheme-extend:
16747         * modules/unictype/property-grapheme-link:
16748         * modules/unictype/property-hex-digit:
16749         * modules/unictype/property-hyphen:
16750         * modules/unictype/property-id-continue:
16751         * modules/unictype/property-id-start:
16752         * modules/unictype/property-ideographic:
16753         * modules/unictype/property-ids-binary-operator:
16754         * modules/unictype/property-ids-trinary-operator:
16755         * modules/unictype/property-ignorable-control:
16756         * modules/unictype/property-iso-control:
16757         * modules/unictype/property-join-control:
16758         * modules/unictype/property-left-of-pair:
16759         * modules/unictype/property-line-separator:
16760         * modules/unictype/property-logical-order-exception:
16761         * modules/unictype/property-lowercase, modules/unictype/property-math:
16762         * modules/unictype/property-non-break:
16763         * modules/unictype/property-not-a-character:
16764         * modules/unictype/property-numeric:
16765         * modules/unictype/property-other-alphabetic:
16766         * modules/unictype/property-other-default-ignorable-code-point:
16767         * modules/unictype/property-other-grapheme-extend:
16768         * modules/unictype/property-other-id-continue:
16769         * modules/unictype/property-other-id-start:
16770         * modules/unictype/property-other-lowercase:
16771         * modules/unictype/property-other-math:
16772         * modules/unictype/property-other-uppercase:
16773         * modules/unictype/property-paired-punctuation:
16774         * modules/unictype/property-paragraph-separator:
16775         * modules/unictype/property-pattern-syntax:
16776         * modules/unictype/property-pattern-white-space:
16777         * modules/unictype/property-private-use:
16778         * modules/unictype/property-punctuation:
16779         * modules/unictype/property-quotation-mark:
16780         * modules/unictype/property-radical:
16781         * modules/unictype/property-sentence-terminal:
16782         * modules/unictype/property-soft-dotted:
16783         * modules/unictype/property-space:
16784         * modules/unictype/property-terminal-punctuation:
16785         * modules/unictype/property-test, modules/unictype/property-titlecase:
16786         * modules/unictype/property-unassigned-code-value:
16787         * modules/unictype/property-unified-ideograph:
16788         * modules/unictype/property-uppercase:
16789         * modules/unictype/property-variation-selector:
16790         * modules/unictype/property-white-space:
16791         * modules/unictype/property-xid-continue:
16792         * modules/unictype/property-xid-start:
16793         * modules/unictype/property-zero-width, modules/unictype/scripts:
16794         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16795         * modules/unictype/syntax-c-whitespace:
16796         * modules/unictype/syntax-java-ident:
16797         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16798         * modules/unigbrk/u16-grapheme-breaks:
16799         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16800         * modules/unigbrk/u32-grapheme-breaks:
16801         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16802         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16803         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16804         * modules/unigbrk/uc-is-grapheme-break:
16805         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16806         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16807         * modules/unilbrk/u16-width-linebreaks:
16808         * modules/unilbrk/u32-possible-linebreaks:
16809         * modules/unilbrk/u32-width-linebreaks:
16810         * modules/unilbrk/u8-possible-linebreaks:
16811         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16812         * modules/unilbrk/ulc-possible-linebreaks:
16813         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16814         * modules/uniname/uniname, modules/uninorm/base:
16815         * modules/uninorm/canonical-decomposition:
16816         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16817         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16818         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16819         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16820         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16821         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16822         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16823         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16824         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16825         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16826         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16827         * modules/unistdio/base, modules/unistdio/u-printf-args:
16828         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16829         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16830         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16831         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16832         * modules/unistdio/u16-u16-sprintf:
16833         * modules/unistdio/u16-u16-vasnprintf:
16834         * modules/unistdio/u16-u16-vasprintf:
16835         * modules/unistdio/u16-u16-vsnprintf:
16836         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16837         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16838         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16839         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16840         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16841         * modules/unistdio/u32-u32-asnprintf:
16842         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16843         * modules/unistdio/u32-u32-sprintf:
16844         * modules/unistdio/u32-u32-vasnprintf:
16845         * modules/unistdio/u32-u32-vasprintf:
16846         * modules/unistdio/u32-u32-vsnprintf:
16847         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16848         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16849         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16850         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16851         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16852         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16853         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16854         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16855         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16856         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16857         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16858         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16859         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16860         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16861         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16862         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16863         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16864         * modules/unistr/u16-check, modules/unistr/u16-chr:
16865         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16866         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16867         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16868         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16869         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16870         * modules/unistr/u16-move, modules/unistr/u16-next:
16871         * modules/unistr/u16-prev, modules/unistr/u16-set:
16872         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16873         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16874         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16875         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16876         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16877         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16878         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16879         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16880         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16881         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16882         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16883         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16884         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16885         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16886         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16887         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16888         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16889         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16890         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16891         * modules/unistr/u32-next, modules/unistr/u32-prev:
16892         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16893         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16894         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16895         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16896         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16897         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16898         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16899         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16900         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16901         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16902         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16903         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16904         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16905         * modules/unistr/u8-check, modules/unistr/u8-chr:
16906         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16907         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16908         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16909         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16910         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16911         * modules/unistr/u8-next, modules/unistr/u8-prev:
16912         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16913         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16914         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16915         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16916         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16917         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16918         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16919         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16920         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16921         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16922         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16923         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16924         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16925         * modules/uniwbrk/base, modules/uniwbrk/table:
16926         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16927         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16928         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16929         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16930         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16931         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16932         * modules/uniwidth/width, modules/utf16-ucs4:
16933         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16934         * modules/utf8-ucs4-unsafe:
16935         Change maintainer from Bruno Haible to Daiki Ueno.
16936         This is my guess at the libunistring modules; please feel free
16937         to fix if I guessed incorrectly.
16938         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16939         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16940         * modules/areadlink, modules/array-list, modules/array-mergesort:
16941         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16942         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16943         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16944         * modules/binary-io, modules/bison-i18n, modules/btowc:
16945         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16946         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16947         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16948         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16949         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16950         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16951         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16952         * modules/closedir, modules/concat-filename, modules/copy-file:
16953         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16954         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16955         * modules/csharpcomp-script, modules/csharpexec:
16956         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16957         * modules/dprintf, modules/dprintf-posix, modules/dup:
16958         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16959         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16960         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16961         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16962         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16963         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16964         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16965         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16966         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16967         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16968         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16969         * modules/findprog, modules/findprog-lgpl, modules/floor:
16970         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16971         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16972         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16973         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16974         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16975         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16976         * modules/freadable, modules/freadahead, modules/freadptr:
16977         * modules/freadseek, modules/freopen, modules/frexp:
16978         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16979         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16980         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16981         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16982         * modules/ftello, modules/full-read, modules/full-write:
16983         * modules/fwritable, modules/fwriteerror, modules/gcd:
16984         * modules/get-rusage-as, modules/get-rusage-data:
16985         * modules/getdtablesize, modules/getrusage, modules/gettext:
16986         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16987         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16988         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16989         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16990         * modules/iconv, modules/iconv-h, modules/iconv_open:
16991         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16992         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16993         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16994         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16995         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16996         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16997         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16998         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16999         * modules/javaexec, modules/javaexec-script, modules/javaversion:
17000         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
17001         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
17002         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
17003         * modules/lib-symbol-visibility, modules/libsigsegv:
17004         * modules/linked-list, modules/linkedhash-list, modules/list:
17005         * modules/localcharset, modules/locale, modules/localeconv:
17006         * modules/localename, modules/lock, modules/log, modules/log-ieee:
17007         * modules/log10, modules/log10-ieee, modules/log10f:
17008         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
17009         * modules/log1p, modules/log1p-ieee, modules/log1pf:
17010         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
17011         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
17012         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
17013         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
17014         * modules/logf, modules/logf-ieee, modules/login_tty:
17015         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
17016         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
17017         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
17018         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
17019         * modules/mbscspn, modules/mbsinit, modules/mbslen:
17020         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
17021         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
17022         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
17023         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
17024         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
17025         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
17026         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
17027         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
17028         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
17029         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
17030         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
17031         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
17032         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
17033         * modules/posix_spawn, modules/posix_spawn-internal:
17034         * modules/posix_spawn_file_actions_addclose:
17035         * modules/posix_spawn_file_actions_adddup2:
17036         * modules/posix_spawn_file_actions_addopen:
17037         * modules/posix_spawn_file_actions_destroy:
17038         * modules/posix_spawn_file_actions_init:
17039         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
17040         * modules/posix_spawnattr_getpgroup:
17041         * modules/posix_spawnattr_getschedparam:
17042         * modules/posix_spawnattr_getschedpolicy:
17043         * modules/posix_spawnattr_getsigdefault:
17044         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
17045         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
17046         * modules/posix_spawnattr_setschedparam:
17047         * modules/posix_spawnattr_setschedpolicy:
17048         * modules/posix_spawnattr_setsigdefault:
17049         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
17050         * modules/pow, modules/powf, modules/printf-frexp:
17051         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
17052         * modules/progname, modules/propername, modules/pselect:
17053         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
17054         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
17055         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
17056         * modules/read, modules/readdir, modules/readlink:
17057         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
17058         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
17059         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
17060         * modules/relocatable-script, modules/remainder:
17061         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
17062         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
17063         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
17064         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
17065         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
17066         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
17067         * modules/setlocale, modules/sh-quote, modules/shutdown:
17068         * modules/signal, modules/signbit, modules/sigpipe:
17069         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
17070         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
17071         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
17072         * modules/snippet/link-warning, modules/snippet/unused-parameter:
17073         * modules/snprintf, modules/snprintf-posix, modules/spawn:
17074         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
17075         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
17076         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
17077         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
17078         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
17079         * modules/streq, modules/strerror_r-posix, modules/striconv:
17080         * modules/striconveh, modules/striconveha, modules/strncat:
17081         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
17082         * modules/sublist, modules/sys_resource, modules/sys_utsname:
17083         * modules/sys_wait, modules/system-posix, modules/system-quote:
17084         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
17085         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
17086         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
17087         * modules/truncf, modules/truncf-ieee, modules/truncl:
17088         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
17089         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
17090         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
17091         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
17092         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
17093         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
17094         * modules/wait-process, modules/waitpid, modules/wcpcpy:
17095         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
17096         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
17097         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
17098         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
17099         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
17100         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
17101         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
17102         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
17103         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
17104         * modules/write, modules/xconcat-filename, modules/xlist:
17105         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
17106         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
17107         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
17108         * modules/y0, modules/y1, modules/yn:
17109         Remove Bruno Haible as maintainer; if he's the sole maintainer,
17110         change the maintainer to 'all'.  Let's hope someone volunteers.
17112 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
17114         mktime: merge #if/#ifdef usage from glibc
17115         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
17116         as that works with both Glibc's and Gnulib's style.
17117         See thread starting at Siddhesh Poyarekar's bug report at:
17118         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
17120 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
17122         git-version-gen: improve option descriptions
17123         * build-aux/git-version-gen: Mention that --prefix and --fallback
17124         have a mandatory argument.
17126 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17128         regex: fix memory leak in compiler
17129         Fix by Andreas Schwab in:
17130         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17131         * lib/regcomp.c (parse_expression): Deallocate partially
17132         constructed tree before returning error.
17134         regex: merge patch from libc
17135         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17136         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17137         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17139 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17141         acl: port to gcc -Wredundant-decls
17142         From a request by Dmitry Antipov in:
17143         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17144         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17145         "#ifndef _GL_ACL_H".
17147 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17148         Jim Meyering  <meyering@fb.com>
17150         parse-duration: eliminate 68-year duration limit
17151         * lib/parse-duration.c: Include "intprops.h".
17152         (TIME_MAX): Rename to MAX_DURATION and define to
17153         TYPE_MAXIMUM(time_t).
17154         * modules/parse-duration (Depends-on): Add intprops.
17155         Reported by Jonas 'Sortie' Termansen.
17157 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17159         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17160         * modules/pthread (Depends-on): Add 'extensions', as it defines
17161         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17162         (configure.ac-early): New section.
17163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17164         it is no longer needed.
17166 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17168         pthread: define thread-safe macros on some platforms
17169         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17170         for thread-safe operation on some platforms.
17172 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17174         regex: don't be multithreaded if USE_UNLOCKED_IO.
17175         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17176         * lib/regex_internal.h: Do not use multithreaded version if
17177         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17178         around a porting bug with coreutils 8.22 on AIX 7.1.
17180 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17182         gettext: update macros to version 0.19
17183         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17184         depend on gl_EXTERN_INLINE and drop support for older Bison
17185         versions.
17187 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17189         select,poll: fix console handle check on windows 8
17190         lib/poll.c (IsConsoleHandle): Change from testing the lower
17191         2 bits of the handle to the more expensive but accurate syscall.
17192         lib/select.c: Likewise.
17194 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17196         select: fix waiting on anonymous pipes on MS-Windows
17197         * lib/select.c (rpl_select): Fall back to polling when select()
17198         indicates there is nothing to check, while due to the timeout not
17199         expiring, activity is indicated on one of the handles.
17200         Also clear the TIMEOUT argument if the timer does expire.
17202 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17204         times: fix to return non constant value on MS-Windows
17205         * lib/times.c (times): Don't use the process creation time,
17206         rather clock() which on windows returns the number of
17207         clock ticks since the process started.
17209 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17211         isatty: fix to work on windows 8
17212         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17213         2 bits of the handle to the more expensive but accurate syscall.
17215 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17217         maint: fix typo in fdl.texi
17218         * doc/fdl.texi: Fix typo (missing '@').
17219         Somehow this was in fdl.texi but not fdl-1.3.texi.
17221 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17223         mountlist: avoid hasmntopt const type warning on solaris
17224         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17225         with char * instead of const char *.  Passing the constant string
17226         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17227         to avoid the warning.
17229 2014-06-04  Eric Blake  <eblake@redhat.com>
17231         maintainer-makefile: delete obsolete code
17232         * top/maint.mk (build_aux): Drop old code, as threatened.
17234         maintainer-makefile: avoid spurious error messages
17235         * top/maint.mk (syntax-check): Guard definition and use of
17236         $(shell) by whether Makefile is present.
17238 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17240         rename: avoid unused-but-set-variable compiler warning
17241         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17242         it is possible that dst_exists may be set but not used.  Mark it with
17243         the unused attribute to avoid compiler warnings.
17245 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17247         rename: mark a label as potentially unused
17248         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17249         by marking the out label as potentially unused.
17250         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17252 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17254         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17255         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17257 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17259         acl: apply pure attribute to two functions
17260         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17261         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17263 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17265         gnulib-common.m4: add _GL_UNUSED_LABEL
17266         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17267         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17269 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17271         dup2, fcntl, fcntl-h: port to AIX 7.1
17272         This fixes some porting problems discovered when testing the latest
17273         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17274         in grep but it could be important for other applications.
17275         * doc/posix-functions/dup2.texi:
17276         * doc/posix-functions/fcntl.texi:
17277         * doc/posix-headers/fcntl.texi:
17278         Document AIX bugs.
17279         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17280         Define to 0 if outside 'int' range.
17281         * m4/dup2.m4 (gl_FUNC_DUP2):
17282         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17283         Check for getdtablesize.  If it's available, test a value just
17284         outside its range instead of testing 1000000.  When cross-compiling,
17285         guess that AIX will fail this improved test.
17287 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17289         printf, config.rpath: Port to FreeBSD 10.
17290         Problem reported by Tijl Coosemans in:
17291         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17292         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17293         (hardcode_direct): Simplify FreeBSD configuration.
17294         (library_names_spec): Don't mishandle FreeBSD 10+.
17295         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17296         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17297         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17298         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17299         Don't mishandle FreeBSD 10+ when cross-compiling.
17301         ftoastr: work around compiler bug in IBM xlc 12.1
17302         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17303         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17304         around a compiler bug in IBM xlc 12.1.0.0: it complains
17305         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17306         _GL_FLT_PREC_BOUND.'
17308 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17310         valgrind-tests: fixed misleading help message
17311         * m4/valgrind-tests.m4: The help message generated by configure
17312         implied that valgrind was disabled by default, which it wasn't.
17313         Adjusted the help message using s/enable/disable/ to clarify.
17315 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17317         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17318         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17319         first double of a PowerPC "double double" pair.
17320         * tests/test-isinf.c (test_isinfl): Likewise.
17321         * tests/test-isnan.c (test_long_double): Likewise.
17322         * tests/test-isnanl.h (main): Likewise.
17323         * tests/test-signbit.c (test_signbitl): Likewise.
17325 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17327         exclude-tests: port to AIX 7.1
17328         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17329         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17330         the regex code uses locks.
17332 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17334         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17335         Without this fix, Emacs would sometimes call sigprocmask instead
17336         of pthread_sigmask, which is a no-no in multithreaded applications.
17337         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17338         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17339         Suppress check for pthread_sigmask working without -lpthread if
17340         the application always links with -lpthread.  Do not link with
17341         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17342         * m4/timer_time.m4 (gl_TIMER_TIME):
17343         Require gl_THREADLIB only if it is defined.  Do not append
17344         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17346 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17348         gnulib-tool: wget translations using --no-verbose rather than --quiet
17349         This allows the user to see error messages if any (--quiet hides them)
17350         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17352 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17354         gnulib-tool: adjust translation wget to avoid a https redirection
17355         Context: http://translationproject.org/latest/gnulib redirects to
17356            https://translationproject.org/latest/gnulib/
17357         Rationale: if the user falls back to wget, she doesn't have rsync and
17358         is probably in a minimal build environment, where packages such as
17359         'ca-certificates' are missing as well, resulting in a failed (and
17360         difficult to detect since ignored) translation initial fetch.
17361         Consequently let's avoid https if possible, and add the missing
17362         trailing slash.  This also avoids an unnecessary 302 redirection.
17363         * gnulib-tool: Add trailing slash to gnulib URL.
17365 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17367         getlogin_r-tests: check return value rather than errno
17368         * tests/test-getlogin_r.c (main): As per POSIX we should be
17369         verifying the return value from getlogin_r() rather than errno.
17371 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17373         getlogin_r-tests: fix various issues in recent change
17374         * tests/test-getlogin_r.c: Include required headers that were
17375         missed in recent commit eec20b4e.
17376         Also consistently check the errno rather than the return value from
17377         getlogin_r as POSIX only specifies that non zero is returned on error.
17378         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17380 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17382         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17383         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17384         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17385         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17386         * lib/spawn-pipe.c:
17387         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17388         and then 'int open64(const char *, int, ...);', which means the
17389         declaration for 'open' gets lost if we later '#undef open'.
17390         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17391         where the compilation reported the non-fatal error "In function
17392         'openat_proc_name' ... warning: implicit declaration of function
17393         'open'".  In this case the error is relatively harmless, but in
17394         other cases it might not be so minor.
17396 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17398         xalloc: don't potentially generate invalid code for xmemdup calls
17399         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17400         this function can initialize the newly-allocated storage with new
17401         pointers, which means this function is not malloc-like.  See:
17402         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17404 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17406         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17407         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17408         changes from commit 97249cf29 to not depend on environment variables.
17410 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17412         getlogin-tests: avoid false failure under cron
17413         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17414         since that's not what's under test.  Centos 6 was seen to return
17415         EINVAL for ttyname() when run from cron.
17417 2014-05-16  Jim Meyering  <meyering@fb.com>
17419         mbrtowc.m4: fix a comment typo
17420         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17421         emitted documentation string.
17423 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17425         mbrlen, mbrtowc: fix bug with empty input
17426         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17427         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17428         so this is mainly for documentation.
17429         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17430         (gl_FUNC_MBRTOWC): Use it.
17431         * tests/test-mbrtowc.c (main): Test for the bug.
17433 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17435         doc: document mbrtowc and mbrlen problem with empty input
17436         * doc/posix-functions/mbrlen.texi (mbrlen):
17437         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17438         Document portability problem when the input string is empty.  See:
17439         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17441         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17442         Problem reported by Eli Zaretskii in:
17443         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17444         * doc/posix-functions/execl.texi (execl):
17445         * doc/posix-functions/execle.texi (execle):
17446         * doc/posix-functions/execlp.texi (execlp):
17447         * doc/posix-functions/execv.texi (execv):
17448         * doc/posix-functions/execve.texi (execve):
17449         * doc/posix-functions/execvp.texi (execvp):
17450         Mention spawn+exit problem on non-Cygwin Windows platforms.
17452 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17454         getlogin-tests: avoid false failure under sudo/ssh etc.
17455         * modules/getlogin-tests (configure.ac): Check for ttyname().
17456         * tests/test-getlogin.c (main): Don't depend on environment variables
17457         to correlate with getlogin(), since sudo and ssh etc. can tamper
17458         with the LOGNAME and USER env vars.  Instead lookup the name from
17459         the uid associated with the stdin tty.
17461 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17463         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17464         These were found when building the latest grep snapshot on IRIX 6.5.
17465         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17466         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17467         never used later.
17468         * lib/quotearg.c (quoting_options_from_style):
17469         * lib/xstrtol.c (__xstrtol):
17470         Use enum instead of 0, to pacify IRIX 6.5 cc.
17472 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17474         gitlog-to-changelog: revert inclusion of git-log-fix file
17475         * build-aux/git-log-fix: Delete dummy file.
17476         * modules/gitlog-to-changelog: Don't reference (overwrite)
17477         the project specific git-log-fix file.
17479 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17481         maint.mk: Relax the copyright check to cater for non FSF projects
17482         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17483         to not require the "Free" suffix after the copyright years.
17485 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17487         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17488         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17489         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17490         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17491         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17493 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17495         exclude: port to strict C99
17496         Strict C does not allow converting a function pointer to void *
17497         and vice versa.  Pass a pointer to a function pointer instead.
17498         * lib/exclude.c (add_exclude_file):
17499         Pass the address of the function pointer.
17500         (call_addfn): And deference the address here, to match.
17502 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17504         regex: do not depend on malloc-gnu
17505         * modules/regex (Depends-on): Remove malloc-gnu.
17506         It's no longer needed, because of the 2012-12-29 patch
17507         "regex: port to hosts where malloc (0) == NULL".
17508         Reported by Nathan Kennedy in:
17509         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17511 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17513         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17514         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17515         * doc/posix-functions/expl.texi: Mention the workaround.
17517 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17519         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17520         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17521         size to be zero even when the pointer is nonnull.  This
17522         accommodates the use case where P is malloc (0) and *PN is 0 on a
17523         host where malloc (0) yields nonnull.
17525 2014-04-09  Eric Blake  <eblake@redhat.com>
17527         fts: avoid unnecessary strlen calls
17528         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17530 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17532         fts: avoid unnecessary strlen calls
17533         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17534         when that can be faster than strlen.
17536 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17538         fts: avoid unnecessary strlen calls
17539         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17540         (fts_build): Store the length of the dp->d_name entry in a local variable
17541         instead of calling strlen() several times via the above, removed macro.
17542         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17543         run by ~4%, yet this reduces the execution time by about a third if run
17544         via "ltrace -c rm -rf some-dir".
17546 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17548         obstack: Remove ancient NeXTSTEP gcc support conditional
17549         This change will ease merging with glibc.  The "#if ... __NEXT__"
17550         causes a warning with -Wundef which glibc now enables by default.
17551         Problem reported by Will Newton in
17552         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17553         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17554         so go with that.
17555         * lib/obstack.h (__extension__):
17557 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17559         obstack: merge with glibc changes
17560         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17561         This is mostly indenting and commentary changes.
17562         Instances of 'register' have been removed.
17564 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17566         strftime: wrap macros in "do {...} while(0)"
17567         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17568         this macro in "do {...} while(0)" to prevent false use as a
17569         single statement, e.g., in an un-braced "{}" else-block.
17570         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17571         (strftime_case_): Remove 'else' after 'goto' - which was the
17572         only non-fatal, un-braced use of one of the above macros.
17573         Spotted by coverity (NESTING_INDENT_MISMATCH).
17575 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17577         modechange: avoid memory leaks for invalid octal modes
17578         * lib/modechange.c (mode_compile): During the parsing of
17579         notations like +40, free the 'mc' buffer for invalid mode
17580         strings like +17777 (greater than the maximum octal mode),
17581         =18 (bad octal mode characters) or u=1 ('affected' with
17582         octal modes).
17583         Reproducer, e.g.:
17584             $ valgrind --leak-check=full chmod +17777 file
17585         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17586         add notations +40, 00440, etc.".
17587         Spotted by coverity (RESOURCE_LEAK).
17589 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17591         gitlog-to-changelog: include a dummy git-log-fix file
17592         Problem reported by Nathan Stratton Treadway in:
17593         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17594         * build-aux/git-log-fix: New file.
17596 2014-03-13  Jim Meyering  <meyering@fb.com>
17598         gitlog-to-changelog: also include the file, git-log-fix
17599         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17600         Reported by Assaf Gordon.
17602 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17604         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17605         This fixes a bug when ignoring case and when comparing the
17606         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17607         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17608         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17609         titlecase letter is neither lowercase nor uppercase, but
17610         uppercasing the titlecase letter (via towupper) yields the
17611         uppercase letter, so the two letters should match when ignoring case.
17612         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17613         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17614         Don't test whether a character is lowercase before uppercasing it.
17616 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17618         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17619         This is basically one of the options Bruno Haible proposed in:
17620         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17621         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17622         * lib/stdint.in.h: Use it.
17623         * modules/stdint (Depends-on): Add sys_types.
17625 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17627         parse-datetime: fix crash or infloop in TZ="" parsing
17628         * lib/parse-datetime.y (parse_datetime): Break out of the
17629         TZ="" parsing loop once the second significant " is found.
17630         Also skip over any subsequent whitespace to be consistent
17631         with the non TZ= case.
17632         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17634 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17636         savedir: new symbol for fast-read version
17637         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17638         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17639         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17640         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17642 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17644         unistd: port readlink to Mac OS X 10.3.9
17645         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17646         around self-include problem in Mac OS X 10.3.9 when combined with
17647         readlink module.  Problem reported by Klaus Zietler in
17648         <http://bugs.gnu.org/16825>.
17650 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17652         diffseq: remove TOO_EXPENSIVE heuristic
17653         Problem with diffutils reported by Vincent Lefevre in
17654         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17655         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17656         Although appropriate for circa-1993 hardware, these days the heuristic
17657         seems to be more trouble than it's worth.
17658         * lib/diffseq.h: Modernize citations.
17659         (struct context): Remove member too_expensive.
17660         All uses changed.
17661         (struct partition): Remove members lo_minimal, hi_minimal.
17662         All uses changed.
17663         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17664         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17665         1993 to make 'diff' run faster (but not as well) on large inputs.
17666         These days, computers are fast enough that it's typically better
17667         to run slower but more accurately.
17668         * lib/fstrcmp.c: Remove duplicate comment.
17669         * lib/fstrcmp.c (strcmp_bounded):
17670         * lib/git-merge-changelog.c (compute_differences):
17671         Adjust to diffseq.h changes.
17672         * NEWS: Document the change.
17674         savedir: simplify by using stpcpy
17675         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17676         (streamsavedir): Use stpcpy instead.
17677         * modules/savedir (Depends-on): Add stpcpy.
17679 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17681         spawn: fix link error on uclibc
17682         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17683         to incorporate -lrt if needed (on uclibc for example).
17684         * modules/posix_spawn: Reference the substituted LIB.
17686 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17687         timer: fix uClibc detection of threading
17688         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17689         enabled in uClibc.
17691 2014-02-21  Eric Blake  <eblake@redhat.com>
17693         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17694         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17696 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17698         exclude: add support for posix regexps
17700         This commit adds support for POSIX extended regular expressions
17701         and fixes a long-standing memory leak (pattern buffer was never
17702         freed).  It also implements a new interface function to read
17703         exclude patterns from a FILE, which passes an additional parameter
17704         to its callback function, thereby allowing to preserve its state
17705         between invocations.
17707         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17708         (pattern_buffer): New struct.
17709         (exclude): New member patbuf.
17710         (exclude_add_pattern_buffer): New function.
17711         (free_exclude_segment): Free regexps.
17712         (free_exclude): Free allocated pattern buffers.
17713         (exclude_patopts): New function.
17714         (file_pattern_matches): Use exclude_patopts.
17715         (add_exclude): support regexps.
17716         (add_exclude_fp): New function.
17717         (add_exclude_file): Rewrite using add_exclude_fp.
17718         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17719         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17720         (add_exclude_fp)
17721         (add_exclude_file): Rewrite using add_exclude_fp.
17722         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17723         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17724         (add_exclude_fp)
17725         (exclude_add_pattern_buffer): New prototypes.
17726         * modules/exclude: Depends on regex and filename.
17728 2014-02-20  Eric Blake  <eblake@redhat.com>
17730         maintainer-makefiles: use $(SED) for syntax check
17731         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17732         * top/maint.mk: Change sed to $(SED).
17734 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17735             Paul Eggert  <eggert@cs.ucla.edu>
17737         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17738         Patch based on an idea by Dick Streefland in
17739         <https://savannah.gnu.org/patch/?7892>.
17740         * NEWS: Document this.
17741         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17742         (direntry_t, comparison_function): New types.
17743         (direntry_cmp_name): New function.
17744         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17745         (streamsavedir, savedir): New arg OPTION.
17746         (streamsavedir): Simplify memory allocation.
17747         (fdsavedir): Remove.
17748         * lib/savedir.h (enum savedir_option): New type.
17749         (streamsavedir, savedir): New arg OPTION.
17750         (fdsavedir): Remove.
17752 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17754         file-type: add support for doors and other less-common file types
17755         Problem with S_ISDOOR reported by Rich Burridge.
17756         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17757         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17758         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17760 2014-01-23  Eric Blake  <eblake@redhat.com>
17762         pthread: work around winpthread header pollution on mingw
17763         * lib/time.in.h: Move pthread workarounds...
17764         * lib/pthread.in.h: ...here.
17765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17766         detect macro pollution on mingw.
17767         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17769 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17771         qacl: check for fchmod
17772         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17773         and qset-acl.c both use HAVE_FCHMOD.
17775 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17777         fdopen-tests: port to Tru64
17778         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17779         descriptor that is not open, as POSIX doesn't specify the
17780         resulting behavior and the test does not work on Tru64.
17781         Problem reported by Steven M. Schweda in:
17782         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17784         stdalign: port to HP-UX compilers
17785         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17786         if __HP_cc or __HP_aCC are nonzero.
17788 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17790         strtoimax: port to platforms lacking 'long long'
17791         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17792         check whether strtoll is declared, which causes the C file to
17793         wrongly report an error.  Problem reported by Steven M. Schweda in:
17794         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17795         * lib/strtoimax.c (strtoull):
17796         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17797         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17799 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17801         relocatable-perl: fix texi syntax
17802         * doc/relocatable-maint.texi: Escape braces.
17804 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17806         relocatable-perl: like relocatable-script, but for Perl scripts
17807         * build-aux/relocatable.pl.in: Add.
17808         * doc/relocatable-maint.texi: Add documentation.
17809         * modules/relocatable-perl: Add.
17811 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17813         tests: fix export bug in previous patch
17814         Problem reported by Jim Meyering.
17815         * tests/init.sh (re_shell): New var, which is exported instead of
17816         re_shell_.
17818         tests: simplify porting to Solaris 10 /bin/sh
17819         Some test cases in 'grep' need a shell that groks '$(';
17820         export re_shell_ for their benefit.  Problem reported for 'grep'
17821         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17822         * tests/init.sh (re_shell_): Export if it's used.
17824 2014-01-06  Eric Blake  <eblake@redhat.com>
17826         md5, sha1, sha256, sha512: support older autoconf
17827         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17828         for autoconf < 2.63b.
17830         include_next: port to autoconf 2.63
17831         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17833 2014-01-04  Jim Meyering  <meyering@fb.com>
17835         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17836         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17837         so that "make sc_maint" will ding anyone who puts non-ascii
17838         in any of gnulib's .texi files.
17840 2014-01-03  Jim Meyering  <meyering@fb.com>
17842         freadable, fwritable, fwriting: declare with the "pure" attribute
17843         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17844         * lib/fwritable.h (fwritable): Likewise.
17845         * lib/fwriting.h (fwriting): Likewise.
17846         Suggested by Bruno Haible.
17848         maint.mk: adapt openat.h-include-without-use test
17849         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17850         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17851         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17852         With this change, running "make sc_maint" in gnulib's top-level
17853         directory now passes for me.
17855 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17857         doc: use ASCII in .texi files where UTF-8 isn't needed
17858         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17859         * doc/posix-functions/setkey.texi, doc/regex.texi:
17860         Use ASCII input, not UTF-8.
17862 2014-01-02  Jim Meyering  <meyering@fb.com>
17864         freading: declare with the "pure" attribute
17865         * lib/freading.h (freading): Declare with the "pure" attribute.
17867         manywarnings: remove -Wmudflap
17868         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17869         it is no longer supported in gcc-4.9-to-be.
17871 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17873         relocatable-script: remove unused code
17874         Problem reported by Reuben Thomas in:
17875         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17876         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17878 2014-01-01  Jim Meyering  <meyering@fb.com>
17880         maint: fix public-submodule-commit to work with newer git
17881         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17882         We were over-quoting the test arguments, and somewhere prior to
17883         version 1.8.5.2.229, git stopped removing those excess quotes,
17884         which made the test fail, since the unexpanded strings would
17885         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17886         command wasn't even being run.
17888 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17890         doc: update main copyright year
17891         * doc/gnulib.texi: Update copyright date.
17893 2014-01-01  Eric Blake  <eblake@redhat.com>
17895         version-etc: new year
17896         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17897         * all files: run 'make update-copyright'
17899 2013-12-24  Eric Blake  <eblake@redhat.com>
17901         passfd: give nicer error for recvfd at eof
17902         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17903         * tests/test-passfd.c (main): Enhance test to cover this.
17905 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17907         gettimeofday: port recent C++ fix to Emacs
17908         Without this further patch, Emacs won't build due to
17909         the portcheck failing.  Also, this simplifies the patch a bit.
17910         * lib/time.in.h (localtime, gmtime): Don't replace unless
17911         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17912         * lib/time.in.h (localtime, gmtime):
17913         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17914         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17915         * modules/time (time.h):
17916         Don't worry about the possibility of localtime and gmtime
17917         being absent; they're present in all C libraries we know about.
17918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17919         Don't assume sys_time is present and has been initialized.
17920         Instead, use a hack that should work even if it hasn't been.
17921         Don't use a portcheck for gmtime or localtime; this supports
17922         the hack.
17923         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17925 2013-12-17  John W. Eaton  <jwe@gnu.org>
17927         gettimeofday: fix C++ crosscompilation
17929         Never replace gmtime and localtime by macros when compiling with
17930         C++, this prevents <ctime> from being included.
17932         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17933         define gmtime and localtime as preprocessor macros.  Instead
17934         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17935         REPLACE_LOCALTIME substitutions.
17936         * lib/time.in.h: Declare gmtime and localtime when needed.
17937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17938         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17939         * modules/time: Depend on gettimeofday, and substitute the above
17940         variables in time.h.
17942 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17944         qacl: port to Windows better
17945         See Eli Zaretskii in
17946         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17947         * lib/file-has-acl.c (acl_access_nontrivial):
17948         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17949         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17951 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17953         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17954         * lib/gl_openssl.h: Cast void pointers to a specific type.
17956 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17958         open-tests: fix build failure with -Werror=old-style-declaration
17959         * tests/test-open.h: Reorder the inline to avoid the issue.
17961 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17963         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17964         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17965         init time, so that if early checks find crypto routines,
17966         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17967         avoiding link failures.
17969 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17971         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17972         This provides a new way to specify the default for
17973         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17974         Emacs uses this, as well as the old way.
17975         This attempts to implement a suggestion by Pádraig Brady in
17976         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17977         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17978         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17980         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17981         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17982         Add support for a new option, --with-openssl=auto, which causes
17983         the library to be used if available and silently ignored if not.
17984         Add support to allow configure.ac to specify its own
17985         default, by setting with_openssl_default before invoking gl_INIT.
17987 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17989         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17990         Problem reported by Daiki Ueno in:
17991         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17992         * tests/test-open.h (__always_inline):
17993         New macro, if not already defined.
17994         (test_open): Use it.
17996 2013-12-04  Eric Blake  <eblake@redhat.com>
17998         include_next: minimize code duplication
17999         * modules/include_next (Depends-on): Add absolute-header.
18000         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
18001         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
18003 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18005         getcwd: fix compile error in configure check
18006         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
18008 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18010         regex: suppress core dumps from detection code
18011         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
18012         to suppress core dumps that may well occur on glibc systems.
18013         These core dumps might not be cleaned up automatically, or could
18014         trigger some system core dump handling logic.
18016 2013-12-03  Pádraig Brady  <P@draigBrady.com>
18018         md5, sha1, sha256, sha512: support mandating use of openssl
18019         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
18020         description, to list the now 3 separate options.  also don't
18021         mention the default=no, since this is implicit given the option
18022         is described as --with-openssl rather than --without-openssl.
18023         If projects change the default they're free to document that.
18024         with --with-openssl[=yes] we now error out when the specified
18025         hash algorithm is not available in libcrypto.
18027 2013-12-03  Ivailo  <xakepa10@gmail.com>
18029         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
18030         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
18031         -Wformat-nonliteral checks, as these edge cases are part of the test.
18033 2013-12-03  Eric Blake  <eblake@redhat.com>
18035         regex: avoid glibc deadlock during configure
18036         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
18037         glibc bug 15078 in turn triggers bug 16159.
18038         Reported by Michal Privoznik.
18040 2013-12-02  Pádraig Brady  <P@draigBrady.com>
18042         md5, sha1, sha256, sha512: use openssl routines if available.
18043         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18044         routines will be used if available, requiring apps to link @LIB_CRYPTO@
18045         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
18046         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
18047         in the standard system location.
18048         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
18049         * m4/sha256.m4: Likewise with SHA256.
18050         * m4/sha512.m4: Likewise with SHA512.
18051         * m4/md5.m4: Likewise with MD5.
18052         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
18053         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
18054         * lib/sha256.h: Likewise with SHA256.
18055         * lib/sha512.h: Likewise with SHA512.
18056         * lib/md5.h: Likewise with MD5.
18057         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
18058         * lib/sha256.c: Likewise with SHA256.
18059         * lib/sha512.c: Likewise with SHA512.
18060         * lib/md5.c: Likewise with MD5.
18061         * modules/crypto/sha1 (Link:): Add the new optional lib.
18062         (Depends-on:): Add dependency on extern-inline.
18063         * modules/crypto/sha256: Likewise.
18064         * modules/crypto/sha512: Likewise.
18065         * modules/crypto/md5: Likewise.
18066         * modules/crypto/sha1-tests: Reference the lib here too.
18067         * modules/crypto/md5-tests: Likewise.
18068         * modules/crypto/gc-des-tests: Likewise.
18069         * modules/crypto/gc-hmac-md5-tests: Likewise.
18070         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18071         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18072         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18073         * modules/crypto/gc-md5-tests: Likewise.
18074         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18075         * modules/crypto/gc-sha1-tests: Likewise.
18076         * modules/crypto/gc-tests: Likewise.
18077         * modules/crypto/hmac-md5-tests: Likewise.
18078         * modules/crypto/hmac-sha1-tests: Likewise.
18079         * modules/crypto/hmac-sha256-tests: Likewise.
18080         * modules/crypto/hmac-sha512-tests: Likewise.
18082 2013-11-29  RV1971  <rv1971@web.de>
18084         base64: (trivial) fix compilation regression on some compilers
18085         * lib/base64.c: Don't return the void function,
18086         instead split to a separate return statement.
18088 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18090         ignore-value: revert previous code change
18091         * lib/ignore-value.h (ignore_value): Use __extension__ and
18092         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
18093         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
18094         Change the comment to try to explain this better.
18096 2013-11-27  Pádraig Brady  <P@draigBrady.com>
18098         selinux-h: improve stub types and add more stub functions
18100         * lib/se-selinux.in.h: Change security_context_t to a typedef
18101         rather than a define, as it's a pointer type and so is better
18102         as a typedef to avoid issues declaring multiple variables
18103         with the comma operator.  Also add stub for string_to_security_class().
18104         * lib/se-context.in.h: Add stub functions for
18105         context_{type,range,role,user}_get().
18107 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18109         ignore-value: prefer GCC version back through 2.0
18110         The code didn't match the comments, so I did a bit of software
18111         archaeology.  GCC 2.0 seems to support __extension__ and
18112         __typeof__, so fix both code and comments to use 2.0.
18113         * lib/ignore-value.h (ignore_value): Use __extension__ and
18114         __typeof__ for GCC 2.0 through 3.3, too.
18116 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
18118         pty: Activate the signature wrapper of forkpty.
18119         The intended preprocessor macro HAVE_FORKPTY is
18120         never defined, yet `lib/forkpty.c' depends on it.
18122         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
18123         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18124         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18126 2013-11-18  Jim Meyering  <meyering@fb.com>
18127         and Paul Eggert  <eggert@cs.ucla.edu>
18129         quotearg: don't attempt to store 1 << 31 into an "int"
18130         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18131         gcc's new -fsanitize=undefined and running its tests triggered some
18132         new test failures due to undefined behavior, all with this diagnostic:
18133           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18134             cannot be represented in type int
18135         Rather than shifting "1" left to form a mask, shift the bits right and
18136         simply use "1" as the mask.
18138 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18140         error: depend on stdio
18141         Problem reported by Nikos Mavrogiannopoulos in
18142         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18143         * modules/error (Depends-on): Add stdio.
18145 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18147         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18148         wording.
18149         Reported by Reuben Thomas <rrt@sc3d.org>.
18151 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18153         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18154         New function and macro, to work around _DARWIN_C_SOURCE problem.
18155         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18157 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18159         base64: provide a fast path for encoding well sized buffers
18160         Avoid conditionals in the base64 encoding loop,
18161         which was seen to give 60% better throughput.
18162         * lib/base64.c (base64_encode_fast): A new function to be called
18163         when we don't want to NUL terminate, and we have enough space
18164         in the output to encode the given input.
18165         (base64_encode): Call the _fast() version when appropriate.
18166         Also remove a redundant mask with 0x3F on the first encoded byte.
18168 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18170         extern-inline: port better to OS X 10.9
18171         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18172         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18173         OS X 10.9, except for g++ where the bug is still present.
18174         See <http://trac.macports.org/ticket/41033>.
18176 2013-11-08  Eric Blake  <eblake@redhat.com>
18178         fpending: fix regression on DragonFly BSD
18179         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18180         * lib/fpending.h (__fpending): Don't declare twice.
18181         Reported by GW in
18182         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18184 2013-11-05  Jim Meyering  <meyering@fb.com>
18186         hash: relax license to LGPLv2+, for libguestfs
18187         * modules/hash (License): Change from GPL to LGPLv2+.
18189 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18191         intprops: port to Oracle Studio c99
18192         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18193         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18195 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18197         obstack: pacify HP C
18198         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18199         warning "conversion from pointer to smaller integer" from HP
18200         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18201         C89 or later nowadays, so cast to void instead of int.  Privately
18202         reported by H.Merijn Brand.  Also, change header to match glibc's,
18203         to make checking against glibc easier.
18205 2013-10-29  Jim Meyering  <meyering@fb.com>
18207         maint.mk: prefer gpgv2 over gpgv
18208         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18209         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18210         Reported by Gary Vaughan.
18212 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18214         isnan: port to VAX
18215         Reported by John Klos for NetBSD-5/VAX in
18216         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18217         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18218         (FUNC): Use it.
18220 2013-10-28  Jim Meyering  <meyering@fb.com>
18222         gnulib-tool: protect against CDPATH
18223         * gnulib-tool: Many "cd" built-in functions print a directory name
18224         to stdout when CDPATH is set, e.g.,
18225           $ bash -c 'CDPATH=/; cd tmp'
18226           /tmp
18227         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18229         maint.mk: restore functionality removed by recent change...
18230         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18231         the context of a shallow-cloned gnulib repository: "git describe"
18232         would fail in such a directory.  However, that change made it so
18233         the reported gnulib revision no longer includes the version number
18234         or a commit count, even when run from a full clone.
18235         * top/maint.mk (gnulib-version): Use the full "git describe"
18236         output when possible, e.g., the form above, rather than the
18237         abbreviated, no-tag, no-commit-count string, and fall back to
18238         using a 10-byte hash, rather than the default minimal-length
18239         hash prefix, since while the minimal-length one may be fine today,
18240         it is likely not to be unique for very long.
18242 2013-10-26  Jim Meyering  <meyering@fb.com>
18244         maint.mk: fix "release" target to build _version
18245         This fixes a bug in README-release whereby following the outlined
18246         steps, one would publish a tarball whose programs would report
18247         --version output not consistent with the package version number.
18248         This bug caused grep-2.15 to produce a grep program whose
18249         --version option made it print 2.14.56-1e3d rather than 2.15.
18250         * top/maint.mk (release): Making this target build "_version"
18251         ensures that the new version number is reflected in configure.
18253 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18255         install-reloc: Support multi-binary installation.
18256         * build-aux/install-reloc: Support installing multiple programs in
18257         one invocation, as done by Automake starting with commit
18258         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18259         Haible <bruno@clisp.org>, archived at
18260         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18261         Reported by Sylvain <beuc@gnu.org>.
18263 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18265         selinux-h: Really build without selinux when library is missing.
18266         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18267         continue without selinux, as already told in the warning message.
18269 2013-10-21  Jim Meyering  <meyering@fb.com>
18271         regex: also remove dependency on HAVE_WCSCOLL
18272         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18274 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18276         xfreopen: Fix typo. s/frepoen/freopen/
18277         * lib/xfreopen.c: Fix description.
18278         * modules/xfreopen: Likewise.
18280 2013-10-21  Jim Meyering  <meyering@fb.com>
18282         regex: don't depend on wcscoll
18283         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18284         It is no longer used.
18286 2013-10-20  Jim Meyering  <meyering@fb.com>
18288         error: add the printf attribute to a static function
18289         * lib/error.c (error_tail): Add the printf attribute, to placate
18290         gcc's -Werror=suggest-attribute=format option.
18292 2013-09-30  Jim Meyering  <meyering@fb.com>
18294         fpending, obstack, strerror-override: use pure+const function attrs
18295         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18296         * lib/obstack.c (_obstack_allocated_p): Likewise.
18297         * lib/obstack.h (_obstack_memory_used): Likewise.
18298         (_obstack_memory_used): Likewise.
18299         * lib/strerror-override.h (strerror_override): Declare with
18300         the "const" attribute.
18302 2013-10-18  Eric Blake  <eblake@redhat.com>
18304         extern-inline: make safe for -Wundef usage
18305         Reported by Vladimir 'phcoder' Serbinenko in
18306         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18307         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18309 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18311         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18312         Problem reported by Daniel Richard G. in
18313         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18314         * doc/posix-functions/mkfifo.texi (mkfifo):
18315         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18316         * doc/posix-functions/mknod.texi (mknod):
18317         * doc/posix-functions/mknodat.texi (mknodat):
18318         Document the HP-UX 11.11 bug.
18319         * tests/test-mkfifo.h (test_mkfifo):
18320         Allow the HP-UX 11.11 bug.
18322 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18324         acl: allow cross-compilation to Gentoo
18325         Problem reported by Gabriel Marcano in
18326         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18327         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18328         test only whether it links.
18330 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18332         mgetgroups: remove dependency on realloc-gnu
18333         The dependency violates the comment in realloc-gnu, which
18334         says that tests can't depend on realloc-gnu; some tests depend
18335         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18336         Problem reported by Daniel Richard G. in
18337         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18338         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18339         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18340         not realloc-gnu.
18342 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18344         regex-tests: port to HP-UX 11.11
18345         Problem reported by Daniel Richard G. in
18346         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18347         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18349 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18351         verify: document some 'assume' pitfalls
18352         * doc/verify.texi (Compile-time Assertions):
18353         Mention that 'assume (E)' can sometimes slow things down.
18354         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18356 2013-10-10  Eric Blake  <eblake@redhat.com>
18358         strtoumax: fix typo in previous commit.
18359         * modules/strtoumax (Depends-on): Fix typo.
18360         * modules/strtoimax (Depends-on): Likewise.
18362 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18364         strtoumax: port to Solaris 8
18365         This problem was introduced in the recent HP-UX patch.
18366         Reported by Tom G. Christensen in
18367         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18368         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18369         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18371 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18373         strtoimax, strtoumax: port to HP-UX 11.11
18374         Problem reported by Daniel Richard G. in
18375         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18376         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18377         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18378         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18379         REPLACE_STRTOUMAX.
18380         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18381         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18382         Replace the function if defined as a macro but not as a function.
18383         * modules/inttypes-incomplete (inttypes.h): Substitute
18384         REPLACE_STRTOUMAX.
18385         * modules/strtoumax (configure.ac): Replace strtoumax if
18386         REPLACE_STRTOUMAX.
18388 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18390         strtoimax: port to HP-UX 11.11
18391         Problem reported by Daniel Richard G.
18392         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18393         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18394         they might clash with inttypes.h.
18396 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18398         New module 'count-trailing-zeros'.
18399         * MODULES.html.sh: Mention it.
18400         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18401         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18402         * modules/count-trailing-zeros-tests:
18403         * tests/test-count-trailing-zeros.c:
18404         New files.
18406         count-leading-zeros: port to MSC; support types wider than 64 bits
18407         The ideas behind the MSC port are stolen from Emacs.
18408         * lib/count-leading-zeros.h:
18409         Don't include verify.h: it's no longer needed, as types wider than
18410         64 bits are now supported.
18411         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18412         performance with MSC.  All uses changed.  Do not assume that TYPE
18413         has at most 64 bits.
18414         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18415         All uses changed.  Fold the subtraction from 31 into the table.
18417         count-one-bits: port to MSC; support types wider than 64 bits
18418         The ideas behind the MSC port are stolen from Emacs.
18419         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18420         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18421         Don't include verify.h: it's no longer needed, as types wider than
18422         64 bits are now supported.
18423         (COUNT_ONE_BITS_GENERIC): New macro.
18424         (popcount_supported) [_MSC_VER]: New inline function.
18425         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18426         performance with MSC.  All uses changed.  Do not assume that TYPE
18427         has at most 64 bits.
18428         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18430 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18432         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18433         * lib/mountlist.c (read_file_system_list): fix leak of directory
18434         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18436 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18438         tests: improve diagnostic when an assertion fails
18439         * tests/macros.h (ASSERT): Report the assertion that failed.
18441 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18443         verify: new macro 'assume'
18444         This is taken from Emacs, and should be generally useful.
18445         * doc/verify.texi (assume): Document it.
18446         * lib/verify.h (assume): New macro.
18447         (__has_builtin): Expand to 0 if not defined.
18449 2013-09-26  Eric Blake  <eblake@redhat.com>
18451         dup2, dup3: work around another cygwin crasher
18452         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18453         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18454         * tests/test-dup2.c (main): Likewise.
18455         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18456         * lib/dup3.c (dup3): Likewise.
18457         * doc/posix-functions/dup2.texi (dup2): Document it.
18458         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18460         getdtablesize: work around cygwin issue
18461         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18462         * modules/getdtablesize (configure.ac): Build replacement.
18463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18464         * modules/unistd (Makefile.am): Expose the witness.
18465         * lib/unistd.in.h (getdtablesize): Declare replacement.
18466         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18467         * tests/test-getdtablesize.c (main): Test it.
18468         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18470 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18472         pmccabe2html: escaping of special characters
18473         Escape all '<', '>', and '&' in HTML output.
18474         * build-aux/pmccabe2html (html_fnc): Call gsub()
18475         instead of sub() to capture all '<', '>', and '&'.
18476         Neither of '<' and '>' is special in a regexp,
18477         so first arguments to gsub() are corrected. Also,
18478         in replacement strings, ampersand must be escaped.
18479         Finally, '&' must be handled first, then '<' and '>'.
18481 2013-09-24  Eric Blake  <eblake@redhat.com>
18483         manywarnings: enable nicer gcc warning messages
18484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18485         some -f options for optimal warnings.
18487 2013-09-21  Jim Meyering  <meyering@fb.com>
18489         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18490         * lib/timespec-add.c (timespec_add): Also replace 999999999
18491         with TIMESPEC_RESOLUTION - 1.
18492         * lib/timespec-sub.c (timespec_sub): Likewise.
18494 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18496         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18497         Problem reported by Dagobert Michelsen via Eric Blake in
18498         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18499         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18500         not AC_COMPILE_IFELSE.
18502 2013-09-23  Eric Blake  <eblake@redhat.com>
18504         configmake: support new --runstatedir option
18505         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18506         even if autoconf was too old to provide the command line option.
18507         * modules/configmake (Makefile.am): Propagate it to .h file.
18509 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18511         ctype, string: depend on extern-inline
18512         This is needed to complete the recent OS X fixes.
18513         Also, fix related documentation as suggested by Eric Blake.
18514         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18515         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18516         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18517         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18518         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18519         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18520         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18521         * doc/posix-functions/toupper.texi:
18522         List the 'ctype' gnulib module.
18523         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18524         * doc/posix-functions/strncpy.texi:
18525         List the 'string' gnulib module.
18526         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18527         Add string.
18528         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18530 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18532         userspec: support optional parameters to parse_user_spec()
18533         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18534         then avoid group processing and treat the full spec as a user.
18535         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18536         be optional params (NULL), in which case they're ignored.
18538 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18540         timespec: new function make_timespec, and new constants
18541         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18542         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18543         (make_timespec): New function.
18544         * lib/dtotimespec.c (dtotimespec):
18545         * lib/timespec-add.c (timespec_add):
18546         * lib/timespec-sub.c (timespec_sub):
18547         * lib/utimens.c (validate_timespec):
18548         * lib/utimensat.c (rpl_utimensat):
18549         Use these new constants and functions.
18551         stdio: OS X port of putc_unlocked + extern inline
18552         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18553         * doc/posix-functions/putc_unlocked.texi:
18554         * doc/posix-functions/putchar_unlocked.texi:
18555         Document this portability problem.
18557         signal: OS X port of sigaddset etc. + extern inline
18558         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18559         (sigismember): #undef on problematic Apple platforms.
18560         * doc/posix-functions/sigaddset.texi:
18561         * doc/posix-functions/sigdelset.texi:
18562         * doc/posix-functions/sigemptyset.texi:
18563         * doc/posix-functions/sigfillset.texi:
18564         * doc/posix-functions/sigismember.texi:
18565         Document this portability problem.
18567         extern-inline: do not always suppress extern inline on OS X
18568         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18569         extern inline on Apple only if the particular compile-time
18570         configuration is known to have the problem.
18571         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18572         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18573         other Gnulib modules.
18575         extern-inline: document fixes for ctype and wctype macros
18576         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18577         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18578         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18579         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18580         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18581         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18582         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18583         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18584         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18585         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18586         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18587         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18588         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18589         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18590         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18591         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18592         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18593         * doc/posix-functions/strncpy.texi:
18594         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18595         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18596         Document that Gnulib fixes portability problems with these
18597         functions on OS X 10.8 and earlier when called from plain inline
18598         or extern inline functions.
18600 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18602         fflush, freadahead, fseeko: Fix for Android
18603         Suggested by Bruno Haible in:
18604         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18605         * lib/stdio-impl.h: Use local __sfileext definition.
18607 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18609         pmccabe2html: Portability to other awk versions.
18610         The functions systime() and strftime() are available
18611         in Gawk only.  Properly close two HTML-tags 'style'
18612         and 'span'.
18613         * build-aux/pmccabe2html (BEGIN): Store timing
18614         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18615         systime() in HTML_COMMENT.
18616         (html_header): Correctly close tag 'style'.
18617         (END): Replace strftime() by CHRONOS_TIME.  Close
18618         tag 'span' correctly, not as 'div'.
18620 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18622         getgroups: statement without effect
18623         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18624         Change equality conditional to expected assignment.
18626 2013-09-09  Eric Blake  <eblake@redhat.com>
18628         glob: fix compilation
18629         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18631 2013-09-07  Eric Blake  <eblake@redhat.com>
18633         glob: fix build for platforms without __THROW
18634         * lib/glob.in.h (__THROW): Add definition again.
18636 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18638         regex-quote: fix buffer access out of bounds
18639         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18640         * lib/regex-quote.c (regex_quote_spec_pcre):
18641         Fix typo that resulted in an out-of-bounds read.
18643 2013-09-04  Eric Blake  <eblake@redhat.com>
18645         glob: avoid -Wattribute warnings on glibc
18646         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18647         __THROWNL, not __THROW, on static functions.
18648         * lib/glob.in.h (__THROW): Adjust...
18649         (__THROWNL): ...accordingly.
18651 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18653         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18654         Suggested by Bruce Korb in:
18655         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18656         * doc/extern-inline.texi (extern inline):
18657         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18658         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18659         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18660         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18661         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18662         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18663         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18664         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18665         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18666         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18667         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18668         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18669         * lib/xtime.h:
18670         Check that _GL_INLINE_HEADER_BEGIN is defined.
18672 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18674         bootstrap: remove the --version requirement from ancillary tools
18675         * build-aux/bootstrap (check_exists): A new refactored function to
18676         determine if a command exists.
18677         (find_tool): Use the new function which does not require the
18678         --version option to be supported.
18679         (check_versions): Use the new function.
18681 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18683         gc: support HMAC-SHA256 and HMAC-SHA512.
18684         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18685         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18686         functions.
18687         (gc_hmac_md5): Use symbolic constant.
18688         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18689         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18690         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18691         * m4/sha256.m4: Protect against empty expansion.
18692         * m4/sha512.m4: Likewise.
18693         * lib/hmac-sha256.c: New file.
18694         * lib/hmac-sha512.c: Likewise.
18695         * m4/gc-hmac-sha256.m4: Likewise.
18696         * m4/gc-hmac-sha512.m4: Likewise.
18697         * m4/gc-sha256.m4: Likewise.
18698         * m4/gc-sha512.m4: Likewise.
18699         * modules/crypto/gc-hmac-sha256: Likewise.
18700         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18701         * modules/crypto/gc-hmac-sha512: Likewise.
18702         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18703         * modules/crypto/hmac-sha256: Likewise.
18704         * modules/crypto/hmac-sha256-tests: Likewise.
18705         * modules/crypto/hmac-sha512: Likewise.
18706         * modules/crypto/hmac-sha512-tests: Likewise.
18707         * tests/test-gc-hmac-sha256.c: Likewise.
18708         * tests/test-gc-hmac-sha512.c: Likewise
18709         * tests/test-hmac-sha256.c: Likewise.
18710         * tests/test-hmac-sha512.c: Likewise
18712 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18714         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18715         of AC_CHECK_DECLS.
18717 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18719         selinux-at: omit unnecessary include
18720         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18721         this source file doesn't use its macros, and subsidiary files that
18722         use the macros already include it.
18724 2013-08-21  Eric Blake  <eblake@redhat.com>
18726         d-ino: avoid false negative on symlink
18727         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18728         Reported by Stephane Chazelas.
18730 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18732         bootstrap: port to OpenBSD sed
18733         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18734         does not interpret `-' as a file argument to mean stdin.
18736 2013-08-15  Eric Blake  <eblake@redhat.com>
18738         warnings: minor optimization
18739         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18741         warnings: check -Wfoo rather than -Wno-foo
18742         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18743         -Wno-, test if the compiler recognizes the positive form instead.
18745 2013-08-15  Karl Berry  <karl@gnu.org>
18747         * config/srclist-update: add option "doclicense" to placate
18748         pulling *.texi files from Emacs.  Write terse usage
18749         documentation at the top.
18751 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18753         xvasprintf-tests: port to GCC with hardening flags
18754         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18755         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18756         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18758 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18760         fpending: port to recent Cygwin change to stdio_ext.h
18761         Reported by LRN in
18762         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18763         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18764         just declare __fpending unless it's a macro.
18765         A duplicate decl shouldn't hurt.
18766         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18767         call compiles and links, instead of separately checking for
18768         decl and lib function.
18769         * modules/fpending (configure-ac):
18770         Adjust to fpending.m4's renaming of shell variable.
18772 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18774         sys_time: port to OpenBSD
18775         * lib/sys_time.in.h: Simply delegate to the system's header
18776         in the BSDish cases as well.  Problem reported by Mike Miller in
18777         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18778         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18779         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18780         wider than time_t.
18782 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18784         bootstrap: support checksum utils having -c but not --status
18785         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18786         Add sha1 to the list of supported checksum utils since it's now
18787         supported through adjustments below.
18788         (update_po_files): Remove the use of --status
18789         in a way that will suppress all error messages, but since this is
18790         only used to minimize updates, it shouldn't cause an issue.
18791         Exit early if there is a problem updating the po file checksums.
18792         (find_tool): Remove the check for --version support as this
18793         is optional as per commit 86186b17.  Don't even check for the
18794         presence of the command as if that is needed, it's supported
18795         through configuring prerequisites in bootstrap.conf.
18796         Prompt that when a tool isn't found, one can define an environment
18797         variable to add to the hardcoded search list.
18799 2013-08-05  Jim Meyering  <meyering@fb.com>
18801         regex: port to non-glibc/lock-using systems
18802         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18803         system with GNULIB_LOCK would fail due to absence of the
18804         included "glthread/lock.h".  This would affect any package
18805         for which the "lock" module is used only by the regex module,
18806         and not explicitly used.
18807         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18808         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18809         Add a dependency on the "lock" module.
18811 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18813         localecharset: make locale_charset thread-safe on Mac OS X
18814         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18815         instead of MB_CUR_MAX.
18817 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18819         gettext: update to version 0.18.3
18820         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18821         require AC_PROG_SED to allow user to specify custom sed command when
18822         generating en@quot PO file.
18824 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18826         bootstrap: use correct source when copying build-aux files
18827         * build-aux/bootstrap (gnulib_extra_files): This variable is
18828         relative to upstream gnulib layout, not downstream.
18830 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18832         tmpdir: fix bug in VMS port
18833         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18834         See Steven M. Schweda in
18835         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18837 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18839         tmpdir: port to VMS, to // != /, and to long dirs
18840         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18841         __secure_getenv, so that we're more like the glibc version.
18842         All uses changed.
18843         (path_search): Don't put slash after directory if __VMS.
18844         Problem reported by Steven M. Schweda in
18845         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18846         Simplify code to add slash; no need for a loop.
18847         Do not remove trailing slash from "//".
18848         Do not assume dlen <= INT_MAX.
18850 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18852         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18853         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18854         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18855         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18857         accept4, dup3, pipe2: port to Cygwin
18858         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18859         * lib/accept4.c (accept4) [O_BINARY]:
18860         * lib/dup3.c (dup3) [O_BINARY]:
18861         * lib/pipe2.c (pipe2) [O_BINARY]:
18862         Use set_binary_mode, not setmode.
18863         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18864         * modules/binary-io (Depends-on): Remove module indicator.
18865         These last two bits undo the previous change to pipe2 and binary-io.
18867 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18869         mountlist: add support for deallocating returned list entries
18870         * lib/mountlist.c (free_mount_entry): A new exported function
18871         to deallocate a mount list entry.
18872         (read_file_system_list): Refactor to use the new deallocation function.
18873         Suggested by Anton Ovchinnikov.
18875 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18877         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18878         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18879         * lib/stdalign.in.h (_Alignas, _Alignof):
18880         Port to FreeBSD 9.1, and to C11 and C++11.
18881         (_Alignas): Also support ICC.
18882         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18883         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18885 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18887         fnmatch: don't goto over declaration
18888         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18889         undefined behavior for goto over a declaration.
18890         Problem reported by Charlie Brown in
18891         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18893         pipe2: decouple from binary-io a bit
18894         This is for Emacs, which needs pipe2 but not binary-io.
18895         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18896         * modules/binary-io (Depends-on): Add module indicator.
18898 2013-07-03  Eric Blake  <eblake@redhat.com>
18900         mgetgroups: relax license to LGPLv2+
18901         * modules/getugroups (License): Change from GPLv3+.
18902         * modules/mgetgroups (License): Likewise.
18903         * modules/getgroups (License): Change from LGPLv3+.
18905         xalloc-oversized: relax license to LGPLv2+
18906         * modules/xalloc-oversized (License): Change from GPLv3+.
18908         nproc: relax license to LGPLv2+
18909         * modules/nproc (License): Change from LGPLv3+.
18911         bootstrap: honor --no-git
18912         * build-aux/bootstrap: Don't even try to use git when user is
18913         pointing to a static checkout.
18915 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18917         ignore-value: port to gcc -pedantic
18918         * lib/ignore-value.h (ignore_value):
18919         Port to gcc -pedantic, by using __extension__.
18920         Reindent as per usual gnulib style nowadays.
18921         Simplify GCC version check.
18923 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18925         extern-inline: port to gcc -std=c89
18926         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18927         Do not use __gnu_inline__ if pedantic and pre-C99.
18929 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18931         doc: document extern-inline
18932         * doc/extern-inline.texi: New file.
18933         * doc/gnulib.texi (alloca-opt): Include it.
18934         * m4/extern-inline.m4: Move some comments to documentation,
18935         and others closer to what they describe.
18937         doc: chatter less
18938         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18939         (updated-stamp): Use it.  This causes 'make' to output just
18940         one file name rather than zillions.
18942         fflush, fseeko: port to musl cross-compiles
18943         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18944         on some implementation that (1) is not known to be buggy,
18945         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18946         cross-compiled to so we can't easily check for lack of
18947         conformance.  This is for cross-compiling to musl.
18948         Reported by Rich Felker in
18949         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18950         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18951         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18952         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18953         Adjust to above change.
18954         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18955         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18956         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18957         known not to work, or unknown.
18959 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18961         msvc-inval: port to mingw-w64
18962         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18963         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18964         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18966 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18968         getcwd-lgpl: port to Tru64
18969         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18970         Problem reported by Steven M. Schweda in
18971         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18973         tests: port large-fd POSIX spawn tests to OS X
18974         Problem reported by Daiki Ueno in
18975         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18976         * tests/test-posix_spawn_file_actions_addclose.c:
18977         * tests/test-posix_spawn_file_actions_adddup2.c:
18978         * tests/test-posix_spawn_file_actions_addopen.c:
18979         Include <limits.h>, for OPEN_MAX, if available.
18980         (big_fd): New static function.
18981         (main): Use it.
18983 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18985         tests/nap.h: use an adaptive delay to avoid ctime update issues
18986         The recent change in nap.h (5191133e) decreased the probability of lost
18987         races to about a third, however such problems could still be observed
18988         in virtual machines and openSUSE's OBS.
18989         Before, nap() detected the needed time once empirically and then used
18990         that delay (together with a small correction multiplier) in further
18991         calls.  This problem has been reported and discussed several times,
18992         including guesses about possible kernel issues:
18993         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18994         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18995         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18996         http://bugs.gnu.org/12820
18997         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18998         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18999         Now, nap() avoids the race alltogether by verifying on a reference
19000         file whether a timestamp difference has happened.
19001         * tests/nap.h (nap_fd): Define file descriptor variable for the
19002         witness file.
19003         (nap_works): Change return value to bool.  Change passing
19004         the old file's status by value instead of by reference as this function
19005         does no longer update that timestamp; rename the function argument from
19006         st to old_st.  Remove the local variables cdiff and mdiff because that
19007         function now returns true/false instead of the precise delay.
19008         (guess_delay): Remove function.
19009         (clear_tmp_file): Add new function to close and unlink the witness file.
19010         (nap): Instead of re-using the delay which has been calculated during
19011         the first call, avoid the race by actually verifying that a timestamp
19012         difference can be observed on the current file system.  Use an adaptive
19013         approach for the delay to minimize execution time.  Assert that the
19014         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
19015         = 2^31 - 1 = 2.1s.
19016         Use atexit to call clear_tmp_file when the process terminates.
19018 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19020         sig2str: port to C++
19021         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
19022         Reported by Daniel J Sebald in
19023         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
19025 2013-05-30  Eric Blake  <eblake@redhat.com>
19027         docs: mention cygwin shortcoming in <sys/un.h>
19028         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
19030         vasnprintf: silence mingw compiler warning
19031         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
19033 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19035         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
19036         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
19037         This fixes a porting bug I recently reintroduced in regex, and
19038         some other instances that I discovered while testing the fix.
19039         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
19040         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
19041         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
19042         with an empty argument if this is a pedantic pre-C99 GCC.
19043         * lib/verify.h: Do not use _Static_assert if this is a pedantic
19044         pre-C11 GCC.
19046         regex: adapt to locking regime instead of depending on pthread
19047         Instead of depending on pthread, adapt to whatever thread
19048         modules are in use.  Problem reported by Ludovic Courtès in
19049         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
19050         and by Mats Erik Andersson in
19051         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
19052         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19053         Support either the 'lock' module, or the 'pthread' module, or
19054         no module.
19055         (lock_lock, lock_unlock): New macros.
19056         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
19057         * modules/lock, modules/pthread (configure.ac): Add module indicator.
19058         * modules/regex (Depends-on): Remove pthread.
19060 2013-05-22  Eric Blake  <eblake@redhat.com>
19062         getgroups: document portability issues
19063         * doc/glibc-functions/initgroups.texi (initgroups): Mention
19064         multithread safety.
19065         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
19066         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
19067         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
19068         getugroups.
19069         * doc/posix-functions/getgroups.texi (getgroups): Mention
19070         multithread safety and mgetgroups.
19072 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19074         test-lchown, test-chown: also skip test if chown fails with EPERM
19075         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
19076         skip this test, to handle FAT file systems.
19077         * tests/test-chown.h (test_chown): Likewise.
19079 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19081         regex: fix dfa race in multithreaded uses
19082         Problem reported by Ludovic Courtès in
19083         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
19084         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19085         New macros.  All uses of __libc_lock_define, __libc_lock_init
19086         changed to use the first two of these.
19087         (__libc_lock_lock, __libc_lock_unlock): New macros, for
19088         non-glibc platforms.
19089         (struct re_dfa_t): Define the lock unconditionally.
19090         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
19091         '#ifdef _LIBC"s.
19092         * modules/regex (Depends-on): Add pthread, if we use the
19093         included regex.
19095         * lib/regcomp.c: Do actions that are not needed for glibc,
19096         but may be needed elsewhere.
19097         (regfree, re_compile_internal): Destroy the lock.
19098         (re_compile_internal): Check for lock-initialization failure.
19100         malloca: port to compilers that reject size-zero arrays
19101         This fixes a bug introduced in my previous patch.
19102         * lib/malloca.c (struct preliminary_header): Use an int
19103         rather than a character array of size int; that's simpler.
19104         (struct header): Remove, replacing with ...
19105         (union header): New type.  This avoids the need for declaring a
19106         character array of size zero, which is not allowed on some platforms.
19107         All uses changed.
19109 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19111         parse-datetime, tests: don't use "string" + int
19112         Recent versions of 'clang' complain about C source code that
19113         uses expressions of the form '"string literal" + integer',
19114         I guess on the theory that it's confusing for readers who are
19115         used to C++.  On those grounds I suppose it's OK to make this
19116         minor style change.
19117         * lib/parse-datetime.y (parse_datetime):
19118         * tests/test-fchdir.c (main):
19119         * tests/test-snprintf-posix.h (test_function):
19120         * tests/test-snprintf.c (main):
19121         * tests/test-vasnprintf-posix.c (test_function):
19122         * tests/test-vasnprintf.c (test_function):
19123         * tests/test-vsnprintf.c (main):
19124         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19125         Rewrite '"str" + E' to '&"str"[E]'.
19127 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19129         argmatch: port to C++
19130         * lib/argmatch.h [__cplusplus]: Add extern "C".
19132         argp: typo fix
19133         * lib/argp-help.c: Typo in comment.
19135 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19137         manywarnings: update for GCC 4.8.0
19138         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19139         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19140         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19141         -Wmissing-noreturn, as they are duplicates of other warnings.
19142         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19143         was documented to be flaky in earlier versions of GCC.
19145         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19146         * tests/test-spawn.c (main):
19147         * tests/test-sys_socket.c (main):
19148         * tests/test-sys_wait.c (main):
19149         Don't have a switch value that isn't covered by a case.
19151         getaddrinfo-tests: port --enable-gcc-warnings to clang
19152         * tests/test-getaddrinfo.c (simple):
19153         Avoid casts from looser to stricter-aligned pointers.
19155         thread: port --enable-gcc-warnings to clang
19156         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19157         Include <signal.h>, to pacify a warning about pthread_sigmask.
19159         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19160         * lib/stdio.in.h (fwrite):
19161         When working around bug 11959, use __REDIRECT rather than '#define
19162         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19163         fix the -Wunused-value issue with clang, and it works with GCC too.
19164         Problem with targeting reported by Eric Blake in
19165         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19166         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19167         debugging the fwrite issue.
19169         stdio: port --enable-gcc-warnings to clang
19170         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19171         since the GCC workaround for fwrite does not pacify clang.
19173         sig2str: port --enable-gcc-warnings to clang
19174         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19176         obstack: port --enable-gcc-warnings to clang
19177         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19178         Avoid casts from looser to stricter-aligned pointers.
19180         memchr2: port --enable-gcc-warnings to clang
19181         * lib/memchr2.c (memchr2):
19182         Avoid casts from looser to stricter-aligned pointers.
19184         mbsstr: port --enable-gcc-warnings to clang
19185         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19186         Avoid casts from looser to stricter-aligned pointers.
19188         malloca: port --enable-gcc-warnings to clang
19189         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19190         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19192         inttostr: port --enable-gcc-warnings to clang
19193         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19195         warnings: port to clang
19196         Problem reported by Daniel P. Berrange via Eric Blake in
19197         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19198         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19199         (gl_WARN_ADD): Use it.
19201 2013-05-11  Jim Meyering  <meyering@fb.com>
19203         quotearg: do not read beyond end of buffer
19204         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19205         end of an ARG for which no length was specified.  With an N-byte
19206         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19207         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19208         via coreutils' misc/sort-debug-keys.sh test and detected by running
19209         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19210         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19211         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19212         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19213         characters correctly."
19215 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19217         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19218         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19219         compilation target is Mac OS X 10.6.
19220         Problem reported by parafin and Andoni Morales in
19221         <http://savannah.gnu.org/bugs/?37844> and
19222         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19224 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19226         mkdir-p: remove assumptions about umask and mode
19227         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19228         umask is 0, or that MODE is a subset of MODE_BITS.
19230 2013-05-10  Eric Blake  <eblake@redhat.com>
19232         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19233         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19235 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19237         deps: require Automake >= 1.9.6 in generated Makefile fragments
19239         That is the same minimal version required in the DEPENDENCIES file.
19240         Moreover, the old code generated a requirement of Automake >= 1.5,
19241         and that is an insanely outdated version.
19243         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19244         * tests/havelib/rpathlx/Makefile.am: Likewise.
19245         * tests/havelib/rpathly/Makefile.am: Likewise.
19246         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19247         * tests/havelib/rpathlz/Makefile.am: Likewise.
19248         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19249         * tests/havelib/rpathx/Makefile.am: Likewise.
19250         * tests/havelib/rpathy/Makefile.am: Likewise.
19251         * tests/havelib/rpathz/Makefile.am: Likewise.
19253 2013-05-08  Eric Blake  <eblake@redhat.com>
19255         bootstrap: AC_INIT may have more than four parameters
19256         * build-aux/bootstrap (extract_package_name): Correctly extract
19257         non-empty tarname field.  Avoid range in regex.
19258         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19260 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19262         qacl: port to MS-Windows port of GNU Emacs
19263         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19264         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19265         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19266         <http://bugs.gnu.org/14295#14>.
19268 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19270         acl: include quote.h
19271         * lib/copy-acl.c: Include quote.h.
19272         * lib/set-acl.c: Likewise.
19274 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19276         fchownat, renameat, unlinkat: update statat dependencies
19277         These modules use statat and lstatat, not fstatat; so depend on
19278         the statat module, which was split out recently from fstatat.
19279         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19280         * modules/renameat: Likewise.  Also delete fstat.
19281         URL: http://bugs.gentoo.org/468790
19283 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19285         Assume gnulib is checked out from Git, not CVS
19287         In fact, access to the gnulib repository through CVS has been
19288         disabled, or more precisely, got broken and was never restored; see:
19289         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19291         Note that support for CVS is not removed completely and unthinkingly
19292         by this change: only support for CVS checkouts of gnulib itself is
19293         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19294         files and CVS directories, for the benefit of those poor gnulib clients
19295         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19297         * gnulib-tool: Simplify accordingly.
19298         * posix-modules: Likewise.
19299         * MODULES.html.sh: Likewise.
19300         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19301         repository.
19302         * doc/gnulib-intro.texi: Likewise.
19303         * doc/gnulib-readme.texi: Likewise.
19304         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19305         sample '.gitignore' file rather than a sample '.cvsignore'.
19306         * NEWS: Update.
19307         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19308         to "CVS Autoconf" rather than "git Autoconf".
19310 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19312         utimensat-tests, etc.: try to fix some races
19313         Problem reported by Bernhard Voelker in
19314         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19315         I don't know whether this patch fixes that race condition, but it
19316         fixes *some* race conditions, so it should be a win.
19317         * modules/chown-tests (Depends-on):
19318         * modules/fchownat-tests (Depends-on):
19319         * modules/fdutimensat-tests (Depends-on):
19320         * modules/futimens-tests (Depends-on):
19321         * modules/lchown-tests (Depends-on):
19322         * modules/stat-time-tests (Depends-on):
19323         * modules/utimens-tests (Depends-on):
19324         * modules/utimensat-tests (Depends-on):
19325         Depend on nanosleep, not usleep.
19326         * modules/chown-tests (test_chown_LDADD):
19327         * modules/lchown-tests (test_lchown_LDADD):
19328         * modules/stat-time-tests (test_stat_time_LDADD):
19329         New macro.
19330         * modules/fchownat-tests (test_fchownat_LDADD):
19331         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19332         * modules/futimens-tests (test_futimens_LDADD):
19333         * modules/utimens-tests (test_utimens_LDADD):
19334         * modules/utimensat-tests (test_utimensat_LDADD):
19335         Add $(LIB_NANOSLEEP).
19336         * modules/stat-time-tests (Files): Add tests/nap.h.
19337         * tests/nap.h: Include <limits.h>, for INT_MAX.
19338         (lt_mtime): Remove.
19339         (diff_timespec): New function.
19340         (get_stat): Rename from get_mtime.  All callers changed.
19341         (nap_works): Determine the needed delay by inspecting the
19342         file system's timestamp jumps; this should be more reliable.
19343         Look at both mtime and ctime, and take the maximum of the two jumps.
19344         (nap_works, guess_delay):
19345         Return a nanosecond count, not a microsecond count.
19346         All callers changed.
19347         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19348         failure.
19349         (nap): Multiply the guess by 1.125, to accommodate the case where
19350         the file system's clock is a bit slower than nanosleep's clock.
19351         * tests/test-stat-time.c (BASE): New macro.
19352         Include nap.h.
19353         (nap): Remove; nap.h now defines this.  This removes a duplicate
19354         implementation of 'nap'.
19356         utimens, utimensat: work around Solaris UTIME_OMIT bug
19357         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19358         Linux kernel 2.6.32 does.  Work around it in the same way.
19359         * doc/posix-functions/futimens.texi (futimens):
19360         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19361         * lib/utimens.c (fdutimens, lutimens):
19362         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19364         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19365         Formerly, it was your responsibility to do this for all Makefile.ams
19366         other than Gnulib's.  Now it's your responsibility to do it for
19367         Gnulib's Makefile.am, too.
19368         * NEWS: Document this.
19369         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19371         acl: include errno.h to get errno
19372         Reported by Daiki Ueno in
19373         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19374         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19376 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19378         tests: don't assume getdtablesize () <= 10000000
19379         * modules/cloexec-tests:
19380         * modules/dup2-tests:
19381         * modules/dup3-tests:
19382         * modules/nonblocking-tests:
19383         * modules/posix_spawn_file_actions_addclose-tests:
19384         * modules/posix_spawn_file_actions_adddup2-tests:
19385         * modules/posix_spawn_file_actions_addopen-tests:
19386         * modules/unistd-safer-tests:
19387         Depend on the getdtablesize module.
19388         * tests/test-cloexec.c:
19389         * tests/test-dup-safer.c:
19390         * tests/test-dup2.c:
19391         * tests/test-dup3.c:
19392         * tests/test-fcntl.c:
19393         * tests/test-nonblocking.c:
19394         * tests/test-posix_spawn_file_actions_addclose.c:
19395         * tests/test-posix_spawn_file_actions_adddup2.c:
19396         * tests/test-posix_spawn_file_actions_addopen.c:
19397         Don't assume getdtablesize () <= 10000000.
19399 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19401         extern-inline: work around bug in Sun c99
19402         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19403         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19405 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19407         qacl: new module, broken out from the acl module
19408         This is for GNU Emacs, which wants the acl functions but does
19409         not want 'error' invoked when they fail.
19410         * lib/acl-internal.h: Do not include error.h, quote.h.
19411         (ENOSYS, ENOTSUP): Remove; no longer needed.
19412         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19413         * lib/acl.h: Include <stdbool.h>.
19414         (acl_errno_valid): New function.
19415         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19416         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19417         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19418         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19419         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19420         * lib/file-has-acl.c (file_has_acl):
19421         * lib/qcopy-acl.c (qcopy_acl):
19422         * lib/qset-acl.c (qset_acl):
19423         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19424         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19425         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19426         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19427         Add lib/set-acl.c.
19428         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19429         Add qacl.
19430         (configure.ac): Move gl_FUNC_ACL to qacl module.
19431         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19432         Rename set-mode-acl.c to set-acl.c.
19433         * lib/acl-errno-valid.c: New file.
19434         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19435         copy_acl function remains in copy-acl.c.
19436         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19437         (_): Remove; not needed.
19438         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19439         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19440         * modules/qacl: New file, moved from the old modules/acl.
19441         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19442         Remove set-mode-acl.c, copy-acl.c.
19443         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19445         alignof, intprops, malloca: port better to IBM's C compiler
19446         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19447         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19448         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19450 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19452         wctype-h: fix gettext link error on mingw
19453         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19454         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19455         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19456         rpl_towupper and rpl_towupper.
19458 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19460         regex-tests, regex: allow glibc re_search behavior
19461         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19462         re_search input data to make the multi-character collating element
19463         in it clearly visible, and treat re_search return code 0 as valid.
19464         * m4/regex.m4 (gl_REGEX): Likewise.
19466 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19468         stdalign: doc fix
19469         * doc/posix-headers/stdalign.texi (stdalign.h):
19470         Gnulib doesn't support '_Alignof expr'.
19472 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19474         stdalign: port to stricter ISO C11
19475         ISO C11 says that _Alignof's operand must be a parenthesized type.
19476         Problem reported by Eli Zaretskii in
19477         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19478         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19479         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19481 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19483         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19484         Problem reported by Marco Atzeri in
19485         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19486         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19487         Simply delegate to the system <sys/select.h> in this case too.
19488         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19489         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19490         be needed on Solaris either.
19491         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19492         Simply delegate to the system <sys/time.h> in this case.
19494 2013-03-19  Karl Berry  <karl@gnu.org>
19496         * build-aux/gnupload: check for erroneous (with gnupload) use of
19497         ftp-upload.gnu.org, tweak help.
19499 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19501         copy-file, rpmatch: fix problems found by cppcheck
19502         Reported by Arno Onken in
19503         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19504         * lib/rpmatch.c (try): Fix memory leak.
19505         * lib/copy-file.c: Include "ignore-value.h".
19506         (qcopy_file_preserving): Ignore chown value.
19507         * modules/copy-file (Depends-on): Add ignore-value.
19509 2013-01-27  Jim Meyering  <jim@meyering.net>
19511         prefix-gnulib-mk: give better diagnostics
19512         * build-aux/prefix-gnulib-mk: Don't just "die".
19513         Give better diagnostics upon failure.
19515 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19517         putenv: port to Solaris 10
19518         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19519         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19520         is not what is wanted here.
19521         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19522         declaration, not for its existence.
19524 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19526         mktime: fix configure typo
19527         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19529 2013-03-12  Eric Blake  <eblake@redhat.com>
19531         regex-tests: skip UTF-8 test on mingw
19532         * modules/regex-tests (Depends-on): Add localcharset.
19533         * tests/test-regex.c (main): Use it to skip test on mingw.
19535 2013-03-11  Eric Blake  <eblake@redhat.com>
19537         tests: make it easier to bypass alarm time in debugger
19538         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19539         * tests/test-memmem.c (main): Likewise.
19540         * tests/test-passfd.c (main): Likewise.
19541         * tests/test-ptsname.c (main): Likewise.
19542         * tests/test-ptsname_r.c (main): Likewise.
19543         * tests/test-strcasestr.c (main): Likewise.
19544         * tests/test-strstr.c (main): Likewise.
19546         regex: port to mingw's recent addition of undeclared alarm
19547         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19548         exists but still doesn't work in newer mingw.
19549         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19550         not existence.  Ensure SIGALRM is not trapped.
19551         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19552         * m4/regex.m4 (gl_REGEX): Likewise.
19553         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19554         * tests/test-regex.c (main): Use correct probe for alarm.
19556         putenv: avoid compilation warning on mingw
19557         * lib/putenv.c (_unsetenv): Protect variable declaration.
19558         (putenv): Fix indentation.
19560 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19562         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19563         * lib/unistd.in.h: be careful not to include un-needed system
19564         stdlib.h from here, because that prevents gnulib stdlib.h from
19565         defining rpl_strtod correctly.
19567 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19569         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19570         changesets, but for the 'precision 0' test.
19571         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19572         round-to-even, since POSIX says rounding is implementation-defined
19573         and OS X 10.8.2 rounds 1.51 to 1 here.
19575         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19576         changeset.
19577         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19578         round-to-even, since POSIX says rounding is implementation-defined
19579         and OS X 10.8.2 rounds 1.5 to 1 here.
19581 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19583         vasnprintf-posix-tests: allow rounding 1.5 to 1
19584         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19585         round-to-even, since POSIX says rounding is implementation-defined
19586         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19587         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19589         bootstrap: port to FreeBSD
19590         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19591         that treat '--' differently.  Reported by Mats Erik Andersson in
19592         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19594 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19596         regex: rename remaining __attribute calls to __attribute__.
19597         2012-02-25 changed definition of __attribute, but left some uses
19598         unchanged, preventing compilation of regex module on most non-gcc
19599         environments.
19600         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19601         (lookup_collation_sequence_value, build_range_exp)
19602         (build_collating_symbol): Set attributes with newly renamed
19603         __attribute__ decorator.
19604         * lib/regex_internal.c (re_string_peek_byte_case)
19605         (re_node_set_compare, re_node_set_contains): Likewise.
19606         * lib/regexec.c (acquire_init_state_context): Likewise.
19608 2013-03-06  Bruno Haible  <bruno@clisp.org>
19610         execute: Revert last change, but use a different condition.
19611         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19612         on Windows.
19614 2013-03-05  Eric Blake  <eblake@redhat.com>
19616         execute: drop dead code
19617         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19619 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19621         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19622         * m4/non-recursive-gnulib-prefix-hack.m4
19623         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19624         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19625         <http://bugs.gnu.org/10305#237>.
19627 2013-03-04  Eric Blake  <eblake@redhat.com>
19629         test-getsockopt: avoid compiler warning
19630         * tests/test-getsockopt.c (includes): Ensure close is declared.
19632 2013-03-02  Bruno Haible  <bruno@clisp.org>
19634         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19635         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19637 2013-03-02  Bruno Haible  <bruno@clisp.org>
19639         gettext: Update to version 0.18.2.
19640         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19641         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19642                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19644 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19646         regex: merge patches from libc
19648         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19649         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19650         All uses changed.
19651         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19652         (re_string_wchar_at, re_string_elem_size_at):
19653         Mark function as possibly unused.
19655         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19656         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19657         elements compare against the byte sequence of it, not its name.
19659 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19661         putenv: port better to native Windows
19662         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19663         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19664         (_unsetenv): Use _putenv if available.
19665         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19666         a bit less likely to cause damage.
19667         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19668         Fix the wrong value with SetEnvironmentVariable.
19669         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19670         code better.
19672 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19674         regex: ignore old-style-definition warnings
19675         * lib/regex.c: Add pragma to ignore these warnings.
19676         Problem reported for GNU tar by Pavel Raiskup.
19678 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19680         getcwd: support coreutils better
19681         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19682         but this might not be correct in coreutils, which disables
19683         the raw decl checks.  Problem reported by Nagendra in
19684         <http://bugs.gnu.org/10305#192>.
19685         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19687         Test the getcwd function, not any macro, since getcwd.c wants the
19688         function.
19689         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19690         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19691         compile, as might happen if there's a macro but no function.
19693         strtod: support coreutils better
19694         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19695         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19696         disables the raw decl checks.  This assumes there is an underlying
19697         strtod, but that's a safe assumption these days.
19698         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19700         mountlist: port to HP NonStop
19701         Reported by Joachim Schmitz in
19702         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19703         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19704         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19706 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19708         extern-inline: avoid compilation error with HP-UX cc
19709         Reported by Richard Lloyd in
19710         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19711         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19712         Suppress extern inline with HP-UX cc.  This should be safe,
19713         though it may hurt performance.  Perhaps someone with some HP-UX
19714         experience can come up with a higher-performance fix.
19716 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19718         putenv: fix heap corruption with mixed putenv/_putenv
19719         Problem reported by Michael Goffioul in
19720         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19721         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19722         Rely on _putenv to allocate the new environment.
19723         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19724         * modules/putenv (configure.ac): Use it.
19726 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19728         unsetenv etc.: port to Solaris 11 + GNU Emacs
19729         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19730         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19731         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19732         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19733         idea but is too painful to fix right now), and without this gnulib
19734         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19735         compiling unsetenv.c on Solaris 11.  Fix the problem for
19736         unsetenv.c, and fix other similar occurrences.
19738 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19740         secure_getenv: fix C++ declaration typo
19741         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19742         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19743         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19745 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19747         careadlinkat: stop exporting careadlinkatcwd
19748         Only Emacs used it directly, and Emacs no longer needs it.
19749         * NEWS: Document this simplification.
19750         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19751         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19752         for readlink.
19753         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19754         Don't include stdlib.h; no longer needed.
19755         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19756         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19757         * modules/areadlink (Depends-on): Add readlink.
19758         (Maintainer): Add self.
19759         * modules/careadlinkat (Depends-on): Remove readlink.
19761         extensions: port better to HP-UX
19762         This is merged from git Autoconf.
19763         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19764         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19765         so that it's compatible with the value used when compiling.
19767         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19768         Problem reported by Mats Erik Andersson in
19769         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19770         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19771         openpty function exists, not merely when we intend to replace it.
19772         This corrects the 2013-01-31 patch, which mistakenly defined
19773         HAVE_OPENPTY even on hosts that lacked it.
19775 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19777         secure_getenv: fix include typo
19778         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19780         secure_getenv: port better to FreeBSD and Solaris
19781         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19782         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19783         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19784         This works better on BSDish platforms.
19785         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19786         Test for issetugid if __secure_getenv is missing.
19788 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19790         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19791         Some of these changes are merged in from git Autoconf.
19792         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19793         When deciding whether to define _XOPEN_SOURCE, inspect the
19794         preprocessor macro __hpux instead of the more-heavyweight
19795         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19796         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19797         as the key for __EXTENSIONS__.
19799         unistd: avoid namespace pollution on non-glibc systems
19800         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19801         This avoids namespace pollution on non-glibc systems, by causing
19802         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19803         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19804         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19806 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19808         tmpdir: use secure_getenv
19809         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19810         Define to secure_getenv, not getenv.
19811         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19812         as that's now secure_getenv's job.
19813         * modules/tmpdir (Depends-on): Add secure_getenv.
19815         tempname: use secure_getenv
19816         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19817         Define to secure_getenv, not getenv.
19818         * modules/tempname (Depends-on):
19819         Add secure_getenv.
19821         secure_getenv: new module
19822         * MODULES.html.sh (Extra functions based on ANSI C 89):
19823         Add secure_getenv.
19824         * doc/glibc-functions/secure_getenv.texi: New file.
19825         * doc/gnulib.texi: Include it.
19826         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19827         New files.
19828         * lib/stdlib.in.h (secure_getenv): New decl.
19829         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19830         * modules/stdlib (stdlib.h):
19831         Add secure_getenv checks.
19833 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19835         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19836         Reported for OS X 10.8.2 by Assaf Gordon in
19837         <http://bugs.gnu.org/13516>.
19838         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19839         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19840         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19841         so that they can be kept in sync more easily.  Avoid PATH_MAX
19842         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19843         mkdir or chdir failure.
19844         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19845         lib/getcwd.c.
19846         (test_abort_bug): Do not test for the deep directory bug unless we
19847         have openat support.  Avoid PATH_MAX test on the Hurd.
19849         regex-tests, regex: fix bug: memset undeclared
19850         * tests/test-regex.c: Don't include regex.h twice.  Include
19851         string.h, to declare memset.  Christensen's report also mentioned
19852         this issue.
19853         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19854         test-regex.c, to avoid future problems like this.  Remove
19855         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19856         twice.
19858         regex-tests: fix link errors on older Solaris
19859         These need to link with @LIBINTL@ to get libintl_gettext.
19860         Problem reported by Tom G. Christensen in
19861         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19862         * modules/regex-tests (test_regex_LDADD): New macro.
19864 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19866         regex-tests: new module
19867         * modules/regex-tests, tests/test-regex.c: New files.
19869         regex: fix off-by-one error in configure test
19870         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19872 2013-01-31  Eric Blake  <eblake@redhat.com>
19874         regex: avoid infinite configure test
19875         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19877 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19879         openpty: fix bug where HAVE_OPENPTY wasn't defined
19880         See the thread starting at:
19881         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19882         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19883         openpty function exists, not merely when we intend to replace it.
19885 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19887         sys_time: port to Solaris 2.6
19888         There is a circularity problem on Solaris 2.6, where <time.h> includes
19889         <sys/time.h> for struct timespec.  The include nesting is gnulib
19890         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19891         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19892         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19893         <sys/siginfo.h>; the last, innermost file needs struct
19894         timestruc_t, which is defined in <sys/time.h>, which has not been
19895         fully parsed.  Problem reported by Tom G. Christensen in
19896         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19897         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19898         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19899         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19900         uses split double-inclusion guards.
19902 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19904         regex: test for buffer overrun
19905         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19906         for the just-fixed regex bug.
19908 2013-01-29  Andreas Schwab  <schwab@suse.de>
19910         regex: fix buffer overrun in regexp matcher [BZ #15078]
19911         * lib/regexec.c (extend_buffers): Add parameter min_len.
19912         (check_matching): Pass minimum needed length.
19913         (clean_state_log_if_needed): Likewise.
19914         (get_subexp): Likewise.
19916 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19918         mountlist: don't consider "devtmpfs" as dummy
19919         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19920         as there is storage associcated with it.
19922 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19924         futimens-tests, utimens-tests: Depend on gettext.
19925         This works around a problem introduced in my 2013-01-12 patch,
19926         which added @LIBINTL@ to these modules.
19927         * modules/futimens-tests (Depends-on):
19928         * modules/utimens-tests (Depends-on): Add gettext.
19930 2013-01-26  Eric Blake  <eblake@redhat.com>
19932         test-getpeername: fix typo
19933         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19935 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19937         bootstrap: remove the need for a sorted .gitignore file
19938         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19939         rename to insert_if_absent(), so that we don't need or generate
19940         a sorted .gitignore file.  We do require a .gitignore with no
19941         existing duplicate entries and enforce that.
19942         (sort_patterns): Remove this function as we now use the simpler
19943         technigue of inserting blacklist entries at the top of the file,
19944         assuming gnulib won't be inserting !whitelist entries.
19946 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19948         readlinkat: don't depend on gl_FUNC_OPENAT
19949         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19950         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19951         renameat.m4, symlinkat.m4; but one thing at a time.
19953         statat: new module, split out from fstatat
19954         GNU Emacs needs the POSIX-specified fstatat, but not the
19955         gnulib-specified statat and lstat.  Split the latter two into a
19956         new module 'statat'.
19957         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19958         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19959         Rename from FSTATAT_INLINE. All uses changed.
19960         * modules/fstatat (Files): Remove lib/statat.c.
19961         (gl_MODULE_INDICATOR([fstatat])): Remove.
19962         (lib_SOURCES): Remove.
19963         (Maintainer): Add self.
19964         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19965         * tests/test-fstatat.c (BASE): Don't define if already defined.
19966         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19968 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19970         tests: don't assume fd 99 is closed
19971         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19972         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19973         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19974         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19975         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19976         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19977         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19978         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19979         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19980         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19981         * tests/test-fwrite.c, tests/test-getpeername.c:
19982         * tests/test-getsockname.c, tests/test-getsockopt.c:
19983         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19984         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19985         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19986         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19987         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19988         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19989         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19990         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19991         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19992         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19993         Close file descriptor 99, instead of assuming it's already closed.
19995 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19997         stpncpy: port to OS X 10.8
19998         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19999         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
20001 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20003         unistd: port to recent mingw
20004         * lib/unistd.in.h: Remove special invocation convention for mingw,
20005         which breaks for the latest mingw version.  See John W. Eaton in
20006         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
20008         largefile: port better to Mac OS X 10.5
20009         This patch is backported from Autoconf git.
20010         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
20011         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
20012         with ino_t size being different for configuration time versus
20013         build/run time.  Problem reported by PHO in
20014         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
20016 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20018         doc: clarify -Werror
20019         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
20020         clarify that it's intended for developers, not for ordinary builds,
20021         and mention --enable-gcc-warnings as one possible use.
20023 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
20025         stdint: fix build with Android's Bionic fox x86
20026         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
20027         was already included as _SSIZE_T_DEFINED_ might also be defined
20028         in include/machine/_types.h, which is included by stdio.h
20030 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20032         net_if-tests: port to Solaris 7 + GCC 3.4.6
20033         Problem reported by Tom G. Christensen in
20034         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
20035         * tests/test-net_if.c (ni): Move to next the code that uses it,
20036         so that it's declared only if needed.
20038 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20040         net_if-tests: port to older Solaris
20041         Problem reported by Tom G. Christensen in
20042         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20043         * modules/net_if-tests (NET_IF_LIB): New substitution.
20044         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
20045         (HAVE_IF_NAMEINDEX): New C macro.
20046         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
20048         system-quote-tests: port to older Solaris
20049         Problem reported by Tom G. Christensen in
20050         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20051         * tests/test-system-quote-child.c (fopen, fread): Undef.
20053         c-xvasprintf etc.: fix link errors on older Solaris
20054         These need to link with @LIBINTL@ to get libintl_gettext.
20055         Problem reported by Tom G. Christensen in
20056         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20057         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
20058         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
20059         * modules/futimens-tests (test_futimens_LDADD):
20060         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
20062 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20064         locale: port to Solaris 2.6 and 7 + GNU gettext
20065         * lib/locale.in.h: Just include_next <locale.h> when
20066         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
20067         when combining the localename module with GNU gettext 0.18.2.
20068         Problem reported by Tom G. Christensen in
20069         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
20071 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20073         stdlib: port to Solaris 2.6
20074         Also, the code worked on Solaris 7 through 9 only by accident.
20075         Problem reported by Tom G. Christensen in
20076         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
20077         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
20078         simply include the system stdlib.h.
20079         * lib/getopt.in.h (__need_system_stdlib_h):
20080         * lib/pthread.in.h (__need_system_stdlib_h):
20081         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
20082         Define when including <stdlib.h>, to avoid problems at least for
20083         the pthread case on Solaris 2.6 and 7.  These .h files can get by
20084         with the system stdlib.h.
20086 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20088         doc: update main copyright year
20089         * doc/gnulib.texi: Update copyright date.
20091         doc: improve ISO 8601 discussion
20092         * doc/parse-datetime.texi (Combined date and time of day items):
20093         Specify more carefully what formats are supported and what is
20094         done with excess precision.
20096 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20098         doc: avoid small caps
20099         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
20100         they're more trouble than they're worth.  Suggested by Karl Berry
20101         in <http://bugs.gnu.org/13360>.
20103         regex: conform to strict C
20104         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
20105         From Aharon Robbins.
20107         gnulib-tool: fix incompatibility with autopoint 0.18.2
20108         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
20109         Problem reported by Tom G. Christensen in
20110         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
20112 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20114         fprintftime: bring back and reword fwrite comment
20115         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
20117         stdio: remove now-unnecessary stdio.c
20118         Since stdio.in.h no longer uses inline functions, we no longer
20119         need to compile the extern versions.
20120         * lib/stdio.c: Remove.
20121         * modules/stdio (Files): Remove lib/stdio.c.
20122         (lib_SOURCES): Remove.
20124         unicodeio: depend on stdio, not ignore-value
20125         * lib/unicodeio.c: Do not include ignore-value.h.
20126         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20127         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20129         fprintftime: depend on stdio, not ignore-value
20130         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20131         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20132         since the stdio module arranges to silence that warning now.
20133         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20135 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20137         stdint-tests: Fix expanded-before-required-warning.
20138         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20140 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20142         fwrite: silence __wur only for older glibc versions
20143         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20144         This will help us remove this workaround some time in the far future.
20146 2013-01-03  Eric Blake  <eblake@redhat.com>
20148         fwrite: silence __wur without using inline
20149         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20150         just gcc, and in a way that avoids inline issues.
20151         * modules/stdio (Depends-on): Drop extern-inline.
20153 2013-01-03  Jim Meyering  <jim@meyering.net>
20155         update-copyright: avoid copyright notice date corruption
20156         Given a sequence of copyright year numbers in which the final
20157         one was a two-digit number that happened to be a substring of
20158         a preceding four-digit year number, we would mistakenly update
20159         the substring (from two- to four-digit) rather than the two-digit
20160         number at the end, which, combined with the addition of the current
20161         4-digit year number would yield two 5-digit year numbers, e.g.,
20162         here, it would convert the first "99" to "1999, 2013" rather than
20163         the final one:
20164           1991, 99
20165           11999, 20131, 1999
20166         * build-aux/update-copyright: Tighten a regexp.
20167         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20168         Reported by Joseph Myers in
20169         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20171 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20173         regex: omit needless signed-pointer casts
20174         * lib/regcomp.c (build_charclass, build_charclass_op):
20175         Use char *, not unsigned char *, for class name and extra.
20176         The char values are always nonnegative so there's no need to
20177         insist on unsigned char * here, and using char * removes the need
20178         for casts.  Reported by Aharon Robbins in
20179         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20181         regex: support Gawk, which never uses alloca
20182         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20183         Do not include in this case.  Gawk doesn't supply a substitute
20184         alloca.h and doesn't need one.
20186         regex: port __libc_lock_define usage to C89
20187         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20188         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20189         does not conform to C89, as it has an empty macro argument.
20190         Reported by Aharon Robbins in
20191         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20193 2013-01-01  Eric Blake  <eblake@redhat.com>
20195         maint: update all copyright year number ranges
20196         Run "make update-copyright".
20198         version-etc: bump copyright year reported in --version
20199         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20201 2012-12-31  Eric Blake  <eblake@redhat.com>
20203         sigprocmask-tests: skip test if pid is unexpectedly large
20204         * tests/test-sigprocmask.c (main): Add range check.
20206         git-version-gen: avoid test -z portability glitch
20207         * build-aux/git-version-gen: Prefer portable test spelling, since
20208         git-version-gen is run on more than just developer machines.
20210 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20212         git-version-gen: add --fallback option to use if git is not present
20213         * build-aux/git-version-gen: Add support for the new option --fallback,
20214         which comes into play when there is no $tarball_version_file and
20215         git is not working.
20216         (scriptversion): Update.
20218         maint.mk: handle missing git with more grace
20219         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20220         Quietly proceed if git is not present.
20222 2012-12-31  Eric Blake  <eblake@redhat.com>
20224         dup2: work around cygwin bug
20225         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20226         * lib/dup2.c (rpl_dup2): Work around it.
20227         * doc/posix-functions/dup2.texi (dup2): Document it.
20229 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20231         regex: remove unnecessary dependency on localcharset.h
20232         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20233         hasn't been needed for years.
20234         * modules/regex (Depends-on): Remove localcharset.
20236         regex: revert single-byte change
20237         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20238         to this function.  This was alredy fixed in a different way, at
20239         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20240         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20241         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20243         regex: simplify based on Gawk version
20244         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20245         Reported by Aharon Robbins in
20246         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20248 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20250         regex: check that pattern char is single-byte
20251         Reported by Aharon Robbins in
20252         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20253         * lib/regexec.c (check_node_accept_bytes):
20254         Return 0 if the pattern string has a multibyte character here.
20256         regex: implement rational ranges
20257         Reported by Aharon Robbins in
20258         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20259         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20260         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20261         Implement rational ranges.
20263         regex: avoid redefining __wctype
20264         Reported by Aharon Robbins in
20265         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20266         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20267         #undef before defining.
20269         regex: port to hosts where malloc (0) == NULL
20270         Reported by Aharon Robbins in
20271         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20272         * lib/regex_internal.c (re_node_set_alloc):
20273         Don't assume that malloc (0) yields nonnull.
20274         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20275         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20276         * modules/regex (Files): Add m4/eealloc.m4.
20278         regex: port to C89
20279         Reported by Aharon Robbins in
20280         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20281         * lib/regcomp.c (init_word_char): Declaration before statement.
20283         regex: merge glibc changes
20284         Also, copy the license wording from glibc.  This simplifies
20285         merging changes.  gnulib-tool will change the wording to GPL as
20286         appropriate, when importing it to other packages.  The only
20287         glibc change made since the last merge, which needs merging, is:
20288         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20289         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20291         * users.txt: Add Emacs.
20293         doc: omit mention of version when not needed
20294         * doc/gnulib-intro.texi (Portability and Application Code):
20295         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20296         Don't mention particular dates or versions when not necessary, so
20297         that the documentation won't go out of date so quickly.
20299         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20301 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20303         bootstrap: pass --force to autoreconf.
20304         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20305         Add "--force" so that Automake's ylwrap and other such tools
20306         be updated at each bootstrap invocation.
20307         Use it.
20309 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20311         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20312         The earlier patch forgot to update one of the #if conditions, causing
20313         a problem on Debian testing i386 reported by Mats Erik Andersson
20314         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20315         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20316         (__argp_fmtstream_puts, argp_fmtstream_puts)
20317         (__argp_fmtstream_write, argp_fmtstream_write)
20318         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20320         * doc/gnulib-readme.texi: Minor fixups.
20321         (Portability guidelines): Modernize URLs.  Remove some repetition.
20322         (Indent with spaces not TABs): Reword to avoid too-long lines.
20323         Remove some '@ifset standalone' stuff that isn't used.
20325         * doc/gnulib-readme.texi (Portability guidelines):
20326         ctype.h, not ctime.h.
20328         Correct name of POSIX.1-2001.
20329         * doc/posix-functions/fgetc.texi (fgetc):
20330         * doc/posix-functions/fgets.texi (fgets):
20331         * doc/posix-functions/fread.texi (fread):
20332         * doc/posix-functions/fscanf.texi (fscanf):
20333         * doc/posix-functions/getc.texi (getc):
20334         * doc/posix-functions/getchar.texi (getchar):
20335         * doc/posix-functions/scanf.texi (scanf):
20336         POSIX.1-2001, not POSIX-2001.
20338         doc: move README into manual
20339         * README: Move contents to new file doc/gnulib-readme.texi.
20340         Replace with a one-line summary.
20341         * doc/gnulib.texi (Brief Overview): New section,
20342         with old intro preface.  Include gnulib-readme.texi for contents.
20343         (Philosophy): Rename from "Introduction", since this
20344         section no longer introduces the rest.  Write a new preface.
20345         * doc/gnulib-readme.texi: New file, with the old contents of
20346         README texinfo-ized.  This way, the README info appears
20347         in the online and printed manual.
20349 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20351         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20352         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20353         c_vasprintf() prototype.
20355 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20357         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20358         * lib/c-vasprintf.h: Remove stray semicolon.
20360 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20362         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20363         It is obsolete and is planned to be removed from Automake 1.14; see
20364         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20365         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20366         (installdirs-data, installdirs-data-yes):
20367         Use $(MKDIR_P), not $(mkdir_p).
20368         * m4/intl.m4 (AM_INTL_SUBDIR):
20369         * m4/po.m4 (AM_PO_SUBDIRS):
20370         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20372 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20374         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20375         On this platform, we are not optimizing but we are using
20376         the substitute for extern inlines, so compile as if
20377         C99-style extern inline, or a substitute, is available.
20378         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20379         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20380         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20381         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20382         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20383         Declare as ARGP_FS_EI, not as extern.
20384         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20385         (__option_is_short, _option_is_end, __option_is_end)
20386         [!_LIBC && __USE_EXTERN_INLINES]:
20387         Declare as ARGP_EI, not as extern.
20389 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20391         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20392         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20393         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20394         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20395         ...), as the latter is fatal with older Autoconfs.
20396         Problem reported and fix suggested by Eric Blake in thread starting at
20397         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20399 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20401         AC_PROG_MKDIR_P: don't workaround if not buggy
20402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20403         Define only for Autoconf versions before 2.62.
20404         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20405         undocumented m4_PACKAGE_VERSION, for consistency with the
20406         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20407         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20408         was introduced in 2.62.
20410 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20412         New 'c-*printf' modules for formatted output in C locale.
20414         New module 'c-vasnprintf'.
20415         * modules/c-vasnprintf: New file.
20416         * lib/c-vasnprintf.c: New file.
20417         * lib/c-vasnprintf.h: New file.
20419         New module 'c-snprintf'.
20420         * modules/c-snprintf: New file.
20421         * modules/c-snprintf-tests: New file.
20422         * lib/c-snprintf.c: New file.
20423         * lib/c-snprintf.h: New file.
20424         * tests/test-c-snprintf.c: New file.
20425         * tests/test-c-snprintf.sh: New file.
20427         New module 'c-vsnprintf'.
20428         * modules/c-vsnprintf: New file.
20429         * modules/c-vsnprintf-tests: New file.
20430         * lib/c-vsnprintf.c: New file.
20431         * lib/c-vsnprintf.h: New file.
20432         * tests/test-c-vsnprintf.c: New file.
20433         * tests/test-c-vsnprintf.sh: New file.
20435         New module 'c-vasprintf'.
20436         * modules/c-vasprintf: New file.
20437         * modules/c-vasprintf-tests: New file.
20438         * lib/c-asprintf.c: New file.
20439         * lib/c-vasprintf.c: New file.
20440         * lib/c-vasprintf.h: New file.
20441         * tests/test-c-vasprintf.c  +: New file.
20442         * tests/test-c-vasprintf.sh: New file.
20444         New module 'c-xvasprintf'.
20445         * modules/c-xvasprintf: New file.
20446         * modules/c-xvasprintf-tests: New file.
20447         * lib/c-xasprintf.c: New file.
20448         * lib/c-xvasprintf.c: New file.
20449         * lib/c-xvasprintf.h: New file.
20450         * tests/test-c-xvasprintf.c: New file.
20451         * tests/test-c-xvasprintf.sh: New file.
20453 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20455         argp: better 'inline'
20456         Use extern-inline module to declare extern inline functions.
20457         This avoids some bogus warning diagnostics.  Problem discovered
20458         when modifying GNU tar to use the manywarnings module.
20459         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20460         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20461         Define based on extern-inline.
20462         * modules/argp (Depends-on): Add extern-inline.
20464 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20466         filemode, sys_stat: Handle MPX files a la AIX.
20467         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20468         * lib/sys_stat.in.h (S_ISMPX): New macro.
20469         * tests/test-sys_stat.c: Add tests for MPX files.
20471 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20473         x-to-1: honor $PERL
20474         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20475         a chance to use his preferred version of Perl.  This is typically
20476         required by Darwin users whose default /usr/bin/perl does not have all
20477         the libraries required by help2man, and who need to use their MacPorts
20478         installation of Perl instead.
20480 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20482         gnu-web-doc-update: add all the new files, even in new directories
20483         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20484         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20485         Use it.
20486         (main): Don't use cvsutils to get the list of unknown files,
20487         just add all the existing files and directories.
20489 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20491         gnu-web-doc-update: improve --help
20492         * build-aux/gnu-web-doc-update: Move comments into --help.
20494 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20496         mountlist: recognize more "dummy" file systems
20497         * lib/mountlist.c (ME_DUMMY_0):
20498         Add these dummy FS names to the list:
20499         - "debugfs" virtual filesystem for kernel debugging
20500         - "devpts" PTY slave filesystem
20501         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20502         - "fusectl" control filesystem for FUSE
20503         - "mqueue" enumerates POSIX message queues
20504         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20505         - "sysfs" is for exporting kernel objects
20506         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20508 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20510         extern-inline: avoid incompatibility with Darwin Libc
20511         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20512         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20513         Problem reported by Akim Demaille in
20514         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20516 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20518         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20519         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20520         let it handle password prompting.
20522 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20524         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20525         * lib/canonicalize.c (canonicalize_filename_mode):
20526         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20527         fetching the current directory.  Don't overrun the beginning of
20528         rpath if there's no slashes after the MS-Windows drive letter.
20530 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20532         maint.mk: avoid extra forks
20533         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20534         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20535         So use that instead of "$(shell test -f FILE && echo FILE)".
20537 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20539         vasnprintf: fix ASCII_ONLY typo
20540         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20541         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20542         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20543         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20544         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20546 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20548         list, oset, xlist, xoset: fix extern inline issue with C99
20549         This was introduced by my recent changes for 'inline'.
20550         Problem reported for gettext by Daiki Ueno in
20551         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20552         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20553         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20554         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20555         (gl_list_previous_node, gl_list_get_at)
20556         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20557         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20558         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20559         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20560         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20561         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20562         (gl_list_iterator_free, gl_sortedlist_search)
20563         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20564         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20565         (gl_sortedlist_remove):
20566         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20567         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20568         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20569         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20570         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20571         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20572         (gl_list_add_at, gl_sortedlist_add):
20573         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20574         Wrap these extern decls inside "#if 0", because they are implemented
20575         as inline functions, and extern inline is not what's wanted here.
20576         It would simplify these .h files to remove the extern decls entirely,
20577         although a downside would be less-clear separation between
20578         specification and implementation.
20580 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20582         sys_stat: no 'static inline'
20583         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20586         extern-inline: no 'static inline'
20587         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20588         Do not require AC_C_INLINE.
20589         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20590         'static inline', for older compilers.
20592         snippet/warn-on-use: no 'static inline'
20593         * build-aux/snippet/warn-on-use.h:
20594         Remove unnecessary 'inline' in comment.
20596         rbtree-list, rbtreehash-list: no 'static inline'
20597         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20598         * lib/gl_anytree_list2.h (node_at):
20599         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20600         (gl_oset_first, add_nodes_to_buckets):
20601         Now static, not static inline.
20603         regex: no 'static inline'
20604         * lib/regex_internal.c (calc_state_hash):
20605         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20606         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20607         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20608         Now static, not static inline.
20609         (inline) [__GNUC__ < 3 && _LIBC]:
20610         Remove macro; no longer needed.
20612         xvasprintf: no 'static inline'
20613         * lib/xvasprintf.c (xstrcat):
20614         Now static, not static inline.
20615         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20616         Do not require AC_C_INLINE.
20618         parse-datetime, parse-duration: no 'static inline'
20619         * lib/parse-datetime.y (to_uchar):
20620         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20621         (scale_n_add):
20622         Now static, not static inline.
20623         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20624         * modules/parse-duration (configure.ac):
20625         Do not require AC_C_INLINE.
20627         getaddrinfo: no 'static inline'
20628         * lib/getaddrinfo.c (validate_family):
20629         Now static, not static inline.
20630         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20631         Do not require AC_C_INLINE.
20633         ftruncate, fts, lstat, openat, raise: no 'static inline'
20634         * lib/ftruncate.c (chsize_nothrow):
20635         * lib/fts.c (opendirat, diropen):
20636         * lib/lstat.c (orig_lstat):
20637         * lib/openat.c (orig_openat):
20638         * lib/raise.c (raise_nothrow):
20639         Now static, not static inline.
20640         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20641         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20642         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20643         * m4/openat.m4 (gl_PREREQ_OPENAT):
20644         * m4/raise.m4 (gl_PREREQ_RAISE):
20645         Do not require AC_C_INLINE.
20647         fflush, stat: no 'static inline'
20648         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20649         (clear_ungetc_buffer, disable_seek_optimization)
20650         (restore_seek_optimization, update_fpos_cache):
20651         * lib/stat.c (orig_stat):
20652         Now static, not static inline.
20653         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20654         (update_fpos_cache):
20655         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20656         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20657         * m4/stat.m4 (gl_PREREQ_STAT):
20658         Do not require AC_C_INLINE.
20660         error, filevercmp: no 'static inline'
20661         * lib/error.c (is_open, flush_stdout):
20662         * lib/filevercmp.c (order):
20663         Now static, not static inline.
20664         * m4/error.m4 (gl_PREREQ_ERROR):
20665         * modules/filevercmp (configure.ac):
20666         Do not require AC_C_INLINE.
20668         dup, execute, fatal-signal, etc.: no 'static inline'
20669         * lib/dup.c (dup_nothrow):
20670         * lib/execute.c (nonintr_close, nonintr_open):
20671         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20672         * lib/fopen.c (orig_fopen):
20673         * lib/freadseek.c (freadptrinc):
20674         * lib/freopen.c (orig_freopen):
20675         * lib/fstat.c (orig_fstat, fstat_nothrow):
20676         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20677         (get_rusage_as_via_iterator):
20678         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20679         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20680         * lib/isatty.c (_isatty_nothrow):
20681         * lib/open.c (orig_open):
20682         * lib/read.c (read_nothrow):
20683         * lib/sigprocmask.c (signal_nothrow):
20684         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20685         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20686         * lib/wait-process.c (unregister_slave_subprocess):
20687         * lib/write.c (write_nothrow):
20688         Now static, not static inline.
20689         * lib/spawn-pipe.c (nonintr_open): Define only if
20690         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20691         * m4/dup.m4 (gl_PREREQ_DUP):
20692         * m4/execute.m4 (gl_EXECUTE):
20693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20694         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20695         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20696         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20697         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20698         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20699         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20700         * m4/open.m4 (gl_PREREQ_OPEN):
20701         * m4/read.m4 (gl_PREREQ_READ):
20702         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20703         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20705         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20706         * m4/write.m4 (gl_PREREQ_WRITE):
20707         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20708         Do not require AC_C_INLINE.
20710         c-strtod, memcoll, readutmp: no 'static inline'
20711         * lib/c-strtod.c (c_locale):
20712         * lib/memcoll.c (strcoll_loop):
20713         * lib/readutmp.c (desirable_utmp_entry):
20714         Now static, not static inline.
20715         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20716         * m4/memcoll.m4 (gl_MEMCOLL):
20717         * m4/readutmp.m4 (gl_READUTMP):
20718         Do not require AC_C_INLINE.
20720         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20721         * lib/arctwo.c (to_uchar):
20722         * lib/md4.c (set_uint32):
20723         * lib/md5.c (set_uint32):
20724         * lib/sha1.c (set_uint32):
20725         * lib/sha256.c (set_uint32):
20726         * lib/sha512.c (set_uint64):
20727         Now static, not static inline.  This is a bit simpler, and doesn't
20728         affect performance with GCC and default optimization.
20729         * m4/arctwo.m4 (gl_ARCTWO):
20730         * m4/md4.m4 (gl_MD4):
20731         * m4/md5.m4 (gl_MD5):
20732         * m4/sha1.m4 (gl_SHA1):
20733         * m4/sha256.m4 (gl_SHA256):
20734         * m4/sha512.m4 (gl_SHA512):
20735         Do not require AC_C_INLINE.
20737         cond, lock, thread: better 'inline'
20738         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20739         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20740         New macros.  Use them instead of static inline, for header functions.
20741         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20742         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20743         * lib/glthread/lock.c (gl_waitqueue_init)
20744         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20745         * lib/glthread/thread.c (get_current_thread_handle):
20746         Change 'static inline' to 'inline'.
20747         * lib/glthread/cond.h, lib/glthread/thread.h:
20748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20749         * m4/cond.m4 (gl_COND):
20750         * m4/lock.m4 (gl_PREREQ_LOCK):
20751         * m4/thread.m4 (gl_THREAD):
20752         Do not require AC_C_INLINE.
20753         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20755         chdir-long, cycle-check, savewd: better 'inline'
20756         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20757         (find_non_slash):
20758         * lib/cycle-check.c (is_zero_or_power_of_two):
20759         * lib/savewd.c (savewd_delegating):
20760         Change 'static inline' to 'inline'.
20761         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20762         Replace all remaining uses of 'static inline' with it.
20763         * lib/savewd.h:
20764         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20766         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20767         * m4/savewd.m4 (gl_SAVEWD):
20768         Do not require AC_C_INLINE.
20769         * modules/savewd (Depends-on): Add extern-inline.
20771         base32, base64: no need for 'inline'
20772         * lib/base32.c (to_uchar, get_8, decode_8):
20773         * lib/base64.c (to_uchar, get_4, decode_4):
20774         Change 'static inline' to 'inline'.
20775         * m4/base32.m4 (gl_PREREQ_BASE32):
20776         * m4/base64.m4 (gl_PREREQ_BASE64):
20777         Do not require AC_C_INLINE.
20779         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20780         * lib/gl_array_oset.c (gl_array_nx_add_at):
20781         (gl_array_remove_at):
20782         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20783         (add_to_bucket, remove_from_bucket):
20784         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20785         Change 'static inline' to 'static', as it's simpler to omit
20786         'inline' unless there's a significant performance advantage.
20788         list, oset, xlist, xoset, xsublist: simplify via extern inline
20789         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20790         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20791         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20792         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20793         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20794         New macro.  Replace all uses of 'static inline' with it.
20795         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20796         instead of as macros FOO that are defined to static inline
20797         functions FOO_inline.
20798         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20799         * lib/gl_xsublist.c:
20800         Reimplement from scratch, by defining the corresponding *_INLINE
20801         macro and including the corresponding .h file.  This is simpler.
20802         * modules/list, modules/oset, modules/xlist, modules/xoset:
20803         (Files): Remove m4/gl_list.m4.
20804         (configure.ac): Remove gl_LIST.
20805         * m4/gl_list.m4: Remove.
20806         * modules/list, modules/oset, modules/xlist, modules/xoset:
20807         * modules/xsublist:
20808         (Depends-on): Depend on extern-inline, not inline.
20810         xalloc: better 'inline'
20811         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20812         New macro.  Replace all uses of 'static inline' with it.
20813         (static_inline): Remove.
20814         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20815         Let 'extern inline' do the work automatically, instead of doing
20816         it by hand.
20817         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20818         Remove.  All uses removed.
20819         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20821         gethrxtime: better 'inline'
20822         * lib/xtime.c: New file.
20823         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20824         * lib/xtime.h (XTIME_INCLUDE):
20825         New macros.  Replace all uses of 'static inline' with them.
20826         * lib/gethrxtime.c (gethrxtime): Define only if
20827         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20828         this source file is now always compiled, because of the extern inline.
20829         * lib/gethrxtime.h, lib/xtime.h:
20830         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20831         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20832         if gethrtime works, as they're not needed in that case.
20833         (gl_XTIME): Do not require AC_C_INLINE.
20834         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20835         compiled now.  Move the check into gl_GETHRXTIME.
20836         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20837         (Depends-on): Add extern-inline.
20838         (configure.ac): gethrxtime is always compiled now.
20839         (lib_SOURCES): Add gethrxtime.c.
20841         wctype-h: better 'inline'
20842         * lib/wctype-h.c: New file.
20843         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20844         New macro.  Replace all uses of 'static inline' with it.
20845         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20846         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20847         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20848         (Depends-on): Add extern-inline.
20850         unistd: better 'inline'
20851         * lib/unistd.c: New file.
20852         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20853         New macro.  Replace all uses of 'static inline' with it.
20854         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20855         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20856         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20857         (Depends-on): Add extern-inline.
20859         sys_socket: better 'inline'
20860         * lib/sys_socket.c: New file.
20861         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20862         New macro.  Replace all uses of 'static inline' with it.
20863         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20865         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20866         (Depends-on): Add extern-inline.
20868         stdio: better 'inline'
20869         * lib/stdio.c: New file.
20870         * lib/stdio.in.h (_GL_STDIO_INLINE):
20871         New macro.  Replace all uses of 'static inline' with it.
20872         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20873         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20874         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20875         (Depends-on): Add extern-inline.
20877         sigaction: better 'inline'
20878         * lib/sig-handler.c: New file.
20879         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20880         New macro.  Replace all uses of 'static inline' with it.
20881         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20882         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20883         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20884         (Depends-on): Add extern-inline.
20886         selinux-h: better 'inline'
20887         * lib/se-context.c, lib/se-selinux.c: New files.
20888         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20889         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20890         New macro.  Replace all uses of 'static inline' with it.
20891         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20892         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20893         New macro.  Replace all uses of 'static inline' with it.
20894         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20895         * modules/selinux-h (Files, lib_SOURCES):
20896         Add lib/se-context.c, lib/se-selinux.c.
20897         (Depends-on): Add extern-inline.
20898         (configure.ac): Do not require AC_C_INLINE.
20900         pthread: better 'inline'
20901         * lib/pthread.c: New file.
20902         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20903         New macro.  Replace all uses of 'static inline' with it.
20904         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20905         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20906         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20907         * modules/pthread (Files): Add lib/pthread.c.
20908         (Depends-on): Add extern-inline.
20910         math: better 'inline'
20911         * lib/math.c: New file.
20912         * lib/math.in.h (_GL_MATH_INLINE):
20913         New macro.  Replace all uses of 'static inline' with it.
20914         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20915         * m4/math_h.m4 (gl_MATH_H):
20916         Do not require AC_C_INLINE.
20917         * modules/math (Files, lib_SOURCES):
20918         Add lib/math.c.
20919         (Depends-on): Add extern-inline.
20921         count-one-bits: better 'inline'
20922         * lib/count-one-bits.c: New file.
20923         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20924         New macro.  Replace all uses of 'static inline' with it.
20925         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20926         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20927         Do not require AC_C_INLINE.
20928         * modules/count-one-bits (Files, lib_SOURCES):
20929         Add lib/count-one-bits.c.
20930         (Depends-on): Add extern-inline.
20932         count-leading-zeros: better 'inline'
20933         * lib/count-leading-zeros.c: New file.
20934         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20935         New macro.  Replace all uses of 'static inline' with it.
20936         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20937         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20938         Do not require AC_C_INLINE.
20939         * modules/count-leading-zeros (Files, lib_SOURCES):
20940         Add lib/count-leading-zeros.c.
20941         (Depends-on): Add extern-inline.
20943         bitrotate: better 'inline'
20944         * lib/bitrotate.c: New file.
20945         * lib/bitrotate.h (BITROTATE_INLINE):
20946         New macros.
20947         Replace all uses of 'static inline' with them.
20948         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20949         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20950         (Depends-on): Add extern-inline.
20951         (configure.ac): Do not require AC_C_INLINE.
20953 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20955         maint.mk: avoid gratuitous failure
20956         Reported by Stefano Lattarini in
20957         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20958         * top/maint.mk (public-submodule-commit): Quote more safely.
20960 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20962         canonicalize, canonicalize-lgpl: support MS-Windows file names
20963         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20964         for test cases, which it'd be nice to add at some point.
20965         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20966         * lib/canonicalize.c (canonicalize_filename_mode):
20967         * lib/canonicalize-lgpl.c (__realpath):
20968         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20969         slash is at the beginning of the file name.  Use ISSLASH, instead
20970         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20971         the first character with '/'.  Test for
20972         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20973         with a drive letter.
20974         * lib/canonicalize.c (SLASHES): New macro.
20975         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20977 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20979         fts: introduce FTS_VERBATIM
20980         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20981         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20982         * lib/fts.c (fts_open): Honor it.
20984 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20986         getlogin-tests: allow errno == ENXIO
20987         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20988         with errno == ENXIO (No controlling tty).
20989         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20990         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20991         with errno == ENOENT.  This was reported to happen in various
20992         situations on GNU/Linux.
20994 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20996         getlogin-tests: allow errno == ENOENT
20997         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20998         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20999         when running a test in an Emacs shell buffer.
21001 2012-11-08  Jim Meyering  <jim@meyering.net>
21003         tests/nap.h: avoid warning about unused variable
21004         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
21006         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
21007         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
21008         white space before each of the special-cased file names, to avoid
21009         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
21010         in http://bugs.gnu.org/12830.
21012 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21014         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
21015         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
21016         fails with errno == EBADF when fd is opened with O_PATH.
21017         Reported by Jim Meyering in
21018         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
21019         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21020         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
21022 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21024         test-utimens: speed up by taking shorter naps
21025         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
21026         New functions.
21027         (nap): Use them, to do a better job of guessing the delay.
21028         On Fedora 17 with ext4 atop md atop hard disks, this made
21029         test-utimens run 10x faster, because the test napped for
21030         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
21031         <http://bugs.gnu.org/12820#11>.
21033 2012-11-07  Jim Meyering  <jim@meyering.net>
21035         mountlist.c: fix a compilation failure
21036         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
21037         I introduced while transforming commit v0.0-7683-g613bcb6
21039 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21041         errno: port to LynxOS 178 2.2.2
21042         Problem reported by Joel Brobecker in
21043         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
21044         * doc/posix-headers/errno.texi (errno.h): Document this.
21045         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
21046         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
21047         Supply a string for EILSEQ.
21048         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
21050 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21052         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
21053         Linux kernel 2.6.39 introduced O_PATH (see
21054         <http://lwn.net/Articles/433854/>) and this is a better fallback
21055         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
21056         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21057         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
21058         * lib/fcntl.in.h (O_ACCMODE):
21059         * tests/test-fcntl-h.c (main):
21060         Do not reject O_ACCMODE merely because it has more than the
21061         minimal number of bits, as POSIX allows extensions here.
21063 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
21065         mountlist: do not classify a bind-mounted dir entry as "dummy"
21066         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
21067         the "none"-testing clause.
21068         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
21069         exception for bind-mounted directories.
21071 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
21073         quote: provide a means to escape strings with nul characters
21074         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
21075         (quote, quote_n): Rename formal arguments for consistency with
21076         quotearg.
21078 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21080         test-raise: don't assume 199 is an invalid signal
21081         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
21083         sh-quote-tests: port to Solaris 9
21084         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
21085         Problem reported by Dagobert Michelsen in
21086         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
21088 2012-10-28  Jim Meyering  <jim@meyering.net>
21090         maint.mk: rename a new configurable variable
21091         * top/maint.mk (_gl_translatable_string_re): Rename from
21092         translation-markers: _gl_ prefix to insulate from user Makefile code,
21093         and the _re suffix to inform that it's a regular expression.
21095 2012-10-26  Eric Blake  <eblake@redhat.com>
21097         maint.mk: let packages tweak sc_po_check pattern
21098         * top/maint.mk (sc_po_check): Add translation-markers, to allow
21099         finding files with other translation markers.
21101 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21103         euidaccess: speed up 'configure' on GNU hosts
21104         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
21105         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
21106         it's needed only in this case.  Use AC_CHECK_DECLS, not
21107         AC_CHECK_DECLS_ONCE.
21108         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
21109         or AC_REQUIRE for AC_FUNC_GETGROUPS.
21111         * lib/regexec.c (re_search_internal): Fix grammar in comment.
21113 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21115         fchmodat, fchownat, fstatat: port to non-inlining compilers
21116         Problem reported for FreeBSD 9 by Jim Meyering in
21117         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
21118         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
21119         New files, which define FCHMODAT_INLINE etc.
21120         * lib/fchmodat.c (FCHMODAT_INLINE):
21121         * lib/fchownat.c (FCHOWNAT_INLINE):
21122         * lib/fstatat.c (FSTATAT_INLINE):
21123         Remove, as chmodat.c etc. now do this.
21124         * modules/fchmodat (Files): Add lib/chmodat.c.
21125         * modules/fchownat (Files): Add lib/chownat.c.
21126         * modules/fstatat (Files): Add lib/statat.c.
21128 2012-10-15  Jim Meyering  <jim@meyering.net>
21130         fchmodat.c, fchownat.c: compile-impeding typos
21131         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21132         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21133         Introduced in commit v0.0-7636-gd202279.
21135 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21137         fcntl-h: support GNU flags like O_IGNORE_CTTY
21138         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21139         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21140         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21141         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21142         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21143         Define to 0 if not already defined.
21144         * tests/test-fcntl-h.c: Test these new flags.
21146 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21148         faccessat, etc.: support AT_FDCWD-only use
21149         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21150         this function only if its first argument is AT_FDCWD.
21151         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21152         values other than AT_FDCWD, so it doesn't want all the openat
21153         machinery with fchdir etc.
21154         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21155         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21156         * modules/unlinkat (Files):
21157         Remove lib/openat-priv.h, as at-internal supplies this file.
21158         Removing this file here allows us to support programs like Emacs
21159         that avoid at-internal.
21161         faccessat: speed up 'configure' on mainstream hosts
21162         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21163         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21164         since it's only on unusual platforms that we need to check for
21165         'access', and it's better not to slow 'configure' down on all
21166         platforms.
21168         faccessat: port to Solaris 10
21169         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21170         Needed on Solaris 10, which doesn't have AT_EACCESS,
21171         so we need the Gnulib fcntl.h, which defines it.
21173 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21174         canonicalize: fix C89 compilation
21175         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21176         declarations so C89 is supported.  Also remove the comment
21177         referencing memorty allocation as the suggested feature could
21178         not be implemented as suggested.
21179         Reported by Michael Goffioul.
21181 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21183         group-member: omit unnecessary dependencies
21184         This is for Emacs, which has its own allocator and where we
21185         don't want to use xalloc.
21186         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21187         since we no longer use xmalloc.  Do not include stdbool.h, since
21188         the changes below happen to remove the only use of bool.
21189         (GROUPBUF_SIZE): New constant.
21190         (struct group_info): Remove n_groups member.  Add groupbuf member.
21191         This lets us get the groups without using malloc, usually.
21192         (free_group_info, get_group_info): Adjust to this.
21193         (get_group_info): Return the number of groups found, or -1 on error.
21194         Use plain malloc not xmalloc, and treat its failure as if there
21195         are no groups, as the user already loses in case of error.
21196         (group_member): Simplify, based on changes to get_group_info.
21197         * modules/group-member (Depends-on): Remove dependencies on
21198         xalloc and stdbool.  Add dependency on xalloc-oversized.
21200 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21202         gethrxtime: port to C++
21203         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21205 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21207         ptsname: fix macro-name typo
21208         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21210 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21212         inttostr: Relax license.
21213         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21215 2012-10-03  Eric Blake  <eblake@redhat.com>
21217         ptsname_r: support ptys returned by FreeBSD posix_openpt
21218         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21219         lives in /dev/pts/.
21221 2012-10-02  Eric Blake  <eblake@redhat.com>
21223         pselect: reject invalid file descriptors
21224         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21225         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21226         * modules/pselect (Depends-on): Add dup2.
21227         * doc/posix-functions/pselect.texi (pselect): Document this.
21229         select: reject invalid file descriptors
21230         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21231         * lib/select.c (rpl_select) [!win32]: Work around it.
21232         * modules/select (Depends-on): Add dup2.
21233         * doc/posix-functions/select.texi (select): Document this.
21235         select: enhance test
21236         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21237         New functions.
21238         (test_function): Enhance test.
21239         (do_select_bad_fd): Avoid any stale errno values.
21241         ptsname: reject invalid file descriptors
21242         http://www.austingroupbugs.net/view.php?id=503
21243         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21245         * modules/stdlib (Makefile.am): Replace witness.
21246         * lib/stdlib.in.h (ptsname): Allow for replacement.
21247         * modules/ptsname (configure.ac): Trigger replacement.
21248         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21250 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21252         hash-pjw-bare: new module
21253         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21254         * lib/hash-pjw-bare.h: Likewise.
21255         * modules/hash-pjw-bare: New file.
21256         * MODULES.html.sh (Misc): Add it.
21258 2012-10-02  Eric Blake  <eblake@redhat.com>
21260         manywarnings: cater to more gcc infelicities
21261         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21262         -Wuninitialized without -O.
21264 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21266         select, poll tests: Make setsockopt invocation effective.
21267         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21268         the bind() call.
21269         * tests/test-select.h (open_server_socket): Likewise.
21271 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21273         sockets, sys_stat: restore AC_C_INLINE
21274         This undoes the 2012-09-22 patch.
21275         * m4/sockets.m4 (gl_SOCKETS):
21276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21277         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21278         and does not support plain 'inline'.  Reported by Bruno Haible in
21279         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21281 2012-09-30  Bruno Haible  <bruno@clisp.org>
21283         localeconv tests: Avoid test failure on OpenIndiana.
21284         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21285         skip the 'grouping' and 'mon_grouping' tests.
21286         Reported by Jim Meyering.
21288 2012-09-30  Bruno Haible  <bruno@clisp.org>
21290         havelib: Follow libtool developments.
21291         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21292         Suggested by Simon Josefsson.
21294 2012-09-29  Jim Meyering  <meyering@redhat.com>
21296         fstatat.c: fix a compile-impeding typo
21297         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21298         Introduced in commit v0.0-7636-gd202279.
21299         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21301 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21303         extern-inline: provide a -Wundef safe config.h
21304         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21305         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21306         to produce a -Wundef warning free config.h.
21308 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21310         hash-pjw: relax license to LGPLv2+
21311         * modules/hash-pjw (License): Relax, with consent of author.
21313 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21315         maint.mk: fix strict vs. lazy variable issues with RELEASE
21316         * top/maint.mk (_equal): New function.
21317         (member_check): Strip the result to avoid spurious spaces.
21318         (url_dir_list): Do not use ifeq, which is strict, as it will
21319         require RELEASE_TYPE to be defined.
21320         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21321         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21322         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21323         (announcement_Cc_beta,announcement_mail_headers_beta)
21324         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21325         (release): Do not depend on $(release-type), as it forces its
21326         evaluation.  Bounce to it.
21328 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21330         maint.mk: formatting changes
21331         * top/maint.mk: Indent bodies of if's.
21333 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21335         maint.mk: factor the validation of RELEASE_TYPE
21336         With help from Jim Meyering.
21337         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21338         * top/maint.mk (_empty, _sp): Move their definition earlier.
21339         (member-check, release-type): New.
21340         Use the latter instead of $(RELEASE_TYPE).
21341         Remove now useless local checks.
21343 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21345         maint.mk: provide "make upload" to ease uploading
21346         See
21347         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21348         Do not depend simply on the current $(VERSION), as there may have been
21349         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21350         as "make release-commit" already does.
21352         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21353         "make TYPE".
21355         * top/maint.mk (upload_command, upload, release): New.
21356         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21357         (VERSION): first word of $(RELEASE) is always right.
21358         (emit_upload_commands): Adjust.
21359         * top/README-release: Update.
21361 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21363         maint.mk: silent rules
21364         With help from Stefano Lattarini.
21365         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21366         (announcement): Use $(AM_V_at).
21368 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21370         localename: port gl_locale_name_thread_unsafe to FreeBSD
21371         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21372         and use the simpler FreeBSD implementation on Mac OS X as well.
21373         Original idea suggested by Ed Maste in
21374         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21376 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21378         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21379         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21380         * lib/mbuiter.c, lib/xsize.c: New files.
21381         * lib/binary-io.h (BINARY_IO_INLINE):
21382         * lib/eealloc.h (EEALLOC_INLINE):
21383         * lib/mbfile.h (MBFILE_INLINE):
21384         * lib/mbiter.h (MBITER_INLINE):
21385         * lib/mbuiter.h (MBUITER_INLINE):
21386         * lib/xsize.h (XSIZE_INLINE):
21387         New macros.
21388         Replace all uses of 'static inline' with them.
21389         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21390         * m4/eealloc.m4 (gl_EEALLOC):
21391         * m4/mbfile.m4 (gl_MBFILE):
21392         * m4/mbiter.m4 (gl_MBITER):
21393         * m4/xsize.m4 (gl_XSIZE):
21394         Do not require AC_C_INLINE.
21395         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21396         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21397         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21398         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21399         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21400         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21401         * modules/binary-io, modules/eealloc, modules/mbfile:
21402         * modules/mbiter, modules/mbuiter:
21403         (Depends-on): Add extern-inline.
21405         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21406         * lib/pipe-filter-aux.c: New file.
21407         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21408         Replace all uses of 'static inline' with it.
21409         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21410         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21411         (filter_retcode): No real need for inline here.
21412         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21413         (Files): Add lib/pipe-filter-aux.c.
21414         (Depends-on): Add extern-inline.
21415         (configure.ac): Do not require AC_C_INLINE.
21416         (lib_SOURCES): Add pipe-filter-aux.c.
21418         fdutimensat: omit unnecessary AC_C_INLINE
21419         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21421         fchmodat, fchownat, fstatat: use extern-inline
21422         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21423         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21424         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21425         New macros.
21426         * lib/openat.h:
21427         Replace all uses of 'static inline' with them.
21428         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21429         * modules/fchmodat, modules/fchownat, modules/fstatat:
21430         * modules/openat-h:
21431         (Depends-on):
21432         Add extern-inline.
21433         (configure.ac): Remove AC_C_INLINE.
21435         acl, mbchar, priv-set: use extern-inline
21436         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21437         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21438         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21439         New macros.
21440         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21441         Replace all uses of 'static inline' with it.
21442         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21443         * m4/acl.m4 (gl_FUNC_ACL):
21444         * m4/mbchar.m4 (gl_MBCHAR):
21445         * m4/priv-set.m4 (gl_PRIV_SET):
21446         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21447         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21448         Add extern-inline.
21450         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21451         * m4/sockets.m4 (gl_SOCKETS):
21452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21453         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21454         environments where it's already guaranteed to work, so we needn't
21455         check for it at 'configure'-time.
21457         tls-tests: omit unnecessary 'inline'
21458         * tests/test-tls.c (perhaps_yield): No longer inline.
21459         Simplicity and portability trump efficiency in test cases.
21461         utimens-tests: avoid unnecessary 'inline'
21462         * modules/fdutimensat-tests (configure.ac):
21463         * modules/futimens-tests (configure.ac):
21464         * modules/utimens-tests (configure.ac):
21465         * modules/utimensat-tests (configure.ac):
21466         Remove AC_C_INLINE.
21467         * tests/test-utimens-common.h (ctime_compare):
21468         No longer inline.  Simplicity and portability trump efficiency here.
21470         misc: don't limit commentary to inline functions
21471         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21472         * lib/xalloc-oversized.h, lib/xsize.h:
21473         Contrast macros to functions in general, not just to inline functions,
21474         when the commentary does not apply only to inline functions.
21476 2012-09-20  Jim Meyering  <meyering@redhat.com>
21478         non-recursive-gnulib-prefix-hack: new module
21479         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21480         the file that originated in Bison.
21481         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21482         largely copied from a snippet that resided in bison's configure.ac.
21483         * modules/non-recursive-gnulib-prefix-hack: New file.
21484         * MODULES.html.sh (Support for maintaining and releasing projects):
21485         Add it.
21487 2012-09-18  Jim Meyering  <meyering@redhat.com>
21489         maint.mk: generalize _gl_tight_scope for non-recursive make
21490         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21491         that *.h would describe additional .h files in the directory
21492         specified by $(_gl_TS_dir).  I.e., add this...
21493         (_gl_TS_other_headers): New variable.
21495         maint.mk: exempt trailing blanks found in "binary" files
21496         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21497         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21498         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21500 2012-09-17  Jim Meyering  <meyering@redhat.com>
21502         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21503         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21504         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21505         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21507 2012-09-17  Jim Meyering  <meyering@redhat.com>
21509         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21510         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21511         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21512         It is not in the same category as "exit (0)" or "exit (1)", and
21513         besides, I know of no symbolic name for that 77.  Reported by
21514         Richard W.M. Jones in
21515         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21517 2012-09-17  Jim Meyering  <meyering@redhat.com>
21519         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21520         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21521         all uses of #define, not just those that start in column 1.
21522         Richard W.M. Jones reported a false positive in
21523         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21525 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21527         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21528         * lib/localcharset.c (locale_charset) [DARWIN7]:
21529         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21530         as these two values are incompatible.  Problem reported by Max Horn.
21531         For more discussion, please see
21532         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21534         doc: document sticky-EOF issue
21535         * doc/posix-functions/fgetc.texi (fgetc):
21536         * doc/posix-functions/fgets.texi (fgets):
21537         * doc/posix-functions/fread.texi (fread):
21538         * doc/posix-functions/fscanf.texi (fscanf):
21539         * doc/posix-functions/getc.texi (getc):
21540         * doc/posix-functions/getchar.texi (getchar):
21541         * doc/posix-functions/scanf.texi (scanf):
21542         Mention that glibc and default Solaris do not conform to
21543         C99 and POSIX-2001 or later, with respect to how getchar
21544         etc. behave when feof reports nonzero.
21546 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21548         poll: fix poll(0, NULL, msec)
21549         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21550         but nfd is 0.  In that case poll should behave like select.
21552 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21553             Paolo Bonzini  <bonzini@gnu.org>
21555         poll: fix for systems that can't recv() on a non-socket
21556         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21557         is readable.  In this case POLLHUP will not be supported.
21558         * doc/posix-functions/poll.texi: Document this.
21560 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21562         poll/select: document portability problems not fixed by Gnulib.
21563         * doc/posix-functions/poll.texi: poll does not work well on
21564         pipes under Windows.  It has the same limitations as select on
21565         BeOS.
21566         * doc/posix-functions/select.texi: select does not work well
21567         on pipes under Windows.
21569 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21571         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21572         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21573         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21574         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21576 2012-09-06  Eric Blake  <eblake@redhat.com>
21578         net_if: give more details about the bug being fixed
21579         * doc/posix-headers/net_if.texi: Add clarification.
21581 2012-09-05  Eric Blake  <eblake@redhat.com>
21583         net_if: new module
21584         * modules/net_if: New module, borrowing ideas from netinet_in.
21585         * m4/net_if_h.m4: New file.
21586         * lib/net_if.in.h: Likewise.
21587         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21588         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21589         * tests/test-net_if.c: Make function checks conditional.
21590         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21592 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21594         readutmp: fix non-portable UT_PID use
21595         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21596         Use `UT_PID (u) > 0' as absolute condition.
21598 2012-09-04  Jim Meyering  <meyering@redhat.com>
21600         fts: reduce two or more trailing spaces to just one, usually
21601         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21602         or more slashes, trim all but the final one.  But if a name consists
21603         solely of two slashes, don't modify it.  If it consists solely of
21604         three or more slashes, strip all but one.
21606         This is part of the solution to a minor problem with rm:
21607         it would print a bogus ELOOP diagnostic when failing to remove
21608         the slash-decorated name of a symlink-to-directory:
21610             $ mkdir d && ln -s d s && env rm -r s/
21611             rm: cannot remove 's': Too many levels of symbolic links
21613         With the change below and a trivial don't-trim-trailing-slashes
21614         adjustment to remove.c, it does this:
21616             $ env rm -r s/
21617             rm: cannot remove 's/': Not a directory
21619         Improved by: Eric Blake
21621         fts: when there is no risk of overlap, use memcpy, not memmove
21622         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21624 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21626         stdbool: be more compatible with mixed C/C++ compiles
21627         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21628         Define to bool, true, false, respectively, as GCC's builtin
21629         stdbool.h does.  Problem reported by Michael Goffioul in
21630         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21632 2012-08-28  Jim Meyering  <meyering@redhat.com>
21634         revert last change: it was not needed
21635         * tests/test-vc-list-files-git.sh: There's already a test for
21636         a working git, just below.
21638 2012-08-28  Jim Meyering  <meyering@redhat.com>
21640         tests: test-vc-list-files-git.sh: skip if git is not available
21641         * tests/test-vc-list-files-git.sh: Skip this test when git is
21642         not available.
21644 2012-08-26  Bruno Haible  <bruno@clisp.org>
21646         gnulib-tool: Remove no-op option --no-changelog.
21647         * gnulib-tool (func_usage): Don't mention --no-changelog.
21648         (do_changelog): Remove variable.
21649         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21651 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21653         doc: remove fdl-1.2.texi
21654         It is no longer used or maintained, and its use of @acronym
21655         is problematic.  See the thread containing
21656         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21657         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21658         * doc/old-licenses/fdl-1.2.texi: Remove.
21660         execinfo: port to FreeBSD
21661         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21662         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21663         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21664         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21666 2012-08-23  Jim Meyering  <meyering@redhat.com>
21668         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21669         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21670         to placate gcc's -Wold-style-declaration.
21672 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21674         doc: do not use @acronym
21675         * doc/inet_ntoa.texi (inet_ntoa):
21676         * doc/parse-datetime.texi (Seconds since the Epoch)
21677         (Specifying time zone rules):
21678         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21679         Don't use @acronym.  Problem reported by John Darlington in
21680         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21682 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21684         stdnoreturn: port to newer GCCs
21685         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21686         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21687         Problem reported by Jim Meyering in
21688         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21689         Also, rename the 'test' function to a void a clash with the
21690         already-supplied 'main' function; this fixes a bug that incorrectly
21691         rejected GCC 4.7.1's <stdnoreturn.h>.
21692         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21693         Document GCC problem.
21695 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21697         pipe-filter: fix comment typo
21698         * lib/pipe-filter.h: Mention correct function.
21700 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21702         execinfo: new module
21703         This is for Emacs.  Currently, it provides a no-effect stub
21704         on all platforms where it does not already work.
21705         It already works on glibc-based systems, and on Solaris 11.
21706         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21707         New files.
21708         * doc/glibc-headers/execinfo.texi (execinfo.h):
21709         * MODULES.html.sh (Misc): Document it.
21711 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21713         extern-inline: support old GCC 'inline'
21714         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21715         if available.  This applies to GCC versions 2.7 through 4.2, or
21716         when newer GCC is using -fgnu89-inline.  The goal is to address
21717         some of the performance issues mentioned by Bruno Haible in
21718         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21720 2012-08-20  Eric Blake  <eblake@redhat.com>
21722         maint.mk: avoid redundant file name in message
21723         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21724         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21725         (sc_makefile_path_separator_check): Remove bogus $(ME).
21727 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21729         timer-time: fix link order when static linking on glibc
21730         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21731         _after_ -lrt so that it's significant.
21733 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21735         timespec: omit unnecessary AC_C_INLINE
21736         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21738         stat-time: omit unnecessary AC_C_INLINE
21739         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21740         Do not require AC_C_INLINE.
21742         ignore-value: omit unnecessary AC_C_INLINE
21743         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21745         sys_select: avoid 'static inline'
21746         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21748         mktime: avoid 'static inline'
21749         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21750         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21752 2012-08-19  Bruno Haible  <bruno@clisp.org>
21754         gnulib-tool: Improve coding style.
21755         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21756         func_emit_lib_Makefile_am.
21757         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21759 2012-08-19  Bruno Haible  <bruno@clisp.org>
21761         gnulib-tool: Fix indentation.
21762         * gnulib-tool (func_import): Fix indentation.
21764 2012-08-19  Bruno Haible  <bruno@clisp.org>
21766         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21767         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21768         on the list of removed files.
21770 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21772         test-parse-datetime: avoid glibc leap-second glitch
21773         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21774         with the 2012 rules.  Problem reported by Bruce Dubbs in
21775         <http://bugs.gnu.org/12206>.
21777 2012-08-14  Bruno Haible  <bruno@clisp.org>
21779         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21780         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21781         from argument.
21782         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21784 2012-08-14  Eric Blake  <eblake@redhat.com>
21786         ldexp: relax license
21787         * modules/ldexp (License): Trivial relax, since the module only
21788         provides a permissively licensed m4 file.
21790 2012-08-13  Bruno Haible  <bruno@clisp.org>
21792         gnulib-tool: Fix persistence of --witness-c-macro option.
21793         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21794         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21796 2012-08-11  Eric Blake  <eblake@redhat.com>
21798         count-leading-zeros: use a lookup table on non-gcc compilers
21799         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21800         alternate implementation, suggested by Jim Meyering.
21802 2012-08-10  Eric Blake  <eblake@redhat.com>
21804         count-leading-zeros: new module
21805         * modules/count-leading-zeros: New module.
21806         * m4/count-leading-zeros.m4: New file.
21807         * lib/count-leading-zeros.h: Likewise.
21808         * modules/count-leading-zeros-tests: New test.
21809         * tests/test-count-leading-zeros.c: New file.
21810         * MODULES.html.sh (Integer arithmetic functions): Document it.
21812 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21813             Jim Meyering  <meyering@redhat.com>
21815         maintainer-makefile: Fix syntax error with dash.
21816         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21817         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21819 2012-08-05  Jim Meyering  <meyering@redhat.com>
21821         extern-inline: also ignore -Wmissing-declarations
21822         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21823         required with gcc-4.8.0-to-be.
21825         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21826         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21827         for /error ?([^,]*)/.  This avoids false-positives for strings like
21828         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21830 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21832         gnumakefile: better interaction with Automake-NG
21833         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21834         Automake-NG always contain a definition of VPATH, even in non-VPATH
21835         builds (its value being simply '.' in that case).  So, in the
21836         'clean-GNUmakefile' rule, to determine whether running under a
21837         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21838         '$(VPATH)' expands to the empty string.
21840 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21842         base64: Use extern C scope in header file, for C++.
21843         * lib/base64.h: Add C++ namespace protection.
21845 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21847         stat-time, timespec, u64: support naive out-of-dir builds
21848         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21849         Use '#include "foo.h"', not '#include <foo.h>', when including
21850         one's own interface.  This works better when configuring with
21851         out-of-directory builds, since packages need not add an
21852         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21854 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21856         utimens: use extern-inline
21857         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21858         * lib/utimens.h: Add copyright notice, since this is now large enough
21859         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21860         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21861         * modules/utimens (Depends-on): Add extern-inline.
21863         u64: use extern-inline
21864         * lib/u64.c: New file.
21865         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21866         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21867         * modules/u64 (Files): Add lib/u64.c.
21868         (Depends-on): Add extern-inline.
21869         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21870         does that now.
21871         (lib_SOURCES): Add u64.c.
21873         timespec: use extern-inline
21874         * lib/timespec.c: New file.
21875         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21876         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21877         * modules/timespec (Files): Add lib/timespec.c.
21878         (Depends-on): Add extern-inline.
21879         (lib_SOURCES): Add timespec.c.
21881         stat-time: use extern-inline
21882         * lib/stat-time.c: New file.
21883         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21884         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21885         * modules/stat-time (Files): Add lib/stat-time.c.
21886         (Depends-on): Add extern-inline.
21887         (lib_SOURCES): Add stat-time.c.
21889         extern-inline: new module
21890         * modules/extern-inline, m4/extern-inline.m4: New files.
21891         This is for better support of 'extern inline' a la ISO C99,
21892         with a portable alternative on compilers that do not support
21893         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21894         of the Emacs executable, when compiled with debugging disabled,
21895         which is a typical way that Emacs is built while developing.
21897 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21899         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21900         * build-aux/do-release-commit-and-tag: Move variable definitions
21901         together.
21902         ($branch): Instead of defaulting to "master", default to the current
21903         branch (as gnu-web-doc-update does).
21904         (help): Display the current values of the option arguments.
21905         * top/maint.mk (release-commit): New.
21906         * top/README-release: Simplify the corresponding step.
21908 2012-07-30  Eric Blake  <eblake@redhat.com>
21910         passfd: fix comment on recvfd
21911         * lib/passfd.c (recvfd): Fix comment.
21912         Reported by Jann Horn <jannhorn@googlemail.com>.
21914 2012-07-30  Jim Meyering  <meyering@redhat.com>
21916         maint.mk: avoid a sub-shell
21917         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21919 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21921         maint.mk: use silent-rules support from Automake
21922         * top/maint.mk (news-check, vc-diff-check, announcement)
21923         (no-submodule-changes, alpha beta stable, release-prep)
21924         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21926 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21928         maint.mk: provide a web-manual-update target
21929         * top/maint.mk: here.
21930         * top/README-release: Use it to simplify the web manual update step.
21932 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21934         README-release: shorten the circuit to post a news
21935         * top/README-release: Point directly to the news submission form.
21937 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21939         gnu-web-doc-update: fix --help
21940         * build-aux/gnu-web-doc-update: The information "top level" was written
21941         twice.
21943 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21945         maint.mk: absolute VPATH issue
21946         * top/maint.mk (release-prep): Help Git find .git/.
21947         From Jim Meyering.
21949 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21951         gitlog-to-changelog: fix previous change
21952         * build-aux/gitlog-to-changelog: Fix condition.
21953         Add missing ";".
21955 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21957         gitlog-to-changelog: don't expect .git to be in $srcdir
21958         Reported by Bruno Haible.
21959         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21960         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21961         Use it.
21963 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21965         maint.mk: absolute VPATH build fix
21966         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21967         $(srcdir) is not a parent of $(builddir).
21969 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21971         clean-temp: Fix memory leak.
21972         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21973         'files' members of tmpdir.
21975 2012-07-27  Jim Meyering  <meyering@redhat.com>
21977         maint.mk: new rule: refresh-gnulib-patches
21978         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21979         Use this rule to refresh them.
21980         * top/maint.mk (refresh-gnulib-patches): New rule.
21982 2012-07-24  Bruno Haible  <bruno@clisp.org>
21984         gnulib-tool: Fix handling of inctests variable.
21985         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21986         Reported by Nick Bowler <nbowler@elliptictech.com>.
21988 2012-07-22  Bruno Haible  <bruno@clisp.org>
21990         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21991         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21992         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21993         Remove exemption for getpass.h.
21994         Suggested by Eric Blake.
21996 2012-07-20  Eric Blake  <eblake@redhat.com>
21998         verify: document conflict with -Wnested-externs
21999         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
22001         maint.mk: forbid exit(-1)
22002         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
22004 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
22006         fsusage: port back to Solaris
22007         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
22008         error (fsd not declared) on Solaris 10.  Reported privately by
22009         Andrew Borodin.
22011 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
22013         gnu-web-doc-update: fix error messages
22014         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
22016         gnu-web-doc-update: check the requirements.
22017         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
22018         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
22019         * build-aux/bootstrap (find_tool): Comment change.
22021 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
22023         maint.mk: minor simplication.
22024         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22025         for default values.
22027 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
22029         gitlog-to-changelog: VPATH build issues
22030         If builddir is not a subdirectory of srcdir, running git from it will
22031         fail.
22032         * build-aux/gitlog-to-changelog (--srcdir): New option.
22034 2012-07-15  Bruno Haible  <bruno@clisp.org>
22036         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
22037         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
22038         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
22039         Remove exemption for fpending.h.
22040         Suggested by Eric Blake.
22042 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22044         pthread_sigmask: fix bug on FreeBSD 9
22045         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
22046         Include string.h.
22047         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
22048         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
22049         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
22050         but pthread_sigmask (1729, NULL, NULL) returns zero.
22051         See <http://bugs.gnu.org/11884>.
22052         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
22053         by inspecting whether the main call changed the old mask.
22055 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
22057         README-release: make it more legible
22058         * top/README-release: Improve typography slightly.
22060 2012-07-15  Jim Meyering  <meyering@redhat.com>
22062         maint: require that each sc_... command start with "@"
22063         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
22064         "make sc_maint" helps us avoid this nit.
22066 2012-07-15  Jim Meyering  <meyering@redhat.com>
22068         maint.mk: add leading "@" to quiet new "make syntax-check" rule
22069         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
22071 2012-07-13  Eric Blake  <eblake@redhat.com>
22073         maint.mk: new syntax check for HAVE_DECL checks
22074         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
22075         * cfg.mk
22076         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22077         Exempt some false positives.
22078         Based on a report by Karel Zak.
22080         argp: make HAVE_DECL usage consistent
22081         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
22082         macros, not whether they are defined.
22083         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
22084         convention with other declaration checks.
22085         Reported by Karel Zak, with suggestions from Paul Eggert.
22087         stat-time: relax license to LGPLv2+
22088         * modules/stat-time (License): Relax, with consent of all authors.
22090         strndup: fix m4 usage error
22091         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
22092         defined, to either 0 or 1.
22093         Reported by Karel Zak.
22095 2012-07-11  Jim Meyering  <meyering@redhat.com>
22097         maint: enable the sc_avoid_if_before_free syntax-check rule
22098         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
22099         (if_before_free_offenders_): Define.
22100         (if_before_free_basename_re_): Define.
22101         Exempt current files with useless if-before-free.
22103 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22105         gettext: do not assume '#define ... defined ...' behavior
22106         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
22107         Do not use '#define FOO ... defined BAR ...', as the C standard says
22108         it's not portable to expect that this works after macro expansion.
22109         Problem reported for gzip by Steven M. Schweda in
22110         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
22112 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22114         getloadavg: clean out old Emacs and Autoconf cruft
22115         See Glenn Morris in <http://bugs.gnu.org/11905>.
22116         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
22117         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
22118         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
22119         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
22121 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
22123         bootstrap: let warn be like tests/init.sh's warn_
22124         Reported by Jim Meyering.
22125         * build-aux/bootstrap (warn): Remove, replaced by...
22126         (warnf_, warn_): these.
22127         Adjust callers.
22128         Shorten messages that no longer fit in 80 columns.
22130 2012-07-09  Bruno Haible  <bruno@clisp.org>
22132         getopt: Simplify after Emacs changed.
22133         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22134         (gl_GETOPT_IFELSE): Remove macro.
22136 2012-07-09  Jim Meyering  <meyering@redhat.com>
22138         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22139         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22141         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22142         Bugs in both of those conspired to make the
22143         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22144         _sc_search_regexp's handling of non-empty $in_files would filter
22145         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22146         choice of in_files value meant there would be no match in most
22147         projects, due to the presence of two or more Makefile.in files.
22148         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22149         Fix a bug in how a non-empty $$in_files was processed:
22150         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22151         in spite of the name, it's a regexp, not a list of file names.
22153 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22155         getloadavg, getopt: fix commentary re configure.in
22156         Autoconf is deprecating the name 'configure.in', so change it to
22157         to the new name 'configure.ac' in a couple of places.
22158         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22159         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22160         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22161         Emacs has renamed it to configure.ac, and it no longer refers
22162         to these macros anyway.
22164         timespec: mark functions with const attributes
22165         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22166         Mark with _GL_ATTRIBUTE_CONST.
22168 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22170         canonicalize[-lgpl]: handle "guessing" values when cross-building
22171         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22172         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22173         matches "*yes" instead of just "yes".  Regression introduced in commit
22174         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22176 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22177             Bruno Haible  <bruno@clisp.org>
22179         canonicalize: make the right guess when cross-compiling to GNU
22180         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22181         determine whether cross-compiling to glibc systems, so as to
22182         include GNU/Hurd.
22184 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22186         timespec-sub: avoid duplicate include
22187         * lib/timespec-sub.c: Do not include <config.h> twice.
22188         Reported by Juanma Barranquero.
22190 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22192         bootstrap: use a more consistent error reporting scheme
22193         * build-aux/bootstrap (warn, die): New.
22194         Use them.
22196 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22198         sys_time: allow too-wide tv_sec
22199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22200         timeval even if tv_sec is wider than time_t.  This allows
22201         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22202         as without this patch gnulib replaces struct timeval
22203         and OpenBSD futimes therefore has a type mismatch.
22204         * doc/posix-headers/sys_time.texi: Mention this.
22206         pthread: check for both pthread_create and pthread_join
22207         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22208         alter the check so that it tests for both pthread_create and
22209         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22210         Suggested by Bruno Haible and Richard Yao in
22211         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22213         parse-datetime: doc tuneup
22214         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22215         spacing issues.
22217 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22219         do-release-commit-and-tag: fix the previous commit
22220         * build-aux/do-release-commit-and-tag: Actually the test was right,
22221         but the comment and the error message were misleading.
22222         Fix comment, and improve error message.
22223         Perform check first, so that NEWS is not modified uselessly.
22225         do-release-commit-and-tag: fix typo
22226         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22227         _not_ start with a stub.
22229 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22231         pthread: check for pthread_create, not pthread_join
22232         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22233         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22234         pthread_join in libc.  I hope this removes the need for all the
22235         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22236         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22238 2012-07-04  Jim Meyering  <meyering@redhat.com>
22240         parse-datetime: fix failure to diagnose invalid input
22241         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22242         rather than diagnosing the invalid input.  Now it reports this:
22243         date: invalid date '\260'
22244         * lib/parse-datetime.y (to_uchar): Define.
22245         (yylex): Don't sign-extend "other" bytes.
22246         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22247         Thanks to Bruno Haible for the patch to this file.
22248         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22249         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22251 2012-07-03  Jim Meyering  <meyering@redhat.com>
22253         bootstrap: do not require now-removed build-aux/missing
22254         Now that build-aux/missing is, er, missing, bootstrap would
22255         silently fail.
22256         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22257         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22258         no longer part of gnulib.
22259         Diagnose the failure.
22261 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22263         alloca: add support for HP NonStop TNS/E native
22264         * lib/alloca.in.h (alloca): Support the new host.
22265         From a suggestion by Joachim Schmitz in
22266         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22268 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22270         fsusage: remove code not needed on non GNU/Linux systems.
22272         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22273         Don't include headers no longer needed in this case.
22274         * lib/fsusage.c [STAT_STATVFS &&
22275         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22276         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22278 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22280         fsusage: include files needed for glibc 2.6 fallback
22281         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22282         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22283         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22284         Problem reported by Ludovic Courtès in
22285         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22287         fsusage: avoid needless check on GNU/Linux
22288         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22289         on GNU/Linux systems, since it can't possibly work.
22291 2012-07-01  Bruno Haible  <bruno@clisp.org>
22293         log: Fix an autoconf >= 2.64 warning.
22294         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22295         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22297 2012-06-28  Bruno Haible  <bruno@clisp.org>
22299         log10f: Fix possible configuration problem.
22300         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22301         $LOGF_LIBM.
22302         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22304 2012-06-28  Bruno Haible  <bruno@clisp.org>
22306         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22307         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22308         not gl_cv_func_unlink_works.
22309         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22311 2012-06-27  Eric Blake  <eblake@redhat.com>
22313         config: drop scripts that automake says are not independent
22314         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22315         * build-aux/elisp-comp: Delete.
22316         * build-aux/missing: Likewise.
22317         * build-aux/ylwrap: Likewise.
22318         * modules/elisp-comp: Likewise.
22319         * MODULES.html.sh: Drop mention of elisp-comp.
22320         * NEWS: Mention this.
22322 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22324         root-uid: new module
22325         This is for portability to Tandem's NonStop Kernel.
22326         * lib/root-uid.h, modules/root-uid: New files.
22327         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22328         * lib/write-any-file.c, tests/test-sethostname2.c:
22329         Include "root-uid.h".
22330         * lib/euidaccess.c (euidaccess):
22331         * lib/pt_chown.c (main):
22332         * lib/unlinkdir.c (cannot_unlink_dir):
22333         * lib/write-any-file.c (can_write_any_file):
22334         * m4/mknod.m4 (gl_FUNC_MKNOD):
22335         * tests/test-sethostname2.c (geteuid, main):
22336         Don't assume ROOT_UID == 0.
22337         * modules/euidaccess (Depends-on):
22338         * modules/pt_chown (Depends-on):
22339         * modules/sethostname-tests (Depends-on):
22340         * modules/unlinkdir (Depends-on):
22341         * modules/write-any-file (Depends-on):
22342         Add root-uid.
22344         regex: use locale-independent comparison for codeset name
22345         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22346         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22347         for codeset name.
22348         * lib/regex_internal.h: Do not include <strings.h>, since we
22349         no longer use strcasecmp.
22350         * modules/regex (Depends-on): Remove strcase.
22352 2012-06-23  Bruno Haible  <bruno@clisp.org>
22354         getopt-posix: No longer guarantee that option processing is resettable.
22355         * doc/posix-functions/getopt.texi: Drop description of problem with
22356         internal state. Fix info about mingw and msvc9.
22357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22358         option processing by getopt(). Run three test programs instead of one.
22359         Simplify cross-compilation guess.
22360         * NEWS: Mention the change.
22361         Reported by Rich Felker <dalias@aerifal.cx>.
22363 2012-06-26  Bruno Haible  <bruno@clisp.org>
22365         argp, regex: Ensure strcasecmp gets declared.
22366         * lib/argp-help.c: Include <strings.h>.
22367         * lib/regex_internal.h: Likewise.
22368         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22370 2012-06-24  Bruno Haible  <bruno@clisp.org>
22372         ptsname_r: Make it consistent with ptsname on AIX.
22373         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22374         implementation as for OSF/1.
22375         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22376         a pty master.
22378         ptsname_r: Make it consistent with ptsname on OSF/1.
22379         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22380         OSF/1.
22382 2012-06-24  Bruno Haible  <bruno@clisp.org>
22384         ttyname_r: Fix result on OSF/1, Solaris.
22385         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22387 2012-06-24  Bruno Haible  <bruno@clisp.org>
22389         ptsname_r: Add support for Solaris.
22390         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22391         Solaris.
22393         ptsname_r: Fix test failure on native Windows.
22394         * modules/ptsname_r (Depends-on): Add isatty.
22396         ptsname_r: Fix test failures on IRIX, Solaris.
22397         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22398         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22399         accordingly.
22400         * lib/ptsname_r.c: Include <fcntl.h>.
22401         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22402         set errno if fd is invalid.
22403         * tests/test-isatty.c (main): Update comments.
22405 2012-06-24  Bruno Haible  <bruno@clisp.org>
22407         ptsname test: Extend test.
22408         * tests/test-ptsname.c: Include <errno.h>.
22409         (main): Test behaviour with invalid file descriptor.
22411 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22413         time: fix obsolete comment
22414         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22415         reference to HAVE_STRUCT_TIMESPEC in comment.
22417 2012-06-23  Bruno Haible  <bruno@clisp.org>
22419         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22421         does not handle abbreviated long options with equivalent
22422         disambiguations, set gl_replace_getopt to yes.
22423         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22425 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22427         time_r: fix typo that always overrode localtime_r decl
22428         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22429         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22430         not in a standard include.
22432 2012-06-22  Bruno Haible  <bruno@clisp.org>
22434         Write "Mac OS X" instead of "MacOS X".
22435         * README: Write "Mac OS X" instead of "MacOS X".
22436         * build-aux/bootstrap: Likewise.
22437         * build-aux/install-reloc: Likewise.
22438         * lib/acl-internal.h: Likewise.
22439         * lib/acl_entries.c: Likewise.
22440         * lib/argp-ba.c: Likewise.
22441         * lib/argp-pv.c: Likewise.
22442         * lib/config.charset: Likewise.
22443         * lib/copy-acl.c: Likewise.
22444         * lib/csharpexec.c: Likewise.
22445         * lib/euidaccess.c: Likewise.
22446         * lib/fbufmode.c: Likewise.
22447         * lib/fflush.c: Likewise.
22448         * lib/file-has-acl.c: Likewise.
22449         * lib/filemode.h: Likewise.
22450         * lib/fpurge.c: Likewise.
22451         * lib/freadable.c: Likewise.
22452         * lib/freadahead.c: Likewise.
22453         * lib/freading.c: Likewise.
22454         * lib/freadptr.c: Likewise.
22455         * lib/freadseek.c: Likewise.
22456         * lib/fseeko.c: Likewise.
22457         * lib/fseterr.c: Likewise.
22458         * lib/fsusage.c: Likewise.
22459         * lib/fwritable.c: Likewise.
22460         * lib/fwriting.c: Likewise.
22461         * lib/get-rusage-as.c: Likewise.
22462         * lib/get-rusage-data.c: Likewise.
22463         * lib/getdomainname.c: Likewise.
22464         * lib/idpriv-drop.c: Likewise.
22465         * lib/idpriv-droptemp.c: Likewise.
22466         * lib/localcharset.c: Likewise.
22467         * lib/locale.in.h: Likewise.
22468         * lib/localename.c: Likewise.
22469         * lib/mbsrtowcs-state.c: Likewise.
22470         * lib/nproc.c: Likewise.
22471         * lib/passfd.c: Likewise.
22472         * lib/posix_openpt.c: Likewise.
22473         * lib/printf-parse.c: Likewise.
22474         * lib/progreloc.c: Likewise.
22475         * lib/safe-read.h: Likewise.
22476         * lib/safe-write.h: Likewise.
22477         * lib/sched.in.h: Likewise.
22478         * lib/set-mode-acl.c: Likewise.
22479         * lib/signal.in.h: Likewise.
22480         * lib/stdint.in.h: Likewise.
22481         * lib/stdio-impl.h: Likewise.
22482         * lib/stdlib.in.h: Likewise.
22483         * lib/strtod.c: Likewise.
22484         * lib/sys_select.in.h: Likewise.
22485         * lib/tcgetsid.c: Likewise.
22486         * lib/unistd.in.h: Likewise.
22487         * lib/unlockpt.c: Likewise.
22488         * lib/vasnprintf.c: Likewise.
22489         * lib/vma-iter.c: Likewise.
22490         * lib/wcsrtombs-state.c: Likewise.
22491         * m4/acl.m4: Likewise.
22492         * m4/acosl.m4: Likewise.
22493         * m4/asinl.m4: Likewise.
22494         * m4/atanl.m4: Likewise.
22495         * m4/c-stack.m4: Likewise.
22496         * m4/cosl.m4: Likewise.
22497         * m4/expl.m4: Likewise.
22498         * m4/extensions.m4: Likewise.
22499         * m4/fdatasync.m4: Likewise.
22500         * m4/fmal.m4: Likewise.
22501         * m4/frexp.m4: Likewise.
22502         * m4/frexpf.m4: Likewise.
22503         * m4/frexpl.m4: Likewise.
22504         * m4/fsusage.m4: Likewise.
22505         * m4/getdomainname.m4: Likewise.
22506         * m4/getloadavg.m4: Likewise.
22507         * m4/getopt.m4: Likewise.
22508         * m4/gettext.m4: Likewise.
22509         * m4/gnulib-common.m4: Likewise.
22510         * m4/intdiv0.m4: Likewise.
22511         * m4/intlmacosx.m4: Likewise.
22512         * m4/largefile.m4: Likewise.
22513         * m4/ldexpl.m4: Likewise.
22514         * m4/link-follow.m4: Likewise.
22515         * m4/locale-ar.m4: Likewise.
22516         * m4/locale-fr.m4: Likewise.
22517         * m4/locale-ja.m4: Likewise.
22518         * m4/locale-tr.m4: Likewise.
22519         * m4/locale-zh.m4: Likewise.
22520         * m4/locale_h.m4: Likewise.
22521         * m4/lock.m4: Likewise.
22522         * m4/logl.m4: Likewise.
22523         * m4/mathfunc.m4: Likewise.
22524         * m4/minus-zero.m4: Likewise.
22525         * m4/mktime.m4: Likewise.
22526         * m4/mmap-anon.m4: Likewise.
22527         * m4/multiarch.m4: Likewise.
22528         * m4/nanosleep.m4: Likewise.
22529         * m4/nocrash.m4: Likewise.
22530         * m4/poll.m4: Likewise.
22531         * m4/printf-frexpl.m4: Likewise.
22532         * m4/printf.m4: Likewise.
22533         * m4/signbit.m4: Likewise.
22534         * m4/sinl.m4: Likewise.
22535         * m4/sqrtl.m4: Likewise.
22536         * m4/strerror_r.m4: Likewise.
22537         * m4/tanl.m4: Likewise.
22538         * m4/threadlib.m4: Likewise.
22539         * m4/ttyname_r.m4: Likewise.
22540         * m4/unlink.m4: Likewise.
22541         * m4/visibility.m4: Likewise.
22542         * m4/wcwidth.m4: Likewise.
22543         * tests/minus-zero.h: Likewise.
22544         * tests/test-alloca-opt.c: Likewise.
22545         * tests/test-copy-acl.sh: Likewise.
22546         * tests/test-copy-file.sh: Likewise.
22547         * tests/test-fdatasync.c: Likewise.
22548         * tests/test-file-has-acl.sh: Likewise.
22549         * tests/test-flock.c: Likewise.
22550         * tests/test-fsync.c: Likewise.
22551         * tests/test-localename.c: Likewise.
22552         * tests/test-malloca.c: Likewise.
22553         * tests/test-nonblocking-pipe.h: Likewise.
22554         * tests/test-nonblocking-socket.h: Likewise.
22555         * tests/test-openpty.c: Likewise.
22556         * tests/test-posix_openpt.c: Likewise.
22557         * tests/test-ptsname.c: Likewise.
22558         * tests/test-ptsname_r.c: Likewise.
22559         * tests/test-sameacls.c: Likewise.
22560         * tests/test-select.h: Likewise.
22561         * tests/test-set-mode-acl.sh: Likewise.
22562         * tests/test-snprintf-posix.h: Likewise.
22563         * tests/test-sprintf-posix.h: Likewise.
22564         * tests/test-strtod.c: Likewise.
22565         * tests/test-time.c: Likewise.
22566         * tests/test-vasnprintf-posix.c: Likewise.
22567         * tests/test-vasprintf-posix.c: Likewise.
22568         * doc/acl-resources.txt: Likewise.
22569         * doc/**/*.texi: Likewise.
22570         Reported by Max Horn <max@quendi.de>.
22572 2012-06-22  Bruno Haible  <bruno@clisp.org>
22574         grantpt: Relax requirement regarding invalid file descriptors.
22575         * lib/grantpt.c: Don't include <fcntl.h>.
22576         (grantpt): Don't verify the validity of the file descriptor.
22577         * modules/grantpt (Depends-on): Remove fcntl-h.
22578         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22579         file descriptors.
22580         * doc/posix-functions/grantpt.texi: Document more platforms on which
22581         grantpt succeeds for invalid file descriptors.
22582         Reported by Rich Felker <dalias@aerifal.cx>.
22584 2012-06-22  Bruno Haible  <bruno@clisp.org>
22586         fbufmode test: Don't test unportable behaviour.
22587         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22588         (main): Invoke it three times.
22589         Reported by Szabolcs Nagy <nsz@port70.net>
22590         and Rich Felker <dalias@aerifal.cx>.
22592 2012-06-21  Bruno Haible  <bruno@clisp.org>
22594         gnulib-tool: Refactor inctests variable.
22595         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22596         (func_modules_transitive_closure,
22597         func_modules_transitive_closure_separately,
22598         func_import, func_create_testdir): Update.
22600         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22601         * gnulib-tool: Accept option --without-tests.
22602         (func_usage): Document --without-tests option. Rearrange.
22603         (inctests): Normalize according to the mode.
22604         * NEWS: Mention the change.
22605         Suggested by Simon Josefsson.
22607 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22609         parse-duration test: Avoid spurious output.
22610         * tests/test-parse-duration.sh: Reindent with leading tabs.
22612 2012-06-21  Jim Meyering  <meyering@redhat.com>
22614         maint: disable the strncpy prohibition
22615         * cfg.mk: Do not prohibit strncpy here.
22617 2012-06-21  Bruno Haible  <bruno@clisp.org>
22619         nonblocking: Avoid compilation error on mingw64.
22620         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22621         fscanf.
22622         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22623         * modules/vfscanf (configure.ac): Likewise.
22624         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22625         definition only if stdio.h has prepared it.
22626         Reported by Daniel P. Berrange <berrange@redhat.com>.
22628 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22630         gnulib-tool: Use readlink if it is available.
22631         * gnulib-tool (func_readlink): Choose function more appropriately.
22633 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22635         posixtm-tests: port to buggy compiler
22636         Problem reported by Simon Josefsson in
22637         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22638         * modules/posixtm-tests (Depends-on): Add stdint.
22639         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22640         Now of type int_least64_t, not int64_t, both because that's
22641         what INT64_C returns and because int_least64_t works even
22642         on 72-bit hosts.
22643         (T): Use INT64_C on constants outside the traditional int range,
22644         to work around compiler bug noted by Simon.
22646         mktime: fix integer overflow in 'configure'-time test
22647         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22648         after integer overflow.  Problem reported by Rich Felker in
22649         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22650         Also, don't look for further instances of a bug if we've already
22651         found one instance; this helps 'configure' run faster.
22653 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22655         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22656         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22657         GetVersionEx correctly.
22658         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22660 2012-06-20  Bruno Haible  <bruno@clisp.org>
22662         fdopen: Allow implementations that don't reject invalid fd arguments.
22663         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22664         succeeds.
22665         Reported by Rich Felker <dalias@aerifal.cx>.
22667 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22669         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22670         bring in LIBINTL.
22672 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22674         init.sh: do not rely on autoupated PWD
22675         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22676         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22677         Although Nelson's bug was not necessarily fixed by this patch,
22678         it seems wise to make the change for safety.
22679         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22680         automagically after 'cd'; this is not reliable on older shells.
22681         (setup_): Fail if we cannot cd to temporary directory.
22683 2012-06-19  Bruno Haible  <bruno@clisp.org>
22685         stat, fstat: Avoid warnings on mingw64.
22686         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22687         redefining.
22688         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22689         Reported by Daniel P. Berrange <berrange@redhat.com>.
22691 2012-06-19  Bruno Haible  <bruno@clisp.org>
22693         stdioext: Add support for musl libc.
22695         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22696         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22698         * m4/fseterr.m4: New file.
22699         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22700         function exists.
22701         * modules/fseterr (Files): Add m4/fseterr.m4.
22702         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22703         __fseterr does not exist.
22704         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22706         * lib/freadable.h: Update comment.
22708         * lib/fwritable.h: Update comment.
22710         * lib/freading.h: Update comment.
22712         * lib/fwriting.h: Update comment.
22714         * m4/freadahead.m4: New file.
22715         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22716         that function exists.
22717         * modules/freadahead (Files): Add m4/freadahead.m4.
22718         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22719         __freadahead does not exist.
22720         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22722         * m4/freadptr.m4: New file.
22723         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22724         function exists.
22725         * modules/freadptr (Files): Add m4/freadptr.m4.
22726         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22727         __freadptr does not exist.
22728         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22730         * m4/freadseek.m4: New file.
22731         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22732         exists.
22733         * modules/freadseek (Files): Add m4/freadseek.m4.
22734         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22736         * lib/fpurge.c (fpurge): Update comment.
22738         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22740 2012-06-19  Bruno Haible  <bruno@clisp.org>
22742         *printf-posix: Put more info into config.log.
22743         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22744         exit code into config.log.
22746 2012-06-19  Bruno Haible  <bruno@clisp.org>
22748         getopt-gnu: Fix exit code overflow in autoconf test.
22749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22750         to keep them below < 128.
22752 2012-06-17  Jim Meyering  <meyering@redhat.com>
22754         maint.mk: fix typo in code to derive GPG key at release time
22755         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22757 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22759         regex: avoid warning when pointers are not long
22760         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22761         and uintptr_t, not long, for portability to hosts where pointers and
22762         long have different sizes.  Issue noted by Daniel P. Berrange in
22763         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22764         and fix suggested by Bruno Haible in
22765         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22767 2012-06-17  Bruno Haible  <bruno@clisp.org>
22769         dummy: Relicense into the public domain.
22770         * modules/dummy (License): Set to "public domain".
22771         Suggested by Reuben Thomas.
22773 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22775         announce-gen: VPATH issues
22776         * build-aux/announce-gen (--srcdir): New option, used to trim the
22777         $srcdir part of the path from $builddir to NEWS.
22778         * top/maint.mk (announcement): Adjust.
22780 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22782         gnu-web-doc-update: VPATH builds
22783         * build-aux/gnu-web-doc-update (--builddir): New option.
22784         Revamp the handling of options.
22785         Prefer $(...) to `...`.
22786         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22787         the template, and it is GNU mktemp specific.
22788         Prefer set -e to long series of &&.
22789         Restore the initial git branch, not "master".
22790         Properly initialize submodules (don't rely only on bootstrap).
22791         Do not reconfigure blindly, use config.status.
22792         * top/README-release: Update instructions for gnu-web-doc-update.
22794 2012-06-11  Jim Meyering  <meyering@redhat.com>
22796         maint.mk: revert most of the previous change re "all these"
22797         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22798         For rationale, see the discussion at
22799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22801 2012-06-10  Karl Berry  <karl@gnu.org>
22803         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22805         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22807 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22809         parse-duration: Relicense under LGPLv2+.
22810         * modules/parse-duration (License): Change to LGPLv2+.
22812 2012-06-10  Jim Meyering  <meyering@redhat.com>
22814         maint.mk: prohibit common grammar error: "all these"
22815         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22816         the list of prohibited word sequences.  It should be "all of these".
22817         * lib/tempname.c (__gen_tempname): Fix one of them.
22819 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22821         do-release-commit-and-tag: support VPATH builds
22822         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22823         (noteworthy): Defined earlier to factor its value.
22824         (noteworthy_stub): New.
22825         Use it to factor.
22826         (help_version): Split into...
22827         (help, version): these.
22828         Adjust the option processing part.
22829         Support "--option=value" in addition to "--option value".
22830         (builddir): New.
22831         (--builddir): New option.
22832         * top/README-release: Document this.
22833         Reword slightly so that the reader cannot understand that he
22834         has to do these steps before calling do-release-commit-and-tag.
22836 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22838         readme-release: also require announce-gen and maintainer-makefile
22839         * modules/readme-release (Depends-on): here.
22840         * modules/announce-gen, modules/do-release-commit-and-tag,
22841         modules/gnu-web-doc-update, modules/maintainer-makefile
22842         (Description): Point to readme-release.
22844 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22846         maint.mk: fix VPATH issues.
22847         * top/maint.mk (news-check): GNU Make understand $< very well.
22848         (release-prep): NEWS is in $(srcdir).
22850 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22852         readme-release: require the promoted modules.
22853         * modules/readme-release (Depends-on): Add
22854         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22855         in this text.
22857 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22858             Bruno Haible  <bruno@clisp.org>
22860         error, strerror-override: Support mingw64 from Fedora 17.
22861         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22862         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22863         EINPROGRESS.
22864         * lib/strerror-override.h (strerror_override): Test it.
22865         * lib/strerror-override.c (strerror_override): Likewise.
22866         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22868 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22869             Bruno Haible  <bruno@clisp.org>
22871         error, strerror-override: Support mingw64 from Fedora 17.
22872         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22873         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22874         * lib/strerror-override.h (strerror_override): Test it.
22875         * lib/strerror-override.c (strerror_override): Likewise.
22877 2012-06-03  Bruno Haible  <bruno@clisp.org>
22879         error, strerror-override: Support new errno values from POSIX:2008.
22880         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22881         ENOTRECOVERABLE.
22882         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22883         platforms.
22884         * lib/strerror-override.c (strerror_override): Conditionalize the
22885         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22886         * lib/strerror-override.h (strerror_override): Declare also if
22887         GNULIB_defined_EOWNERDEAD is defined.
22888         * tests/test-errno.c (e130, e131): New variables.
22889         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22890         ENOTRECOVERABLE.
22891         Reported by Paolo Bonzini.
22893 2012-05-31  Jim Meyering  <meyering@redhat.com>
22895         savewd: add missing dependency on sys_wait module
22896         * modules/savewd (Depends-on): Add sys_wait, needed at least
22897         for MSVC.  Report and suggested change by Michael Goffioul.
22899 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22901         system-quote-tests: port to CentOS 5
22902         Problem reported by Tom G. Christensen in
22903         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22904         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22906 2012-05-29  Jim Meyering  <meyering@redhat.com>
22908         maint: fix typos in comments and ChangeLog
22909         Culprits identified and fixed mostly automatically using these commands:
22910         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22911         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22912         using http://github.com/lyda/misspell-check
22913         * ChangeLog: Fix typos.
22914         * doc/solaris-versions: Likewise.
22915         * lib/regexec.c (re_search_stub): Likewise.
22916         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22918 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22920         manywarnings: remove duplicate -Wmultichar entry
22921         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22922         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22923         so keep the entry marked as documented.
22925 2012-05-27  Karl Berry  <karl@gnu.org>
22927         * config/srclist.txt (mktime.c): remove last libc sync,
22928         perhaps just temporarily.
22930 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22932         regex: don't assume uint64_t or uint32_t
22933         * lib/regcomp.c (init_word_char): Don't assume that the types
22934         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22935         them, and on some 32-bit compilers there is no uint64_t.
22936         Problem reported by Gianluigi Tiesi in
22937         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22939 2012-05-25  Jim Meyering  <meyering@redhat.com>
22941         maint.mk: add strncpy-prohibiting syntax-check rule
22942         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22944 2012-05-24  Jim Meyering  <meyering@redhat.com>
22946         maint.mk: compute $(gpg_key_ID) more portably
22947         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22948         That use of sed is not portable to some fringe systems.
22949         Reported by Paul Eggert in
22950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22952 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22954         mktime: sync from glibc
22955         * config/srclist.txt: Uncomment mktime.c.
22956         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22957         First, indent with tabs, since glibc uses tabs and doesn't want to
22958         change and we'd rather be identical to glibc.  Also, two small
22959         coding changes:
22960         (isdst_differ): Use &&, not &, as && is the usual style.
22961         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22962         for clarity.
22964 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22966         announce-gen: du -h is more portable than du --human
22967         * build-aux/announce-gen (sizes): Invoke du with -h instead
22968         of --human.  Accept leading white space in its output.
22970 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22972         announce-gen: Improve diagnostics.
22973         * build-aux/announce-gen: When parsing command line options,
22974         prefer "announce-gen: option --release-type requires an argument"
22975         to "Option release-type requires an argument".
22977 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22979         maint.mk: gpg_key_ID: use sed more portably
22980         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22981         the closing brace.
22982         (refresh-po): Fuse two sed invocations into one.
22984 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22986         gitlog-to-changelog: support the log message format used in Bison.
22987         * build-aux/gitlog-to-changelog: Support --strip-tab and
22988         --strip-cherry-picked.
22990 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22992         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22993         the rest of the current time slice to another thread in the current
22994         process. So if the thread that feeds the file decscriptor we're
22995         polling is not in the current process, we get busy-waiting.
22996         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22997         Patch from Theodore Leblond.
22998         * lib/select.c: Split polling out of the loop that sets the output
22999         fd_sets.  Check for zero result and loop if the wait timeout is
23000         infinite.
23002 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23004         select: Fix build error on IRIX 6.5.
23005         * lib/select.c: Include stddef.h for NULL.
23007 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23009         gc: fix libgcrypt detection on older machines.
23010         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
23011         copyright years because the file has been distributed every year
23012         since it was created.
23014 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23016         crypto: fix bug in large buffer handling
23017         Problem reported by Serge Belyshev for glibc in
23018         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
23019         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
23020         * lib/md4.c (md4_process_block):
23021         * lib/md5.c (md5_process_block):
23022         * lib/sha1.c (sha1_process_block):
23023         * lib/sha256.c (sha256_process_block):
23024         Don't assume the buffer length is less than 2**32.
23025         * lib/sha512.c (sha512_process_block): Likewise.
23026         Here, the bug is present only in the rare case where the host does
23027         not support uint64_t or where size_t is wider than 64 bits.
23028         Use u64size to work around the problems.
23029         * lib/u64.h (u64size): New macro.
23031 2012-05-15  Pádraig Brady  <P@draigBrady.com>
23033         fsusage: fix block size returned on older Linux 2.6
23035         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
23036         which is available since Linux 2.6.
23037         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
23038         when the member is available so it can be used as a fallback.
23039         * doc/posix-functions/statvfs.texi: Mention the hang issue
23040         on Linux < 2.6.36.
23042 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23044         bootstrap: suppress stderr chatter
23045         * build-aux/bootstrap (insert_sorted_if_absent, main program):
23046         Omit unnecessary chatter to stderr.  The main program chatter
23047         was there only inadvertantly.
23049         bootstrap: .gitignore files created by autopoint, libtool
23050         I ran into this problem when bootstrapping the latest diffutils.
23051         After './bootstrap', 'git status' reported lots of untracked files
23052         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
23053         autopoint and do not need to be version-controlled.
23054         * build-aux/bootstrap: Put into .gitignore the files that
23055         autopoint and libtool create, by keeping track of files that exist
23056         after but not before these programs are run.
23057         (version_controlled_file): Move up.  2nd arg is now full file
23058         name, not base name; this is more convenient.  Put CVS at the end,
23059         as it's now somewhat deprecated.
23061 2012-05-14  Jim Meyering  <meyering@redhat.com>
23063         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
23064         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
23065         definition.  Reported by Bruno Haible.
23067 2012-05-13  Bruno Haible  <bruno@clisp.org>
23068             Paul Eggert  <eggert@cs.ucla.edu>
23070         binary-io: Define set_binary_mode function.
23071         * lib/binary-io.h (set_binary_mode): New function.
23072         (SET_BINARY): Define in terms of set_binary_mode.
23073         * modules/binary-io (configure.ac): Require AC_C_INLINE.
23074         * tests/test-binary-io.c (main): Accept an argument, and test either
23075         set_binary_mode or SET_BINARY depending on the argument.
23076         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
23077         argument. Clean up also t-bin-out0.tmp.
23079 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
23081         bootstrap: take advantage of POSIX shell features
23083         The 'bootstrap' script offered by Gnulib script already uses POSIX
23084         shell features (like $((...)) arithmetic expansions) that are not
23085         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
23086         means that bootstrap must already be run using a proper POSIX shell,
23087         which will thus provide more features, like ${var#pattern} parameter
23088         expansion or inversion of a command exit status with '!'.  We can
23089         thus use these features to improve the clarity and the performances
23090         of the bootstrap script.
23092         Suggested by Eric Blake.
23094         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
23095         of sed/expr plus command substitutions, to save some forks.  While
23096         we are at it, prefer the POSIX $(...) form of command substitution,
23097         rather than the legacy form `...` (since the former is visually
23098         clearer and interacts better with quoting), and prefer the idiom:
23099           "if ! CMD; then ACTION ..."
23100         over the idiom:
23101           "if CMD; then :; else ACTION ..."
23102         which was required by legacy Bourne shells not supporting '!'.
23104 2012-05-12  Bruno Haible  <bruno@clisp.org>
23106         system-quote: Add more comments.
23107         * lib/system-quote.h: Add more comments about wilcards and limitations.
23108         Suggested by Eli Zaretskii <eliz@gnu.org>.
23110         sh-quote, system-quote: Add comments about wildcards.
23111         * lib/sh-quote.h: Clarify what happens with wildcard characters.
23112         * lib/system-quote.h: Likewise.
23113         Reported by Eli Zaretskii <eliz@gnu.org>.
23115 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23117         fsusage: check for GNU/Linux statvfs problem dynamically
23118         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
23119         Define STAT_STATFS2_BSIZE too, since in this case the code now
23120         checks dynamically whether statvfs is reliable, falling back on
23121         Linux-style statfs otherwise.
23122         (statvfs_works): New function, for dynamically testing statvfs.
23123         (get_fs_usage) [STAT_STATVFS]: Use it.
23124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23125         statvfs on GNU/Linux hosts, since it's now done dynamically.
23127 2012-05-10  Bruno Haible  <bruno@clisp.org>
23129         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23130         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23131         '?' character.
23132         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23133         * tests/test-system-quote-main.c (check_all): Check also strings like
23134         "??????????".
23135         Reported by Eli Zaretskii <eliz@gnu.org>.
23137 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23139         _Noreturn: port config.h to gcc -Wundef
23140         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23141         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23142         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23144 2012-05-10  Bruno Haible  <bruno@clisp.org>
23146         system-quote: Refactor.
23147         * lib/system-quote.h (system_quote_copy): Fix comment.
23148         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23149         New functions, extracted from system_quote_copy.
23150         (system_quote_length, system_quote_copy): Use these functions.
23151         Reported by Paul Eggert.
23153 2012-05-08  Bruno Haible  <bruno@clisp.org>
23155         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23156         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23158 2012-05-08  Bruno Haible  <bruno@clisp.org>
23160         Tests for module 'system-quote'.
23161         * modules/system-quote-tests: New file.
23162         * tests/test-system-quote.sh: New file.
23163         * tests/test-system-quote-main.c: New file.
23164         * tests/test-system-quote-child.c: New file.
23166         New module 'system-quote'.
23167         * lib/system-quote.h: New file.
23168         * lib/system-quote.c: New file.
23169         * modules/system-quote: New file.
23171 2012-05-08  Bruno Haible  <bruno@clisp.org>
23173         sh-quote: Make C++ safe and allow multiple inclusion.
23174         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23175         declarations in extern "C".
23177 2012-05-08  Bruno Haible  <bruno@clisp.org>
23179         sh-quote tests: Make tests stricter.
23180         * tests/test-sh-quote.c (check_one): Check the return value of
23181         shell_quote_copy.
23182         (main): Check a string with a CR character. Check a string that
23183         contains UCHAR_MAX.
23185 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23187         warnings.m4: provide a means to specify the program to compile.
23188         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23189         (gl_WARN_ADD): here.
23190         Use gl_AS_VAR_APPEND.
23191         Support an argument to specify the program to compile.
23192         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23193         AC_SUBST the WARN_CFLAGS when they are used.
23194         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23195         leave this to gl_WARN_ADD.
23197 2012-05-08  Eric Blake  <eblake@redhat.com>
23199         doc: recommendations on gettext version
23200         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23201         choice between versions.
23202         * DEPENDENCIES (gettext): Cover both approaches.
23204 2012-05-08  Jim Meyering  <meyering@redhat.com>
23206         init.sh: explain why EXEEXT support uses aliases rather than functions
23207         * tests/init.sh: Add a comment.
23209         init.sh: don't let bash aliases interfere with tests
23210         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23211         is bash.  This avoids problems for those who alias standard commands to
23212         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23213         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23215 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23217         stdint: be more consistent with glibc, SunOS libc
23218         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23219         (gl_int_fast16_t, gl_uint_fast16_t)
23220         (gl_int_fast32_t, gl_uint_fast32_t)
23221         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23222         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23223         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23224         Be consistent with glibc by default, and with SunOS 5.10 and later
23225         if __sun is defined.  This lessens the likelihood of clashes if
23226         code compiled for older hosts is combined with code compiled for
23227         newer ones.  Problem reported by Niels Möller in
23228         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23230 2012-05-07  Eric Blake  <eblake@redhat.com>
23232         isatty: relax license to LGPLv2+
23233         * modules/isatty (License): Relax license.
23235 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23237         stat-size: comment fix
23238         * lib/stat-size.h: Remove obsolete comment about indenting.
23240 2012-05-06  Bruno Haible  <bruno@clisp.org>
23242         Tests for module 'sh-quote'.
23243         * modules/sh-quote-tests: New file.
23244         * tests/test-sh-quote.c: New file.
23246 2012-05-06  Bruno Haible  <bruno@clisp.org>
23248         sh-quote: Improve shell_quote_argv's signature.
23249         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23250         * lib/sh-quote.c (shell_quote_argv): Likewise.
23252 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23254         stdint: document issues with int_fast8_t etc.
23255         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23256         stdint.h substitutes may define these types differently.  See
23257         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23259 2012-05-05  Bruno Haible  <bruno@clisp.org>
23261         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23263         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23264         or 'guessing no (mishandles large arguments)'.
23266 2012-05-05  Bruno Haible  <bruno@clisp.org>
23268         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23269         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23270         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23271         set gl_cv_func_link_follows_symlink to "guessing no".
23273 2012-05-05  Bruno Haible  <bruno@clisp.org>
23275         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23276         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23277         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23278         "guessing no".
23279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23281 2012-05-05  Bruno Haible  <bruno@clisp.org>
23283         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23284         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23285         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23286         set gl_cv_struct_dirent_d_ino to "guessing yes".
23288 2012-05-05  Bruno Haible  <bruno@clisp.org>
23290         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23291         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23292         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23293         "guessing yes".
23295 2012-05-05  Bruno Haible  <bruno@clisp.org>
23297         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23298         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23299         compiling to a glibc system, set gl_cv_func_signbit and
23300         gl_cv_func_signbit_gcc to "guessing yes".
23302 2012-05-05  Bruno Haible  <bruno@clisp.org>
23304         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23305         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23306         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23307         to "guessing yes".
23308         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23309         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23311 2012-05-05  Bruno Haible  <bruno@clisp.org>
23313         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23314         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23315         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23316         gl_cv_func_realpath_works to "guessing yes".
23318 2012-05-05  Bruno Haible  <bruno@clisp.org>
23320         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23322         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23324 2012-05-04  Bruno Haible  <bruno@clisp.org>
23326         Tweak last commit.
23327         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23328         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23330 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23332         unistd_h: make it easier to avoid sys_types_h
23333         This is useful for Emacs, which has its own method of porting to
23334         Windows, and which therefore does not need the sys_types_h module.
23335         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23336         code moved here from gl_SYS_TYPES_H.
23337         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23338         using the code directly.
23339         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23340         gl_SYS_TYPES_H.
23341         * modules/sys_types (Files):
23342         * modules/unistd (Files): Add m4/off_t.m4.
23344 2012-05-03  Bruno Haible  <bruno@clisp.org>
23346         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23347         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23348         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23349         "guessing yes" or "guessing no".
23350         (gl_FUNC_LSTAT): Update.
23351         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23352         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23353         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23355 2012-05-03  Bruno Haible  <bruno@clisp.org>
23357         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23358         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23359         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23360         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23361         cross-compiling, choose the first alternative on glibc systems.
23362         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23364 2012-05-03  Bruno Haible  <bruno@clisp.org>
23366         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23367         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23368         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23370 2012-05-03  Bruno Haible  <bruno@clisp.org>
23372         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23373         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23375 2012-05-03  Bruno Haible  <bruno@clisp.org>
23377         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23378         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23379         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23380         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23381         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23382         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23383         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23384         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23385         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23386         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23387         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23388         gl_cv_func_chown_ctime_works to "guessing yes".
23389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23390         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23391         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23392         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23393         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23395         compiling to glibc systems, set gl_cv_func_open_directory_works to
23396         "guessing yes".
23397         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23398         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23399         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23400         "guessing yes".
23401         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23402         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23403         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23404         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23405         "guessing yes".
23406         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23407         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23408         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23409         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23410         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23411         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23412         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23413         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23414         "guessing yes".
23415         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23416         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23417         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23418         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23419         "guessing yes".
23420         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23421         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23422         "guessing yes".
23423         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23424         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23425         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23426         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23427         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23428         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23429         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23430         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23431         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23432         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23433         "guessing yes".
23434         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23435         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23436         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23437         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23438         "guessing yes".
23439         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23440         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23441         "guessing yes".
23442         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23443         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23444         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23445         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23446         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23447         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23448         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23449         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23450         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23451         "guessing yes".
23452         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23453         compiling to glibc systems, set gl_cv_func_mknod_works to
23454         "guessing yes".
23455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23456         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23457         "guessing yes".
23458         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23459         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23460         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23461         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23462         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23463         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23464         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23465         compiling to glibc systems, set gl_cv_func_svid_putenv to
23466         "guessing yes".
23467         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23468         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23469         "guessing yes".
23470         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23471         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23472         "guessing yes".
23473         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23474         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23475         to "guessing yes".
23476         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23477         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23478         to "guessing yes".
23479         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23480         compiling to glibc systems, set gl_cv_func_rmdir_works to
23481         "guessing yes".
23482         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23483         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23484         gl_cv_func_unlink_parent_fails to "guessing yes".
23485         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23486         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23487         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23488         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23489         gl_cv_func_rename_dest_works to "guessing yes".
23490         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23491         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23492         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23493         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23494         "guessing yes".
23495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23496         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23497         "guessing yes".
23498         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23499         compiling to glibc systems, set gl_cv_func_setenv_works to
23500         "guessing yes".
23501         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23502         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23503         "guessing yes".
23504         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23505         compiling to glibc systems, set gl_cv_func_sleep_works to
23506         "guessing yes".
23507         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23508         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23509         "guessing yes".
23510         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23511         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23512         "guessing yes".
23513         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23514         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23515         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23516         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23517         "guessing yes".
23518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23519         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23520         "guessing yes".
23521         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23522         compiling to glibc systems, set gl_cv_func_usleep_works to
23523         "guessing yes".
23524         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23525         compiling to glibc systems, set gl_cv_func_futimesat_works to
23526         "guessing yes".
23528 2012-05-03  Bruno Haible  <bruno@clisp.org>
23530         Say "guessing yes" or "guessing no" when cross-compiling.
23531         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23532         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23533         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23534         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23535         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23536         am_cv_func_working_getline to "guessing yes" or "guessing no".
23537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23538         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23539         (gl_FUNC_MEMMEM): When cross-compiling, set
23540         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23541         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23542         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23544         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23545         "guessing no".
23546         (gl_FUNC_STRCASESTR): When cross-compiling, set
23547         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23548         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23549         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23550         (gl_FUNC_STRSTR): When cross-compiling, set
23551         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23552         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23553         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23554         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23555         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23557 2012-05-01  Bruno Haible  <bruno@clisp.org>
23559         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23560         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23561         * build-aux/reloc-ldflags: Likewise.
23562         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23564 2012-05-01  Bruno Haible  <bruno@clisp.org>
23566         gnulib-tool: Remove transitional code.
23567         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23568         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23570 2012-05-01  Bruno Haible  <bruno@clisp.org>
23572         getcwd: Fix misindentation.
23573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23575 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23577         exclude: process exclude and include directives in order
23578         This restores the pre-2009 behavior, and is part of a fix of a
23579         grep bug reported by Quentin Arce in
23580         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23581         * lib/exclude.c (struct exclude): Remove 'tail' member.
23582         (new_exclude_segment): Prepend the new segment instead of appending.
23583         Return void, since that's now more convenient.
23584         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23585         (file_name_matches): Renamed from excluded_file_name_p.
23586         (file_pattern_matches, file_name_matches):
23587         Return true if the pattern matches, not if it excludes.
23588         All callers changed.
23589         (excluded_file_name): Process the list in reverse order;
23590         since the list is now reversed this restores the pre-2009 behavior.
23591         (add_exclude): Adjust to new reversed-order list.  Use local var
23592         rather than macro, for clarity.
23593         * tests/test-exclude7.sh: Adjust to corrected behavior.
23595         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23596         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23597         it's not possible here.  Handle the case of \ at end of pattern
23598         without dumping core.
23599         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23601         _Noreturn: future-proof non-GNU and non-MSVC compilers
23602         * build-aux/snippet/_Noreturn.h (_Noreturn):
23603         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23604         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23605         C11 or later.  This is more likely to work with random future C
23606         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23607         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23609         exclude: handle wildcards with FNM_EXTMATCH
23610         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23611         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23612         comment that "has wildcards" really means "has or may have
23613         wildcards".  Simplify by avoiding the need to call strcspn.
23615 2012-04-29  Bruno Haible  <bruno@clisp.org>
23617         gnulib-tool: Fix list of authors.
23618         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23620 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23622         bootstrap: support Automake-NG in $buildreq
23623         * bootstrap (check_versions): Handle automake and aclocal from
23624         Automake-NG specially.  They can be specified as respectively
23625         the "automake-ng" and "aclocal-ng" requirements.
23627 2012-04-25  Eric Blake  <eblake@redhat.com>
23629         bootstrap: only force latest Makefile.in.in for gettext module
23630         * build-aux/bootstrap (with_gettext): Only install latest
23631         Makefile.in.in for projects requesting bleeding edge gettext.
23633 2012-04-22  Bruno Haible  <bruno@clisp.org>
23635         doc: Mention reason for replacement on glibc/Linux systems.
23636         * doc/posix-functions/dprintf.texi: Mention the problem with special
23637         'long double' values.
23638         * doc/posix-functions/fprintf.texi: Likewise.
23639         * doc/posix-functions/printf.texi: Likewise.
23640         * doc/posix-functions/snprintf.texi: Likewise.
23641         * doc/posix-functions/sprintf.texi: Likewise.
23642         * doc/posix-functions/vdprintf.texi: Likewise.
23643         * doc/posix-functions/vfprintf.texi: Likewise.
23644         * doc/posix-functions/vprintf.texi: Likewise.
23645         * doc/posix-functions/vsnprintf.texi: Likewise.
23646         * doc/posix-functions/vsprintf.texi: Likewise.
23647         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23648         platforms with F_DUPFD_CLOEXEC problems.
23649         * doc/posix-functions/glob.texi: Mention which platforms are affected
23650         by the problem with symbolic links.
23651         * doc/posix-functions/linkat.texi: Mention the problem with
23652         AT_SYMLINK_FOLLOW on Linux.
23654 2012-04-22  Bruno Haible  <bruno@clisp.org>
23656         pwrite: Don't replace on all platforms.
23657         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23659 2012-04-22  Bruno Haible  <bruno@clisp.org>
23661         rint* tests: Avoid gcc warnings.
23662         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23663         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23664         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23666 2012-04-21  Bruno Haible  <bruno@clisp.org>
23668         users.txt: Update.
23669         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23670         switched from CVS to git, bzr, or svn.
23672 2012-04-21  Bruno Haible  <bruno@clisp.org>
23674         Large File Support for native Windows platforms.
23676         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23677         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23679         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23680         type.
23681         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23682         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23683         * doc/posix-headers/sys_types.texi: Mention the effect of the
23684         'largefile' module.
23686         * lib/fcntl.in.h: Add comments about off_t.
23687         * modules/fcntl-h (Depends-on): Add sys_types.
23689         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23690         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23691         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23692         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23693         * modules/unistd (Depends-on): Add sys_types.
23694         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23696         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23697         instead of lseek.
23698         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23699         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23700         * modules/lseek (Depends-on): Add sys_types.
23702         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23703         msvc-nothrow.h.
23704         (SetFileSize): New function.
23705         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23707         if Large File Support is requested.
23708         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23709         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23711         * lib/stdio.in.h: Add comments about off_t.
23712         * modules/stdio (Depends-on): Add sys_types.
23714         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23715         instead of ftello.
23716         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23717         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23718         (gl_PREREQ_FTELLO): New macro.
23719         * modules/ftello (Depends-on): Add sys_types.
23720         (configure.ac): Incoke gl_PREREQ_FTELLO.
23722         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23723         instead of fseeko.
23724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23725         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23726         (gl_PREREQ_FSEEKO): New macro.
23727         * modules/fseeko (Depends-on): Add sys_types.
23728         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23730         * lib/sys_stat.in.h: Add comments about off_t.
23731         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23732         64-bit integer for st_size in 'struct stat'.
23733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23734         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23735         * modules/sys_stat (Depends-on): Add sys_types.
23736         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23738         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23739         instead of stat or _stat.
23741         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23742         'struct _stati64' instead of fstat and 'struct stat'.
23743         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23744         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23746         Reported by Ray Satiro <raysatiro@yahoo.com>.
23748 2012-04-19  Eric Blake  <eblake@redhat.com>
23750         bootstrap: accommodate older libtool
23751         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23752         Reported by Daniel P. Berrange.
23754 2012-04-19  Jim Meyering  <meyering@redhat.com>
23756         announce-gen: avoid failure due to lack of Digest::SHA1
23757         Even with the preferred Digest::SHA available, this script
23758         would fail when the backup module, Digest::SHA1, was not installed.
23759         * build-aux/announce-gen: Quote the conditional use of "use".
23760         Reported by Reuben Thomas in:
23761         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23763         bootstrap: don't let a user's CDPATH setting affect this script
23764         When CDPATH is set, cd will sometimes generate output.
23765         When "cd" is run in a subshell whose output matters, that
23766         surprising-to-some output can cause malfunction.
23767         Unsetting CDPATH turns off this shell "feature."
23768         * build-aux/bootstrap (CDPATH): Unset.
23769         Reported by Reuben Thomas in:
23770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23771         and inspired by his patch here:
23772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23774 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23775         and Jim Meyering  <meyering@redhat.com>
23777         maint.mk: catch "see @xref{}" and similar
23778         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23779         prohibit "See also @xref{", "Also see @pxref{", and similar.
23781 2012-04-16  Jim Meyering  <meyering@redhat.com>
23783         bootstrap: really use gnulib's po/Makefile.in.in
23784         * build-aux/bootstrap: Correct the source file name in previous change.
23785         Reported by Akim Demaille.
23787         configmake: correct minor inconsistency in Makefile rule
23788         * modules/configmake (Makefile.am): All other rules like this one
23789         run the final "mv -f ..." in the same backslash-continued command
23790         as the one that does everything else.  This one put the mv -f ...
23791         command on a separate, non-backslash-continued line.
23792         Make it like the others.
23794         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23795         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23796         the one from gettext.  Reported by Akim Demaille.
23798 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23800         Fix recursion of install-* into po directories.
23801         Bison's install-pdf bug reported by Hans Aberg at
23802         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23803         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23804         (install-info, install-pdf, install-ps): New targets.
23806 2012-04-16  Jim Meyering  <meyering@redhat.com>
23808         maint: avoid spurious "make sc_maint" failure
23809         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23810         exempt all *.class file names, for lib/javaversion.class.
23812 2012-04-15  Bruno Haible  <bruno@clisp.org>
23814         lseek: Make configure test independent of environment.
23815         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23816         Windows, we know that lseek() on pipes is broken; skip the runtime
23817         test.
23819 2012-04-14  Bruno Haible  <bruno@clisp.org>
23821         stat: Bypass buggy override in mingw64.
23822         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23823         * lib/stat.c (stat) [mingw64]: Define to _stat.
23824         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23826 2012-04-14  Bruno Haible  <bruno@clisp.org>
23828         pathmax: Fix compilation error on MSVC 9.
23829         * modules/pathmax (Depends-on): Add unistd.
23831 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23833         README: document pointer comparison assumption
23834         * README (Portability guidelines): Document assumption about
23835         pointer comparisons, in response to a recent bug-gnulib comment by
23836         Jeffrey Kegler.
23838 2012-04-12  Bruno Haible  <bruno@clisp.org>
23840         Tests for module 'getrusage'.
23841         * modules/getrusage-tests: New file.
23842         * tests/test-getrusage.c: New file.
23844         New module 'getrusage'.
23845         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23846         warn-on-use.h.
23847         (getrusage): New declaration.
23848         * lib/getrusage.c: New file.
23849         * m4/getrusage.m4: New file.
23850         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23851         is declared.
23852         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23853         HAVE_GETRUSAGE.
23854         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23855         snippet/c++defs, snippet/warn-on-use.
23856         (Makefile.am): Update generation of sys/resource.h. Substitute
23857         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23858         * modules/getrusage: New file.
23859         * doc/posix-functions/getrusage.texi: Mention the new module.
23861 2012-04-12  Bruno Haible  <bruno@clisp.org>
23863         Tests for module 'sys_resource'.
23864         * modules/sys_resource-tests: New file.
23865         * tests/test-sys_resource.c: New file.
23867         New module 'sys_resource'.
23868         * lib/sys_resource.in.h: New file.
23869         * m4/sys_resource_h.m4: New file.
23870         * modules/sys_resource: New file.
23871         * doc/posix-headers/sys_resource.texi: Mention the new module.
23873 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23875         ioctl: Fix compilation error on mingw.
23876         * lib/ioctl.c: Include <windows.h>.
23877         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23879 2012-04-04  Jim Meyering  <meyering@redhat.com>
23881         regex: correct #pragma guard expression
23882         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23883         not 4.3.  Correct its cpp guard expression.
23885 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23887         regex: remove unnecessary type punning
23888         Problem reported by Vladimir Serbinenko in
23889         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23890         * lib/regex.h (struct re_pattern_buffer): Change the type of
23891         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23892         Fix comment to match code.
23893         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23894         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23895         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23896         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23897         (set_regs):
23898         Omit no-longer-necessary casts.
23900 2012-04-03  Bruno Haible  <bruno@clisp.org>
23902         Tests for module 'ilogbl'.
23903         * modules/ilogbl-tests: New file.
23904         * tests/test-ilogbl.c: New file.
23906         New module 'ilogbl'.
23907         * lib/math.in.h (ilogbl): New declaration.
23908         * lib/ilogbl.c: New file.
23909         * m4/ilogbl.m4: New file.
23910         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23912         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23913         Split sed invocation, to avoid the limit of 100 substitutions of
23914         HP-UX 'sed'.
23915         * modules/ilogbl: New file.
23916         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23917         * doc/posix-functions/ilogbl.texi: Mention the new module.
23919 2012-04-03  Bruno Haible  <bruno@clisp.org>
23921         Tests for module 'ilogbf'.
23922         * modules/ilogbf-tests: New file.
23923         * tests/test-ilogbf.c: New file.
23925         New module 'ilogbf'.
23926         * lib/math.in.h (ilogbf): New declaration.
23927         * lib/ilogbf.c: New file.
23928         * m4/ilogbf.m4: New file.
23929         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23931         REPLACE_ILOGBF.
23932         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23933         REPLACE_ILOGBF.
23934         * modules/ilogbf: New file.
23935         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23936         * doc/posix-functions/ilogbf.texi: Mention the new module.
23938 2012-04-03  Bruno Haible  <bruno@clisp.org>
23940         Tests for module 'ilogb'.
23941         * modules/ilogb-tests: New file.
23942         * tests/test-ilogb.c: New file.
23943         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23944         tests/test-logb-ieee.h.
23946         New module 'ilogb'.
23947         * lib/math.in.h (ilogb): New declaration.
23948         * lib/ilogb.c: New file.
23949         * m4/ilogb.m4: New file.
23950         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23952         REPLACE_ILOGB.
23953         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23954         REPLACE_ILOGB.
23955         * modules/ilogb: New file.
23956         * tests/test-math-c++.cc: Check the declaration of ilogb.
23957         * doc/posix-functions/ilogb.texi: Mention the new module.
23959 2012-04-03  Bruno Haible  <bruno@clisp.org>
23961         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23962         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23963         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23964         (main): Check their values.
23965         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23966         problem.
23968 2012-04-03  Bruno Haible  <bruno@clisp.org>
23970         Tests for module 'logbl-ieee'.
23971         * modules/logbl-ieee-tests: New file.
23972         * tests/test-logbl-ieee.c: New file.
23974         New module 'logbl-ieee'.
23975         * modules/logbl-ieee: New file.
23977         Tests for module 'logb-ieee'.
23978         * modules/logb-ieee-tests: New file.
23979         * tests/test-logb-ieee.c: New file.
23981         New module 'logb-ieee'.
23982         * modules/logb-ieee: New file.
23984         Tests for module 'logbf-ieee'.
23985         * modules/logbf-ieee-tests: New file.
23986         * tests/test-logbf-ieee.c: New file.
23987         * tests/test-logb-ieee.h: New file.
23989         New module 'logbf-ieee'.
23990         * modules/logbf-ieee: New file.
23992 2012-04-03  Bruno Haible  <bruno@clisp.org>
23994         Tests for module 'logbl'.
23995         * modules/logbl-tests: New file.
23996         * tests/test-logbl.c: New file.
23998         New module 'logbl'.
23999         * lib/math.in.h (logbl): New declaration.
24000         * lib/logbl.c: New file.
24001         * m4/logbl.m4: New file.
24002         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
24003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
24004         REPLACE_LOGBL.
24005         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
24006         REPLACE_LOGBL.
24007         * modules/logbl: New file.
24008         * tests/test-math-c++.cc: Check the declaration of logbl.
24009         * doc/posix-functions/logbl.texi: Mention the new module.
24011 2012-04-02  Bruno Haible  <bruno@clisp.org>
24013         Tests for module 'logbf'.
24014         * modules/logbf-tests: New file.
24015         * tests/test-logbf.c: New file.
24017         New module 'logbf'.
24018         * lib/math.in.h (logbf): New declaration.
24019         * lib/logbf.c: New file.
24020         * m4/logbf.m4: New file.
24021         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
24022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
24023         REPLACE_LOGBF.
24024         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
24025         REPLACE_LOGBF.
24026         * modules/logbf: New file.
24027         * tests/test-math-c++.cc: Check the declaration of logbf.
24028         * doc/posix-functions/logbf.texi: Mention the new module.
24030 2012-04-02  Bruno Haible  <bruno@clisp.org>
24032         logb tests: More tests.
24033         * tests/test-logb.h: New file, based on tests/test-logb.c and
24034         tests/test-frexp.h.
24035         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
24036         (main): Just invoke test_function.
24037         * modules/logb-tests (Files): Add tests/test-logb.h,
24038         tests/minus-zero.h, tests/randomd.c.
24039         (Makefile.am): Add randomd.c to test_logb_SOURCES.
24041         logb: Provide replacement and workarounds.
24042         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
24043         is 1.
24044         * lib/logb.c: New file.
24045         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
24046         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
24047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
24048         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
24049         * modules/logb (Files): Add lib/logb.c.
24050         (Depends-on): Add isfinite, frexp, isnand.
24051         (configure.ac): Compile the replacement code logb.c if needed.
24052         * tests/test-math-c++.cc: Check the declaration of logb.
24053         * doc/posix-functions/logb.texi: Mention the replacement and the bug
24054         with subnormal numbers.
24056 2012-04-02  Bruno Haible  <bruno@clisp.org>
24058         log10* tests: Speed up.
24059         * tests/test-log10.h (test_function): Reduce amount of random numbers
24060         to test.
24062 2012-04-01  Bruno Haible  <bruno@clisp.org>
24064         logf-ieee: Fix test whether logf works.
24065         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
24067 2012-04-01  Bruno Haible  <bruno@clisp.org>
24069         log10l: Work around log10l-ieee test failure on IRIX 6.5.
24070         * lib/log10l.c: Include <float.h>
24071         (log10l): On IRIX, normalize the +Infinity value.
24072         * modules/log10l (Depends-on): Add 'float'.
24073         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
24074         +Infinity.
24076         log10f-ieee: Work around test failure on NetBSD 5.1.
24077         * m4/log10f-ieee.m4: New file.
24078         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
24079         test whether log10f works with a negative argument. Replace it if not.
24080         * lib/log10f.c (log10f): For negative arguments, return NaN.
24081         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
24082         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
24083         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
24085         log10f-ieee: Work around test failure on Solaris 9.
24086         * modules/log10f-ieee (Depends-on): Add log10-ieee.
24087         (configure.ac): Require gl_FUNC_LOG10F.
24089         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24090         * m4/log10-ieee.m4: New file.
24091         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
24092         whether log10 works with a negative argument. Replace it if not.
24093         * lib/log10.c (log10): For negative arguments, return NaN.
24094         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
24095         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
24096         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
24098         Tests for module 'log10l-ieee'.
24099         * modules/log10l-ieee-tests: New file.
24100         * tests/test-log10l-ieee.c: New file.
24102         New module 'log10l-ieee'.
24103         * modules/log10l-ieee: New file.
24105         Tests for module 'log10-ieee'.
24106         * modules/log10-ieee-tests: New file.
24107         * tests/test-log10-ieee.c: New file.
24109         New module 'log10-ieee'.
24110         * modules/log10-ieee: New file.
24112         Tests for module 'log10f-ieee'.
24113         * modules/log10f-ieee-tests: New file.
24114         * tests/test-log10f-ieee.c: New file.
24115         * tests/test-log10-ieee.h: New file.
24117         New module 'log10f-ieee'.
24118         * modules/log10f-ieee: New file.
24120 2012-04-01  Bruno Haible  <bruno@clisp.org>
24122         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
24123         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24124         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24125         workaround.
24126         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24127         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24129         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24130         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24131         (Depends-on): Update conditions.
24132         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24133         IRIX 6.5, OSF/1 5.1 problems.
24135 2012-04-01  Bruno Haible  <bruno@clisp.org>
24137         log10f: Work around OSF/1 5.1 bug.
24138         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24139         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24140         workaround.
24141         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24142         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24144         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24145         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24146         (Depends-on): Update conditions.
24147         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24149 2012-04-01  Bruno Haible  <bruno@clisp.org>
24151         log10: Work around OSF/1 5.1 bug.
24152         * lib/math.in.h (log10): New declaration.
24153         * lib/log10.c: New file.
24154         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24155         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24156         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24158         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24159         * modules/log10 (Files): Add lib/log10.c.
24160         (Depends-on): Add math.
24161         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24162         * tests/test-math-c++.cc: Check the declaration of log10.
24163         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24165 2012-03-31  Bruno Haible  <bruno@clisp.org>
24167         log10l tests: More tests.
24168         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24169         tests/minus-zero.h, tests/randoml.c.
24170         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24171         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24172         (main): Invoke test_function.
24174         log10f tests: More tests.
24175         * modules/log10f-tests (Files): Add tests/test-log10.h,
24176         tests/minus-zero.h, tests/randomf.c.
24177         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24178         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24179         (main): Invoke test_function.
24181         log10 tests: More tests.
24182         * tests/test-log10.h: New file.
24183         * modules/log10-tests (Files): Add tests/test-log10.h,
24184         tests/minus-zero.h, tests/randomd.c.
24185         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24186         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24187         (main): Invoke test_function.
24189 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24191         fflush: Fix syntax error.
24192         * lib/fflush.c: Include unused-parameter.h, needed for
24193         _GL_UNUSED_PARAMETER.
24194         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24196 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24198         regex: pacify GCC when compiling GRUB
24199         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24200         a diagnostic.  Reported by Vladimir Serbinenko in
24201         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24203 2012-03-29  Eric Blake  <eblake@redhat.com>
24205         stdio: don't assume gets any more
24206         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24207         support.
24208         * modules/stdio (Makefile.am): Likewise.
24209         * lib/stdio-read.c (gets): Likewise.
24210         * tests/test-stdio-c++.cc: Likewise.
24211         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24212         * lib/stdio.in.h (gets): Make warning occur in more places.
24213         * doc/posix-functions/gets.texi (gets): Update documentation.
24214         Reported by Christer Solskogen.
24216         maint.mk: fix syntax checks without exclusions
24217         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24218         Reported by Daniel P. Berrange.
24220         strerror_r: avoid compiler warning
24221         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24222         level.
24224         fflush: avoid compiler warning
24225         * lib/fflush.c (update_fpos_cache): Mark variables that are
24226         potentially unused.
24228 2012-03-25  Bruno Haible  <bruno@clisp.org>
24230         Tests for module 'localeconv'.
24231         * modules/localeconv-tests: New file.
24232         * tests/test-localeconv.c: New file.
24234         New module 'localeconv'.
24235         * lib/locale.in.h (localeconv): New declaration.
24236         * lib/localeconv.c: New file.
24237         * m4/localeconv.m4: New file.
24238         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24239         REPLACE_LOCALECONV.
24240         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24241         REPLACE_LOCALECONV.
24242         * modules/localeconv: New file.
24243         * modules/nl_langinfo (Depends-on): Add localeconv.
24244         * modules/human (Depends-on): Likewise.
24245         * doc/posix-functions/localeconv.texi: Mention the new module.
24247 2012-03-25  Bruno Haible  <bruno@clisp.org>
24249         locale: Provide a complete 'struct lconv'.
24250         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24251         'struct lconv' does not contain int_p_cs_precedes.
24252         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24253         * doc/posix-headers/locale.texi: Update.
24255         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24256         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24257         * doc/posix-headers/locale.texi: Update.
24259         locale: Provide a working 'struct lconv'.
24260         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24261         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24262         'struct lconv' does not even contain decimal_point.
24263         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24264         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24265         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24266         * doc/posix-headers/locale.texi: Mention the problems with
24267         'struct lconv'.
24268         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24270 2012-03-24  Bruno Haible  <bruno@clisp.org>
24272         Enable common subexpression optimization in GCC.
24273         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24274         macros.
24275         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24276         GCC attribute 'const'.
24277         (uc_locale_language): Declare with GCC attribute 'pure'.
24278         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24279         with GCC attribute 'const'.
24280         * lib/unictype.in.h (uc_is_general_category_withtable,
24281         uc_combining_class, uc_combining_class_name,
24282         uc_combining_class_long_name, uc_bidi_class_name,
24283         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24284         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24285         uc_decimal_value, uc_digit_value, uc_numeric_value,
24286         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24287         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24288         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24289         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24290         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24291         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24292         Declare with GCC attribute 'const'.
24293         (uc_general_category_name, uc_general_category_long_name,
24294         uc_general_category_byname, uc_general_category,
24295         uc_is_general_category, uc_combining_class_byname,
24296         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24297         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24298         Declare with GCC attribute 'pure'.
24299         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24300         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24301         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24302         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24303         with GCC attribute 'pure'.
24304         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24305         'const'.
24306         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24307         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24308         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24309         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24310         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24311         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24312         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24313         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24314         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24315         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24316         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24317         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24318         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24319         GCC attribute 'pure'.
24320         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24321         'const'.
24322         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24323         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24324         u32_strwidth): Declare with GCC attribute 'pure'.
24326         Enable common subexpression optimization in GCC.
24327         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24328         (alphasort): Declare with GCC attribute 'pure'.
24329         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24330         (atoll): Declare with GCC attribute 'pure'.
24331         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24332         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24333         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24334         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24335         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24336         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24337         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24339 2012-03-24  Bruno Haible  <bruno@clisp.org>
24341         gnulib-tool: Avoid unintended error output from 'cmp'.
24342         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24343         "cmp -s", not "cmp > /dev/null".
24345 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24347         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24349         It's not just Automake versions < 1.9b that creates an empty
24350         pkgdatadir at installation time if pkgdata_DATA is specified
24351         to empty; modern automake versions do this as well, at least
24352         until automake 1.11.4 (not yet released at the moment of writing,
24353         but soon to appear).  That behaviour was generally considered a
24354         feature rather than a bug, at least until this discussion:
24355         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24357         See also automake bugs #10997 and #11030.
24359         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24360         reference to relevant automake bug numbers.
24361         (func_emit_tests_Makefile_am): Likewise.
24363 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24365         announce-gen: use Digest::SHA when possible
24366         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24367         back to Digest::SHA1 if necessary.
24369 2012-03-20  Jim Meyering  <meyering@redhat.com>
24371         tests: avoid gcc warnings about argv vs. const initializers
24372         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24373         warnings about discarding 'const' qualifier from pointer target type.
24374         * tests/test-posix_spawn2.c (main): Likewise.
24376 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24378         README-release: simplify slightly
24379         * top/README-release: Run "git checkout master" only once.
24381 2012-03-15  Mark Wielaard  <mark@klomp.org>
24383         git-merge-changelog: add specific example on how to use with hg.
24384         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24386 2012-03-18  Mark Wielaard  <mark@klomp.org>
24388         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24390 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24392         git-version-gen: don't let "prefix" envvar cause trouble
24393         * build-aux/git-version-gen (prefix): Initialize properly,
24394         so as not to use a value specified via the environment.
24395         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24397 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24399         regex: diagnose too-large repeat counts in EREs
24400         Previously, the code did not diagnose the too-large repeat count
24401         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24402         as if it were 'b\{1000000000}', which is unexpected.
24403         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24404         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24405         is a reasonable one for this problem.  Another option would be to
24406         create a new REG_OVERFLOW error for repeat counts that are too large.
24407         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24408         count is too large, so that the caller can distinguish the two cases.
24409         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24410         "Too large" return code, and that repeat counts are one example of this.
24412 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24414         doc: some glibc x32 integer width issues
24415         * doc/posix-headers/sys_types.texi (sys/types.h):
24416         * doc/posix-headers/time.texi (time.h):
24417         Mention that glibc x32 does not conform to POSIX in a couple of
24418         areas related to integer widths.
24420 2012-03-15  Bruno Haible  <bruno@clisp.org>
24422         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24423         * lib/fma.c (VOLATILE): New macro.
24424         (FUNC): Use it to work around a GCC compiler bug.
24426 2012-03-13  Bruno Haible  <bruno@clisp.org>
24428         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24429         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24430         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24431         REPLACE_HYPOTL to 1.
24432         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24434 2012-03-13  Bruno Haible  <bruno@clisp.org>
24436         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24437         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24438         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24439         REPLACE_REMAINDERL to 1.
24440         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24441         bug.
24443 2012-03-13  Bruno Haible  <bruno@clisp.org>
24445         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24446         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24447         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24448         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24449         too big rounding errors.
24450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24451         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24452         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24453         (Depends-on): Update conditions.
24454         * tests/test-sqrtl.c (my_ldexpl): New function.
24455         (main): Add test of a particular value.
24456         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24458 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24460         doc: Update timer_* platform portability notes.
24461         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24462         that always return ENOSYS.
24463         * doc/posix-functions/timer_delete.texi: Likewise.
24464         * doc/posix-functions/timer_gettime.texi: Likewise.
24465         * doc/posix-functions/timer_settime.texi: Likewise.
24467 2012-03-13  Bruno Haible  <bruno@clisp.org>
24469         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24470         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24471         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24472         REPLACE_CBRTL to 1.
24473         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24475 2012-03-13  Bruno Haible  <bruno@clisp.org>
24477         remainderl: Avoid compilation error on AIX >= 5.2.
24478         * lib/math.in.h (remainderl): Undefine macro from the system header.
24480 2012-03-13  Bruno Haible  <bruno@clisp.org>
24482         Avoid compilation errors with MSVC option -fp:strict.
24483         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24484         * lib/cbrtf.c: Likewise.
24485         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24487 2012-03-12  Bruno Haible  <bruno@clisp.org>
24489         uninorm: Don't crash in out-of-memory conditions.
24490         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24491         gracefully.
24492         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24493         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24495 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24497         quote: fix syntax-check
24498         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24499         also exports quote_quoting_options.
24501 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24503         Collapse list of copyright years to ranges.  See
24504         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24505         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24506         build-aux/csharpexec.sh.in, build-aux/gnupload,
24507         build-aux/install-reloc, build-aux/javacomp.sh.in,
24508         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24509         build-aux/move-if-change, build-aux/reloc-ldflags,
24510         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24512 2012-03-11  Bruno Haible  <bruno@clisp.org>
24514         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24515         * m4/log2f-ieee.m4: New file.
24516         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24517         whether log2f works with a minus zero argument. Replace it if not.
24518         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24519         (Depends-on): Add log2-ieee.
24520         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24521         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24523         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24524         * m4/log2-ieee.m4: New file.
24525         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24526         whether log2 works with a minus zero argument. Replace it if not.
24527         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24528         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24529         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24531         Tests for module 'log2l-ieee'.
24532         * modules/log2l-ieee-tests: New file.
24533         * tests/test-log2l-ieee.c: New file.
24535         New module 'log2l-ieee'.
24536         * modules/log2l-ieee: New file.
24538         Tests for module 'log2-ieee'.
24539         * modules/log2-ieee-tests: New file.
24540         * tests/test-log2-ieee.c: New file.
24542         New module 'log2-ieee'.
24543         * modules/log2-ieee: New file.
24545         Tests for module 'log2f-ieee'.
24546         * modules/log2f-ieee-tests: New file.
24547         * tests/test-log2f-ieee.c: New file.
24548         * tests/test-log2-ieee.h: New file.
24550         New module 'log2f-ieee'.
24551         * modules/log2f-ieee: New file.
24553 2012-03-11  Bruno Haible  <bruno@clisp.org>
24555         Tests for module 'log2l'.
24556         * modules/log2l-tests: New file.
24557         * tests/test-log2l.c: New file.
24559         New module 'log2l'.
24560         * lib/math.in.h (log2l): New declaration.
24561         * lib/log2l.c: New file.
24562         * m4/log2l.m4: New file.
24563         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24565         REPLACE_LOG2L.
24566         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24567         REPLACE_LOG2L.
24568         * modules/log2l: New file.
24569         * tests/test-math-c++.cc: Check the declaration of log2l.
24570         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24571         and OSF/1 problems.
24573 2012-03-11  Bruno Haible  <bruno@clisp.org>
24575         Tests for module 'log2f'.
24576         * modules/log2f-tests: New file.
24577         * tests/test-log2f.c: New file.
24579         New module 'log2f'.
24580         * lib/math.in.h (log2f): New declaration.
24581         * lib/log2f.c: New file.
24582         * m4/log2f.m4: New file.
24583         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24585         REPLACE_LOG2F.
24586         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24587         REPLACE_LOG2F.
24588         * modules/log2f: New file.
24589         * tests/test-math-c++.cc: Check the declaration of log2f.
24590         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24591         and OSF/1 and Cygwin problems.
24593 2012-03-11  Bruno Haible  <bruno@clisp.org>
24595         Tests for module 'log2'.
24596         * modules/log2-tests: New file.
24597         * tests/test-log2.c: New file.
24598         * tests/test-log2.h: New file.
24600         New module 'log2'.
24601         * lib/math.in.h (log2): New declaration.
24602         * lib/log2.c: New file.
24603         * m4/log2.m4: New file.
24604         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24606         REPLACE_LOG2.
24607         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24608         REPLACE_LOG2.
24609         * modules/log2: New file.
24610         * tests/test-math-c++.cc: Check the declaration of log2.
24611         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24612         and OSF/1 and Cygwin problems.
24614 2012-03-11  Bruno Haible  <bruno@clisp.org>
24616         exp2* tests: More tests.
24617         * tests/test-exp2.h (test_function): Test all integral arguments that
24618         don't need to overflow or denormalized numbers.
24619         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24620         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24621         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24623 2012-03-10  Bruno Haible  <bruno@clisp.org>
24625         log1pl-ieee: Work around test failure on AIX 7.1.
24626         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24628         log1pl-ieee: Work around test failure on IRIX 6.5.
24629         * m4/log1pl-ieee.m4: New file.
24630         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24631         test whether log1pl works with a minus zero argument. Replace it if
24632         not.
24633         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24635         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24636         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24637         (Depends-on): Update conditions.
24638         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24639         m4/signbit.m4.
24640         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24641         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24643         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24644         * m4/log1pf-ieee.m4: New file.
24645         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24646         test whether log1pf works with a minus zero argument. Replace it if
24647         not.
24648         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24649         m4/signbit.m4.
24650         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24651         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24653         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24654         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24655         (configure.ac): Require gl_FUNC_LOG1PF.
24657         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24658         * m4/log1p-ieee.m4: New file.
24659         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24660         whether log1p works with a minus zero argument. Replace it if not.
24661         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24663         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24664         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24665         (Depends-on): Update conditions.
24666         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24667         m4/signbit.m4.
24668         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24669         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24671         Tests for module 'log1pl-ieee'.
24672         * modules/log1pl-ieee-tests: New file.
24673         * tests/test-log1pl-ieee.c: New file.
24675         New module 'log1pl-ieee'.
24676         * modules/log1pl-ieee: New file.
24678         Tests for module 'log1p-ieee'.
24679         * modules/log1p-ieee-tests: New file.
24680         * tests/test-log1p-ieee.c: New file.
24682         New module 'log1p-ieee'.
24683         * modules/log1p-ieee: New file.
24685         Tests for module 'log1pf-ieee'.
24686         * modules/log1pf-ieee-tests: New file.
24687         * tests/test-log1pf-ieee.c: New file.
24688         * tests/test-log1p-ieee.h: New file.
24690         New module 'log1pf-ieee'.
24691         * modules/log1pf-ieee: New file.
24693 2012-03-10  Bruno Haible  <bruno@clisp.org>
24695         Tests for module 'log1pl'.
24696         * modules/log1pl-tests: New file.
24697         * tests/test-log1pl.c: New file.
24699         New module 'log1pl'.
24700         * lib/math.in.h (log1pl): New declaration.
24701         * lib/log1pl.c: New file.
24702         * m4/log1pl.m4: New file.
24703         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24705         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24706         * modules/log1pl: New file.
24707         * tests/test-math-c++.cc: Check the declaration of log1pl.
24708         * doc/posix-functions/log1pl.texi: Mention the new module.
24710 2012-03-10  Bruno Haible  <bruno@clisp.org>
24712         Tests for module 'log1pf'.
24713         * modules/log1pf-tests: New file.
24714         * tests/test-log1pf.c: New file.
24716         New module 'log1pf'.
24717         * lib/math.in.h (log1pf): New declaration.
24718         * lib/log1pf.c: New file.
24719         * m4/log1pf.m4: New file.
24720         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24722         REPLACE_LOG1PF.
24723         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24724         REPLACE_LOG1PF.
24725         * modules/log1pf: New file.
24726         * tests/test-math-c++.cc: Check the declaration of log1pf.
24727         * doc/posix-functions/log1pf.texi: Mention the new module.
24729 2012-03-10  Bruno Haible  <bruno@clisp.org>
24731         log1p tests: More tests.
24732         * tests/test-log1p.h: New file.
24733         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24734         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24735         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24736         (main): Invoke test_function.
24738         log1p: Provide replacement for Minix and MSVC.
24739         * lib/math.in.h (log1p): New declaration.
24740         * lib/log1p.c: New file.
24741         * m4/log1p.m4: New file.
24742         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24744         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24745         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24746         (Depends-on): Add math, isnand, log, round.
24747         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24748         HAVE_LOG1P is 0.
24749         * tests/test-math-c++.cc: Check the declaration of log1p.
24750         * doc/posix-functions/log1p.texi: Mention the replacement.
24752 2012-03-10  Bruno Haible  <bruno@clisp.org>
24754         math tests: Small simplification.
24755         * tests/test-exp.h (test_function): Use the same err_bound for
24756         'double' on platforms with sizeof (long double) == sizeof (double)
24757         than on platforms with sizeof (long double) > sizeof (double).
24758         * tests/test-exp2.h (test_function): Likewise.
24759         * tests/test-expm1.h (test_function): Likewise.
24760         * tests/test-log.h (test_function): Likewise.
24762 2012-03-10  Bruno Haible  <bruno@clisp.org>
24764         Fix some comments.
24765         * lib/expl.c: Fix an ambiguous comment.
24766         * lib/expm1.c: Likewise.
24767         * lib/expm1l.c: Likewise.
24768         * lib/exp2.c: Likewise.
24769         * lib/exp2l.c: Likewise.
24771 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24773         regex: allow inclusion of <regex.h> before <limits.h>
24774         Without this patch, portable programs had to include <limits.h> before
24775         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24776         I ran into this problem with a test version of GNU grep on Solaris 8.
24777         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24778         This is done conditionally so that this change can be merged
24779         back to glibc.
24780         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24781         using the included regex.
24783         fts: depend on fdopendir
24784         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24785         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24786         problem was introduced when fdopendir was split out.
24788 2012-03-10  Bruno Haible  <bruno@clisp.org>
24790         Remove unused variables.
24791         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24792         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24794 2012-03-10  Bruno Haible  <bruno@clisp.org>
24796         isnanf-nolibm: Fix last commit.
24797         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24799         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24800         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24802 2012-03-10  Bruno Haible  <bruno@clisp.org>
24804         logf-ieee: Work around test failure on NetBSD 5.1.
24805         * m4/logf-ieee.m4: New file.
24806         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24807         whether logf works with a negative argument. Replace it if not.
24808         * lib/logf.c (logf): For negative arguments, return NaN.
24809         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24810         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24811         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24813         logf-ieee: Work around test failure on Solaris 9.
24814         * modules/logf-ieee (Depends-on): Add log-ieee.
24815         (configure.ac): Require gl_FUNC_LOGF.
24817         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24818         * m4/log-ieee.m4: New file.
24819         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24820         log works with a negative argument. Replace it if not.
24821         * lib/log.c (log): For negative arguments, return NaN.
24822         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24823         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24824         * doc/posix-functions/log.texi: Mention the log-ieee module.
24826         Tests for module 'logl-ieee'.
24827         * modules/logl-ieee-tests: New file.
24828         * tests/test-logl-ieee.c: New file.
24830         New module 'logl-ieee'.
24831         * modules/logl-ieee: New file.
24833         Tests for module 'log-ieee'.
24834         * modules/log-ieee-tests: New file.
24835         * tests/test-log-ieee.c: New file.
24837         New module 'log-ieee'.
24838         * modules/log-ieee: New file.
24840         Tests for module 'logf-ieee'.
24841         * modules/logf-ieee-tests: New file.
24842         * tests/test-logf-ieee.c: New file.
24843         * tests/test-log-ieee.h: New file.
24845         New module 'logf-ieee'.
24846         * modules/logf-ieee: New file.
24848 2012-03-10  Bruno Haible  <bruno@clisp.org>
24850         log: Fix bug introduced on 2012-03-09.
24851         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24853 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24855         timer-time: link explicitly with pthreads on glibc
24856         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24857         to support static linking, when newer glibc is
24858         detected, as that contains pthread emulation of
24859         POSIX timer functions where required.
24860         * modules/timer-time: Depend on threadlib to
24861         pull in the appropriate library to link.
24863 2012-03-10  Bruno Haible  <bruno@clisp.org>
24865         log* tests: More tests.
24866         * tests/test-log.h: New file.
24867         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24868         (main): Invoke test_function.
24869         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24870         (main): Invoke test_function.
24871         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24872         (main): Invoke test_function.
24873         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24874         tests/randomd.c.
24875         (Makefile.am): Add randomd.c to test_log_SOURCES.
24876         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24877         tests/randomf.c.
24878         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24879         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24880         tests/randoml.c.
24881         (Depends-on): Add 'float'.
24882         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24884 2012-03-09  Bruno Haible  <bruno@clisp.org>
24886         logl: Work around OSF/1 5.1 bug.
24887         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24888         * lib/logl.c (logl): If logl exists, use it and provide just the
24889         workaround.
24890         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24891         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24893         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24894         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24895         (Depends-on): Update conditions.
24896         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24898 2012-03-09  Bruno Haible  <bruno@clisp.org>
24900         logf: Work around OSF/1 5.1 bug.
24901         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24902         * lib/logf.c (logf): If logf exists, use it and provide just the
24903         workaround.
24904         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24905         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24907         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24908         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24909         (Depends-on): Update conditions.
24910         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24912 2012-03-09  Bruno Haible  <bruno@clisp.org>
24914         log: Work around OSF/1 5.1 bug.
24915         * lib/math.in.h (log): New declaration.
24916         * lib/log.c: New file.
24917         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24918         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24919         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24921         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24922         * modules/log (Files): Add lib/log.c.
24923         (Depends-on): Add math.
24924         (configure.ac): If REPLACE_LOG is 1, compile an override.
24925         * tests/test-math-c++.cc: Check the declaration of log.
24926         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24928 2012-03-09  Jim Meyering  <meyering@redhat.com>
24930         readtokens.c: adjust wording in a comment
24931         * lib/readtokens.c: Insert omitted "that" in a comment.
24933 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24935         modechange: add notations +40, 00440, etc.
24936         * lib/modechange.c (mode_compile): Support new notations
24937         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24939 2012-03-08  Bruno Haible  <bruno@clisp.org>
24941         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24942         * m4/exp2l-ieee.m4: New file.
24943         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24944         test whether exp2l works with a NaN argument and with a negative
24945         infinity argument. Replace it if not.
24946         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24948         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24949         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24950         (Depends-on): Update conditions.
24951         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24952         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24953         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24955         Tests for module 'exp2l-ieee'.
24956         * modules/exp2l-ieee-tests: New file.
24957         * tests/test-exp2l-ieee.c: New file.
24959         New module 'exp2l-ieee'.
24960         * modules/exp2l-ieee: New file.
24962         Tests for module 'exp2-ieee'.
24963         * modules/exp2-ieee-tests: New file.
24964         * tests/test-exp2-ieee.c: New file.
24966         New module 'exp2-ieee'.
24967         * modules/exp2-ieee: New file.
24969         Tests for module 'exp2f-ieee'.
24970         * modules/exp2f-ieee-tests: New file.
24971         * tests/test-exp2f-ieee.c: New file.
24972         * tests/test-exp2-ieee.h: New file.
24974         New module 'exp2f-ieee'.
24975         * modules/exp2f-ieee: New file.
24977 2012-03-08  Bruno Haible  <bruno@clisp.org>
24979         Tests for module 'exp2l'.
24980         * modules/exp2l-tests: New file.
24981         * tests/test-exp2l.c: New file.
24983         New module 'exp2l'.
24984         * lib/math.in.h (exp2l): New declaration.
24985         * lib/exp2l.c: New file.
24986         * lib/expl-table.c: New file, extracted from lib/expl.c.
24987         * lib/expl.c (gl_expl_table): New declaration.
24988         (expl): Remove expl_table. Update reference.
24989         * m4/exp2l.m4: New file.
24990         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24992         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24993         * modules/exp2l: New file.
24994         * modules/expl (Files): Add lib/expl-table.c.
24995         (configure.ac): Compile also expl-table.c.
24996         * tests/test-math-c++.cc: Check the declaration of exp2l.
24997         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24998         problem.
25000 2012-03-08  Bruno Haible  <bruno@clisp.org>
25002         Tests for module 'exp2f'.
25003         * modules/exp2f-tests: New file.
25004         * tests/test-exp2f.c: New file.
25006         New module 'exp2f'.
25007         * lib/math.in.h (exp2f): New declaration.
25008         * lib/exp2f.c: New file.
25009         * m4/exp2f.m4: New file.
25010         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
25011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
25012         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
25013         * modules/exp2f: New file.
25014         * tests/test-math-c++.cc: Check the declaration of exp2f.
25015         * doc/posix-functions/exp2f.texi: Mention the new module and the
25016         IRIX problem.
25018 2012-03-08  Bruno Haible  <bruno@clisp.org>
25020         Tests for module 'exp2'.
25021         * modules/exp2-tests: New file.
25022         * tests/test-exp2.c: New file.
25023         * tests/test-exp2.h: New file.
25025         New module 'exp2'.
25026         * lib/math.in.h (exp2): New declaration.
25027         * lib/exp2.c: New file.
25028         * m4/exp2.m4: New file.
25029         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
25030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
25031         REPLACE_EXP2.
25032         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
25033         REPLACE_EXP2.
25034         * modules/exp2: New file.
25035         * tests/test-math-c++.cc: Check the declaration of exp2.
25036         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
25037         and OpenBSD problems.
25039 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25041         savedir: fix comment typo
25042         * lib/savedir.c (savedirstream): Fix typo in comment.
25044 2012-03-08  Bruno Haible  <bruno@clisp.org>
25046         test-readtokens.c: use const; remove unwarranted cast
25047         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
25049 2012-03-08  Bruno Haible  <bruno@clisp.org>
25051         fmal: Avoid compilation error on AIX.
25052         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
25053         AIX 5.2..7.1.
25055 2012-03-08  Bruno Haible  <bruno@clisp.org>
25057         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
25058         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
25059         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
25060         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
25061         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
25062         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
25063         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
25065 2012-03-08  Bruno Haible  <bruno@clisp.org>
25067         remainderf: Override buggy system function on IRIX 6.5.
25068         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
25069         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
25070         when it exists.
25071         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
25073 2012-03-08  Jim Meyering  <meyering@redhat.com>
25075         test-readtokens.c: avoid const-related compilation warnings
25076         * tests/test-readtokens.c: Avoid const-related compilation warnings.
25078 2012-03-07  Jim Meyering  <meyering@redhat.com>
25079             Bruno Haible  <bruno@clisp.org>
25081         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
25082         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
25083         tests/randomd.c.
25084         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
25085         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
25086         tests/randoml.c.
25087         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
25089 2012-03-07  Bruno Haible  <bruno@clisp.org>
25091         expm1l: Avoid compilation error on AIX.
25092         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
25093         AIX 5.2..7.1.
25095 2012-03-07  Bruno Haible  <bruno@clisp.org>
25097         expm1l: Don't override undeclared system function on IRIX 6.5.
25098         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
25099         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
25100         it exists. Set HAVE_DECL_EXPM1L.
25101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
25102         HAVE_EXPM1L.
25103         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
25104         HAVE_EXPM1L.
25105         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
25107 2012-03-07  Bruno Haible  <bruno@clisp.org>
25109         remainderl: Don't override undeclared system function on IRIX 6.5.
25110         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
25111         HAVE_REMAINDERL.
25112         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
25113         declared when it exists. Set HAVE_DECL_REMAINDERL.
25114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
25115         not HAVE_REMAINDERL.
25116         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
25117         HAVE_REMAINDERL.
25118         * doc/posix-functions/remainderl.texi: Mention missing declaration
25119         problem.
25121 2012-03-07  Bruno Haible  <bruno@clisp.org>
25123         rintf: Don't override undeclared system function on IRIX 6.5.
25124         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25125         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25126         exists. Set HAVE_DECL_RINTF.
25127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25128         HAVE_RINTF.
25129         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25130         HAVE_RINTF.
25131         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25133 2012-03-07  Bruno Haible  <bruno@clisp.org>
25135         roundl: Avoid compilation error on AIX.
25136         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25137         AIX 5.2..7.1.
25139 2012-03-07  Bruno Haible  <bruno@clisp.org>
25141         roundl: Don't override undeclared system function on IRIX 6.5.
25142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25143         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25144         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25145         * modules/roundl (configure.ac): For replacement code, test
25146         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25147         (Depends-on): Update conditions.
25148         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25150 2012-03-07  Bruno Haible  <bruno@clisp.org>
25152         roundf: Don't override undeclared system function on IRIX 6.5.
25153         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25154         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25155         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25156         * modules/roundf (configure.ac): For replacement code, test
25157         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25158         (Depends-on): Update conditions.
25159         * modules/roundf-ieee (Depends-on): Update conditions.
25160         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25162 2012-03-07  Bruno Haible  <bruno@clisp.org>
25164         round: Don't override undeclared system function on IRIX 6.5.
25165         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25166         argument.
25167         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25168         also when it is not declared. Set HAVE_ROUND. For replacement code,
25169         test HAVE_ROUND, not HAVE_DECL_ROUND.
25170         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25171         not HAVE_DECL_ROUND.
25172         (Depends-on): Update conditions.
25173         * modules/round-ieee (Depends-on): Update conditions.
25174         * doc/posix-functions/round.texi: Mention the IRIX problem.
25176 2012-03-07  Bruno Haible  <bruno@clisp.org>
25178         copysignf: Don't override undeclared system function on IRIX 6.5.
25179         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25180         HAVE_COPYSIGNF.
25181         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25182         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25184         not HAVE_COPYSIGNF.
25185         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25186         HAVE_COPYSIGNF.
25187         * doc/posix-functions/copysignf.texi: Mention missing declaration
25188         problem.
25190 2012-03-07  Jim Meyering  <meyering@redhat.com>
25192         readtokens: add tests
25193         * modules/readtokens-tests: New file.
25194         * tests/test-readtokens.c: New file.
25196 2012-03-07  Jim Meyering  <meyering@redhat.com>
25198         quotearg: the module must now include quote.h
25199         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25200         So must the module.
25201         * modules/quotearg (Files): Add quote.h.
25203 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25205         readtokens: avoid core dumps with unusual calling patterns
25206         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25207         * lib/readtokens.c: Include limits.h.
25208         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25209         (readtoken): Don't cache the delimiters; the cache code was buggy
25210         if !delim && saved_delim, or if the new n_delim differs from the old.
25211         Also, it wasn't thread-safe.
25213 2012-03-07  Bruno Haible  <bruno@clisp.org>
25215         quote: Adhere to common module description layout.
25216         * modules/quote (Makefile.am): Add back empty section.
25218 2012-03-06  Akim Demaille  <demaille@gostai.com>
25220         quote: fuse into quotearg
25221         This patch is made for the benefit of Bison.
25222         quote does not leave the choice of the quoting style to the user.
25223         quoting_style provides poor customizability, yet quoting_options,
25224         which is very rich, is hidden inside quotearg.c.  So in order to
25225         allow quote customization, move its implementation to quotearg.c.
25226         * lib/quote.c: Remove.
25227         * modules/quote: Adjust.
25228         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25229         warning: provide all the members of literal structs.
25230         (quote_quoting_options): New.
25231         (quote, quote_n): Import implementation from quote.c.
25232         * lib/quote.h: Import the comments from quote.c.
25233         (quote_quoting_options): New.
25235 2012-03-06  Bruno Haible  <bruno@clisp.org>
25237         Tests for module 'expm1l-ieee'.
25238         * modules/expm1l-ieee-tests: New file.
25239         * tests/test-expm1l-ieee.c: New file.
25241         New module 'expm1l-ieee'.
25242         * modules/expm1l-ieee: New file.
25244         Tests for module 'expm1f-ieee'.
25245         * modules/expm1f-ieee-tests: New file.
25246         * tests/test-expm1f-ieee.c: New file.
25248         New module 'expm1f-ieee'.
25249         * modules/expm1f-ieee: New file.
25251         Tests for module 'expm1-ieee'.
25252         * modules/expm1-ieee-tests: New file.
25253         * tests/test-expm1-ieee.c: New file.
25254         * tests/test-expm1-ieee.h: New file.
25256         New module 'expm1-ieee'.
25257         * modules/expm1-ieee: New file.
25258         * m4/expm1-ieee.m4: New file.
25259         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25260         whether expm1 works with a minus zero argument. Replace it if not.
25261         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25263         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25264         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25265         (Depends-on): Update conditions.
25266         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25267         AIX problem.
25269 2012-03-06  Bruno Haible  <bruno@clisp.org>
25271         Work around expm1f bug on IRIX 6.5.
25272         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25273         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25274         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25275         not work.
25276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25277         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25278         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25279         (Depends-on): Update conditions.
25280         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25282 2012-03-06  Bruno Haible  <bruno@clisp.org>
25284         Tests for module 'expm1l'.
25285         * modules/expm1l-tests: New file.
25286         * tests/test-expm1l.c: New file.
25288         New module 'expm1l'.
25289         * lib/math.in.h (expm1l): New declaration.
25290         * lib/expm1l.c: New file.
25291         * m4/expm1l.m4: New file.
25292         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25294         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25295         * modules/expm1l: New file.
25296         * tests/test-math-c++.cc: Check the declaration of expm1l.
25297         * doc/posix-functions/expm1l.texi: Mention the new module.
25299 2012-03-06  Bruno Haible  <bruno@clisp.org>
25301         Tests for module 'expm1f'.
25302         * modules/expm1f-tests: New file.
25303         * tests/test-expm1f.c: New file.
25305         New module 'expm1f'.
25306         * lib/math.in.h (expm1f): New declaration.
25307         * lib/expm1f.c: New file.
25308         * m4/expm1f.m4: New file.
25309         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25311         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25312         * modules/expm1f: New file.
25313         * tests/test-math-c++.cc: Check the declaration of expm1f.
25314         * doc/posix-functions/expm1f.texi: Mention the new module.
25316 2012-03-06  Bruno Haible  <bruno@clisp.org>
25318         Tests for module 'expm1'.
25319         * modules/expm1-tests: New file.
25320         * tests/test-expm1.c: New file.
25321         * tests/test-expm1.h: New file.
25323         New module 'expm1'.
25324         * lib/math.in.h (expm1): New declaration.
25325         * lib/expm1.c: New file.
25326         * m4/expm1.m4: New file.
25327         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25329         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25330         * modules/expm1: New file.
25331         * tests/test-math-c++.cc: Check the declaration of expm1.
25332         * doc/posix-functions/expm1.texi: Mention the new module.
25334 2012-03-06  Bruno Haible  <bruno@clisp.org>
25336         math: Ensure declarations of math functions.
25337         * modules/acosf (Depends-on): Add 'extensions'.
25338         * modules/asinf (Depends-on): Likewise.
25339         * modules/atan2f (Depends-on): Likewise.
25340         * modules/atanf (Depends-on): Likewise.
25341         * modules/cbrt (Depends-on): Likewise.
25342         * modules/cbrtf (Depends-on): Likewise.
25343         * modules/cbrtl (Depends-on): Likewise.
25344         * modules/copysignf (Depends-on): Likewise.
25345         * modules/copysignl (Depends-on): Likewise.
25346         * modules/cosf (Depends-on): Likewise.
25347         * modules/coshf (Depends-on): Likewise.
25348         * modules/expf (Depends-on): Likewise.
25349         * modules/fabsf (Depends-on): Likewise.
25350         * modules/fabsl (Depends-on): Likewise.
25351         * modules/fmaf (Depends-on): Likewise.
25352         * modules/fmal (Depends-on): Likewise.
25353         * modules/fmodf (Depends-on): Likewise.
25354         * modules/fmodl (Depends-on): Likewise.
25355         * modules/frexpf (Depends-on): Likewise.
25356         * modules/frexpl (Depends-on): Likewise.
25357         * modules/hypot (Depends-on): Likewise.
25358         * modules/hypotf (Depends-on): Likewise.
25359         * modules/hypotl (Depends-on): Likewise.
25360         * modules/ldexpf (Depends-on): Likewise.
25361         * modules/ldexpl (Depends-on): Likewise.
25362         * modules/log10f (Depends-on): Likewise.
25363         * modules/log10l (Depends-on): Likewise.
25364         * modules/log1p (Depends-on): Likewise.
25365         * modules/logb (Depends-on): Likewise.
25366         * modules/logf (Depends-on): Likewise.
25367         * modules/modff (Depends-on): Likewise.
25368         * modules/modfl (Depends-on): Likewise.
25369         * modules/powf (Depends-on): Likewise.
25370         * modules/remainderf (Depends-on): Likewise.
25371         * modules/remainderl (Depends-on): Likewise.
25372         * modules/rintf (Depends-on): Likewise.
25373         * modules/rintl (Depends-on): Likewise.
25374         * modules/sinf (Depends-on): Likewise.
25375         * modules/sinhf (Depends-on): Likewise.
25376         * modules/sqrtf (Depends-on): Likewise.
25377         * modules/tanf (Depends-on): Likewise.
25378         * modules/tanhf (Depends-on): Likewise.
25379         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25380         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25381         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25382         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25383         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25384         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25385         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25386         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25387         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25388         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25389         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25390         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25391         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25392         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25393         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25394         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25395         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25396         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25397         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25398         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25399         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25400         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25401         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25402         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25404         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25405         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25406         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25407         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25408         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25409         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25410         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25411         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25412         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25413         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25414         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25415         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25416         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25417         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25418         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25419         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25421 2012-03-06  Bruno Haible  <bruno@clisp.org>
25423         math: Update module names in warnings.
25424         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25425         tanl): Use specific module name in warn-on-use warning.
25427 2012-03-06  Bruno Haible  <bruno@clisp.org>
25429         expl: Simplify computation.
25430         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25432 2012-03-05  Bruno Haible  <bruno@clisp.org>
25434         exp* tests: More tests.
25435         * tests/test-exp.h: New file.
25436         * tests/test-exp.c: Include <float.h> and test-exp.h.
25437         (main): Invoke test_function.
25438         * tests/test-expf.c: Include <float.h> and test-exp.h.
25439         (main): Invoke test_function.
25440         * tests/test-expl.c: Include <float.h> and test-exp.h.
25441         (main): Invoke test_function.
25442         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25443         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25444         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25445         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25446         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25447         (Depends-on): Add 'float'.
25448         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25450         expl: Fix precision of computed result.
25451         * lib/expl.c: Completely rewritten.
25452         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25453         (Maintainer): Add me.
25454         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25456 2012-03-05  Bruno Haible  <bruno@clisp.org>
25458         cbrt* tests: More tests.
25459         * tests/test-cbrt.h: New file.
25460         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25461         (main): Invoke test_function.
25462         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25463         (main): Invoke test_function.
25464         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25465         (main): Invoke test_function.
25466         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25467         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25468         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25469         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25470         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25471         (Depends-on): Add 'float'.
25472         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25474 2012-03-05  Bruno Haible  <bruno@clisp.org>
25476         hypot* tests: More tests.
25477         * tests/test-hypot.h: New file, partially extracted from
25478         tests/test-hypotl.c.
25479         * tests/test-hypot.c: Include test-hypot.h.
25480         (main): Invoke test_function.
25481         * tests/test-hypotf.c: Include test-hypot.h.
25482         (main): Invoke test_function.
25483         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25484         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25485         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25486         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25487         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25488         tests/randomf.c.
25489         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25490         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25491         tests/randoml.c.
25492         (Depends-on): Add 'fpucw', 'float'.
25493         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25495 2012-03-05  Bruno Haible  <bruno@clisp.org>
25497         fpucw: Doc about FreeBSD.
25498         * lib/fpucw.h: Mention FreeBSD in comments.
25500 2012-03-04  Bruno Haible  <bruno@clisp.org>
25502         sqrt* tests: More tests.
25503         * tests/test-sqrt.h: New file.
25504         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25505         (main): Invoke test_function.
25506         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25507         (main): Invoke test_function.
25508         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25509         (main): Invoke test_function.
25510         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25511         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25512         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25513         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25514         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25515         (Depends-on): Add 'float'.
25516         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25518 2012-03-04  Bruno Haible  <bruno@clisp.org>
25520         remainder* tests: More tests.
25521         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25522         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25523         (main): Invoke test_function.
25524         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25525         (main): Invoke test_function.
25526         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25527         (main): Invoke test_function.
25528         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25529         tests/randomd.c.
25530         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25531         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25532         tests/randomf.c.
25533         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25534         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25535         tests/randoml.c.
25536         (Depends-on): Add 'float'.
25537         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25539 2012-03-04  Bruno Haible  <bruno@clisp.org>
25541         remainder, remainderf, remainderl: Fix computation for large quotients.
25542         * lib/remainder.c: Completely rewritten.
25543         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25544         USE_FLOAT.
25545         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25546         USE_LONG_DOUBLE.
25547         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25548         isnand, isinf. Remove round, fma.
25549         * modules/remainderf (Files): Add lib/remainder.c.
25550         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25551         Remove roundf, fmaf.
25552         * modules/remainderl (Files): Add lib/remainder.c.
25553         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25554         isinf. Remove roundl, fmal.
25555         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25556         REMAINDER_LIBM.
25557         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25558         REMAINDERF_LIBM.
25559         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25560         REMAINDERL_LIBM.
25562 2012-03-04  Bruno Haible  <bruno@clisp.org>
25564         fmod* tests: More tests.
25565         * tests/test-fmod.h (my_ldexp): New function.
25566         (test_function): Reduce amount of random numbers to test. Add tests
25567         of very large quotients x / y.
25568         * tests/test-fmod.c (MAX_EXP): New macro.
25569         * tests/test-fmodf.c (MAX_EXP): Likewise.
25570         * tests/test-fmodl.c (MAX_EXP): Likewise.
25572 2012-03-04  Bruno Haible  <bruno@clisp.org>
25574         fmod, fmodl: Fix computation for large quotients x / y.
25575         * lib/fmod.c: Completely rewritten.
25576         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25577         USE_LONG_DOUBLE.
25578         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25579         isnand. Remove fma.
25580         * modules/fmodl (Files): Add lib/fmod.c.
25581         (Depends-on): Add float, isfinite, signbit, fabsl,
25582         frexpl, ldexpl, isnanl. Remove fma.
25583         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25584         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25586 2012-03-03  Bruno Haible  <bruno@clisp.org>
25588         fmod* tests: More tests.
25589         * tests/test-fmod.h: New file.
25590         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25591         (main): Invoke test_function.
25592         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25593         (main): Invoke test_function.
25594         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25595         (main): Invoke test_function.
25596         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25597         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25598         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25599         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25600         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25601         (Depends-on): Add 'float'.
25602         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25604 2012-03-03  Bruno Haible  <bruno@clisp.org>
25606         rint* tests: More tests.
25607         * tests/test-rint.h: New file, partially extracted from
25608         tests/test-rintl.c.
25609         * tests/test-rint.c: Include test-rint.h.
25610         (main): Invoke test_function.
25611         * tests/test-rintf.c: Include test-rint.h.
25612         (main): Invoke test_function.
25613         * tests/test-rintl.c: Include test-rint.h.
25614         (main): Invoke test_function.
25615         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25616         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25617         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25618         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25619         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25620         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25622 2012-03-03  Bruno Haible  <bruno@clisp.org>
25624         modf* tests: More tests.
25625         * tests/test-modf.h: New file.
25626         * tests/test-modf.c: Include <float.h> and test-modf.h.
25627         (main): Invoke test_function.
25628         * tests/test-modff.c: Include <float.h> and test-modf.h.
25629         (main): Invoke test_function.
25630         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25631         (main): Invoke test_function.
25632         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25633         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25634         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25635         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25636         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25637         (Depends-on): Add 'float'.
25638         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25640 2012-03-03  Bruno Haible  <bruno@clisp.org>
25642         fabs* tests: More tests.
25643         * tests/test-fabs.h: New file, partially extracted from
25644         tests/test-fabsl.c.
25645         * tests/test-fabs.c (RANDOM): New macro.
25646         * tests/test-fabsf.c (RANDOM): New macro.
25647         * tests/test-fabsl.c (RANDOM): New macro.
25648         * modules/fabs-tests (Files): Add tests/randomd.c.
25649         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25650         * modules/fabsf-tests (Files): Add tests/randomf.c.
25651         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25652         * modules/fabsl-tests (Files): Add tests/randoml.c.
25653         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25655 2012-03-03  Bruno Haible  <bruno@clisp.org>
25657         ldexp* tests: More tests.
25658         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25659         * tests/test-ldexp.c (RANDOM): New macro.
25660         * tests/test-ldexpf.c (RANDOM): New macro.
25661         * tests/test-ldexpl.c (RANDOM): New macro.
25662         * modules/ldexp-tests (Files): Add tests/randomd.c.
25663         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25664         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25665         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25666         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25667         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25669 2012-03-03  Bruno Haible  <bruno@clisp.org>
25671         frexp* tests: More tests.
25672         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25673         * tests/test-frexp.c (RANDOM): New macro.
25674         * tests/test-frexpf.c (RANDOM): New macro.
25675         * tests/test-frexpl.c (RANDOM): New macro.
25676         * modules/frexp-tests (Files): Add tests/randomd.c.
25677         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25678         * modules/frexpf-tests (Files): Add tests/randomf.c.
25679         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25680         * modules/frexpl-tests (Files): Add tests/randoml.c.
25681         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25683 2012-03-03  Bruno Haible  <bruno@clisp.org>
25685         Support for pseudo-random numbers in tests.
25686         * tests/randomf.c: New file.
25687         * tests/randomd.c: New file.
25688         * tests/randoml.c: New file.
25689         * tests/macros.h (randomf, randomd, randoml): New declarations.
25691 2012-03-03  Bruno Haible  <bruno@clisp.org>
25693         frexp* tests: Refactor.
25694         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25695         * tests/test-frexp.c: Include and use it.
25696         * tests/test-frexpf.c: Likewise.
25697         * tests/test-frexpl.c: Likewise.
25698         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25699         * modules/frexpf-tests (Files): Likewise.
25700         * modules/frexpl-tests (Files): Likewise.
25702 2012-03-02  Jim Meyering  <meyering@redhat.com>
25704         maint: don't specify XZ_OPT=-9ev in dist-related rule
25705         Using xz's -9 option is warranted only if you have a very large
25706         tarball (see xz's documentation for the sizes vs. presets), and
25707         requires 64MiB of memory at decompression time.
25708         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25709         Automake's default of just "-e" is fine.  Override on a
25710         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25712 2012-03-01  Eric Blake  <eblake@redhat.com>
25714         maint.mk: allow announcement for non-gnulib project
25715         * maint.mk (announcement): Skip gnulib version if not used.
25717 2012-03-01  Jim Meyering  <meyering@redhat.com>
25719         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25720         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25721         envvar settings cannot interfere.  Otherwise, setting envvars like
25722         prohibit=foo require=bar, etc. would cause spurious test failures.
25724 2012-03-01  Eric Blake  <eblake@redhat.com>
25726         maint.mk: add per-line exclusions to prohibitions
25727         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25728         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25729         (sc_const_long_option): Use it.
25731 2012-03-01  Bruno Haible  <bruno@clisp.org>
25733         Tests for module 'expl-ieee'.
25734         * modules/expl-ieee-tests: New file.
25735         * tests/test-expl-ieee.c: New file.
25737         New module 'expl-ieee'.
25738         * modules/expl-ieee: New file.
25740         Tests for module 'exp-ieee'.
25741         * modules/exp-ieee-tests: New file.
25742         * tests/test-exp-ieee.c: New file.
25744         New module 'exp-ieee'.
25745         * modules/exp-ieee: New file.
25747         Tests for module 'expf-ieee'.
25748         * modules/expf-ieee-tests: New file.
25749         * tests/test-expf-ieee.c: New file.
25750         * tests/test-exp-ieee.h: New file.
25752         New module 'expf-ieee'.
25753         * modules/expf-ieee: New file.
25755 2012-02-29  Bruno Haible  <bruno@clisp.org>
25757         cbrtl-ieee: Work around test failure on IRIX 6.5.
25758         * m4/cbrtl-ieee.m4: New file.
25759         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25760         test whether cbrtl works with a minus zero argument. Replace it if not.
25761         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25763         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25764         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25765         (Depends-on): Update conditions.
25766         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25767         m4/signbit.m4.
25768         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25769         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25770         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25772         Tests for module 'cbrtl-ieee'.
25773         * modules/cbrtl-ieee-tests: New file.
25774         * tests/test-cbrtl-ieee.c: New file.
25776         New module 'cbrtl-ieee'.
25777         * modules/cbrtl-ieee: New file.
25779         Tests for module 'cbrt-ieee'.
25780         * modules/cbrt-ieee-tests: New file.
25781         * tests/test-cbrt-ieee.c: New file.
25783         New module 'cbrt-ieee'.
25784         * modules/cbrt-ieee: New file.
25786         Tests for module 'cbrtf-ieee'.
25787         * modules/cbrtf-ieee-tests: New file.
25788         * tests/test-cbrtf-ieee.c: New file.
25789         * tests/test-cbrt-ieee.h: New file.
25791         New module 'cbrtf-ieee'.
25792         * modules/cbrtf-ieee: New file.
25794 2012-02-29  Bruno Haible  <bruno@clisp.org>
25796         cbrtf: Work around bug in IRIX 6.5 system function.
25797         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25798         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25799         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25800         work.
25801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25802         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25803         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25804         (Depends-on): Update conditions.
25805         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25807 2012-02-29  Bruno Haible  <bruno@clisp.org>
25809         Tests for module 'cbrtl'.
25810         * modules/cbrtl-tests: New file.
25811         * tests/test-cbrtl.c: New file.
25813         New module 'cbrtl'.
25814         * lib/math.in.h (cbrtl): New declaration.
25815         * lib/cbrtl.c: New file.
25816         * m4/cbrtl.m4: New file.
25817         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25819         HAVE_DECL_CBRTL.
25820         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25821         HAVE_DECL_CBRTL.
25822         * modules/cbrtl: New file.
25823         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25824         * doc/posix-functions/cbrtl.texi: Mention the new module.
25826 2012-02-29  Bruno Haible  <bruno@clisp.org>
25828         Tests for module 'cbrtf'.
25829         * modules/cbrtf-tests: New file.
25830         * tests/test-cbrtf.c: New file.
25832         New module 'cbrtf'.
25833         * lib/math.in.h (cbrtf): New declaration.
25834         * lib/cbrtf.c: New file.
25835         * m4/cbrtf.m4: New file.
25836         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25838         HAVE_DECL_CBRTF.
25839         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25840         HAVE_DECL_CBRTF.
25841         * modules/cbrtf: New file.
25842         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25843         * doc/posix-functions/cbrtf.texi: Mention the new module.
25845 2012-02-29  Bruno Haible  <bruno@clisp.org>
25847         cbrt: Provide replacement on MSVC and Minix.
25848         * lib/math.in.h (cbrt): New declaration.
25849         * lib/cbrt.c: New file.
25850         * m4/cbrt.m4: New file.
25851         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25853         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25854         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25855         (Depends-on): Add dependencies.
25856         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25857         * tests/test-math-c++.cc: Check the declaration of cbrt.
25858         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25859         replacement.
25861 2012-02-29  Bruno Haible  <bruno@clisp.org>
25863         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25864         * m4/hypotl-ieee.m4: New file.
25865         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25866         test whether hypotl works with mixed NaN and Infinity arguments.
25867         Replace it if not.
25868         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25870         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25871         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25872         (Depends-on): Update conditions.
25873         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25874         (Depends-on): Add hypot-ieee.
25875         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25876         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25878         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25879         * m4/hypotf-ieee.m4: New file.
25880         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25881         test whether hypotf works with mixed NaN and Infinity arguments.
25882         Replace it if not.
25883         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25884         (Depends-on): Add hypot-ieee.
25885         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25886         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25888         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25889         * lib/math.in.h (hypot): New declaration.
25890         * lib/hypot.c: New file.
25891         * m4/hypot-ieee.m4: New file.
25892         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25893         whether hypot works with mixed NaN and Infinity arguments. Replace it
25894         if not.
25895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25896         REPLACE_HYPOT.
25897         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25898         * modules/hypot (Files): Add lib/hypot.c.
25899         (Depends-on): Add dependencies.
25900         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25901         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25902         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25903         * tests/test-math-c++.cc: Check the declaration of hypot.
25904         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25906         Tests for module 'hypotl-ieee'.
25907         * modules/hypotl-ieee-tests: New file.
25908         * tests/test-hypotl-ieee.c: New file.
25910         New module 'hypotl-ieee'.
25911         * modules/hypotl-ieee: New file.
25913         Tests for module 'hypot-ieee'.
25914         * modules/hypot-ieee-tests: New file.
25915         * tests/test-hypot-ieee.c: New file.
25917         New module 'hypot-ieee'.
25918         * modules/hypot-ieee: New file.
25920         Tests for module 'hypotf-ieee'.
25921         * modules/hypotf-ieee-tests: New file.
25922         * tests/test-hypotf-ieee.c: New file.
25923         * tests/test-hypot-ieee.h: New file.
25925         New module 'hypotf-ieee'.
25926         * modules/hypotf-ieee: New file.
25928 2012-02-29  Bruno Haible  <bruno@clisp.org>
25930         Remove unused variables.
25931         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25932         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25933         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25934         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25936 2012-02-29  Eric Blake  <eblake@redhat.com>
25938         termios: fix pid_t always, not just for tcgetsid
25939         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25940         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25941         just when building tcgetsid.
25943 2012-02-29  Bruno Haible  <bruno@clisp.org>
25945         Tests for module 'hypotl'.
25946         * modules/hypotl-tests: New file.
25947         * tests/test-hypotl.c: New file.
25949         New module 'hypotl'.
25950         * lib/math.in.h (hypotl): New declaration.
25951         * lib/hypotl.c: New file.
25952         * m4/hypotl.m4: New file.
25953         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25955         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25956         * modules/hypotl: New file.
25957         * tests/test-math-c++.cc: Check the hypotl declaration.
25958         * doc/posix-functions/hypotl.texi: Mention the new module.
25960 2012-02-29  Eric Blake  <eblake@redhat.com>
25962         tcgetsid: fix cygwin header bug
25963         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25965         docs: update cygwin progress
25966         * doc/posix-functions/llround.texi (llround): Added in cygwin
25967         1.7.8.
25968         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25969         * doc/glibc-functions/program_invocation_name.texi
25970         (program_invocation_name): Likewise.
25971         * doc/glibc-functions/program_invocation_short_name.texi
25972         (program_invocation_short_name): Likewise.
25973         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25974         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25975         Likewise.
25976         * doc/posix-functions/pthread_spin_destroy.texi
25977         (pthread_spin_destroy): Added in cygwin 1.7.10.
25978         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25979         Likewise.
25980         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25981         Likewise.
25982         * doc/posix-functions/pthread_spin_trylock.texi
25983         (pthread_spin_trylock): Likewise.
25984         * doc/posix-functions/pthread_spin_unlock.texi
25985         (pthread_spin_unlock): Likewise.
25986         * doc/posix-functions/pthread_setschedprio.texi
25987         (pthread_setschedprio): Likewise.
25988         * doc/posix-functions/pthread_attr_getstack.texi
25989         (pthread_attr_getstack): Likewise.
25990         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25991         (pthread_attr_getstackaddr): Likewise.
25992         * doc/glibc-functions/pthread_getattr_np.texi
25993         (pthread_getattr_np): Likewise.
25994         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25995         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25996         * doc/posix-functions/clock_settime.texi (clock_settime):
25997         Likewise.
25998         * doc/posix-functions/pthread_attr_getguardsize.texi
25999         (pthread_attr_getguardsize): Likewise.
26000         * doc/posix-functions/pthread_attr_setguardsize.texi
26001         (pthread_attr_setguardsize): Likewise.
26002         * doc/posix-functions/pthread_attr_setstack.texi
26003         (pthread_attr_setstack): Likewise.
26004         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
26005         (pthread_attr_setstackaddr): Likewise.
26006         * doc/posix-functions/clock_getcpuclockid.texi
26007         (clock_getcpuclockid): Likewise.
26008         * doc/posix-functions/pthread_getcpuclockid.texi
26009         (pthread_getcpuclockid): Likewise.
26010         * doc/glibc-functions/error.texi (error): Likewise.
26011         * doc/glibc-functions/error_at_line.texi (error_at_line):
26012         Likewise.
26013         * doc/glibc-functions/error_message_count.texi
26014         (error_message_count): Likewise.
26015         * doc/glibc-functions/error_one_per_line.texi
26016         (error_one_per_line): Likewise.
26017         * doc/glibc-functions/error_print_progname.texi
26018         (error_print_progname): Likewise.
26019         * doc/posix-functions/pthread_condattr_getclock.texi
26020         (pthread_condattr_getclock): Likewise.
26021         * doc/posix-functions/pthread_condattr_setclock.texi
26022         (pthread_condattr_setclock): Likewise.
26023         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
26024         Likewise.
26025         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
26026         * doc/glibc-functions/getpt.texi (getpt): Likewise.
26027         * doc/glibc-functions/get_current_dir_name.texi
26028         (get_current_dir_name): Likewise.
26029         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
26030         Likewise.
26031         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
26032         wrong return type.
26033         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
26034         1.7.11.
26036 2012-02-29  Bruno Haible  <bruno@clisp.org>
26038         Tests for module 'hypotf'.
26039         * modules/hypotf-tests: New file.
26040         * tests/test-hypotf.c: New file.
26042         New module 'hypotf'.
26043         * lib/math.in.h (hypotf): New declaration.
26044         * lib/hypotf.c: New file.
26045         * m4/hypotf.m4: New file.
26046         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
26048         REPLACE_HYPOTF.
26049         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
26050         REPLACE_HYPOTF.
26051         * modules/hypotf: New file.
26052         * tests/test-math-c++.cc: Check the hypotf declaration.
26053         * doc/posix-functions/hypotf.texi: Mention the new module.
26055         hypot: Prepare for hypotf module.
26056         * m4/hypot.m4: New file.
26057         * modules/hypot (Files): Add m4/hypot.m4.
26058         (configure.ac): Invoke gl_FUNC_HYPOT.
26060 2012-02-29  Bruno Haible  <bruno@clisp.org>
26062         hypot tests: More tests.
26063         * tests/test-hypot.c: Include <float.h>.
26064         (main): Add tests about overflow and underflow.
26066 2012-02-29  Bruno Haible  <bruno@clisp.org>
26068         math code: Add comments.
26069         * lib/acosl.c: Add comment about related glibc source files.
26070         * lib/asinl.c: Likewise.
26071         * lib/atanl.c: Likewise.
26072         * lib/expl.c: Likewise.
26073         * lib/logl.c: Likewise.
26074         * lib/sincosl.c: Likewise.
26075         * lib/sinl.c: Likewise.
26076         * lib/tanl.c: Likewise.
26077         * lib/trigl.c: Likewise.
26078         * lib/cosl.c: Likewise. Fix comments.
26080 2012-02-28  Bruno Haible  <bruno@clisp.org>
26082         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
26083         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
26084         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
26085         HUGE_VALL are defined.
26086         (numeric_equald): Renamed from numeric_equal.
26087         (numeric_equalf, numeric_equall): New functions.
26088         (main): Check also HUGE_VALF, HUGE_VALL.
26089         * modules/math-tests (Files): Add tests/macros.h.
26090         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
26091         HUGE_VALL.
26093 2012-02-28  Bruno Haible  <bruno@clisp.org>
26095         doc: Move ISO C11 feature notes into POSIX chapters.
26096         * doc/posix-functions/aligned_alloc.texi: Renamed from
26097         doc/glibc-functions/aligned_alloc.texi.
26098         * doc/posix-functions/quick_exit.texi: Renamed from
26099         doc/glibc-functions/quick_exit.texi.
26100         * doc/posix-headers/uchar.texi: Renamed from
26101         doc/glibc-headers/uchar.texi.
26102         * doc/posix-functions/c16rtomb.texi: Renamed from
26103         doc/glibc-functions/c16rtomb.texi.
26104         * doc/posix-functions/c32rtomb.texi: Renamed from
26105         doc/glibc-functions/c32rtomb.texi.
26106         * doc/posix-functions/mbrtoc16.texi: Renamed from
26107         doc/glibc-functions/mbrtoc16.texi.
26108         * doc/posix-functions/mbrtoc32.texi: Renamed from
26109         doc/glibc-functions/mbrtoc32.texi.
26110         * doc/gnulib.texi: Update.
26111         (Glibc uchar.h): Remove section.
26112         Suggested by Eric Blake.
26114 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
26116         stdnoreturn: port to MSVC better
26117         MSVC standard headers use __declspec(noreturn), so #define noreturn
26118         to empty on that platform.  Reported by Bruno Haible in
26119         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
26120         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
26121         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
26123 2012-02-28  Bruno Haible  <bruno@clisp.org>
26125         doc: Mention new glibc headers and functions.
26126         * doc/glibc-headers/uchar.texi: New file.
26127         * doc/glibc-functions/aligned_alloc.texi: New file.
26128         * doc/glibc-functions/c16rtomb.texi: New file.
26129         * doc/glibc-functions/c32rtomb.texi: New file.
26130         * doc/glibc-functions/clock_adjtime.texi: New file.
26131         * doc/glibc-functions/fanotify_init.texi: New file.
26132         * doc/glibc-functions/fanotify_mark.texi: New file.
26133         * doc/glibc-functions/inet6_opt_append.texi: New file.
26134         * doc/glibc-functions/inet6_opt_find.texi: New file.
26135         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26136         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26137         * doc/glibc-functions/inet6_opt_init.texi: New file.
26138         * doc/glibc-functions/inet6_opt_next.texi: New file.
26139         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26140         * doc/glibc-functions/inet6_rth_add.texi: New file.
26141         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26142         * doc/glibc-functions/inet6_rth_init.texi: New file.
26143         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26144         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26145         * doc/glibc-functions/inet6_rth_space.texi: New file.
26146         * doc/glibc-functions/login.texi: New file.
26147         * doc/glibc-functions/mbrtoc16.texi: New file.
26148         * doc/glibc-functions/mbrtoc32.texi: New file.
26149         * doc/glibc-functions/name_to_handle_at.texi: New file.
26150         * doc/glibc-functions/ntp_gettimex.texi: New file.
26151         * doc/glibc-functions/open_by_handle_at.texi: New file.
26152         * doc/glibc-functions/prlimit.texi: New file.
26153         * doc/glibc-functions/process_vm_readv.texi: New file.
26154         * doc/glibc-functions/process_vm_writev.texi: New file.
26155         * doc/glibc-functions/recvmmsg.texi: New file.
26156         * doc/glibc-functions/scandirat.texi: New file.
26157         * doc/glibc-functions/sendmmsg.texi: New file.
26158         * doc/glibc-functions/setns.texi: New file.
26159         * doc/glibc-functions/timespec_get.texi: New file.
26160         * doc/gnulib.texi: Include them.
26161         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26162         sections.
26163         Reported by Eric Blake.
26165 2012-02-28  Bruno Haible  <bruno@clisp.org>
26167         Avoid compilation errors with MSVC option -fp:strict.
26168         * lib/floor.c: Use MSVC specific pragma fenv_access.
26169         * lib/ceil.c: Likewise.
26170         * lib/trunc.c: Likewise.
26171         * lib/round.c: Likewise.
26172         * lib/rint.c: Likewise.
26173         * lib/fma.c: Likewise.
26174         * lib/integer_length.c: Likewise.
26175         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26177         * tests/test-floor2.c: Likewise.
26178         * tests/test-floorf2.c: Likewise.
26179         * tests/test-ceil2.c: Likewise.
26180         * tests/test-ceilf2.c: Likewise.
26181         * tests/test-trunc2.c: Likewise.
26182         * tests/test-truncf2.c: Likewise.
26183         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26185 2012-02-27  Bruno Haible  <bruno@clisp.org>
26187         Tests for module 'sqrtl-ieee'.
26188         * modules/sqrtl-ieee-tests: New file.
26189         * tests/test-sqrtl-ieee.c: New file.
26191         New module 'sqrtl-ieee'.
26192         * modules/sqrtl-ieee: New file.
26194         Tests for module 'sqrt-ieee'.
26195         * modules/sqrt-ieee-tests: New file.
26196         * tests/test-sqrt-ieee.c: New file.
26198         New module 'sqrt-ieee'.
26199         * modules/sqrt-ieee: New file.
26201         Tests for module 'sqrtf-ieee'.
26202         * modules/sqrtf-ieee-tests: New file.
26203         * tests/test-sqrtf-ieee.c: New file.
26204         * tests/test-sqrt-ieee.h: New file.
26206         New module 'sqrtf-ieee'.
26207         * modules/sqrtf-ieee: New file.
26209 2012-02-27  Bruno Haible  <bruno@clisp.org>
26211         remainderl-ieee: Work around test failure on OSF/1.
26212         * m4/remainderl-ieee.m4: New file.
26213         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26214         present, test whether remainderl works with a zero second argument.
26215         Replace it if not.
26216         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26218         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26219         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26220         (Depends-on): Update conditions.
26221         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26222         (Depends-on): Add remainder-ieee.
26223         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26224         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26225         module.
26227         remainderf-ieee: Work around test failure on OSF/1.
26228         * m4/remainderf-ieee.m4: New file.
26229         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26230         present, test whether remainderf works with a zero second argument.
26231         Replace it if not.
26232         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26234         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26235         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26236         (Depends-on): Update conditions.
26237         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26238         (Depends-on): Add remainder-ieee.
26239         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26240         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26241         module.
26243         remainder-ieee: Work around test failure on OSF/1.
26244         * m4/remainder-ieee.m4: New file.
26245         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26246         present, test whether remainder works with a zero second argument.
26247         Replace it if not.
26248         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26250         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26251         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26252         (Depends-on): Update dependencies.
26253         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26254         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26255         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26257         Tests for module 'remainderl-ieee'.
26258         * modules/remainderl-ieee-tests: New file.
26259         * tests/test-remainderl-ieee.c: New file.
26261         New module 'remainderl-ieee'.
26262         * modules/remainderl-ieee: New file.
26264         Tests for module 'remainder-ieee'.
26265         * modules/remainder-ieee-tests: New file.
26266         * tests/test-remainder-ieee.c: New file.
26268         New module 'remainder-ieee'.
26269         * modules/remainder-ieee: New file.
26271         Tests for module 'remainderf-ieee'.
26272         * modules/remainderf-ieee-tests: New file.
26273         * tests/test-remainderf-ieee.c: New file.
26274         * tests/test-remainder-ieee.h: New file.
26276         New module 'remainderf-ieee'.
26277         * modules/remainderf-ieee: New file.
26279 2012-02-27  Bruno Haible  <bruno@clisp.org>
26281         modff, modfl: Fix configure syntax error.
26282         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26283         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26285 2012-02-27  Bruno Haible  <bruno@clisp.org>
26287         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26288         * m4/fmodl-ieee.m4: New file.
26289         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26290         whether fmodl works with zero arguments. Replace it if not.
26291         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26292         (Depends-on): Add fmod-ieee.
26293         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26294         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26296         fmodf-ieee: Work around test failure on OSF/1.
26297         * m4/fmodf-ieee.m4: New file.
26298         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26299         whether fmodf works with zero arguments. Replace it if not.
26300         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26302         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26303         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26304         (Depends-on): Update dependencies.
26305         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26306         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26307         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26309         fmodf-ieee: Work around test failure on MSVC 9.
26310         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26311         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26313         fmod-ieee: Work around test failures on OSF/1, mingw.
26314         * m4/fmod-ieee.m4: New file.
26315         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26316         whether fmod works with zero arguments. Replace it if not.
26317         * lib/math.in.h (fmod): New declaration.
26318         * lib/fmod.c: New file.
26319         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26321         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26322         * modules/fmod (Files): Add lib/fmod.c.
26323         (Depends-on): Add math, isinf, trunc, fma.
26324         (configure.ac): Arrange to compile lib/fmod.c if needed.
26325         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26326         m4/signbit.m4.
26327         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26328         * tests/test-math-c++.cc: Check the declaration of fmod.
26329         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26331         fmodl-ieee: Fix test failures.
26332         * lib/fmodl.c (fmodl): Treat Inf specially.
26333         * modules/fmodl (Depends-on): Add isinf.
26335         Tests for module 'fmodl-ieee'.
26336         * modules/fmodl-ieee-tests: New file.
26337         * tests/test-fmodl-ieee.c: New file.
26339         New module 'fmodl-ieee'.
26340         * modules/fmodl-ieee: New file.
26342         Tests for module 'fmod-ieee'.
26343         * modules/fmod-ieee-tests: New file.
26344         * tests/test-fmod-ieee.c: New file.
26346         New module 'fmod-ieee'.
26347         * modules/fmod-ieee: New file.
26349         Tests for module 'fmodf-ieee'.
26350         * modules/fmodf-ieee-tests: New file.
26351         * tests/test-fmodf-ieee.c: New file.
26352         * tests/test-fmod-ieee.h: New file.
26354         New module 'fmodf-ieee'.
26355         * modules/fmodf-ieee: New file.
26357 2012-02-27  Bruno Haible  <bruno@clisp.org>
26359         Tests for module 'rintl-ieee'.
26360         * modules/rintl-ieee-tests: New file.
26361         * tests/test-rintl-ieee.c: New file.
26363         New module 'rintl-ieee'.
26364         * modules/rintl-ieee: New file.
26366         Tests for module 'rint-ieee'.
26367         * modules/rint-ieee-tests: New file.
26368         * tests/test-rint-ieee.c: New file.
26370         New module 'rint-ieee'.
26371         * modules/rint-ieee: New file.
26373         Tests for module 'rintf-ieee'.
26374         * modules/rintf-ieee-tests: New file.
26375         * tests/test-rintf-ieee.c: New file.
26376         * tests/test-rint-ieee.h: New file.
26378         New module 'rintf-ieee'.
26379         * modules/rintf-ieee: New file.
26381 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26383         regex: re_search etc. should return -2 when memory exhausted
26384         This bug was uncovered when testing 'grep'.  Without the fix,
26385         re_search and friends return -1 when memory is exhausted, but -1
26386         means no match, and this causes grep to falsely report no-match
26387         instead of memory-exhaustion.  See
26388         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26389         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26390         trouble; this can occur if re_search_internal ran out of memory.
26392 2012-02-26  Bruno Haible  <bruno@clisp.org>
26394         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26395         * m4/modfl-ieee.m4: New file.
26396         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26397         whether modfl works with Inf. Replace it if not.
26398         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26400         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26401         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26402         (Depends-on): Update dependencies.
26403         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26404         m4/signbit.m4.
26405         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26406         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26408         modfl-ieee: Fix dependencies.
26409         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26411         modfl-ieee: Fix test failures.
26412         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26413         * modules/modfl (Depends-on): Add isfinite, isinf.
26415         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26416         * m4/modff-ieee.m4: New file.
26417         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26418         whether modff works with NaN and Inf. Replace it if not.
26419         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26421         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26422         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26423         (Depends-on): Update dependencies.
26424         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26425         m4/signbit.m4.
26426         (Depends-on): Add modf-ieee.
26427         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26428         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26430         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26431         * m4/modf-ieee.m4: New file.
26432         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26433         whether modf works with NaN and Inf. Replace it if not.
26434         * lib/math.in.h (modf): New declaration.
26435         * lib/modf.c: New file.
26436         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26438         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26439         * modules/modf (Files): Add lib/modf.c.
26440         (Depends-on): Add math, isfinite, trunc, isinf.
26441         (configure.ac): Addrange to compile lib/modf.c if needed.
26442         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26443         m4/signbit.m4.
26444         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26445         * tests/test-math-c++.cc: Check the declaration of modf.
26446         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26448         Tests for module 'modfl-ieee'.
26449         * modules/modfl-ieee-tests: New file.
26450         * tests/test-modfl-ieee.c: New file.
26452         New module 'modfl-ieee'.
26453         * modules/modfl-ieee: New file.
26455         Tests for module 'modf-ieee'.
26456         * modules/modf-ieee-tests: New file.
26457         * tests/test-modf-ieee.c: New file.
26459         New module 'modf-ieee'.
26460         * modules/modf-ieee: New file.
26462         Tests for module 'modff-ieee'.
26463         * modules/modff-ieee-tests: New file.
26464         * tests/test-modff-ieee.c: New file.
26465         * tests/test-modf-ieee.h: New file.
26467         New module 'modff-ieee'.
26468         * modules/modff-ieee: New file.
26470 2012-02-26  Bruno Haible  <bruno@clisp.org>
26472         Tests for module 'fabsl-ieee'.
26473         * modules/fabsl-ieee-tests: New file.
26474         * tests/test-fabsl-ieee.c: New file.
26476         New module 'fabsl-ieee'.
26477         * modules/fabsl-ieee: New file.
26479         Tests for module 'fabs-ieee'.
26480         * modules/fabs-ieee-tests: New file.
26481         * tests/test-fabs-ieee.c: New file.
26483         New module 'fabs-ieee'.
26484         * modules/fabs-ieee: New file.
26486         Tests for module 'fabsf-ieee'.
26487         * modules/fabsf-ieee-tests: New file.
26488         * tests/test-fabsf-ieee.c: New file.
26489         * tests/test-fabs-ieee.h: New file.
26491         New module 'fabsf-ieee'.
26492         * modules/fabsf-ieee: New file.
26494 2012-02-26  Bruno Haible  <bruno@clisp.org>
26496         Tests for module 'fmal-ieee'.
26497         * modules/fmal-ieee-tests: New file.
26498         * tests/test-fmal-ieee.c: New file.
26500         New module 'fmal-ieee'.
26501         * modules/fmal-ieee: New file.
26503         Tests for module 'fma-ieee'.
26504         * modules/fma-ieee-tests: New file.
26505         * tests/test-fma-ieee.c: New file.
26507         New module 'fma-ieee'.
26508         * modules/fma-ieee: New file.
26510         Tests for module 'fmaf-ieee'.
26511         * modules/fmaf-ieee-tests: New file.
26512         * tests/test-fmaf-ieee.c: New file.
26513         * tests/test-fma-ieee.h: New file.
26515         New module 'fmaf-ieee'.
26516         * modules/fmaf-ieee: New file.
26518 2012-02-26  Bruno Haible  <bruno@clisp.org>
26520         Tests for module 'ldexpl-ieee'.
26521         * modules/ldexpl-ieee-tests: New file.
26522         * tests/test-ldexpl-ieee.c: New file.
26524         New module 'ldexpl-ieee'.
26525         * modules/ldexpl-ieee: New file.
26527         Tests for module 'ldexp-ieee'.
26528         * modules/ldexp-ieee-tests: New file.
26529         * tests/test-ldexp-ieee.c: New file.
26531         New module 'ldexp-ieee'.
26532         * modules/ldexp-ieee: New file.
26534         Tests for module 'ldexpf-ieee'.
26535         * modules/ldexpf-ieee-tests: New file.
26536         * tests/test-ldexpf-ieee.c: New file.
26537         * tests/test-ldexp-ieee.h: New file.
26539         New module 'ldexpf-ieee'.
26540         * modules/ldexpf-ieee: New file.
26542 2012-02-26  Bruno Haible  <bruno@clisp.org>
26544         Refactor frexp*-ieee tests.
26545         * tests/test-frexp-ieee.h: New file.
26546         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26547         (main): Just call test_function.
26548         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26549         (main): Just call test_function.
26550         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26551         (main): Just call test_function.
26552         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26553         * modules/frexp-ieee-tests (Files): Likewise.
26554         * modules/frexpl-ieee-tests (Files): Likewise.
26556         Tests for module 'frexpl-ieee'.
26557         * modules/frexpl-ieee-tests: New file.
26558         * tests/test-frexpl-ieee.c: New file.
26560         New module 'frexpl-ieee'.
26561         * modules/frexpl-ieee: New file.
26563         Tests for module 'frexp-ieee'.
26564         * modules/frexp-ieee-tests: New file.
26565         * tests/test-frexp-ieee.c: New file.
26567         New module 'frexp-ieee'.
26568         * modules/frexp-ieee: New file.
26570         Tests for module 'frexpf-ieee'.
26571         * modules/frexpf-ieee-tests: New file.
26572         * tests/test-frexpf-ieee.c: New file.
26574         New module 'frexpf-ieee'.
26575         * modules/frexpf-ieee: New file.
26577 2012-02-26  Bruno Haible  <bruno@clisp.org>
26579         roundl-ieee tests: More tests.
26580         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26581         (main): Add tests for [MX] shaded specification in POSIX.
26582         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26583         (Depends-on): Add isnanl-nolibm.
26585         round-ieee tests: More tests.
26586         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26587         (main): Add tests for [MX] shaded specification in POSIX.
26588         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26589         (Depends-on): Add isnand-nolibm.
26591         roundf-ieee tests: More tests.
26592         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26593         (main): Add tests for [MX] shaded specification in POSIX.
26594         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26595         (Depends-on): Add isnanf-nolibm.
26597         truncl-ieee tests: More tests.
26598         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26599         (main): Add tests for [MX] shaded specification in POSIX.
26600         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26601         (Depends-on): Add isnanl-nolibm.
26603         trunc-ieee tests: More tests.
26604         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26605         (main): Add tests for [MX] shaded specification in POSIX.
26606         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26607         (Depends-on): Add isnand-nolibm.
26609         truncf-ieee tests: More tests.
26610         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26611         (main): Add tests for [MX] shaded specification in POSIX.
26612         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26613         (Depends-on): Add isnanf-nolibm.
26615         ceill-ieee tests: More tests.
26616         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26617         (main): Add tests for [MX] shaded specification in POSIX.
26618         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26619         (Depends-on): Add isnanl-nolibm.
26621         ceil-ieee tests: More tests.
26622         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26623         (main): Add tests for [MX] shaded specification in POSIX.
26624         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26625         (Depends-on): Add isnand-nolibm.
26627         ceilf-ieee tests: More tests.
26628         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26629         (main): Add tests for [MX] shaded specification in POSIX.
26630         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26631         (Depends-on): Add isnanf-nolibm.
26633         floorl-ieee tests: More tests.
26634         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26635         (main): Add tests for [MX] shaded specification in POSIX.
26636         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26637         (Depends-on): Add isnanl-nolibm.
26639         floor-ieee tests: More tests.
26640         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26641         (main): Add tests for [MX] shaded specification in POSIX.
26642         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26643         (Depends-on): Add isnand-nolibm.
26645         floorf-ieee tests: More tests.
26646         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26647         (main): Add tests for [MX] shaded specification in POSIX.
26648         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26649         (Depends-on): Add isnanf-nolibm.
26651 2012-02-26  Bruno Haible  <bruno@clisp.org>
26653         fpieee: More comments.
26654         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26656 2012-02-25  Bruno Haible  <bruno@clisp.org>
26658         Tests for module 'log10l'.
26659         * modules/log10l-tests: New file.
26660         * tests/test-log10l.c: New file.
26661         * tests/test-math-c++.cc: Check the declaration of log10l.
26663         New module 'log10l'.
26664         * lib/math.in.h (log10l): New declaration.
26665         * lib/log10l.c: New file.
26666         * m4/log10l.m4: New file.
26667         * modules/log10l: New file.
26668         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26670         HAVE_DECL_LOG10L.
26671         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26672         HAVE_DECL_LOG10L.
26673         * doc/posix-functions/log10l.texi: Mention the new module.
26675 2012-02-25  Bruno Haible  <bruno@clisp.org>
26677         fmodl, remainder*: Avoid wrong results due to rounding errors.
26678         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26679         expected bounds.
26680         * lib/remainderf.c (remainderf): Likewise.
26681         * lib/remainder.c (remainder): Likewise.
26682         * lib/remainderl.c (remainderl): Likewise.
26684 2012-02-25  Bruno Haible  <bruno@clisp.org>
26686         Tests for module 'remainderl'.
26687         * modules/remainderl-tests: New file.
26688         * tests/test-remainderl.c: New file.
26689         * tests/test-math-c++.cc: Check the declaration of remainderl.
26691         New module 'remainderl'.
26692         * lib/math.in.h (remainderl): New declaration.
26693         * lib/remainderl.c: New file.
26694         * m4/remainderl.m4: New file.
26695         * modules/remainderl: New file.
26696         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26698         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26699         HAVE_REMAINDERL.
26700         * doc/posix-functions/remainderl.texi: Mention the new module.
26702 2012-02-25  Bruno Haible  <bruno@clisp.org>
26704         Tests for module 'remainderf'.
26705         * modules/remainderf-tests: New file.
26706         * tests/test-remainderf.c: New file.
26707         * tests/test-math-c++.cc: Check the declaration of remainderf.
26709         New module 'remainderf'.
26710         * lib/math.in.h (remainderf): New declaration.
26711         * lib/remainderf.c: New file.
26712         * m4/remainderf.m4: New file.
26713         * modules/remainderf: New file.
26714         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26716         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26717         HAVE_REMAINDERF.
26718         * doc/posix-functions/remainderf.texi: Mention the new module.
26720 2012-02-25  Bruno Haible  <bruno@clisp.org>
26722         remainder: Support for MSVC.
26723         * lib/math.in.h (remainder): New declaration.
26724         * lib/remainder.c: New file.
26725         * m4/remainder.m4: New file.
26726         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26727         (Depends-on): Add math, round, fma.
26728         (configure.ac): Use results of gl_FUNC_REMAINDER.
26729         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26731         HAVE_DECL_REMAINDER.
26732         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26733         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26734         * tests/test-math-c++.cc: Check the declaration of remainder.
26735         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26736         problems are fixed.
26738 2012-02-25  Bruno Haible  <bruno@clisp.org>
26740         Tests for module 'fmodl'.
26741         * modules/fmodl-tests: New file.
26742         * tests/test-fmodl.c: New file.
26743         * tests/test-math-c++.cc: Check the declaration of fmodl.
26745         New module 'fmodl'.
26746         * lib/math.in.h (fmodl): New declaration.
26747         * lib/fmodl.c: New file.
26748         * m4/fmodl.m4: New file.
26749         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26751         REPLACE_FMODL.
26752         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26753         REPLACE_FMODL.
26754         * modules/fmodl: New file.
26755         * doc/posix-functions/fmodl.texi: Mention the new module.
26757 2012-02-25  Bruno Haible  <bruno@clisp.org>
26759         Tests for module 'modfl'.
26760         * modules/modfl-tests: New file.
26761         * tests/test-modfl.c: New file.
26762         * tests/test-math-c++.cc: Check the declaration of modfl.
26764         New module 'modfl'.
26765         * lib/math.in.h (modfl): New declaration.
26766         * lib/modfl.c: New file.
26767         * m4/modfl.m4: New file.
26768         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26770         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26771         * modules/modfl: New file.
26772         * doc/posix-functions/modfl.texi: Mention the new module.
26774 2012-02-25  Bruno Haible  <bruno@clisp.org>
26776         Tests for module 'fabsl'.
26777         * modules/fabsl-tests: New file.
26778         * tests/test-fabsl.c: New file.
26779         * tests/test-math-c++.cc: Check the declaration of fabsl.
26781         New module 'fabsl'.
26782         * lib/math.in.h (fabsl): New declaration.
26783         * lib/fabsl.c: New file.
26784         * m4/fabsl.m4: New file.
26785         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26787         REPLACE_FABSL.
26788         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26789         REPLACE_FABSL.
26790         * modules/fabsl: New file.
26791         * doc/posix-functions/fabsl.texi: Mention the new module.
26793 2012-02-25  Bruno Haible  <bruno@clisp.org>
26795         fabs tests: More tests.
26796         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26797         (zero): New variable.
26798         (main): Add tests for signed zero.
26799         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26801         fabsf tests: More tests.
26802         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26803         (zero): New variable.
26804         (main): Add tests for signed zero.
26805         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26807 2012-02-24  Bruno Haible  <bruno@clisp.org>
26809         atanl: Provide function definition on MSVC.
26810         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26811         function pointer.
26812         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26814 2012-02-24  Bruno Haible  <bruno@clisp.org>
26816         acosl: Provide function definition on MSVC.
26817         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26818         function pointer.
26819         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26821 2012-02-24  Bruno Haible  <bruno@clisp.org>
26823         asinl: Provide function definition on MSVC.
26824         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26825         function pointer.
26826         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26828 2012-02-24  Bruno Haible  <bruno@clisp.org>
26830         tanl: Provide function definition on MSVC.
26831         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26832         function pointer.
26833         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26835 2012-02-24  Bruno Haible  <bruno@clisp.org>
26837         cosl: Provide function definition on MSVC.
26838         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26839         function pointer.
26840         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26842 2012-02-24  Bruno Haible  <bruno@clisp.org>
26844         sinl: Provide function definition on MSVC.
26845         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26846         function pointer.
26847         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26849 2012-02-24  Bruno Haible  <bruno@clisp.org>
26851         logl: Provide function definition on MSVC.
26852         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26853         function pointer.
26854         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26856 2012-02-24  Bruno Haible  <bruno@clisp.org>
26858         expl: Provide function definition on MSVC.
26859         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26860         function pointer.
26861         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26863 2012-02-24  Bruno Haible  <bruno@clisp.org>
26865         sqrtl: Provide function definition on MSVC.
26866         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26867         a function pointer.
26868         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26870 2012-02-24  Bruno Haible  <bruno@clisp.org>
26872         ceill: Provide function definition on MSVC.
26873         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26874         used as a function pointer.
26875         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26877 2012-02-24  Bruno Haible  <bruno@clisp.org>
26879         floorl: Provide function definition on MSVC.
26880         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26881         used as a function pointer.
26882         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26884 2012-02-24  Bruno Haible  <bruno@clisp.org>
26886         ceilf: Provide function definition on MSVC.
26887         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26888         used as a function pointer.
26889         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26891 2012-02-24  Bruno Haible  <bruno@clisp.org>
26893         floorf: Provide function definition on MSVC.
26894         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26895         used as a function pointer.
26896         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26898 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26900         stdnoreturn: new module
26901         This implements a replacement for C11's <stdnoreturn.h>.
26902         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26903         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26904         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26905         * tests/test-stdnoreturn.c: New files.
26907 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26909         regex: fix false multibyte matches in some regular expressions
26910         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26911         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26912         * lib/regex_internal.c (re_string_skip_chars):
26913         Fix miscomputation of remain_len that may cause incomplete
26914         multi-byte character and false match.
26916 2012-02-24  Jim Meyering  <meyering@redhat.com>
26918         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26919         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26920         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26921         Remove now-unnecessary str''cmp obfuscation.
26922         Suggested by Akim Demaille.
26924 2012-02-24  Bruno Haible  <bruno@clisp.org>
26926         streq: Rename macro.
26927         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26928         * NEWS: Mention the change.
26929         * lib/mbrtowc.c (mbrtowc): Update.
26930         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26931         * lib/wcwidth.c (wcwidth): Update.
26932         Suggested by Akim Demaille and Jim Meyering.
26934 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26936         regex: fix typo in definition of MIN
26937         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26938         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26940 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26941             Bruno Haible  <bruno@clisp.org>
26943         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26944         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26945         entries into a stack-allocated buffer directly.
26946         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26948 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26949             Bruno Haible  <bruno@clisp.org>
26951         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26953          - There were several instances of this pattern:
26955              for (;;) {
26956                n = acl (f, GETACLCNT, 0, NULL);
26957                [ allocate an array A of size N ]
26958                if (acl (f, GETACL, n, a) == n)
26959                  break;
26960              }
26962            This loop might never terminate if some other process is constantly
26963            manipulating the file's ACL.  The loop should be rewritten to
26964            terminate.
26966          - The acl (... GETACLNT ...) call is merely an optimization; its value
26967            is merely a hint as to how big to make the array.  A better
26968            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26969            and just guess a reasonably-big size, growing the size and trying
26970            again if it's not large enough.  This guarantees termination, and
26971            saves a system call.
26973         * lib/acl-internal.h: Include <limits.h>.
26974         (MIN, SIZE_MAX): New macros.
26975         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26976         a stack-allocated buffer, and use malloc if it does not fit. Don't
26977         use GETACLCNT.
26978         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26980 2012-02-19  Bruno Haible  <bruno@clisp.org>
26982         acl: Fix endless loop on Solaris with vxfs.
26983         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26984         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26985         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26986         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26987         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26988         Reported by Bill Jones in
26989         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26991 2012-02-19  Bruno Haible  <bruno@clisp.org>
26993         acl: Fix copy-acl test failure on Solaris 11.0.
26994         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26995         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26996         that this function returns 0 in some more cases.
26998 2012-02-19  Bruno Haible  <bruno@clisp.org>
27000         acl: Update doc references.
27001         * doc/acl-resources.txt: Update links to Solaris documentation.
27003 2012-02-19  Bruno Haible  <bruno@clisp.org>
27005         Fix test failure in many locales on Solaris 11.
27006         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
27007         'tr' arguments.
27008         * tests/test-pipe-filter-ii1.c (main): Likewise.
27009         * build-aux/bootstrap (check_versions): Run 'tr' command with range
27010         expressions in the C locale.
27011         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27012         * m4/host-os.m4 (gl_HOST_OS): Likewise.
27014 2012-02-19  Bruno Haible  <bruno@clisp.org>
27016         gnulib-tool: Improve usage message.
27017         * gnulib-tool (func_usage): Move doc of --help and --version to the
27018         section "Operation modes".
27020 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
27022         README-release: make it easier to execute commands
27023         * top/README-release: break commands out on to separate lines.
27025 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
27027         GNUmakefile: simplify detection of unconfigured trees
27028         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
27029         whether the tree make is being run from is already configured or
27030         not.  Related simplifications.
27032 2012-02-13  Simon Josefsson  <simon@josefsson.org>
27034         * gnulib-tool (func_usage): Document --help and --version.
27036 2012-02-11  Jim Meyering  <meyering@redhat.com>
27038         bootstrap: don't exit 0 upon gnulib-tool failure
27039         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
27040         its exit status, not 0.
27042 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
27044         README-release: various improvements
27045         * top/README-release: Give a command to push changes for the
27046         release.  Add "distcheck" to list of other pre-release checks.
27047         Fix instance of "make stable" which should be "make TYPE".
27049 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27051         maint: replace FSF snail-mail addresses with URLs
27052         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
27053         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
27054         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
27055         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
27056         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
27057         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
27058         * lib/check-version.c, lib/check-version.h, lib/config.charset:
27059         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
27060         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
27061         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
27062         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
27063         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
27064         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
27065         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
27066         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
27067         * lib/glthread/thread.c, lib/glthread/thread.h:
27068         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
27069         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
27070         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
27071         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
27072         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
27073         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
27074         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
27075         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
27076         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
27077         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
27078         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
27079         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
27080         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
27081         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
27082         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
27083         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
27084         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
27085         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
27086         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
27087         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
27088         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
27089         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
27090         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
27091         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
27092         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
27093         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
27094         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
27095         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
27096         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
27097         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
27098         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
27099         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
27100         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
27101         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
27102         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
27103         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
27104         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
27105         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
27106         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
27107         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
27108         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
27109         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
27110         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
27111         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
27112         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
27113         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
27114         * tests/test-poll.c, tests/test-quotearg-simple.c:
27115         * tests/test-quotearg.c, tests/test-quotearg.h:
27116         * tests/test-round-ieee.c, tests/test-round1.c:
27117         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
27118         * tests/test-roundl-ieee.c, tests/test-roundl.c:
27119         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
27120         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
27121         * tests/test-strerror.c, tests/test-strerror_r.c:
27122         * tests/test-strsignal.c, tests/test-strverscmp.c:
27123         * tests/test-xmemdup0.c:
27124         Replace FSF snail mail addresses with URLs, as per GNU coding
27125         standards.  See glibc bug
27126         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27128 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27130         README-release: capitalize a word and split a line
27131         * top/README-release: Fix punctuation and spacing.
27133 2012-02-08  Akim Demaille  <demaille@gostai.com>
27135         fatal-signal: use C prototypes (with explicit void).
27136         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27137         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27139 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27141         regex: spelling fix
27142         * lib/regexec.c: spelling fix
27144         regex: rely on stdint.h for SIZE_MAX
27145         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27147 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27149         regex: merge glibc changes
27151         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27152         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27153         (init_word_char): Work even if bitset words are not exactly 32 or
27154         64 bits wide.  Don't assume there are no padding bits.
27155         * lib/regex.c [_LIBC]: Do not include <config.h>.
27156         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27157         and -Wtype-limits.
27158         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27159         needless disagreement with glibc.  All uses changed.  Define it to
27160         1 only if _GNU_SOURCE, to match glibc.
27161         (_REG_RM_NAME): Remove; no longer needed, since the names in
27162         question are now all protected by __USE_GNU.
27163         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27164         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27165         * lib/regex_internal.h (MIN): New macro.
27167         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27168         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27170         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27171         * lib/regex_internal.c (re_string_fetch_byte_case):
27172         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27173         is miscompiled, and it turns out it is because of an incorrect
27174         attribute on re_string_fetch_byte_case.  Unlike
27175         re_string_peek_byte_case, this one is really not pure, it modifies
27176         memory (increments pstr->cur_idx), and with the pure attribute GCC
27177         assumed it doesn't and it cached the presumed value of
27178         regexp->cur_idx in a variable across the
27179          for (;; ++i)
27180            {
27181              if (i >= BRACKET_NAME_BUF_SIZE)
27182                return REG_EBRACK;
27183              if (token->type == OP_OPEN_CHAR_CLASS)
27184                ch = re_string_fetch_byte_case (regexp);
27185              else
27186                ch = re_string_fetch_byte (regexp);
27187              if (re_string_eoi(regexp))
27188                return REG_EBRACK;
27189              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27190                break;
27191              elem->opr.name[i] = ch;
27192            }
27194         2011-11-29 Andreas Schwab <schwab@redhat.com>
27195         * lib/regcomp.c (build_equiv_class):
27196         Fix access after end of search string in regex matcher.
27198         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27199         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27201         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27202         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27204         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27205         * lib/regcomp.c (parse_branch, parse_sub_exp):
27206         More regex memory leak fixes and tests.
27207         (parse_sub_exp, parse_bracket_exp):
27208         Fix memory leak for some invalid regular expressions.
27210         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27211         * lib/regex_internal.c, lib/regexec.c:
27212         Fix unnecessary overallocation due to incomplete character.  When
27213         incomplete characters are found at the end of a string the code
27214         ran amok and allocated lots of memory.  Stricter limits are now in
27215         place.
27217         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27218         * lib/regex.h: Update documentation.
27220         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27221         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27223         2010-05-05 Andreas Schwab <schwab@redhat.com>
27224         * lib/regexec.c (find_collation_sequence_value):
27225         Fix lookup of collation sequence value during regexp matching.
27227         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27228         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27230         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27231         * lib/regex.h: Cleanup namespace.
27233         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27234         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27236         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27237         * lib/regex_internal.h: Prevent some declarations and definitions
27238         to be seen when used in tests.
27240         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27241         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27242         __libc_lock_* macros if not _LIBC.
27243         (struct re_dfa_t): Add lock.
27245 2012-02-07  Eric Blake  <eblake@redhat.com>
27247         maint.mk: also prohibit lower-case @var@
27248         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27249         lower case, like @top_srcdir@.
27251 2012-02-04  Eric Blake  <eblake@redhat.com>
27253         canonicalize: avoid uninitialized memory use
27254         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27255         random '/' left in dest.
27256         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27258 2012-02-04  Bruno Haible  <bruno@clisp.org>
27260         isatty: Fix test failure of ptsname_r on native Windows.
27261         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27262         and don't set errno.
27263         (isatty): Test first whether fd is valid. Set errno when returning 0.
27265 2012-02-04  Bruno Haible  <bruno@clisp.org>
27267         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27268         * tests/test-spawn-pipe-main.c: Include progname.h.
27269         (main): Invoke set_program_name.
27270         * modules/spawn-pipe-tests (Depends-on): Add progname.
27272         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27273         * tests/test-nonblocking-socket-main.c: Include progname.h.
27274         (main): Invoke set_program_name.
27275         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27277         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27278         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27279         (main): Invoke set_program_name.
27280         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27282 2012-02-04  Eric Blake  <eblake@redhat.com>
27284         canonicalize-lgpl: fix // handling
27285         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27287         canonicalize: fix // handling
27288         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27289         /// to //, since only // is special.
27291 2012-02-04  Bruno Haible  <bruno@clisp.org>
27293         ioctl: Fix test failure on native Windows.
27294         * lib/ioctl.c: Include msvc-nothrow.h.
27295         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27297 2012-02-04  Bruno Haible  <bruno@clisp.org>
27299         fsync: Avoid test failure on native Windows.
27300         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27301         read-only.
27303 2012-02-04  Bruno Haible  <bruno@clisp.org>
27305         sys_select: Avoid syntax error on OpenBSD 5.0.
27306         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27307         currently being included, just include the system's <sys/select.h>.
27309 2012-02-04  Bruno Haible  <bruno@clisp.org>
27311         sys_select: Avoid syntax error on OpenBSD 5.0.
27312         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27313         <sys/select.h>, not before.
27314         Reported by Jiri B <jirib@devio.us>.
27316 2012-02-04  Bruno Haible  <bruno@clisp.org>
27318         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27319         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27320         global variables.
27321         * tests/test-get-rusage-data.c (main): Likewise.
27322         Reported by Jim Meyering.
27324 2012-02-04  Bruno Haible  <bruno@clisp.org>
27326         stdioext: Fix last commit.
27327         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27329 2012-02-03  Bruno Haible  <bruno@clisp.org>
27331         stdioext: Add tentative support for Plan9.
27332         * lib/stdio-impl.h: Include <errno.h>.
27333         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27334         * lib/freadable.c (freadable): Likewise.
27335         * lib/fwritable.c (fwritable): Likewise.
27336         * lib/fbufmode.c (fbufmode): Likewise.
27337         * lib/freading.c (freading): Likewise.
27338         * lib/fwriting.c (fwriting): Likewise.
27339         * lib/freadptr.c (freadptr): Likewise.
27340         * lib/freadseek.c (freadptrinc): Likewise.
27341         * lib/freadahead.c (freadahead): Likewise.
27342         * lib/fpurge.c (fpurge): Likewise.
27343         * lib/fseeko.c (rpl_fseeko): Likewise.
27344         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27345         Reported by Jens Staal <staal1978@gmail.com>.
27347 2012-02-02  Jim Meyering  <meyering@redhat.com>
27349         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27350         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27351         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27352         not even to try to add the attribute.  Instead, add a pragma to suppress
27353         the suggestion/warning.
27355 2012-01-31  Karl Berry  <karl@gnu.org>
27357         setstate doc: typo.
27358         * doc/posix-functions/setstate.texi (setstate): { not (.
27360 2012-01-31  Bruno Haible  <bruno@clisp.org>
27362         popen: Make more robust on Windows.
27363         * lib/popen.c: On native Windows, use the _popen based code even if
27364         HAVE_POPEN is set.
27365         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27366         environment variable on native Windows.
27368 2012-01-30  Bruno Haible  <bruno@clisp.org>
27370         pclose: Fix typo.
27371         * lib/stdio.in.h (pclose): Fix typo in warning message.
27373 2012-01-30  Bruno Haible  <bruno@clisp.org>
27375         doc about getlogin_r, setstate.
27376         * doc/posix-functions/getlogin_r.texi: List the incompatible
27377         declaration problem under "not fixed by gnulib".
27378         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27379         problem on Solaris 11 and other platforms.
27381 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27382             Bruno Haible  <bruno@clisp.org>
27384         poll tests: Make test more robust.
27385         * tests/test-poll.c: Include macros.h.
27386         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27387         return value of various I/O operations.
27388         * modules/poll-tests (Files): Add tests/macros.h.
27390 2012-01-30  Bruno Haible  <bruno@clisp.org>
27392         sys_stat: Fix support for mingw64 and MSVC.
27393         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27394         header files already do it.
27395         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27396         stat itself.
27397         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27399 2012-01-30  Bruno Haible  <bruno@clisp.org>
27401         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27403         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27405 2012-01-29  Bruno Haible  <bruno@clisp.org>
27407         quotearg: Fix test failure on MacOS X 10.5.
27408         * tests/test-quotearg-simple.c: Include localcharset.h.
27409         (main): If the locale encoding is not ASCII, bypass the tests of
27410         locale_quoting_style and clocale_quoting_style.
27411         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27413 2012-01-29  Jim Meyering  <meyering@redhat.com>
27415         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27416         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27417         detect uses of canonicalize_file_name.
27419 2012-01-28  Bruno Haible  <bruno@clisp.org>
27421         test-framework-sh: Fix test failure with AIX 7.1 diff.
27422         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27423         in column 1, like 'diff -c' does.
27424         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27425         whether 'diff -u' is used. Instead, test whether the output contains
27426         some '@' character.
27428 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27430         strtoimax: eliminate need for stdint.h, inttypes.h checks
27431         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27432         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27433         the prerequisites for a recently-introduced strtoimax test.
27434         I guess this might cause strtoimax to be replaced when not
27435         strictly necessary on older hosts, but this shouldn't introduce
27436         any bugs and it should make Emacs 'configure' faster on typical
27437         modern hosts.  Problem discovered when importing the latest gnulib
27438         to an Emacs test version.
27439         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27441 2012-01-28  Bruno Haible  <bruno@clisp.org>
27443         sys_time: Override 'struct timeval' on some native Windows platforms.
27444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27445         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27446         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27447         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27448         needs to be overridden.
27449         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27450         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27451         * tests/test-sys_select.c: Check that the tv_sec member has the same
27452         size as a 'time_t'.
27453         * tests/test-sys_time.c: Likewise.
27454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27455         is set, set also REPLACE_GETTIMEOFDAY.
27456         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27457         convert the resulting 'struct timeval' before returning.
27458         * lib/select.c: Include <sys/time.h>.
27459         (select, timeval): Undefine at the right place.
27460         * modules/select (Depends-on): Add sys_time.
27461         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27462         some Windows platforms.
27463         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27465 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27467         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27468         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27469         an integer.
27470         * lib/fcntl.c (dupfd): Likewise.
27471         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27473 2012-01-28  Bruno Haible  <bruno@clisp.org>
27475         fcntl: Avoid compilation error on native Windows.
27476         * modules/fcntl (Depends-on): Add 'close'.
27478 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27480         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27481         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27482         pointer to an integer.
27483         * lib/poll.c (IsConsoleHandle): Likewise.
27484         * lib/isatty.c (IsConsoleHandle): Likewise.
27486 2012-01-28  Jim Meyering  <meyering@redhat.com>
27488         doc: clarify README-release
27489         * top/README-release: Clarify: you should make a point to have
27490         the latest stable versions of build tools in your PATH, and the
27491         reference to buildreq is solely for its list of tool names, not
27492         for its minimal-functional version numbers.
27493         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27495         maint.mk: use more readable (yet functionally equivalent) quoting
27496         It is common to quote a single quote in a single quoted string like
27497         this:  '...'\''...'.  Unless you know the idiom, that looks like
27498         gibberish, so prefer to double-quote the string when possible.
27499         Then you can use a more readable, lone single quote: "...'..."
27500         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27501         "don't" is more readable than the equivalent 'don'\''t'.
27502         (sc_cast_of_x_alloc_return_value): Likewise.
27503         (sc_cast_of_alloca_return_value): Likewise.
27504         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27505         rather than '\'':'\''.
27507 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27509         stdalign: relax _Alignof and tighten _Alignas test
27510         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27511         as it was too strict: alignof must divide offsetof, but it need
27512         not equal offsetof.  Inspired by Joseph S. Myers's comment
27513         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27514         Conversely, tighten the _Alignas test a bit, as the resulting
27515         alignment must be exactly 8.
27517 2012-01-27  Bruno Haible  <bruno@clisp.org>
27519         stdalign: Document the last change.
27520         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27522 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27524         stdalign: check that alignof and offsetof are consistent
27525         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27526         Problem reported for gnulib by Richard W.M. Jones in
27527         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27529 2012-01-27  Jim Meyering  <meyering@redhat.com>
27531         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27532         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27533         convert a sequence with gaps to the minimal containing range.
27534         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27535         * tests/test-update-copyright.sh: Test for this.
27536         The FSF confirmed it is ok to do this, assuming there is at
27537         least one significant change per year in the affected range:
27538         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27540 2012-01-26  Bruno Haible  <bruno@clisp.org>
27542         pipe2: refine doc about thread-safety
27543         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27544         multithread-safety problem.
27545         * doc/glibc-functions/accept4.texi: Likewise.
27547 2012-01-26  Bruno Haible  <bruno@clisp.org>
27549         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27550         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27551         In the test program, include <fcntl.h>, for O_RDONLY.
27553 2012-01-26  Eric Blake  <eblake@redhat.com>
27555         pipe2: document lack of thread-safety in replacement
27556         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27557         issue in replacement.
27558         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27559         Based on a report by Eric Wong.
27561 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27562             Bruno Haible  <bruno@clisp.org>
27564         malloca: Avoid warnings on x86_64 mingw64.
27565         * lib/malloca.c: Include <stdint.h>.
27566         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27567         * modules/malloca (Depends-on): Add stdint.
27568         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27570 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27572         obstack: remove __STDC__ conditionals
27573         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27574         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27575         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27576         m4/include_next.m4 as the only gnulib-maintained places that still
27577         refer to __STDC__.
27579 2012-01-24  Bruno Haible  <bruno@clisp.org>
27581         havelib: Modern quoting.
27582         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27583         the recent change to the GNU coding standards.
27585 2012-01-24  Bruno Haible  <bruno@clisp.org>
27587         stdint: Improve support for Android.
27588         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27589         Reported by Simon Josefsson <simon@josefsson.org>.
27591 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27593         doc: omit trailing empty lines from INSTALL etc.
27594         * doc/Makefile (INSTALL): Omit trailing empty lines.
27595         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27596         omit trailing empty lines.  This simplifies the build procedure.
27598 2012-01-23  Jim Meyering  <meyering@redhat.com>
27600         tests: avoid spurious warnings about gl_sockets_startup
27601         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27602         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27603         reporting a "statement with no effect".
27604         * tests/test-accept.c (main): Mark as "(void)".
27605         * tests/test-accept4.c (main): Likewise.
27606         * tests/test-bind.c (main): Likewise.
27607         * tests/test-connect.c (main): Likewise.
27608         * tests/test-getpeername.c (main): Likewise.
27609         * tests/test-getsockname.c (main): Likewise.
27610         * tests/test-getsockopt.c (main): Likewise.
27611         * tests/test-listen.c (main): Likewise.
27612         * tests/test-recv.c (main): Likewise.
27613         * tests/test-recvfrom.c (main): Likewise.
27614         * tests/test-send.c (main): Likewise.
27615         * tests/test-sendto.c (main): Likewise.
27616         * tests/test-setsockopt.c (main): Likewise.
27617         * tests/test-shutdown.c (main): Likewise.
27619 2012-01-21  Bruno Haible  <bruno@clisp.org>
27621         locale-fr.m4: Fix for Android.
27622         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27623         failure of the test program on Bionic libc.
27625 2012-01-21  Jim Meyering  <meyering@redhat.com>
27627         bootstrap: fail when bootstrap_post_import_hook fails
27628         Otherwise, it's far too easy to miss diagnostics emitted
27629         between gnulib-tool's output and that of running configure.
27630         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27632 2012-01-17  Jim Meyering  <meyering@redhat.com>
27634         maint: enable sc_trailing_blank
27635         * build-aux/pmccabe.css: Remove trailing blanks.
27636         * doc/acl-cygwin.txt: Likewise.
27637         * doc/gnu-oids.texi: Likewise
27638         * cfg.mk: Enable sc_trailing_blank.
27639         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27641 2012-01-17  Jim Meyering  <meyering@redhat.com>
27643         maint: enable sc_prohibit_openat_without_use
27644         * cfg.mk: Enable sc_prohibit_openat_without_use.
27645         Exempt lib/selinux-at.c.
27647 2012-01-17  Jim Meyering  <meyering@redhat.com>
27649         maint: enable sc_prohibit_cloexec_without_use
27650         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27651         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27653 2012-01-17  Jim Meyering  <meyering@redhat.com>
27655         maint: enable sc_prohibit_intprops_without_use
27656         * cfg.mk: Enable sc_prohibit_intprops_without_use
27657         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27659 2012-01-17  Jim Meyering  <meyering@redhat.com>
27661         maint: enable sc_prohibit_hash_pjw_without_use
27662         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27663         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27664         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27665         following " (".
27667 2012-01-17  Jim Meyering  <meyering@redhat.com>
27669         maint: enable double-word-prohibiting rule
27670         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27671         Exempt three files.
27673 2012-01-17  Jim Meyering  <meyering@redhat.com>
27675         maint: remove empty lines at EOF, but excluding modules/*
27676         Apply syntax rules at home as well as abroad.  Most changes
27677         were induced by running this:
27678           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27679             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27680             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27681         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27682         Exempt modules/* and two binary files.
27683         Also exempt doc/INSTALL*, per request from Bruno Haible.
27684         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27685         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27686         * doc/Copyright/request-assign.future: Likewise.
27687         * doc/Copyright/request-disclaim.changes: Likewise.
27688         * doc/INSTALL: Likewise.
27689         * doc/INSTALL.ISO: Likewise.
27690         * doc/INSTALL.UTF-8: Likewise.
27691         * doc/acl-cygwin.txt: Likewise.
27692         * doc/acl-resources.txt: Likewise.
27693         * doc/fdl-1.2.texi: Likewise.
27694         * doc/fdl-1.3.texi: Likewise.
27695         * doc/fdl.texi: Likewise.
27696         * lib/argp-pin.c: Likewise.
27697         * lib/round.c: Likewise.
27698         * lib/unicase/u16-totitle.c: Likewise.
27699         * lib/unictype/block_test.c: Likewise.
27700         * lib/uninorm/canonical-decomposition.c: Likewise.
27701         * m4/README: Likewise.
27702         * m4/relocatable-lib.m4: Likewise.
27703         * tests/test-isnand-nolibm.c: Likewise.
27704         * tests/test-isnand.c: Likewise.
27705         * tests/uninorm/NormalizationTest.txt: Likewise.
27707 2012-01-17  Jim Meyering  <meyering@redhat.com>
27709         maint: add framework to run syntax-check rules against gnulib sources
27710         * cfg.mk: New file, to disable all currently-failing tests.
27711         We'll enable them one by one, as they are made to pass.
27712         * Makefile (sc_maint): New rule.
27714 2012-01-21  Bruno Haible  <bruno@clisp.org>
27716         stdint: Add support for Android.
27717         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27718         include the system's <stdint.h>.
27719         Reported by Simon Josefsson <simon@josefsson.org>.
27721 2012-01-19  Jim Meyering  <meyering@redhat.com>
27723         bootstrap: add bootstrap_post_import_hook
27724         Bison does still need something like the gnulib_mk_hook whose
27725         invocation I had to remove along with slurp in commit 767ccd40.
27726         Technically, we could get along without it, but doing so would
27727         have required living with a warning and a mandatory post-bootstrap
27728         automake rerun.
27729         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27730         (bootstrap_post_import_hook): New function.
27731         Invoke it after gnulib-tool --import and before autoreconf.
27733 2012-01-18  Jim Meyering  <meyering@redhat.com>
27735         gitlog-to-changelog: don't use "no_"-prefixed variable name
27736         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27737         to enable both --cluster and --no-cluster.  Change variable name,
27738         s/\$no_cluster/$cluster/, and reverse usage to match.
27740         gitlog-to-changelog: use "||", not "or" in expressions
27741         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27742         expressions.
27744 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27746         gitlog-to-changelog: new option --no-cluster
27747         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27748         clustering of adjacent commit messages.
27750 2012-01-17  Jim Meyering  <meyering@redhat.com>
27752         maint: spell file systems with two words, not one
27753         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27754         two words, not one.
27756 2012-01-16  Jim Meyering  <meyering@redhat.com>
27758         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27759         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27761 2012-01-16  Eric Blake  <eblake@redhat.com>
27763         bootstrap: cater to autoconf 2.59
27764         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27765         is not available.
27767         bootstrap: properly check for libtool
27768         * build-aux/bootstrap (libtoolize): Also run libtool when older
27769         usage is detected.
27771 2012-01-15  Bruno Haible  <bruno@clisp.org>
27773         Improve support for MSVC 9.
27774         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27775         clashes on MSVC.
27776         * lib/fcntl.in.h: Likewise.
27777         * lib/stdlib.in.h: Likewise.
27778         * lib/sys_stat.in.h: Likewise.
27780 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27782         gnupload: we hold the master copy of this script now
27783         For motivation and more information, see:
27784         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27785         * build-aux/gnupload: Make it clear in the heading comments that the
27786         master copy of this file is maintained by gnulib.  Since we are at
27787         it, bump its copyright year and ...
27788         ($scriptversion): ... the date in its version.
27789         ($usage): Patches and bug reports should be sent to the gnulib list,
27790         not the automake one.
27791         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27792         anymore.
27794 2012-01-15  Bruno Haible  <bruno@clisp.org>
27796         Fix module 'random'.
27797         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27798         initstate, setstate are declared.
27800 2012-01-14  Bruno Haible  <bruno@clisp.org>
27802         Tests for module 'random'.
27803         * modules/random-tests: New file.
27804         * tests/test-random.c: New file, based on tests/test-random_r.c.
27806         New module 'random'.
27807         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27808         declarations.
27809         * lib/random.c: New file, based on glibc/stdlib/random.c.
27810         * m4/random.m4: New file.
27811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27812         HAVE_RANDOM.
27813         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27814         * modules/random: New file.
27815         * config/srclist.txt: Add an entry for random.c.
27816         * doc/posix-functions/random.texi: Mention the 'random' module.
27817         * doc/posix-functions/initstate.texi: Likewise.
27818         * doc/posix-functions/setstate.texi: Likewise.
27819         * doc/posix-functions/srandom.texi: Likewise.
27821 2012-01-12  Bruno Haible  <bruno@clisp.org>
27823         random_r: Use common idioms.
27824         * lib/random_r.c: Include <stdlib.h> first.
27826         random_r: Override incompatible API on AIX, OSF/1.
27827         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27828         Override the system function if REPLACE_RANDOM_R is 1.
27829         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27830         and OSF/1, set REPLACE_RANDOM_R.
27831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27832         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27833         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27834         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27835         * doc/glibc-functions/random_r.texi: Likewise.
27836         * doc/glibc-functions/setstate_r.texi: Likewise.
27838         random_r: Support for MSVC 9.
27839         * lib/random_r.c: Include stdint.h, not inttypes.h.
27841 2012-01-12  Eric Blake  <eblake@redhat.com>
27843         inet_ntop: guard extra work by IF_LINT
27844         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27845         better code generation when not checking for warnings.
27846         Suggested by Paul Eggert and Jim Meyering.
27848         strptime: fix regression on mingw
27849         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27850         Fix regression.  Reported by Bruno Haible.
27852 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27853             Bruno Haible  <bruno@clisp.org>
27855         copy-file: add error-code-returning variant.
27856         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27857         (qcopy_file_preserving): New declaration.
27858         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27859         copy_file_preserving. Change return type to 'int'. Don't emit an error
27860         message here.
27861         (copy_file_preserving): New function.
27862         * tests/test-copy-file.c: Include <stdlib.h>.
27863         (main): Test qcopy_file_preserving if the environment variable
27864         NO_STDERR_OUTPUT is set.
27865         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27866         with NO_STDERR_OUTPUT
27867         * tests/test-copy-file-2.sh: Likewise.
27869 2012-01-10  Bruno Haible  <bruno@clisp.org>
27871         copy-file: Use 'quote' module consistently.
27872         * lib/copy-file.c (copy_file_preserving): Use quote().
27874         copy-file: Refactor.
27875         * lib/copy-file.c: Include quote.h.
27876         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27877         message here.
27878         * modules/copy-file (Depends-on): Add quote.
27880         acl: Export qcopy_acl.
27881         * lib/acl.h (qcopy_acl): New declaration.
27882         * lib/copy-acl.c (qcopy_acl): Make non-static.
27884         acl: Rename a local variable.
27885         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27887         acl: Align return values of copy_acl and qcopy_acl.
27888         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27889         maybe < -1.
27891 2012-01-11  Eric Blake  <eblake@redhat.com>
27893         strptime: silence gcc warnings
27894         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27895         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27896         Reported by Daniel P. Berrange.
27898         inet_ntop: silence gcc warning
27899         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27900         Reported by Daniel P. Berrange.
27902 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27904         getloadavg test: skip the test on GNU/Linux without /proc mounted
27905         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27906         file.  When /proc is not mounted, it always fails with ENOENT.
27907         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27908         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27910 2012-01-10  Bruno Haible  <bruno@clisp.org>
27912         regex: Avoid link error on MSVC 9.
27913         * modules/regex (Depends-on): Add wctype.
27915 2012-01-10  Bruno Haible  <bruno@clisp.org>
27917         doc: Mention --with-tests option.
27918         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27919         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27920         --with-tests.
27921         Reported by Reuben Thomas.
27923 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27925         users.txt: order package names lexicographically.
27926         * users.txt: Order package names lexicographically.
27928 2012-01-10  Jim Meyering  <meyering@redhat.com>
27930         maint.mk: fix description in comment
27931         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27933         ignore-value: remove deprecated ignore_ptr function
27934         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27935         * NEWS: Note this.
27937 2012-01-09  Jim Meyering  <meyering@redhat.com>
27939         test-init.sh: avoid a subshell
27940         * tests/test-init.sh: Remove protective subshell.
27941         Suggested by Bernhard Voelker.  While a subshell is normally
27942         required to protect against older shells (Solaris, FreeBSD) that
27943         warn about a missing program before performing redirection, the
27944         shell-selection tests performed by init.sh probably exclude any
27945         offending shell.
27947 2012-01-08  Bruno Haible  <bruno@clisp.org>
27949         setlocale tests: Avoid test failure on Solaris 11.0.
27950         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27951         variable.
27953 2012-01-08  Bruno Haible  <bruno@clisp.org>
27955         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27956         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27957         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27958         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27959         macro.
27960         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27961         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27962         * lib/spawn_faction_addopen.c: Add workaround implementation if
27963         HAVE_WORKING_POSIX_SPAWN.
27964         * modules/spawn (Makefile): Substitute
27965         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27966         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27967         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27968         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27969         (Depends-on): Update conditions.
27970         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27971         the Solaris 11 bug.
27973 2012-01-08  Bruno Haible  <bruno@clisp.org>
27975         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27976         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27977         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27978         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27979         macro.
27980         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27981         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27982         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27983         HAVE_WORKING_POSIX_SPAWN.
27984         * modules/spawn (Makefile): Substitute
27985         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27986         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27987         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27988         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27989         (Depends-on): Update conditions.
27990         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27991         the Solaris 11 bug.
27993 2012-01-08  Bruno Haible  <bruno@clisp.org>
27995         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27996         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27997         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27999         HAVE_WORKING_POSIX_SPAWN.
28000         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
28001         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
28002         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28003         * lib/spawn_faction_addclose.c: Add workaround implementation if
28004         HAVE_WORKING_POSIX_SPAWN.
28005         * modules/spawn (Makefile): Substitute
28006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28007         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
28008         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
28009         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28010         (Depends-on): Update conditions.
28011         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28012         the Solaris 11 bug.
28014 2012-01-08  Bruno Haible  <bruno@clisp.org>
28016         doc: Update for Solaris 11.0.
28017         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
28018         * m4/printf.m4: Update comments.
28020 2012-01-08  Bruno Haible  <bruno@clisp.org>
28022         mktime: Avoid compilation error on Solaris 11.
28023         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
28025 2012-01-08  Bruno Haible  <bruno@clisp.org>
28027         doc: Small fix.
28028         * doc/posix-headers/nl_types.texi: Correct platforms list.
28030 2012-01-08  Simon Josefsson  <simon@josefsson.org>
28032         Add lgpl-3.0 module.
28033         * MODULES.html.sh (Support for building documentation): Add
28034         lgpl-3.0.
28035         * modules/lgpl-3.0: New file.
28037 2012-01-08  Jim Meyering  <meyering@redhat.com>
28039         select.c: indent with spaces, not TABs
28040         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
28042 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28044         quotearg: do not use grave accent for left quote
28045         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
28046         locale_quoting_style.
28047         (quotearg_buffer_restyled): Fix example.
28048         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
28050 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28052         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
28053         Most programs do not have translation catalogs for English and much
28054         less separate catalogs for British and American English.  Drop the
28055         suggestion to translators about these two, and provide it
28056         automatically for Unicode locales.  Like most programs, even those
28057         using American English, we use single quotation marks.  This conflicts
28058         with the American typographic convention, but works better when you
28059         cite the entire error message within double quotes.  It also tries not
28060         to clash with established practice and with what non-gnulib programs
28061         will usually do.
28062         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
28063         using an UTF-8 or GB-18030 locale.  The list of other locales with
28064         quotes was provided by Bruno Haible.
28065         (quotearg_buffer_restyled): Adjust instructions to translators.
28066         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
28067         text, since this would be wrong when using Unicode.
28068         * modules/quotearg: Depend on c-strcaseeq.
28070 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28072         quotearg: fix Wikipedia link
28073         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
28075 2012-01-07  Simon Josefsson  <simon@josefsson.org>
28077         Fix for mingw with MSVC9.
28078         * m4/ld-version-script.m4: Check that compiler rejects version
28079         scripts with syntax errors.  Reported by Bruno Haible
28080         <bruno@clisp.org>.
28082 2012-01-06  Bruno Haible  <bruno@clisp.org>
28084         Talk about "native Windows API", not "Woe32".
28085         * lib/accept4.c: Update comments to mention native Windows.
28086         * lib/execute.c: Likewise.
28087         * lib/fatal-signal.c: Likewise.
28088         * lib/localcharset.c: Likewise.
28089         * lib/nanosleep.c: Likewise.
28090         * lib/nl_langinfo.c: Likewise.
28091         * lib/pclose.c: Likewise.
28092         * lib/pipe-filter-gi.c: Likewise.
28093         * lib/pipe-filter-ii.c: Likewise.
28094         * lib/pipe.c: Likewise.
28095         * lib/pipe2.c: Likewise.
28096         * lib/popen.c: Likewise.
28097         * lib/progreloc.c: Likewise.
28098         * lib/relocatable.c: Likewise.
28099         * lib/sigaction.c: Likewise.
28100         * lib/sigprocmask.c: Likewise.
28101         * lib/spawn-pipe.h: Likewise.
28102         * lib/spawn-pipe.c: Likewise.
28103         * lib/spawni.c: Likewise.
28104         * lib/stat-time.h: Likewise.
28105         * lib/w32spawn.h: Likewise.
28106         * tests/test-isatty.c: Likewise.
28107         * lib/config.charset: More comments.
28108         * doc/gnulib-intro.texi: Mention native Windows.
28109         * doc/posix-functions/_Exit_C99.texi: Likewise.
28110         * doc/posix-headers/fcntl.texi: Likewise.
28112 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
28114         argp: Avoid crash if translator uses % characters in a translation.
28115         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
28116         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28118 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28120         doc: C11 and C++11 are now official
28121         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
28122         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
28123         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28124         * modules/stdalign:
28125         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28127 2012-01-06  Bruno Haible  <bruno@clisp.org>
28129         uc-is-grapheme-break tests: Tweak.
28130         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28131         message.
28133 2012-01-06  Bruno Haible  <bruno@clisp.org>
28135         test-init.sh: correct the test for diff -u
28136         * tests/test-init.sh: Also redirect stdout to /dev/null.
28138 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28140         Use ', not `, for quoting output.
28141         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28142         (print_changelog_deltas, get_tool_versions, main program):
28143         * build-aux/git-version-gen:
28144         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28145         * build-aux/move-if-change (help):
28146         * build-aux/useless-if-before-free (usage, main program):
28147         * check-module (parse_module_file, usage)
28148         (find_included_lib_files, check_module):
28149         * lib/argmatch.c (main) [TEST]:
28150         * lib/argp-help.c (_help):
28151         * lib/getopt1.c (main) [TEST]:
28152         * lib/git-merge-changelog.c (usage):
28153         * lib/xstrtol-error.c (xstrtol_error):
28154         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28155         * m4/argz.m4 (gl_FUNC_ARGZ):
28156         * m4/bison.m4 (gl_BISON):
28157         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28158         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28159         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28160         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28161         * m4/gc-random.m4 (gl_GC_RANDOM):
28162         * m4/intl.m4 (gt_CHECK_DECL):
28163         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28164         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28165         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28166         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28167         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28168         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28169         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28170         * tests/test-dirname.c (main):
28171         * tests/test-getpass.c (main):
28172         * tests/test-iconvme.c (main):
28173         * tests/test-parse-datetime.c (LOG):
28174         * tests/test-xstrtoimax.sh:
28175         * tests/test-xstrtol.sh:
28176         * tests/test-xstrtoll.sh:
28177         * tests/test-xstrtoumax.sh:
28178         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28179         * top/GNUmakefile (abort-due-to-no-makefile):
28180         Quote 'like this', not `like this', as per the recent change to
28181         the GNU coding standards.
28183 2012-01-05  Bruno Haible  <bruno@clisp.org>
28185         strtoimax: Don't force a replacement on systems where intmax_t is int.
28186         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28187         'intmax_t' is not larger than 'int'.
28188         Reported by Pádraig Brady <P@draigBrady.com>.
28190 2012-01-05  Bruno Haible  <bruno@clisp.org>
28192         doc: Mention NetBSD bugs.
28193         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28194         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28196 2012-01-05  Bruno Haible  <bruno@clisp.org>
28198         strtoumax tests: Enhance tests.
28199         * tests/test-strtoumax.c (main): Add tests for large values.
28201 2012-01-05  Bruno Haible  <bruno@clisp.org>
28203         strtoimax: Work around AIX 5.1 bug.
28204         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28205         definition.
28206         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28207         Set HAVE_STRTOIMAX.
28208         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28209         REPLACE_STRTOIMAX.
28210         * modules/inttypes-incomplete (Makefile.am): Substitute
28211         REPLACE_STRTOIMAX.
28212         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28213         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28214         (Depends-on): Update conditions.
28215         * tests/test-strtoimax.c (main): Add tests for large values.
28216         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28218 2012-01-05  Bruno Haible  <bruno@clisp.org>
28220         inttypes: Modernize.
28221         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28222         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28223         (Makefile.am): Update inttypes.h rule.
28225 2012-01-05  Jim Meyering  <meyering@redhat.com>
28227         init.sh: don't waste a subshell just to redirect stderr
28228         * tests/init.sh: In testing for diff -u and diff -c, use a
28229         stderr-redirecting exec inside `...` rather than a subshell.
28231         test-init.sh: avoid failure on HP-UX 11.00
28232         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28233         resolves to diff -c or cmp.  Reported by Bruno Haible.
28235 2012-01-05  Bruno Haible  <bruno@clisp.org>
28237         Tests for module 'strtoull'.
28238         * modules/strtoull-tests: New file.
28239         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28241 2012-01-05  Bruno Haible  <bruno@clisp.org>
28243         Tests for module 'strtoll'.
28244         * modules/strtoll-tests: New file.
28245         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28247 2012-01-05  Bruno Haible  <bruno@clisp.org>
28249         Tests for module 'strtoul'.
28250         * modules/strtoul-tests: New file.
28251         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28253 2012-01-05  Bruno Haible  <bruno@clisp.org>
28255         Tests for module 'strtol'.
28256         * modules/strtol-tests: New file.
28257         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28259 2012-01-04  Jim Meyering  <meyering@redhat.com>
28261         test-init.sh: accommodate Solaris 5.10's different diff -u output
28262         * tests/test-init.sh: Also exempt @@ lines from the comparison
28263         of diff output, since Solaris 5.10 and GNU diff formats differ.
28264         Reported by Stefano Lattarini.
28266 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28268         test-posixtm: don't assume signed integer wraparound
28269         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28270         after signed integer overflow.  Inspired by (though it may not
28271         fix) Bruno Haible's bug report in
28272         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28274         Spell out "Windows 9x" and "Windows XP".
28275         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28276         "Windows 9x" and "WinXP" with "Windows XP".
28278 2012-01-04  Jim Meyering  <meyering@redhat.com>
28280         test-vc-list-files-cvs.sh: remove obsolete comment
28281         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28282         double exit.  Now that's all encapsulated via skip_ and Exit.
28284 2012-01-04  Bruno Haible  <bruno@clisp.org>
28286         Talk about "native Windows API", not "Win32".
28287         * lib/classpath.c: Update comments to mention native Windows.
28288         * lib/csharpexec.c: Likewise.
28289         * lib/dup2.c: Likewise.
28290         * lib/error.c: Likewise.
28291         * lib/fcntl.c: Likewise.
28292         * lib/filename.h: Likewise.
28293         * lib/findprog.c: Likewise.
28294         * lib/get-rusage-as.c: Likewise.
28295         * lib/get-rusage-data.c: Likewise.
28296         * lib/getpagesize.c: Likewise.
28297         * lib/javaexec.c: Likewise.
28298         * lib/msvc-inval.c: Likewise.
28299         * lib/msvc-nothrow.c: Likewise.
28300         * lib/nanosleep.c: Likewise.
28301         * lib/nonblocking.c: Likewise.
28302         * lib/printf-parse.c: Likewise.
28303         * lib/setlocale.c: Likewise.
28304         * lib/sigaction.c: Likewise.
28305         * lib/strerror_r.c: Likewise.
28306         * lib/tmpdir.c: Likewise.
28307         * lib/vasnprintf.c: Likewise.
28308         * lib/w32spawn.h: Likewise.
28309         * lib/waitpid.c: Likewise.
28310         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28311         * m4/locale-ar.m4: Likewise.
28312         * m4/locale-fr.m4: Likewise.
28313         * m4/locale-ja.m4: Likewise.
28314         * m4/locale-tr.m4: Likewise.
28315         * m4/locale-zh.m4: Likewise.
28316         * m4/printf.m4: Likewise.
28317         * tests/test-cloexec.c: Likewise.
28318         * tests/test-copy-acl.sh: Likewise.
28319         * tests/test-copy-file.sh: Likewise.
28320         * tests/test-file-has-acl.sh: Likewise.
28321         * tests/test-set-mode-acl.sh: Likewise.
28322         * tests/test-dup-safer.c: Likewise.
28323         * tests/test-dup2.c: Likewise.
28324         * tests/test-dup3.c: Likewise.
28325         * tests/test-fcntl.c: Likewise.
28326         * tests/test-nonblocking-pipe.h: Likewise.
28327         * tests/test-nonblocking-socket.h: Likewise.
28328         * tests/test-pipe.c: Likewise.
28329         * tests/test-pipe2.c: Likewise.
28330         * tests/test-spawn-pipe-child.c: Likewise.
28331         * doc/acl-resources.txt: Likewise.
28332         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28333         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28334         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28335         * lib/localcharset.c: Update comments to mention native Windows.
28336         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28337         * lib/localename.c: Likewise.
28338         * lib/progreloc.c: Likewise.
28339         * lib/relocatable.c: Likewise.
28340         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28341         (windows_compute_revents): Renamed from win32_compute_revents.
28342         (windows_compute_revents_socket): Renamed from
28343         win32_compute_revents_socket.
28344         * lib/select.c: Update comments to mention native Windows.
28345         (windows_poll_handle): Renamed from win32_poll_handle.
28346         * m4/threadlib.m4: Update comments to mention native Windows.
28347         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28348         --enable-threads=windows instead of --enable-threads=win32. Set
28349         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28350         * lib/glthread/lock.h: Update comments to mention native Windows.
28351         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28352         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28353         USE_WIN32_THREADS.
28354         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28355         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28356         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28357         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28358         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28359         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28360         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28361         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28362         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28363         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28364         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28365         * tests/test-tls.c: Likewise.
28366         Rationale:
28367         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28368         on both 32-bit and 64-bit Windows systems.
28369         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28370         line of distinction is between "native Windows" on one side and Unix/
28371         POSIX systems on the other side. More details in
28372         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28373         Suggested by Paul Eggert.
28375 2012-01-03  Bruno Haible  <bruno@clisp.org>
28377         isatty: Support for MSVC 9.
28378         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28379         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28380         (_isatty_nothrow): New function.
28381         (isatty): Use it instead of _isatty.
28382         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28383         * lib/poll.c (IsConsoleHandle): Likewise.
28384         * lib/select.c (IsConsoleHandle): Likewise.
28385         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28386         (gl_PREREQ_ISATTY): New macro.
28387         * modules/isatty (Depends-on): Add msvc-inval.
28388         (configure.ac): Invoke gl_PREREQ_ISATTY.
28390 2012-01-03  Jim Meyering  <meyering@redhat.com>
28392         maint.mk: remove temporary transition aid from over 1.5 years ago
28393         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28394         purpose was to aid in the transition (avoiding silent malfunction)
28395         from that old name to the new _sc_search_regexp.  This shim was
28396         added by commit 219c504b.
28398         init.sh: do not try to accommodate compare arguments starting with "-"
28399         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28400         compare arguments that start with "-".  Besides, we do not worry
28401         about this when invoking diff or cmp; why start now with sed?
28402         Using "--" to separate options from argument would trigger sed
28403         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28404         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28406 2012-01-02  Bruno Haible  <bruno@clisp.org>
28408         Enhance tests for module 'isatty'.
28409         * modules/isatty-tests (Depends-on): Add pipe-posix.
28410         * tests/test-isatty.c: Include <fcntl.h>.
28411         (DEV_NULL): New macro.
28412         (main): Test the resut of isatty() also on regular files, pipes, and
28413         /dev/null.
28415         New module 'isatty'.
28416         * lib/unistd.in.h (isatty): New declaration.
28417         * lib/isatty.c: New file, based on an idea of
28418         Bastien Roucariès <roucaries.bastien@gmail.com>.
28419         * m4/isatty.m4: New file.
28420         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28421         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28422         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28423         REPLACE_ISATTY.
28424         * modules/isatty: New file.
28425         * doc/posix-functions/isatty.texi: Mention the new module.
28426         Suggested by Paolo Bonzini.
28428 2012-01-02  Bruno Haible  <bruno@clisp.org>
28430         canonicalize: Tweak 2011-12-29 commit.
28431         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28432         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28434 2012-01-02  Jim Meyering  <meyering@redhat.com>
28436         gitlog-to-changelog: describe input syntax in --help output
28437         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28439         gitlog-to-changelog: fix typo in --help: show backslash before email @
28440         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28441         in sources, but not in actual output.
28443 2011-12-30  Jim Meyering  <meyering@redhat.com>
28445         gitlog-to-changelog: don't malfunction when name contains %-directive
28446         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28447         in a name string cause trouble.  E.g., with a user name of "%s",
28448         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28450 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28452         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28453         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28454         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28455         the "  (tiny change)" notation that is appended to the standard
28456         ChangeLog "date  name  email" header line.
28458 2012-01-01  Jim Meyering  <meyering@redhat.com>
28460         test-framework-sh: init.sh: fix "make dist" failure
28461         When using gnulib-tool's --with-tests option and any module that
28462         depends on test-framework-sh, "make dist" would fail due to the
28463         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28464         in the gltests directory, and not in the gllib/ directory.
28465         One way to work around that is to move the EXTRA_DIST += init.sh
28466         from the primary module to the -tests one:
28467         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28468         * modules/test-framework-sh (Makefile.am): ...not here.
28469         Reported by Tom G. Christensen in
28470         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28472         version-etc: update copyright year reported by --version
28473         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28475 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28477         canonicalize: only stat() if required
28478         * lib/canonicalize.c (canonicalize_filename_mode):
28479         Avoid calling l?stat() when both CAN_MISSING,
28480         and CAN_NOLINKS are set, as we neither need
28481         to resolve symlinks or test component existence.
28483 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28485         doc: cover st_ino issues once; add OpenVMS etc.
28486         * doc/posix-functions/stat.texi (stat):
28487         * doc/posix-functions/lstat.texi (lstat):
28488         * doc/posix-functions/fstatat.texi (fstatat):
28489         * doc/posix-functions/fstat.texi (fstat):
28490         Move general 'struct stat' stuff to sys_stat.texi,
28491         leaving behind a pointer.
28492         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28493         Merge duplicate info about 'struct stat' problems into here.
28494         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28495         and suggest partial workarounds.
28497         same-inode: port to OpenVMS
28498         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28499         three st_ino values.
28501 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28503         canonicalize: fix references to stat() and lstat()
28504         * lib/canonicalize.c (canonicalize_filename_mode):
28505         Ensure references always resolve to a replacement
28506         function if required (even via a macro).
28508 2011-12-30  Jim Meyering  <meyering@redhat.com>
28510         gitlog-to-changelog: remove a little duplication
28511         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28512         rather than twice.
28514 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28516         canonicalize: add support for not resolving symlinks
28517         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28518         indicate we don't want to follow symlinks.  Also
28519         provide CAN_MODE_MASK to aid setting these existing
28520         mutually exclusive values.
28521         * lib/canonicalize.c (canonicalize_filename_mode):
28522         Extract the flags from can_mode parameter, which
28523         are currently just used to select between stat()
28524         and lstat().  Also ensure that mutually exclusive
28525         values are flagged immediately as invalid.
28526         * tests/test-canonicalize.c: Verify symlinks are
28527         not followed, and that invalid flag combinations
28528         are diagnosed.
28530 2011-12-25  Jim Meyering  <meyering@redhat.com>
28532         gitlog-to-changelog: do not clump multi-paragraph entries
28533         Identical header lines (date,name,email+coauthors) are suppressed,
28534         thus putting all entries with those same characteristics under
28535         a single header.  However, when a log entry consists of two or
28536         more paragraphs, it may not be clear where it starts and ends.
28537         This change makes it so that such an entry is always separated
28538         from others by a header line, even when that header would
28539         otherwise be suppressed.
28540         * build-aux/gitlog-to-changelog: Implement the above.
28541         Inspired by a related request from Stefano Lattarini in
28542         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28544 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28546         announce-gen: fix `cmd' typo in diagnostic
28547         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28548         diagnostic: a missing '$' meant that the command was not output.
28550 2011-12-23  Jim Meyering  <meyering@redhat.com>
28552         test-framework-sh: distribute init.sh
28553         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28554         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28555         fail due to the lack of init.sh.
28557         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28558         * modules/atexit-tests: Rather than listing tests/init.sh,
28559         now that there's a module for it, simply depend on that new module.
28560         * modules/closein-tests: Likewise.
28561         * modules/exclude-tests: Likewise.
28562         * modules/getcwd-tests: Likewise.
28563         * modules/perror-tests: Likewise.
28564         * modules/pread-tests: Likewise.
28565         * modules/pwrite-tests: Likewise.
28566         * modules/vc-list-files-tests: Likewise.
28567         * modules/verify-tests: Likewise.
28568         * modules/xalloc-die-tests: Likewise.
28569         * modules/xstrtoimax-tests: Likewise.
28570         * modules/xstrtol-tests: Likewise.
28571         * modules/xstrtoll-tests: Likewise.
28572         * modules/xstrtoumax-tests: Likewise.
28573         * modules/yesno-tests: Likewise.
28575 2011-12-22  Jim Meyering  <meyering@redhat.com>
28577         test-framework-sh: add minimal tests of init.sh's compare function
28578         * modules/test-framework-sh-tests: New file.
28579         * tests/test-init.sh: New file.
28581         test-framework-sh: new module
28582         * modules/test-framework-sh: New file.
28583         * MODULES.html.sh (Support for maintaining and releasing projects):
28584         List it.
28586         init.sh: do not emit simulated diff output to stderr
28587         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28589 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28591         .gitignore: ignore gnulib.dvi and regex.info
28592         * doc/.gitignore:add gnulib.dvi and regex.info
28594 2011-12-22  Jim Meyering  <meyering@redhat.com>
28596         init.sh: correct previous change
28597         * tests/init.sh (compare): My previous change was wrong.
28598         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28600         init.sh: avoid unwarranted test failure when using "set -e"
28601         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28602         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28603         a use like "compare exp out" would get evoke an unconditional failure.
28605 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28607         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28608         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28609         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28610         autoreconf that did not.
28611         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28612         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28614 2011-12-17  Jim Meyering  <meyering@redhat.com>
28616         bootstrap: remove some now-unneeded code
28617         This script arose back when gnulib-tool was young.
28618         Since then, it has seen improvements that render much of this
28619         script unnecessary.  In particular, it can now make symlinks
28620         to the files it uses.  Also, I no longer see as much value in
28621         marking files as read-only via comments.
28622         If you relied on the symlink-creation feature of the preceding
28623         version of this script, you can get most of that functionality
28624         by adding the --symlink option to the definition of
28625         gnulib_tool_option_extras in your bootstrap.conf file.
28626         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28627         Run autopoint and libtoolize *before* gnulib-tool.
28628         After it, run an abbreviated autoreconf, rather than a loop around
28629         all tools.
28630         (slirp, bt_mark_as_generated): Remove functions.
28632 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28634         ftoastr: fix typo
28635         * lib/ftoastr.h: Fix misspelling in comment.
28637 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28639         * top/README-release: fix punctuation.
28641 2011-12-17  Jim Meyering  <meyering@redhat.com>
28643         bootstrap: correct the recent buildreq change
28644         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28645         had no effect.
28646         * build-aux/bootstrap (buildreq): Bracket each search term with
28647         "*...*", so that the shell "case" statement works as intended.
28648         Add comments.
28650 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28652         build: let bootstrap resort to wget when downloading .po files
28653         * build-aux/bootstrap (download_po_files): Fallback to wget when
28654         downloading the .po files via rsync fails.  This is necessary to
28655         bootstrap from behind a strict firewall.
28657 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28659         stdint: don't assume C++11 when compiling with g++
28660         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28661         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28662         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28663         work also in C++ before C++11, as that improperly inhibits
28664         generating a substitute stdint.h for that case.
28666 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28668         alloca: protect comment from gnulib-tool
28669         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28670         that gnulib-tool doesn't think it's a license, and munge it to
28671         say "GCC version 3".
28673 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28675         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28676         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28677         $(abs_top_builddir) instead of $(top_builddir).
28679 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28681         strftime-tests: also test nanoseconds
28682         * tests/test-strftime.c (T): Add a test of %N.
28684 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28686         inttypes, stdint: add C++11 support
28687         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28688         when including inttypes.h and stdint.h.  Support this change to
28689         the standard.
28690         * doc/posix-headers/inttypes.texi (inttypes.h):
28691         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28692         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28693         Define if not defined already, for the benefit of pre-C++11 hosts.
28694         Define the standard format macros (e.g., PRId8) always.
28695         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28696         Likewise, if __cpluspus.  Define the standard constant and limit
28697         macros (e.g., INT8_C, INT8_MAX) always.
28698         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28699         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28700         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28701         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28702         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28703         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28704         Likewise.
28706 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28708         nonblocking tests: Fix test failure on Linux/PPC.
28709         Suggested by Prerna Saxena in
28710         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28711         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28712         Set to 1100000.
28714 2011-12-12  Jim Meyering  <meyering@redhat.com>
28716         argmatch: don't hard-code `' when listing valid option arguments
28717         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28718         use the quote function to add quotes.  Use fputs rather than
28719         fprintf for the format string with no format directive.
28721 2011-12-07  Eric Blake  <eblake@redhat.com>
28723         bootstrap: detect tools required by gnulib-tool
28724         * build-aux/bootstrap (buildreq): Provide minimum implicit
28725         dependencies.
28726         * DEPENDENCIES: Mention patch as a prereq.
28728 2011-12-04  Bruno Haible  <bruno@clisp.org>
28730         sethostname: Port to Windows platforms.
28731         * lib/sethostname.c: Provide an alternate implementation for Windows
28732         platforms.
28733         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28734         (main): Skip the test if sethostname() fails with EPERM. On Windows
28735         platforms, don't check the result of gethostname().
28737 2011-12-04  Bruno Haible  <bruno@clisp.org>
28738             Jim Meyering  <meyering@redhat.com>
28740         tests: Avoid spurious error message on platforms without mktemp program.
28741         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28743 2011-12-04  Bruno Haible  <bruno@clisp.org>
28745         sethostname: Fix documentation.
28746         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28747         "not fixed" section.
28749 2011-12-03  Bruno Haible  <bruno@clisp.org>
28751         gnulib-tool: Verify that the License field is present and non-empty.
28752         * gnulib-tool (func_get_license_raw): New function, extracted from
28753         func_get_license.
28754         (func_get_license): Use it. Warn if the module is not a test module and
28755         has no license.
28756         Suggested by Jim Meyering.
28758 2011-12-03  Bruno Haible  <bruno@clisp.org>
28760         sethostname tests: Fix link error on mingw.
28761         * tests/test-sethostname1.c: New file, extracted from
28762         tests/test-sethostname.c.
28763         * tests/test-sethostname2.c: New file, extracted from
28764         tests/test-sethostname.c.
28765         * tests/test-sethostname.c: Remove file.
28766         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28767         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28768         (Depends-on): Add gethostname.
28769         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28770         Link the latter with $(GETHOSTNAME_LIB).
28772         sethostname tests: Fix compilation error on mingw.
28773         * tests/test-sethostname.c: Don't include <sys/types.h>.
28774         (geteuid): Use a dummy value without uid_t.
28775         * modules/sethostname-tests (Depends-on): Remove sys_types.
28777         sethostname tests: Avoid a gcc warning.
28778         * tests/test-sethostname.c (main): Remove an unused variable.
28780         Tweak last commit.
28781         * modules/sethostname-tests (Files): Sort by decreasing importance.
28782         (configure.ac): Check for geteuid.
28783         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28784         the test when there's nothing to test. Drop an unnecessary cast.
28785         Improve an error message. Verify that the final sethostname() call
28786         succeeds.
28788 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28790         Add a test suite for the sethostname module.
28791         * modules/sethostname-tests: New file.  A test program
28792         for the sethostname module.
28793         * tests/test-sethostname.c: Likewise.
28795 2011-12-03  Bruno Haible  <bruno@clisp.org>
28797         Tweak last commit.
28798         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28799         Fix preprocessor directives indentation. Fix typos.
28800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28801         * modules/unistd (Makefile): Likewise.
28803 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28805         Integrate the sethostname module into unistd.
28806         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28807         into the unistd.h header.
28808         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28809         preprocessor directives.
28810         * modules/unistd: Setup the Makefile substitutions of the
28811         SETHOSTNAME preprocessor directives.
28813 2011-12-03  Bruno Haible  <bruno@clisp.org>
28815         Tweak last commit.
28816         * lib/sethostname.c: Don't include <string.h>.
28817         (sethostname): No need to copy the argument string to the stack. Don't
28818         call clearerr. Preserve errno when fprintf failed.
28819         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28820         Don't invoke AC_REPLACE_FUNCS.
28821         * modules/sethostname (Link): Remove empty section.
28822         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28823         failure problem.
28825 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28827         New module 'sethostname'.
28828         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28829         for systems that lack it.
28830         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28831         sethostname declaration and function.
28832         * modules/sethostname: New file.  Define the sethostname module.
28834 2011-12-03  Bruno Haible  <bruno@clisp.org>
28836         Tweak last commit.
28837         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28839 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28841         Split the HOST_NAME_MAX detection into a separate m4 macro.
28842         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28843         macro so it can be used by the pending sethostname module.
28845 2011-12-03  Bruno Haible  <bruno@clisp.org>
28847         Fix module descriptions syntax.
28848         * modules/argv-iter (License): Fix syntax.
28849         * modules/di-set (License): Likewise.
28850         * modules/ino-map (License): Likewise.
28851         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28853 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28855         stdalign: port to Clang 3.0
28856         Problem reported by Simon Josefsson in
28857         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28858         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28859         which has <stdalign.h> but which does not define alignof.
28860         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28862 2011-12-01  Eric Blake  <eblake@redhat.com>
28864         mktempd: silence dd usage
28865         * build-aux/mktempd (rand_bytes): Silence dd.
28867 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28869         manywarnings: Don't mention gcc version in docstring.
28870         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28871         Jim Meyering <meyering@redhat.com>.
28873 2011-11-30  Jim Meyering  <meyering@redhat.com>
28875         hash: mark a few floating point constants with "f" suffix
28876         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28877         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28878         floating point constants with "f", since they're destined to be
28879         saved/used as "float"s.
28881 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28883         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28884         * tests/test-float.c (test_long_double): Correct and re-enable the
28885         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28887 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28889         Avoid subtracting two pointers that don't point into the same block.
28890         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28891         only pointers into the same memory block are subtracted. We cannot
28892         assume that sizeof (ptrdiff_t) == sizeof (void *).
28894 2011-11-29  Eric Blake  <eblake@redhat.com>
28896         maint.mk: add syntax check for use of compare from init.sh
28897         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28898         moved here from coreutils.
28900         manywarnings: drop -Wunsuffixed-float-constants
28901         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28902         '1.0D', which is the only way to silence this warning for 'double'.
28904 2011-11-29  Jim Meyering  <meyering@redhat.com>
28906         hash: mark compute_bucket_size with the pure attribute
28907         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28909         quotearg, propername: correct pragma guard expression
28910         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28911         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28913 2011-11-28  Jim Meyering  <meyering@redhat.com>
28915         propername: do not mark proper_name with the const attribute
28916         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28917         since it examines data pointed to by its parameter.
28918         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28919         the suggestion from -Wsuggest-attribute=const.
28921         propername: mark one more function as const
28922         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28924 2011-11-27  Jim Meyering  <meyering@redhat.com>
28926         mark functions with const and pure attributes
28928         Mark functions per suggestions from gcc-4.6 when using these options:
28929         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28930         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28931         Follow these guidelines: when possible, apply the attribute to
28932         an extern declaration, not to its definition.  Apply it to the
28933         definition only when the definition is static.
28934         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28935         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28936         * lib/base64.h (isbase64): Likewise.
28937         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28938         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28939         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28940         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28941         (c_tolower, c_toupper): Likewise.
28942         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28943         * lib/chdir-long.c (find_non_slash): Likewise.
28944         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28945         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28946         * lib/file-type.h (file_type): Likewise.
28947         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28948         * lib/filevercmp.c (verrevcmp): Likewise.
28949         * lib/freadahead.h (freadahead): Likewise.
28950         * lib/fts.c (fts_maxarglen): Likewise.
28951         * lib/hash-pjw.h (hash_pjw): Likewise.
28952         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28953         * lib/hash.c (is_prime, next_prime): Likewise.
28954         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28955         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28956         (hash_table_ok, hash_get_first, hash_string): Likewise.
28957         (compute_bucket_size): Likewise.
28958         * lib/i-ring.h (i_ring_empty): Likewise.
28959         * lib/isnan.c (isnanl): Likewise.
28960         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28961         * lib/memcasecmp.h (memcasecmp): Likewise.
28962         * lib/memchr2.h (memchr2): Likewise.
28963         * lib/memcmp2.h (memcmp2): Likewise.
28964         * lib/parse-datetime.y (lookup_zone): Likewise.
28965         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28966         [!WINDOWS_SOCKETS]: Likewise.
28967         * lib/strnlen1.h (strnlen1): Likewise.
28968         * lib/uniwidth.in.h (uc_width): Likewise.
28969         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28970         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28971         (quoting_options_from_style): Add a comment.
28972         * lib/propername.h (proper_name): Add a comment.
28974 2011-11-27  Bruno Haible  <bruno@clisp.org>
28976         Remove unused macros from !_LIBC code in glibc-borrowed files.
28977         * lib/fnmatch.c (STRCOLL): Remove macro.
28978         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28979         * lib/glob.c (__stat, __readdir64): Remove macros.
28980         * lib/tempname.c (__open64, __xstat64): Remove macros.
28981         Suggested by Paul Eggert.
28983 2011-11-27  Bruno Haible  <bruno@clisp.org>
28985         getcwd: Fix link error on MSVC 9.
28986         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28988 2011-11-27  Bruno Haible  <bruno@clisp.org>
28990         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28991         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28992         HAVE_OPENDIR is 0.
28993         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28994         HAVE_CLOSEDIR is 0.
28995         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28996         is 0.
28997         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28999 2011-11-27  Bruno Haible  <bruno@clisp.org>
29001         getcwd: Fix bug from 2011-08-17.
29002         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
29003         platforms that need it.
29004         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
29005         code of 4 to be a failure, not a success. This ensures that
29006         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
29008 2011-11-27  Bruno Haible  <bruno@clisp.org>
29010         binary-io tests: Avoid test failure on mingw when libtool is used.
29011         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
29012         Don't verify the size of t-bin-out1.tmp here.
29013         * tests/test-binary-io.sh: Verify it here.
29014         Reported by Simon Josefsson.
29016 2011-11-26  Bruno Haible  <bruno@clisp.org>
29018         Fix conflict between two instantiations of module 'unistd'.
29019         * gnulib-tool (func_emit_autoconf_snippet): Substitute
29020         ${include_guard_prefix} also in the autoconf snippet.
29021         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
29022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
29023         GNULIB_UNISTD_H_GETOPT.
29024         * modules/getopt-posix (configure.ac): Set the
29025         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
29026         * modules/getopt-gnu (configure.ac): Likewise.
29027         * modules/unistd (Makefile.am): Change the substitution value of
29028         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
29029         Reported by Simon Josefsson.
29031 2011-11-25  Bruno Haible  <bruno@clisp.org>
29033         pagealign_alloc: Doc and comments.
29034         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
29035         module.
29036         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
29038 2011-11-25  Jim Meyering  <meyering@redhat.com>
29040         test-update-copyright.sh: avoid false-positive failure
29041         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
29042         around false positive failure on Cygwin/Windows.  The latter was
29043         matching erroneously-created files with names like
29044         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
29046 2011-11-25  Simon Josefsson  <simon@josefsson.org>
29048         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
29049         * m4/valgrind-tests.m4: Check that the parameters that will be
29050         used works, not just a subset of them.  Reported by Bruno Haible
29051         <bruno@clisp.org>.
29053 2011-11-24  Jim Meyering  <meyering@redhat.com>
29055         test-stdalign.c: comment out long double tests
29056         * tests/test-stdalign.c: Don't try to reduce alignment of long double
29057         variables.  That provokes errors like this from gcc-4.7.0 20111124:
29058         error: '_Alignas' specifiers cannot reduce alignment of \
29059         'static_longdouble_alignas'.
29061 2011-11-22  Jim Meyering  <meyering@redhat.com>
29063         init.sh: make "compare /dev/null FILE" output more readable
29064         * tests/init.sh (compare_): Document the preferred order of arguments.
29065         (emit_diff_u_header_): New function.
29066         (compare_dev_null_): Emit a simulated diff, rather than just the
29067         contents of the unexpected file.  Suggestion from Bruno Haible.
29069 2011-11-21  Jim Meyering  <meyering@redhat.com>
29070             Eric Blake  <eblake@redhat.com>
29072         init.sh: work around OSF/1 5.1's mishandling of /dev/null
29073         * tests/init.sh: Make our compare function slightly more portable.
29074         Reported by Bruno Haible in
29075         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
29077 2011-11-21  Simon Josefsson  <simon@josefsson.org>
29079         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
29080         before using it, in code that ends up in config.h.
29082 2011-11-20  Bruno Haible  <bruno@clisp.org>
29084         getcwd: Work around getcwd bug on AIX 5..7.
29085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
29086         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
29087         Use a different value for gl_cv_func_getcwd_path_max. Move the
29088         definition of HAVE_PARTLY_WORKING_GETCWD from here...
29089         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
29090         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
29091         Define HAVE_MINIMALLY_WORKING_GETCWD.
29092         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
29093         where it is not even minimally working, that is, on AIX.
29094         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
29095         m4/getcwd-path-max.m4.
29096         (main): Update exit code computation.
29097         * doc/posix-functions/getcwd.texi: Mention list of platforms where
29098         getcwd does not handle long file names.
29100 2011-11-20  Bruno Haible  <bruno@clisp.org>
29102         getcwd: Fix bug from 2009-09-10.
29103         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
29104         like "no".
29106 2011-11-20  Simon Josefsson  <simon@josefsson.org>
29108         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
29110 2011-11-20  Bruno Haible  <bruno@clisp.org>
29112         fma tests: Avoid shadowing local variables.
29113         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
29114         expected.
29116 2011-11-20  Bruno Haible  <bruno@clisp.org>
29118         copysignf tests: Fix.
29119         * tests/test-copysignf.c: Fix signature check.
29121 2011-11-20  Bruno Haible  <bruno@clisp.org>
29123         fma: Remove unused code.
29124         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29125         unused macros.
29127 2011-11-20  Bruno Haible  <bruno@clisp.org>
29129         sethostname: Fix doc about AIX.
29130         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29131         sethostname; it has it.
29133         sethostname: Mention more portability problems.
29134         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29135         problem.
29136         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29138 2011-11-19  Bruno Haible  <bruno@clisp.org>
29140         Depend on module fcntl-h when AT_FDCWD is used.
29141         * modules/utimens (Depends-on): Add fcntl-h.
29142         * modules/areadlinkat (Depends-on): Likewise.
29143         * modules/areadlinkat-with-size (Depends-on): Likewise.
29144         * modules/faccessat (Depends-on): Likewise.
29145         * modules/fchmodat (Depends-on): Likewise.
29146         * modules/fchownat (Depends-on): Likewise.
29147         * modules/getcwd (Depends-on): Likewise.
29148         * modules/mkdirat (Depends-on): Likewise.
29149         * modules/mkfifoat (Depends-on): Likewise.
29150         * modules/readlinkat (Depends-on): Likewise.
29151         * modules/symlinkat (Depends-on): Likewise.
29152         * modules/dup2-tests (Depends-on): Likewise.
29153         * modules/fdutimensat-tests (Depends-on): Likewise.
29154         * modules/futimens-tests (Depends-on): Likewise.
29156 2011-11-19  Bruno Haible  <bruno@clisp.org>
29158         euidaccess: Update a comment.
29159         * lib/euidaccess.c: Update comment about platforms with faccessat.
29161 2011-11-19  Bruno Haible  <bruno@clisp.org>
29163         openat: Fix file list.
29164         * modules/openat (Files): Remove lib/at-func.c.
29166 2011-11-19  Bruno Haible  <bruno@clisp.org>
29168         fstatat: Simplify.
29169         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29170         gnulib should define rpl_fstatat, there is a
29171         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29173 2011-11-19  Bruno Haible  <bruno@clisp.org>
29175         Ensure 'inline' can be used in tests/test-utimens-common.h.
29176         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29177         * modules/futimens-tests (configure.ac): Likewise.
29178         * modules/utimens-tests (configure.ac): Likewise.
29179         * modules/utimensat-tests (configure.ac): Likewise.
29181 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29183         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29184         not hash_insert0.
29185         (hash_insert_if_absent): Doc fix.
29187 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29189         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29191 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29193         test-getcwd: disambiguate exit status
29194         * tests/test-getcwd.c (test_long_name): Return 0..7.
29195         (main): Exit with an unambiguous exit status.  The old
29196         code yielded a mysterious mixture of two failure codes.
29198         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29199         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29200         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29201         rpl_fstatat or fstatat.  This should fix the other problem
29202         reported by Kai Habel in
29203         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29204         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29205         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29206         and I reproduced it on a Solaris 8 host we still have in production.
29208 2011-11-18  Jim Meyering  <meyering@redhat.com>
29210         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29211         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29212         Add a sentence to the comment.
29213         (hash_insert0): New function that simply calls hash_insert_if_absent.
29214         * lib/hash.h (hash_insert_if_absent): Declare it.
29215         (hash_insert0): Add deprecation attribute.
29216         (_GL_ATTRIBUTE_DEPRECATED): Define.
29217         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29218         not hash_insert0.
29219         * NEWS: Mention it, even though it's not really an incompatible change.
29221 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29223         openat: avoid compilation failure due to lack of <errno.h> inclusion
29224         * lib/openat.c: Include <errno.h>.
29226 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29228         * modules/getcwd (Depends-on): Add fdopendir.
29229         This fixes one of the two problems reported by Kai Habel in
29230         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29232         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29233         stdalign problem reported by Ian Beckwith in
29234         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29235         * modules/crypto/gc-arcfour (Depends-on):
29236         Depend conditionally on crypto/arcfour.
29237         * modules/crypto/gc-arctwo (Depends-on):
29238         Depend conditionally on crypto/arctwo.
29239         * modules/crypto/gc-des (Depends-on):
29240         Depend conditionally on crypto/des.
29241         * modules/crypto/gc-hmac-md5 (Depends-on):
29242         Depend conditionally on crypto/hmac-md5.
29243         * modules/crypto/gc-hmac-sha1 (Depends-on):
29244         Depend conditionally on crypto/hmac-sha1.
29245         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29246         * modules/crypto/gc-md4 (Depends-on):
29247         Depend conditionally on crypto/md4.
29248         * modules/crypto/gc-md5 (Depends-on):
29249         Depend conditionally on crypto/md5.
29250         * modules/crypto/gc-rijndael (Depends-on):
29251         Depend conditionally on crypto/rijndael.
29252         * modules/crypto/gc-sha1 (Depends-on):
29253         Depend conditionally on crypto/sha1.
29254         * modules/crypto/gc-arcfour:
29255         * modules/crypto/gc-arctwo:
29256         * modules/crypto/gc-des:
29257         * modules/crypto/gc-hmac-md5:
29258         * modules/crypto/gc-hmac-sha1:
29259         * modules/crypto/gc-md2:
29260         * modules/crypto/gc-md4:
29261         * modules/crypto/gc-md5:
29262         * modules/crypto/gc-rijndael:
29263         * modules/crypto/gc-sha1:
29264         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29265         now that the conditional dependencies do the work for us.
29267 2011-11-17  Jim Meyering  <meyering@redhat.com>
29269         tests: factor st_ctime-comparison out of two headers
29270         * tests/test-utimens-common.h (ctime_compare): Define.
29271         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29272         * tests/test-lutimens.h (test_lutimens): Likewise.
29273         * tests/test-utimens.h (test_utimens): Likewise.
29275         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29276         Invoke the test program via an init.sh-using wrapper.
29277         * tests/test-getcwd.sh: New file.
29278         * modules/getcwd-tests (Files): Add it.
29279         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29281 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29283         gitlog-to-changelog: support multi-author commits.
29284         The FSF cares about keeping track of all authors of patches to its
29285         projects, but Git doesn't provide obvious support for multi-author
29286         changesets. Consensus seems to be forming around the use of extra
29287         Signed-off-by inspired lines in the log message formatted as
29288         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29289         multi-author commits between version control systems.
29290         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29291         log message and output in standard ChangeLog multi-author format.
29292         Reported by Peter Rosin <peda@lysator.liu.se>
29294 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29295             Bruno Haible  <bruno@clisp.org>
29297         Fix some modules' file list.
29298         * modules/fstatat (Files): Add m4/lstat.m4.
29299         * modules/openat (Files): Likewise.
29300         * modules/unlinkat (Files): Likewise.
29302 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29304         maint.mk: fix tight-scope.mk generation in VPATH builds.
29305         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29306         reference with $(srcdir) so that the file is found correctly even
29307         when running `make syntax-check' in a VPATH build.
29309 2011-11-13  Bruno Haible  <bruno@clisp.org>
29310             Jim Meyering  <meyering@redhat.com>
29312         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29313         * tests/init.sh (compare): Remove "No differences encountered" or
29314         synonymous output from the 'diff' program.
29316 2011-11-13  Bruno Haible  <bruno@clisp.org>
29318         Makefile: Tweak indentation.
29319         * Makefile: Use tab as first character in every line that contains rule
29320         commands.
29322 2011-11-13  Bruno Haible  <bruno@clisp.org>
29324         Syntax check for copyright statements.
29325         * check-copyright: New file.
29326         * Makefile (sc_check_copyright): New rule.
29328 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29330         * build-aux/git-version-gen: Add --prefix to configure the tag
29331         match string.
29333 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29335         * build-aux/git-version-gen: Add --help and --version.
29337 2011-11-12  Jim Meyering  <meyering@redhat.com>
29339         revamp the other test-exclude?.sh scripts to use init.sh, too
29340         * tests/test-exclude1.sh: Use init.sh.
29341         * tests/test-exclude2.sh: Likewise.
29342         * tests/test-exclude3.sh: Likewise.
29343         * tests/test-exclude4.sh: Likewise.
29344         * tests/test-exclude5.sh: Likewise.
29345         * tests/test-exclude6.sh: Likewise.
29346         * tests/test-exclude7.sh: Likewise.
29347         * tests/test-exclude8.sh: Likewise.
29348         * modules/exclude-tests (Files): List init.sh.
29350         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29351         These shell scripts ignored failure of the binary test-exclude,
29352         so making the latter return 77 didn't cause them to be skipped.
29353         * tests/test-exclude5.sh: Exit with test-exclude's error status
29354         when that program fails.  Revamp to use init.sh.
29355         * tests/test-exclude2.sh: Likewise.
29357         test-exclude: fix a typo
29358         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29360 2011-11-11  Bruno Haible  <bruno@clisp.org>
29362         obstack: Fix compilation error on MSVC 9.
29363         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29365 2011-11-11  Jim Meyering  <meyering@redhat.com>
29367         test-exclude: skip tests rather than failing on deficient systems
29368         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29369         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29370         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29371         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29373 2011-11-10  Bruno Haible  <bruno@clisp.org>
29375         ptsname_r test: Avoid gcc warning on glibc systems.
29376         * tests/test-ptsname_r.c (null_ptr): New function.
29377         (test_errors): Use it.
29379 2011-11-10  Bruno Haible  <bruno@clisp.org>
29381         ptsname_r: Avoid compilation error on OSF/1 5.1.
29382         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29384         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29385         function is not declared or incompatibly declared.
29386         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29387         * modules/ptsname_r (Depends-on, configure.ac): Update.
29388         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29390 2011-11-10  Bruno Haible  <bruno@clisp.org>
29392         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29393         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29394         When cross-compiling, guess yes on all platforms except AIX.
29395         Reported by Ludovic Courtès <ludo@gnu.org>.
29397 2011-11-09  Bruno Haible  <bruno@clisp.org>
29399         ptsname_r tests: Fix bugs.
29400         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29401         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29403 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29405         fstatat: work with cross-compilation
29406         Problem reported by Ludovic Courtès in
29407         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29408         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29409         "cross-compiling" and assume the bug is present.  Replace
29410         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29411         an inverted sense, to be more conservative about our assumptions.
29412         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29414 2011-11-09  Bruno Haible  <bruno@clisp.org>
29416         Improve MODULES.html output.
29417         * modules/mkfifoat (Description): Use the word "function".
29418         * modules/readlinkat (Description): Likewise.
29419         * modules/symlinkat (Description): Likewise.
29421 2011-11-09  Eric Blake  <eblake@redhat.com>
29423         ptsname_r-tests: new test module
29424         * modules/ptsname_r-tests: New module.
29425         * tests/test-ptsname_r.c: New file.
29427         ptsname_r: new module
29428         * modules/ptsname_r: New module.
29429         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29430         * lib/ptsname.c (__ptsname_r): Split...
29431         * lib/ptsname_r.c: ...into new file.
29432         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29433         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29434         * modules/stdlib (Makefile.am): Substitute witnesses.
29435         * lib/stdlib.in.h (ptsname_r): Declare it.
29436         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29437         * MODULES.html.sh (Misc): Likewise.
29438         * modules/ptsname (Depends-on): Alter dependency.
29439         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29441 2011-11-09  Jim Meyering  <meyering@redhat.com>
29443         announce-gen: be more concise when there's only one URL+tarball
29444         * build-aux/announce-gen (get_tool_versions): When you distribute
29445         only one type of tarball, combine the first two "Here are..."
29446         sections and make the key-checking grammar independent of
29447         how many tarballs there are.
29449 2011-11-09  Eric Blake  <eblake@redhat.com>
29451         openpty: provide a stub on mingw
29452         * lib/pty.in.h (includes): Provide forward declarations.
29453         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29455         raise: fix mingw handling of SIGPIPE
29456         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29458 2011-11-08  Bruno Haible  <bruno@clisp.org>
29460         More conditional dependencies.
29461         * modules/faccessat (Depends-on): Add conditions.
29462         * modules/fchmodat (Depends-on): Likewise.
29463         * modules/fchownat (Depends-on): Likewise.
29464         * modules/fstatat (Depends-on): Likewise.
29465         * modules/mkfifoat (Depends-on): Likewise.
29466         * modules/readlinkat (Depends-on): Likewise.
29467         * modules/symlinkat (Depends-on): Likewise.
29468         * modules/unlinkat (Depends-on): Likewise.
29469         * modules/utimensat (Depends-on): Likewise.
29470         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29471         * modules/linkat (Depends-on): Refine the conditions.
29472         * modules/renameat (Depends-on): Likewise.
29474 2011-11-08  Bruno Haible  <bruno@clisp.org>
29476         faccessat: Move AC_LIBOBJ invocation to module description.
29477         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29478         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29479         invocation from here...
29480         * modules/faccessat (configure.ac): ... to here. Invoke
29481         gl_PREREQ_FACCESSAT.
29483 2011-11-08  Bruno Haible  <bruno@clisp.org>
29485         faccessat: Simplify autoconf macro.
29486         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29487         gl_FUNC_EUIDACCESS.
29489 2011-11-08  Bruno Haible  <bruno@clisp.org>
29491         renameat: Fix dependencies.
29492         * modules/renameat (Depends-on): Add stdbool.
29494 2011-11-08  Bruno Haible  <bruno@clisp.org>
29496         mkfifoat: Fix module description.
29497         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29498         not gl_UNISTD_MODULE_INDICATOR.
29500 2011-11-08  Bruno Haible  <bruno@clisp.org>
29502         fstatat: Remove unused dependency.
29503         * modules/fstatat (Depends-on): Remove fstat.
29505 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29507         GNUmakefile: behave when Makefile is missing.
29508         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29510 2011-11-08  Bruno Haible  <bruno@clisp.org>
29512         openat: Conditionalize dependencies.
29513         * lib/openat.c: Reduce the scope of some #includes.
29514         * modules/openat (Depends-on): Add conditions.
29516 2011-11-07  Jim Meyering  <meyering@redhat.com>
29518         maint.mk: extract GPG key ID without using a temporary file
29519         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29520         without using a temporary file.  Based on a suggestion from Werner Koch
29521         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29523 2011-11-07  Eric Blake  <eblake@redhat.com>
29525         grantpt: fix typo
29526         * lib/stdlib.in.h (grantpt): Check correct function.
29528         maint.mk: silence new syntax check
29529         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29531 2011-11-06  Bruno Haible  <bruno@clisp.org>
29533         Doc about floating-point and math API.
29534         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29535         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29537 2011-11-06  Bruno Haible  <bruno@clisp.org>
29539         stdalign tests: Skip the test when compiled by Sun C.
29540         * tests/test-stdalign.c (main): Skip the test on Sun C.
29542 2011-11-06  Bruno Haible  <bruno@clisp.org>
29544         ansi-c++-opt: Complete the 2011-06-05 change.
29545         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29546         does not support namespaces, set the variable to "no", not to ":".
29548 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29550         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29552 2011-11-06  Bruno Haible  <bruno@clisp.org>
29554         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29555         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29556         (minus_zerol) [HP-UX]: New macro.
29557         (unary_minus) [HP-UX]: New function.
29558         (copysignl) [HP-UX]: Use unary_minus function.
29560 2011-11-06  Bruno Haible  <bruno@clisp.org>
29562         ldexp, ldexpf, ldexpl: Enhance tests.
29563         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29564         and tests/test-ldexpl.c.
29565         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29566         LDEXP, MIN_EXP, MAX_EXP): New macros.
29567         Include test-ldexp.h.
29568         (main): Just call test_function.
29569         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29570         infinity.h, nan.h.
29571         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29572         MAX_EXP): New macros.
29573         Include test-ldexp.h.
29574         (x, y): Remove variables.
29575         (main): Just call test_function.
29576         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29577         infinity.h, nan.h.
29578         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29579         MAX_EXP): New macros.
29580         Include test-ldexp.h.
29581         (x, y): Remove variables.
29582         (main): Just call test_function.
29583         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29584         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29585         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29586         (Depends-on): Add isnand-nolibm, signbit, float.
29587         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29588         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29589         (Depends-on): Add isnanf-nolibm, signbit, float.
29591 2011-11-06  Bruno Haible  <bruno@clisp.org>
29593         math tests: Cosmetics.
29594         * tests/test-math-c++.cc: Reorder declarations.
29596 2011-11-05  Bruno Haible  <bruno@clisp.org>
29598         fma*: Simplify test.
29599         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29600         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29602         Tests for module 'fmal'.
29603         * modules/fmal-tests: New file.
29604         * tests/test-fmal1.c: New file.
29605         * tests/test-fmal2.c: New file.
29607         New module 'fmal'.
29608         * lib/math.in.h (fmal): New declaration.
29609         * lib/fmal.c: New file.
29610         * m4/fmal.m4: New file.
29611         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29613         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29614         REPLACE_FMAL.
29615         * modules/fmal: New file.
29616         * doc/posix-functions/fmal.texi: Mention the new module and the various
29617         bugs.
29619         Tests for module 'fmaf'.
29620         * modules/fmaf-tests: New file.
29621         * tests/test-fmaf1.c: New file.
29622         * tests/test-fmaf2.c: New file.
29624         New module 'fmaf'.
29625         * lib/math.in.h (fmaf): New declaration.
29626         * lib/fmaf.c: New file.
29627         * m4/fmaf.m4: New file.
29628         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29630         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29631         REPLACE_FMAF.
29632         * modules/fmaf: New file.
29633         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29634         bugs.
29636         Tests for module 'fma'.
29637         * modules/fma-tests: New file.
29638         * tests/test-fma1.c: New file.
29639         * tests/test-fma1.h: New file.
29640         * tests/test-fma2.c: New file.
29641         * tests/test-fma2.h: New file.
29643         New module 'fma'.
29644         * lib/math.in.h (fma): New declaration.
29645         * lib/fma.c: New file.
29646         * m4/fma.m4: New file.
29647         * m4/fegetround.m4: New file.
29648         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29650         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29651         REPLACE_FMA.
29652         * modules/fma: New file.
29653         * doc/posix-functions/fma.texi: Mention the new module and the various
29654         bugs.
29656         Extend gl_MATHFUNC.
29657         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29658         Support 'void' as argument type.
29659         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29661 2011-11-05  Jim Meyering  <meyering@redhat.com>
29663         maint.mk: also prohibit inclusion of dirent.h without use
29664         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29666 2011-11-05  Bruno Haible  <bruno@clisp.org>
29668         ldexpl tests: Avoid test failure on MSVC 9.
29669         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29670         value. Needed in order to enforce the conversion from a value greater
29671         than LDBL_MAX to Infinity.
29673 2011-11-05  Bruno Haible  <bruno@clisp.org>
29675         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29676         * modules/at-internal: New file, extracted from modules/openat.
29677         * modules/openat-h: New file.
29678         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29679         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29680         * modules/openat (Description): Add reference to POSIX function.
29681         (Files): Remove lib/openat.h, lib/openat-proc.c.
29682         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29683         intprops, unistd.
29684         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29685         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29686         gl_FCNTL_MODULE_INDICATOR.
29687         (Include): Remove unistd.h, openat.h.
29688         * modules/areadlinkat (Files): Add lib/at-func.c.
29689         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29690         openat-die, openat-h, save-cwd.
29691         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29692         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29693         openat-die, openat-h, save-cwd, unistd.
29694         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29695         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29696         openat-h, save-cwd. Remove fcntl-h, openat.
29697         * modules/fchmodat (Files): Remove lib/openat.h.
29698         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29699         openat, stdbool, unistd.
29700         * modules/fchownat (Files): Remove lib/openat.h.
29701         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29702         openat, stdbool, sys_stat.
29703         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29704         lib/openat-proc.c.
29705         (Depends-on): Add at-internal.
29706         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29707         * modules/fstatat (Files): Remove lib/openat.h.
29708         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29709         stdbool, unistd.
29710         * modules/fts (Depends-on): Add openat-h.
29711         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29712         openat.
29713         * modules/mkdirat (Files): Remove lib/openat.h.
29714         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29715         openat, stdbool, sys_stat.
29716         * modules/mkfifoat (Files): Add lib/at-func.c.
29717         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29718         openat-h, save-cwd. Remove fcntl-h, openat.
29719         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29720         * modules/readlinkat (Files): Add lib/at-func.c.
29721         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29722         openat-h, save-cwd. Remove fcntl-h, openat.
29723         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29724         openat.
29725         * modules/selinux-at (Files): Add lib/at-func.c.
29726         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29727         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29728         * modules/symlinkat (Files): Add lib/at-func.c.
29729         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29730         openat-h, save-cwd. Remove fcntl-h, openat.
29731         * modules/unlinkat (Files): Remove lib/openat.h.
29732         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29733         stdbool.
29734         * modules/utimensat (Files): Add lib/at-func.c.
29735         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29736         openat-die, openat-h, save-cwd.
29737         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29738         * modules/fdutimensat-tests (Depends-on): Add openat.
29739         * modules/fstatat-tests (Depends-on): Add openat-h.
29740         * modules/readlinkat-tests (Depends-on): Add openat.
29741         * modules/symlinkat-tests (Depends-on): Add openat.
29743 2011-11-05  Bruno Haible  <bruno@clisp.org>
29745         openat: Include <stdbool.h>.
29746         * lib/openat.c: Include <stdbool.h>.
29748 2011-11-04  Bruno Haible  <bruno@clisp.org>
29750         fchownat, renameat, unlinkat: Fix dependencies.
29751         * modules/fchownat (Depends-on): Add fstatat.
29752         * modules/renameat (Depends-on): Likewise.
29753         * modules/unlinkat (Depends-on): Likewise.
29755 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29757         openat: remove direct dependency on dirent
29758         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29759         and hasn't been needed ever since fdopendir was split into its own
29760         module on 2009-08-31.
29761         * modules/openat (Depends-on): Remove dirent.
29763 2011-11-04  Bruno Haible  <bruno@clisp.org>
29765         renameat: Optimize code size.
29766         * modules/renameat (configure.ac): Don't compile at-func2.c if
29767         REPLACE_RENAMEAT is 1.
29769 2011-11-04  Bruno Haible  <bruno@clisp.org>
29771         openat tests: Fix file list.
29772         * modules/openat-tests (Files): Add tests/test-open.h.
29774 2011-11-04  Bruno Haible  <bruno@clisp.org>
29776         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29777         * modules/fchmodat (Depends-on): Add openat-die.
29778         * modules/fchownat (Depends-on): Likewise.
29779         * modules/linkat (Depends-on): Likewise.
29780         * modules/renameat (Depends-on): Likewise.
29781         * modules/openat (Depends-on): Add dirent.
29783 2011-11-04  Jim Meyering  <meyering@redhat.com>
29785         at-func*.c: fix comments
29786         * lib/at-func2.c: Correct/improve first-line comment.
29787         * lib/at-func.c: Correct grammar in first-line comment.
29789 2011-11-04  Bruno Haible  <bruno@clisp.org>
29791         New module 'mkdirat', split off from module 'openat'.
29792         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29793         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29794         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29795         * modules/mkdirat: New file, extracted from modules/openat.
29796         * modules/openat (Files): Remove lib/mkdirat.c.
29797         (Depends-on): Remove mkdir.
29798         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29799         (Include): Remove <sys/stat.h>.
29800         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29801         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29802         tests/test-mkdir.h.
29803         (Depends-on): Remove ignore-value.
29804         (Makefile.am): Remove rules for test-mkdirat.
29805         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29806         of module 'openat'.
29807         * NEWS: Mention the change.
29809 2011-11-04  Bruno Haible  <bruno@clisp.org>
29811         closedir: Avoid warning on mingw.
29812         * lib/closedir.c: Include <unistd.h>.
29814 2011-11-04  Bruno Haible  <bruno@clisp.org>
29816         New module 'fstatat', split off from module 'openat'.
29817         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29818         defined.
29819         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29820         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29821         gl_FUNC_FSTATAT.
29822         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29823         * modules/fstatat: New file, extracted from modules/openat.
29824         * modules/openat (Files): Remove lib/fstatat.c.
29825         (Depends-on): Remove lstat.
29826         (configure.ac): Remove AC_LIBOBJ of fstatat.
29827         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29828         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29829         tests/test-lstat.h, tests/test-stat.h.
29830         (Depends-on): Remove getcwd-lgpl.
29831         (Makefile.am): Remove rules for test-fstatat.
29832         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29833         of module 'openat'.
29834         * NEWS: Mention the change.
29835         * modules/getcwd (Depends-on): Add fstatat.
29836         * modules/linkat (Depends-on): Likewise.
29837         * modules/mkfifoat-tests (Depends-on): Likewise.
29838         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29840 2011-11-03  Bruno Haible  <bruno@clisp.org>
29842         New module 'unlinkat', split off from module 'openat'.
29843         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29844         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29845         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29846         * modules/unlinkat: New file, extracted from modules/openat. Correct
29847         the dependency conditions.
29848         * modules/openat (Files): Remove lib/unlinkat.c.
29849         (Depends-on): Remove rmdir, unlink.
29850         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29851         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29852         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29853         tests/test-rmdir.h, tests/test-unlink.h.
29854         (Depends-on): Remove unlinkdir.
29855         (Makefile.am): Remove rules for test-unlinkat.
29856         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29857         of module 'openat'.
29858         * NEWS: Mention the change.
29859         * modules/linkat-tests (Depends-on): Add unlinkat.
29860         * modules/mkfifoat-tests (Depends-on): Likewise.
29861         * modules/readlinkat-tests (Depends-on): Likewise.
29863 2011-11-02  Bruno Haible  <bruno@clisp.org>
29865         New module 'fchmodat', split off from module 'openat'.
29866         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29867         defined.
29868         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29869         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29870         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29871         * modules/fchmodat: New file, extracted from modules/openat.
29872         * modules/openat (Files): Remove lib/fchmodat.c.
29873         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29874         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29875         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29876         (Makefile.am): Remove rules for test-fchmodat.
29877         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29878         of module 'openat'.
29879         * NEWS: Mention the change.
29881 2011-11-02  Jim Meyering  <meyering@redhat.com>
29883         putenv: indent #definition of "environ" to placate cppi
29884         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29886         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29887         Git logs are often treated as immutable, because editing them
29888         changes the SHA1 checksums of all descendants.  Thus, errors in
29889         git logs tend to stay there forever.  However, when we generate
29890         a ChangeLog file -- typically for distribution -- from that git log,
29891         we can actually make corrections in the generated file.  The key
29892         lies in recording in machine-readable/applicable form the desired
29893         corrections.  See --help for description and an example.
29894         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29895         (usage): Describe it; alphabetize option descriptions.
29896         (main): Honor the new option, carefully.
29898 2011-11-01  Jim Meyering  <meyering@redhat.com>
29900         gitlog-to-changelog: avoid an infloop
29901         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29902         that ends up being empty.
29904 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29906         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29907         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29908         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29909         contains (possibly-quoted) backslashes.  This should avoid
29910         all-too-common shell bugs if COMPLICATED contains backslashes in
29911         the "wrong" places.  Reported by David Evans in
29912         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29913         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29914         because we want ASCII ranges.  Is there some reason we don't use
29915         the C locale everywhere in this script?
29916         (func_module, top level): Avoid unwanted pathname expansion when
29917         $repo_url_prefix or $repo_url_suffix_repl contain shell
29918         metacharacters like '?' and '*'.
29920 2011-11-01  Bruno Haible  <bruno@clisp.org>
29922         fchownat: Improve description.
29923         * modules/fchownat (Description): Add link to function.
29925 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29927         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29928         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29929         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29930         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29932 2011-11-01  Bruno Haible  <bruno@clisp.org>
29934         alignof: Avoid collision with stdalign module.
29935         * lib/alignof.h (alignof): Remove macro.
29936         * NEWS: Mention the change.
29937         Reported by Paul Eggert.
29939 2011-11-01  Bruno Haible  <bruno@clisp.org>
29941         New module 'fchownat', split off from module 'openat'.
29942         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29943         defined.
29944         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29945         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29946         invoke gl_FUNC_FCHOWNAT.
29947         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29948         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29949         * modules/fchownat: New file, extracted from modules/openat.
29950         * modules/openat (Files): Remove lib/fchownat.c.
29951         (Depends-on): Remove lchown.
29952         (configure.ac): Remove AC_LIBOBJ of fchownat.
29953         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29954         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29955         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29956         (Depends-on): Remove mgetgroups, usleep, stat-time.
29957         (configure.ac): Remove test for getegid.
29958         (Makefile.am): Remove rules for test-fchownat.
29959         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29960         of module 'openat'.
29961         * NEWS: Mention the change.
29963 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29965         stdalign: port better to MSVC and to Sun C 5.11
29966         This fixes some of the problems reported by Bruno Haible in
29967         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29968         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29969         shortcomings of MSVC and of Sun C 5.11.
29970         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29971         around __declspec arg.
29972         * modules/stdalign-tests (Files): Add tests/macros.h.
29973         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29974         Include macros.h, for ASSERT.
29975         (DECLARE_ALIGNED): Remove.
29976         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29977         to catch bug), and to 1 if not (simplifies the rest of the code).
29978         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29979         (CHECK_AUTO): Remove.
29980         (CHECK_ALIGNED): Check only the alignment of the static vars,
29981         since auto var alignment isn't supported by Sun C 5.11.
29982         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29983         ASSERT failures are easier to diagnose.
29985 2011-10-31  Bruno Haible  <bruno@clisp.org>
29987         doc about some IRIX 5.3 problems.
29988         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29989         on IRIX 5.3.
29990         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29991         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29992         5.3.
29993         * doc/posix-functions/grantpt.texi: Likewise.
29994         * doc/posix-functions/unlockpt.texi: Likewise.
29995         * doc/posix-functions/lgamma.texi: Likewise.
29996         * doc/posix-functions/nextafter.texi: Likewise.
29997         * doc/posix-functions/remainder.texi: Likewise.
29998         * doc/posix-functions/select.texi: Mention misplaced declaration on
29999         IRIX 5.3.
30000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30002 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
30004         gitlog-to-changelog: fix git-log invocation.
30005         git-log mishandles date strings before 1970-01-01 UTC, and there is
30006         no use to specify --since=1970-01-01 by default anyway.
30007         * build-aux/gitlog-to-changelog: By default, when no --since option
30008         was given, do not specify explicit --since option to git-log.
30010 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
30012         gitlog-to-changelog: new option --append-dot.
30013         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
30014         first non-blank line of each commit message terminated with a dot.
30016 2011-10-30  Bruno Haible  <bruno@clisp.org>
30018         ffsl, ffsll: Avoid compilation error due to 'restrict'.
30019         * lib/ffsl.h: Include <config.h>.
30020         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
30022 2011-10-30  Jim Meyering  <meyering@redhat.com>
30024         GNUmakefile: reenable "make syntax-check" for most projects
30025         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
30026         build-aux variable", "syntax-check" would do nothing but succeed with
30027         the "No version control files detected..." diagnostic (unless you
30028         happened to override _build-aux via cfg.mk).
30029         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
30030         to precede inclusion of maint.mk.  Otherwise, these variables would
30031         be used undefined in any project that does not override the default.
30033 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
30035         gitlog-to-changelog: treat a message with only blank lines as empty.
30036         * build-aux/gitlog-to-changelog: Move the code that removes leading and
30037         trailing blank lines before the code that issues a warning about an
30038         empty commit message.
30040 2011-10-30  Jim Meyering  <meyering@redhat.com>
30042         test-parse-datetime.c: avoid new DST-related false positive test failure
30043         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
30044         based on the time/date we'll convert, not the current time.
30045         Otherwise, the moment we cross a DST boundary like today's in
30046         Europe, (CEST to CET), that offset ends up being one hour off.
30048 2011-10-27  Bruno Haible  <bruno@clisp.org>
30050         fstat: Tweak documentation.
30051         * modules/fstat (Description): More precise description.
30053 2011-10-27  Bruno Haible  <bruno@clisp.org>
30055         Update documentation regarding 'largefile' module.
30056         * doc/posix-functions/fstat.texi: Tweak wording.
30057         * doc/posix-functions/opendir.texi: Mention that the module fixes the
30058         problems with huge directories and/or small ino_t types.
30059         * doc/posix-functions/readdir.texi: Likewise.
30060         * doc/posix-functions/rewinddir.texi: Likewise.
30062 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
30064         maint.mk: don't maintain a second build-aux variable.
30065         * maint.mk (build_aux): Removed.  The maintainer-makefile module
30066         depends on GNUmakefile, which already maintains a cfg.mk
30067         overridable $(_build-aux) for projects with a non-standard
30068         build-aux directory location, although without the $(srcdir)
30069         prefix.  Use that variable consistently instead of introducing a
30070         second one.  Adjust all call sites.
30072 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30074         Add stdalign module and use it in other modules.
30075         This is based on a previous proposal by Bruno Haible
30076         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
30078         stdalign: new module
30079         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
30080         * modules/stdalign: New files.
30081         * MODULES.html.sh (c1x_core_properties): Add stdalign.
30082         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
30084         stdalign-tests: new module
30085         * modules/stdalign-tests, tests/test-stdalign.c: New files.
30087         argp: use stdalign
30088         * lib/argp-parse.c: Include <stdalign.h>.
30089         (alignof): Remove.
30090         * modules/argp (Depends-on): Add stdalign.
30092         crypto libraries: use stdalign
30093         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
30094         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
30095         Do not include <stdlib.h> twice, in md4.c.
30096         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
30097         because we are accessing a pointer's bit-pattern, not a size.
30098         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
30099         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
30100         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
30101         * modules/crypto/sha512: Likewise.
30103         sys_socket: use stdalign, not alignof
30104         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
30105         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
30107 2011-10-27  Bruno Haible  <bruno@clisp.org>
30109         raise test: Avoid a test failure on Linux/MIPS.
30110         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
30111         because 99 is a valid signal on Linux/MIPS.
30113 2011-10-27  Bruno Haible  <bruno@clisp.org>
30115         nonblocking tests: Fix test failure on Linux/MIPS.
30116         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
30117         Set to 270000.
30119 2011-10-27  Bruno Haible  <bruno@clisp.org>
30121         utimensat: Work around problem on Linux/hppa.
30122         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
30123         values.
30124         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30126 2011-10-25  Jim Meyering  <meyering@redhat.com>
30128         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30129         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30130         after symbols like NULL, size_t, etc.
30131         Reported by Alfred M. Szmidt.
30133         maint.mk: exempt ENODATA from a syntax-check rule
30134         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30135         from the sc_prohibit_always-defined_macros syntax-check rule.
30136         Add a comment.  See this for more details:
30137         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30139 2011-10-23  Jim Meyering  <meyering@redhat.com>
30141         fts: close parent dir FD before returning from post-traversal fts_read
30142         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30143         unlink A, even though an FD open on A remained.  This is suboptimal
30144         (holding a file descriptor open longer than needed), but otherwise not
30145         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30146         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30147         that represents a real problem: it causes the removal of A to fail
30148         with e.g., "rm: cannot remove `A': Device or resource busy"
30150         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30151         directory file descriptors.  After completing the final, FTS_DP,
30152         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30153         cache, but then proceeded to add a new FD to it via the subsequent
30154         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30155         final file descriptor would be closed only via fts_close's call to
30156         fd_ring_clear.  Now, it is usually closed earlier, via the final
30157         FTS_DP-returning fts_read call.
30158         * lib/fts.c (restore_initial_cwd): New function, converted from
30159         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30160         Update callers.
30161         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30162         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30164 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30165             Bruno Haible  <bruno@clisp.org>
30166             Jim Meyering  <jim@meyering.net>
30168         readme-release: improve safety of release prep instructions.
30169         * README-release: Don't git pull all branches when only master
30170         is needed for the release process.
30171         Run make maintainer-clean before changing trees and merging.
30172         Don't try to run ./configure right after git pull in case files
30173         that influence the bootstrap process have changed, move the
30174         ./configure step to after running ./bootstrap.
30175         Don't bootstrap "one last time"... it's the first time!
30177 2011-10-22  Bruno Haible  <bruno@clisp.org>
30179         errno, strerror-override: Support for MSVC 10.
30180         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30181         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30182         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30183         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30184         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30185         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30186         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30187         Assign values compatible with MSVC 10.
30188         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30189         New macros.
30190         (GNULIB_defined_EWINSOCK): New macro.
30191         * lib/strerror-override.c (strerror_override): Update accordingly.
30192         * lib/strerror-override.h: Likewise.
30193         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30194         longer equal to the corresponding errno value.
30195         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30197 2011-10-22  Bruno Haible  <bruno@clisp.org>
30199         perror: Recognize when test program crashes.
30200         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30201         strerror, set gl_cv_func_perror_works to no.
30202         Reported by Daniel Richard G. <skunk@iskunk.org>.
30204         perror: Fix indentation.
30205         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30207 2011-10-22  Bruno Haible  <bruno@clisp.org>
30209         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30210         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30211         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30212         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30213         functions, not as a macro.
30214         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30215         macros.
30216         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30217         absence of macro.
30218         Suggested by Eric Blake.
30219         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30221 2011-10-21  Bruno Haible  <bruno@clisp.org>
30223         relocatable-prog-wrapper: Don't leave object files behind.
30224         * build-aux/install-reloc: Re-synchronize list of .o files to be
30225         removed with list of compilation units.
30227 2011-10-20  Bruno Haible  <bruno@clisp.org>
30229         openpty, posix_openpt: Remove code duplication.
30230         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30231         * lib/openpty.c: Include <stdlib.h>.
30232         (openpty): Use posix_openpt on all platforms except IRIX.
30233         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30235 2011-10-20  Bruno Haible  <bruno@clisp.org>
30237         unlockpt: Detect invalid argument.
30238         * lib/unlockpt.c: Include <fcntl.h>.
30239         (unlockpt): Check whether fd is valid, using fcntl().
30240         * modules/unlockpt (Depends-on): Add fcntl-h.
30242 2011-10-20  Bruno Haible  <bruno@clisp.org>
30244         openpty: Avoid compilation error on AIX 6.1.
30245         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30247 2011-10-20  Bruno Haible  <bruno@clisp.org>
30249         posix_openpt: Support for OpenBSD.
30250         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30251         (posix_openpt) [OpenBSD]: New code.
30252         * lib/grantpt.c: Include <fcntl.h>.
30253         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30254         * modules/grantpt (Depends-on): Add fcntl-h.
30256 2011-10-20  Bruno Haible  <bruno@clisp.org>
30258         posix_openpt test: Coding style.
30259         * tests/test-posix_openpt.c: Use GNU coding style.
30261 2011-10-20  Bruno Haible  <bruno@clisp.org>
30263         grantpt: Support --avoid=pt_chown.
30264         * modules/grantpt (Files): Add lib/pty-private.h.
30266 2011-10-20  Bruno Haible  <bruno@clisp.org>
30268         posix_openpt: Fix autoconf macro.
30269         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30270         unneeded check for _getpty.
30272 2011-10-20  Bruno Haible  <bruno@clisp.org>
30274         openpty: Update comments.
30275         * lib/openpty.c: Add comments about Minix.
30277 2011-10-19  Eric Blake  <eblake@redhat.com>
30279         openpty: relax license
30280         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30282         pt_chown: use configmake to simplify build
30283         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30285         ptsname and others: relax license
30286         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30287         * modules/unlockpt (License): Likewise.
30288         * modules/pt_chown (License): Likewise.
30289         * modules/ptsname (License): Likewise.
30290         * modules/ttyname_r (License): Likewise.
30292 2011-10-19  Jim Meyering  <meyering@redhat.com>
30294         posix_openpt: remove spurious #endif
30295         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30297 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30299         maint.mk: Respect $(build_aux) in web-manual rule.
30300         * top/maint.mk (web-manual): Find gen-announce script in user's
30301         $(build_aux) directory instead of hard-coding 'build-aux'.
30303 2011-10-19  Bruno Haible  <bruno@clisp.org>
30305         posix_openpt: Fix compilation error.
30306         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30307         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30308         Mention the openpty module as an alternative.
30310 2011-10-19  Bruno Haible  <bruno@clisp.org>
30312         Support for old NeXTstep 3.3 frexp().
30313         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30314         execution time of the test to 5 seconds.
30315         Reported by Daniel Richard G. <skunk@iskunk.org>.
30317 2011-10-19  Bruno Haible  <bruno@clisp.org>
30319         Support for old NeXTstep 3.3 sed.
30320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30321         part, use /.../, not \|...|. Escape periods in the header file name.
30322         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30323         Reported by Daniel Richard G. <skunk@iskunk.org>.
30325 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30327         Support for old NeXTstep 3.3 gcc.
30328         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30329         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30330         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30331         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30332         * lib/regex.h (_Restrict_arr_): Likewise.
30333         * lib/regex_internal.h (re_token_t): Likewise.
30334         * lib/regexec.c (check_node_accept_bytes): Likewise.
30335         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30337 2011-10-18  Eric Blake  <eblake@redhat.com>
30339         posix_openpt: new module
30340         * modules/posix_openpt: New module.
30341         * m4/posix_openpt.m4: New file.
30342         * lib/posix_openpt.c: Likewise.
30343         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30344         (gl_STDLIB_H_DEFAULTS): Set defaults.
30345         * modules/stdlib (Makefile.am): Substitute macros.
30346         * lib/stdlib.in.h (posix_openpt): Declare.
30347         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30348         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30349         * modules/posix_openpt-tests: New test module.
30350         * tests/test-posix_openpt.c: New test.
30352 2011-10-15  Bruno Haible  <bruno@clisp.org>
30354         xstrtoll: Fix compilation failure.
30355         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30356         from lib/strtol.c.
30357         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30358         some platforms.
30359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30361 2011-10-15  Bruno Haible  <bruno@clisp.org>
30363         vasnprintf: Optimize bit search operation.
30364         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30366         gl_DOUBLE_EXPONENT_LOCATION.
30367         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30368         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30369         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30370         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30371         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30372         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30373         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30374         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30375         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30377 2011-10-15  Bruno Haible  <bruno@clisp.org>
30379         vasnprintf: Fix comments.
30380         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30382 2011-10-14  Bruno Haible  <bruno@clisp.org>
30384         Tests for module 'integer_length_ll'.
30385         * modules/integer_length_ll-tests: New file.
30386         * tests/test-integer_length_ll.c: New file.
30388         New module 'integer_length_ll'.
30389         * lib/integer_length_ll.c: New file.
30390         * modules/integer_length_ll: New file.
30392 2011-10-14  Bruno Haible  <bruno@clisp.org>
30394         Tests for module 'integer_length_l'.
30395         * modules/integer_length_l-tests: New file.
30396         * tests/test-integer_length_l.c: New file.
30398         New module 'integer_length_l'.
30399         * lib/integer_length_l.c: New file.
30400         * modules/integer_length_l: New file.
30402 2011-10-14  Bruno Haible  <bruno@clisp.org>
30404         Tests for module 'integer_length'.
30405         * modules/integer_length-tests: New file.
30406         * tests/test-integer_length.c: New file.
30408         New module 'integer_length'.
30409         * lib/integer_length.h: New file.
30410         * lib/integer_length.c: New file.
30411         * modules/integer_length: New file.
30413 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30415         popen: Fix dependency conditions.
30416         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30418 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30420         perror: Fix autoconf test.
30421         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30422         <stdlib.h> and <string.h>.
30424 2011-10-14  Bruno Haible  <bruno@clisp.org>
30426         ffsl: Optimize on 64-bit platforms.
30427         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30428         unrolling.
30430 2011-10-13  Bruno Haible  <bruno@clisp.org>
30432         ffsl: Optimize on 32-bit platforms.
30433         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30434         use ffs() without a loop.
30436         ffsl, ffsll: Optimize for GCC.
30437         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30438         * lib/ffsl.c (GCC_BUILTIN): New macro.
30439         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30441 2011-10-13  Bruno Haible  <bruno@clisp.org>
30443         ffs, bcopy, memset: Support symbol renaming via config.h.
30444         * lib/ffs.c: Include <config.h>.
30445         * lib/bcopy.c: Likewise.
30446         * lib/memset.c: Likewise.
30448 2011-10-10  Bruno Haible  <bruno@clisp.org>
30450         atanl: Simplify for platforms where 'long double' == 'double'.
30451         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30452         alternative implementation.
30453         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30454         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30455         * modules/atanl (Depends-on): Add atan. Update conditions.
30457 2011-10-10  Bruno Haible  <bruno@clisp.org>
30459         acosl: Simplify for platforms where 'long double' == 'double'.
30460         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30461         alternative implementation.
30462         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30463         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30464         * modules/acosl (Depends-on): Add acos. Update conditions.
30466 2011-10-10  Bruno Haible  <bruno@clisp.org>
30468         asinl: Simplify for platforms where 'long double' == 'double'.
30469         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30470         alternative implementation.
30471         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30472         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30473         * modules/asinl (Depends-on): Add asin. Update conditions.
30475 2011-10-10  Bruno Haible  <bruno@clisp.org>
30477         tanl: Simplify for platforms where 'long double' == 'double'.
30478         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30479         implementation.
30480         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30481         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30482         * modules/tanl (Depends-on): Add tan. Update conditions.
30483         (configure.ac): Don't compile trigl.c if
30484         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30486 2011-10-10  Bruno Haible  <bruno@clisp.org>
30488         cosl: Simplify for platforms where 'long double' == 'double'.
30489         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30490         implementation.
30491         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30492         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30493         * modules/cosl (Depends-on): Add cos. Update conditions.
30494         (configure.ac): Don't compile sincosl.c and trigl.c if
30495         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30497 2011-10-10  Bruno Haible  <bruno@clisp.org>
30499         sinl: Simplify for platforms where 'long double' == 'double'.
30500         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30501         implementation.
30502         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30503         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30504         * modules/sinl (Depends-on): Add sin. Update conditions.
30505         (configure.ac): Don't compile sincosl.c and trigl.c if
30506         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30508 2011-10-10  Bruno Haible  <bruno@clisp.org>
30510         logl: Simplify for platforms where 'long double' == 'double'.
30511         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30512         implementation.
30513         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30514         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30515         * modules/logl (Depends-on): Add log. Update conditions.
30517 2011-10-10  Bruno Haible  <bruno@clisp.org>
30519         expl: Simplify for platforms where 'long double' == 'double'.
30520         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30521         implementation.
30522         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30523         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30524         * modules/expl (Depends-on): Add exp. Update conditions.
30526 2011-10-10  Bruno Haible  <bruno@clisp.org>
30528         sqrtl: Simplify for platforms where 'long double' == 'double'.
30529         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30530         alternative implementation.
30531         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30532         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30533         * modules/sqrtl (Depends-on): Update conditions.
30535 2011-10-10  Bruno Haible  <bruno@clisp.org>
30537         ldexpl: Simplify for platforms where 'long double' == 'double'.
30538         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30539         alternative implementation.
30540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30541         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30542         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30544 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30546         ffsll: set correct witness
30547         * modules/ffsll (configure.ac): Fix typo.
30549 2011-10-10  Bruno Haible  <bruno@clisp.org>
30551         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30552         * lib/printf-frexpl.c: Include <config.h>.
30553         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30554         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30555         second time.
30556         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30557         gl_LONG_DOUBLE_VS_DOUBLE.
30558         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30559         conditions.
30561 2011-10-10  Bruno Haible  <bruno@clisp.org>
30563         frexpl: Simplify for platforms where 'long double' == 'double'.
30564         * lib/frexpl.c: Include <config.h>.
30565         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30566         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30567         time.
30568         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30569         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30570         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30571         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30572         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30573         conditions.
30575 2011-10-10  Jim Meyering  <meyering@redhat.com>
30577         test-renameat: don't leave behind a temporary file
30578         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30579           ERROR: files left in build directory after distclean:
30580           ./gltests/test-renameat.too
30581           make[1]: *** [distcleancheck] Error 1
30582         Reported by Tom G. Christensen.
30584 2011-10-09  Bruno Haible  <bruno@clisp.org>
30586         rint: Determine RINT_LIBM correctly on AIX 7.
30587         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30588         directly, not only through a function pointer. Also accept an optional
30589         4th argument with extra code.
30590         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30591         rintf() call by gcc when optimizing.
30593         mathfunc.m4: Refactor.
30594         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30595         m4 variable.
30597 2011-10-09  Bruno Haible  <bruno@clisp.org>
30599         rintl: Simplify for platforms where 'long double' == 'double'.
30600         * lib/rintl.c: Include <config.h>.
30601         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30602         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30603         time.
30604         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30605         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30606         * modules/rintl (Depends-on): Add rint. Update conditions.
30608 2011-10-09  Bruno Haible  <bruno@clisp.org>
30610         roundl: Simplify for platforms where 'long double' == 'double'.
30611         * lib/roundl.c: Include <config.h>.
30612         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30613         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30614         time.
30615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30616         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30617         * modules/roundl (Depends-on): Add round. Update conditions.
30619 2011-10-09  Bruno Haible  <bruno@clisp.org>
30621         truncl: Simplify for platforms where 'long double' == 'double'.
30622         * lib/truncl.c: Include <config.h>.
30623         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30624         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30625         time.
30626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30627         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30628         * modules/truncl (Depends-on): Add trunc. Update conditions.
30630 2011-10-09  Bruno Haible  <bruno@clisp.org>
30632         ceill: Simplify for platforms where 'long double' == 'double'.
30633         * lib/ceill.c: Include <config.h>.
30634         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30635         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30636         time.
30637         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30638         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30639         * modules/ceill (Depends-on): Add ceil. Update conditions.
30641 2011-10-09  Bruno Haible  <bruno@clisp.org>
30643         floorl: Simplify for platforms where 'long double' == 'double'.
30644         * lib/floorl.c: Include <config.h>.
30645         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30646         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30647         time.
30648         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30649         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30650         * modules/floorl (Depends-on): Add floor. Update conditions.
30652 2011-10-09  Bruno Haible  <bruno@clisp.org>
30654         rint: Fix ordering constraints.
30655         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30656         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30657         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30659 2011-10-09  Bruno Haible  <bruno@clisp.org>
30661         copysignl: Simplify for platforms where 'long double' == 'double'.
30662         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30663         alternative.
30664         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30665         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30666         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30668 2011-10-09  Bruno Haible  <bruno@clisp.org>
30670         Tests for module 'rintl'.
30671         * modules/rintl-tests: New file.
30672         * tests/test-rintl.c: New file.
30674         New module 'rintl'.
30675         * lib/math.in.h (rintl): New declaration.
30676         * lib/rintl.c: New file.
30677         * m4/rintl.m4: New file.
30678         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30680         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30681         * modules/rintl: New file.
30682         * tests/test-math-c++.cc: Check the declaration of rintl.
30683         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30684         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30685         * doc/posix-functions/rintl.texi: Mention the new module.
30687 2011-10-09  Bruno Haible  <bruno@clisp.org>
30689         Tests for module 'rintf'.
30690         * modules/rintf-tests: New file.
30691         * tests/test-rintf.c: New file.
30693         New module 'rintf'.
30694         * lib/math.in.h (rintf): New declaration.
30695         * lib/rintf.c: New file.
30696         * m4/rintf.m4: New file.
30697         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30699         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30700         * modules/rintf: New file.
30701         * tests/test-math-c++.cc: Check the declaration of rintf.
30702         * doc/posix-functions/rintf.texi: Mention the new module.
30704 2011-10-09  Bruno Haible  <bruno@clisp.org>
30706         rint: Support for MSVC.
30707         * lib/math.in.h (rint): New declaration.
30708         * lib/rint.c: New file.
30709         * m4/rint.m4: New file.
30710         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30712         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30713         * modules/rint (Description): Fix.
30714         (Files): Add lib/rint.c, m4/rint.m4.
30715         (Depends-on): Add math.
30716         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30717         gl_MATH_MODULE_INDICATOR.
30718         * tests/test-math-c++.cc: Check the declaration of rint.
30719         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30720         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30721         * doc/posix-functions/rint.texi: Mention the replacement provided by
30722         the module.
30724         rint tests: More tests.
30725         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30726         minus-zero.h, infinity.h, nan.h.
30727         (main): Skip the test if the current rounding mode is not standard. Add
30728         tests for negative numbers, minus zero, infinity, NaN.
30729         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30730         tests/nan.h.
30731         (Depends-on): Add isnand-nolibm.
30733 2011-10-09  Bruno Haible  <bruno@clisp.org>
30735         Tests for module 'copysignl'.
30736         * modules/copysignl-tests: New file.
30737         * tests/test-copysignl.c: New file.
30739         New module 'copysignl'.
30740         * lib/math.in.h (copysignl): New declaration.
30741         * lib/copysignl.c: New file.
30742         * m4/copysignl.m4: New file.
30743         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30745         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30746         HAVE_COPYSIGNL.
30747         * modules/copysignl: New file.
30748         * tests/test-math-c++.cc: Check the declaration of copysignl.
30749         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30750         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30751         * doc/posix-functions/copysignl.texi: Mention the new module.
30753 2011-10-09  Bruno Haible  <bruno@clisp.org>
30755         Tests for module 'copysignf'.
30756         * modules/copysignf-tests: New file.
30757         * tests/test-copysignf.c: New file.
30759         New module 'copysignf'.
30760         * lib/math.in.h (copysignf): New declaration.
30761         * lib/copysignf.c: New file.
30762         * m4/copysignf.m4: New file.
30763         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30765         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30766         HAVE_COPYSIGNF.
30767         * modules/copysignf: New file.
30768         * tests/test-math-c++.cc: Check the declaration of copysignf.
30769         * doc/posix-functions/copysignf.texi: Mention the new module.
30771 2011-10-09  Bruno Haible  <bruno@clisp.org>
30773         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30774         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30775         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30776         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30777         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30778         gl_SIGNAL_H_DEFAULTS.
30780 2011-10-09  Bruno Haible  <bruno@clisp.org>
30782         poll: Make macro safer.
30783         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30784         ac_cv_header_poll_h is not set.
30786 2011-10-09  Bruno Haible  <bruno@clisp.org>
30788         copysign: Provide replacement.
30789         * lib/math.in.h (copysign): New declaration.
30790         * lib/copysign.c: New file.
30791         * m4/copysign.m4: New file.
30792         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30794         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30795         HAVE_COPYSIGN.
30796         * modules/copysign (Description): Clarify.
30797         (Files): Add lib/copysign.c, m4/copysign.m4.
30798         (Depends-on): Add math, signbit.
30799         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30800         gl_MATH_MODULE_INDICATOR.
30801         * tests/test-math-c++.cc: Check the declaration of copysign.
30802         * doc/posix-functions/copysign.texi: Mention the effects of the module
30803         on Minix and MSVC.
30805 2011-10-09  Bruno Haible  <bruno@clisp.org>
30807         isinf: Ensure macro on AIX 5.1.
30808         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30809         macro.
30810         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30812 2011-10-09  Bruno Haible  <bruno@clisp.org>
30814         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30815         * modules/snprintf-posix-tests (configure.ac): Require
30816         gl_LONG_DOUBLE_VS_DOUBLE.
30817         * modules/sprintf-posix-tests (configure.ac): Likewise.
30818         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30819         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30820         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30821         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30822         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30823         tests on platforms where 'long double' is the same as 'double'.
30824         * tests/test-sprintf-posix.h (test_function): Likewise.
30825         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30826         * tests/test-vasprintf-posix.c (test_function): Likewise.
30828         *printf: Fix for platforms where 'long double' == 'double'.
30829         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30830         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30831         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30832         * modules/fprintf-posix (Files): Likewise.
30833         * modules/obstack-printf-posix (Files): Likewise.
30834         * modules/snprintf-posix (Files): Likewise.
30835         * modules/sprintf-posix (Files): Likewise.
30836         * modules/vasnprintf (Files): Likewise.
30837         * modules/vasnprintf-posix (Files): Likewise.
30838         * modules/vasprintf-posix (Files): Likewise.
30839         * modules/vdprintf-posix (Files): Likewise.
30840         * modules/vfprintf-posix (Files): Likewise.
30841         * modules/vsnprintf-posix (Files): Likewise.
30842         * modules/vsprintf-posix (Files): Likewise.
30843         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30844         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30845         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30846         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30847         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30848         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30849         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30851         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30852         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30853         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30854         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30855         'long double'.
30856         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30858         isinf: Fix for platforms where 'long double' == 'double'.
30859         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30860         Don't blindly assume 80-bit 'long double'.
30862         isfinite: Fix for platforms where 'long double' == 'double'.
30863         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30864         Don't blindly assume 80-bit 'long double'.
30866         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30867         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30868         * modules/isfinite-tests (configure.ac): Require
30869         gl_LONG_DOUBLE_VS_DOUBLE.
30870         * modules/isinf-tests (configure.ac): Likewise.
30871         * modules/isnan-tests (configure.ac): Likewise.
30872         * modules/isnanl-tests (configure.ac): Likewise.
30873         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30874         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30875         tests on platforms where 'long double' is the same as 'double'.
30876         * tests/test-isinf.c (test_isinfl): Likewise.
30877         * tests/test-isnan.c (test_long_double): Likewise.
30878         * tests/test-isnanl.h (main): Likewise.
30880 2011-10-08  Bruno Haible  <bruno@clisp.org>
30882         Tests for module 'tanhf'.
30883         * modules/tanhf-tests: New file.
30884         * tests/test-tanhf.c: New file.
30886         New module 'tanhf'.
30887         * lib/math.in.h (tanhf): New declaration.
30888         * lib/tanhf.c: New file.
30889         * m4/tanhf.m4: New file.
30890         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30892         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30893         * modules/tanhf: New file.
30894         * tests/test-math-c++.cc: Check the declaration of tanhf.
30895         * doc/posix-functions/tanhf.texi: Mention the new module.
30897         tanh: Use a .m4 file.
30898         * m4/tanh.m4: New file.
30899         * modules/tanh (Files): Add it.
30900         (configure.ac): Just invoke gl_FUNC_TANH.
30902 2011-10-08  Bruno Haible  <bruno@clisp.org>
30904         Tests for module 'coshf'.
30905         * modules/coshf-tests: New file.
30906         * tests/test-coshf.c: New file.
30908         New module 'coshf'.
30909         * lib/math.in.h (coshf): New declaration.
30910         * lib/coshf.c: New file.
30911         * m4/coshf.m4: New file.
30912         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30914         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30915         * modules/coshf: New file.
30916         * tests/test-math-c++.cc: Check the declaration of coshf.
30917         * doc/posix-functions/coshf.texi: Mention the new module.
30919         cosh: Use a .m4 file.
30920         * m4/cosh.m4: New file.
30921         * modules/cosh (Files): Add it.
30922         (configure.ac): Just invoke gl_FUNC_COSH.
30924 2011-10-08  Bruno Haible  <bruno@clisp.org>
30926         Tests for module 'sinhf'.
30927         * modules/sinhf-tests: New file.
30928         * tests/test-sinhf.c: New file.
30930         New module 'sinhf'.
30931         * lib/math.in.h (sinhf): New declaration.
30932         * lib/sinhf.c: New file.
30933         * m4/sinhf.m4: New file.
30934         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30936         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30937         * modules/sinhf: New file.
30938         * tests/test-math-c++.cc: Check the declaration of sinhf.
30939         * doc/posix-functions/sinhf.texi: Mention the new module.
30941         sinh: Use a .m4 file.
30942         * m4/sinh.m4: New file.
30943         * modules/sinh (Files): Add it.
30944         (configure.ac): Just invoke gl_FUNC_SINH.
30946 2011-10-08  Bruno Haible  <bruno@clisp.org>
30948         Tests for module 'atan2f'.
30949         * modules/atan2f-tests: New file.
30950         * tests/test-atan2f.c: New file.
30952         New module 'atan2f'.
30953         * lib/math.in.h (atan2f): New declaration.
30954         * lib/atan2f.c: New file.
30955         * m4/atan2f.m4: New file.
30956         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30958         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30959         * modules/atan2f: New file.
30960         * tests/test-math-c++.cc: Check the declaration of atan2f.
30961         * doc/posix-functions/atan2f.texi: Mention the new module.
30963         atan2: Use a .m4 file.
30964         * m4/atan2.m4: New file.
30965         * modules/atan2 (Files): Add it.
30966         (configure.ac): Just invoke gl_FUNC_ATAN2.
30968 2011-10-08  Bruno Haible  <bruno@clisp.org>
30970         Tests for module 'atanf'.
30971         * modules/atanf-tests: New file.
30972         * tests/test-atanf.c: New file.
30974         New module 'atanf'.
30975         * lib/math.in.h (atanf): New declaration.
30976         * lib/atanf.c: New file.
30977         * m4/atanf.m4: New file.
30978         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30980         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30981         * modules/atanf: New file.
30982         * tests/test-math-c++.cc: Check the declaration of atanf.
30983         * doc/posix-functions/atanf.texi: Mention the new module.
30985         atan: Use a .m4 file.
30986         * m4/atan.m4: New file.
30987         * modules/atan (Files): Add it.
30988         (configure.ac): Just invoke gl_FUNC_ATAN.
30990 2011-10-08  Bruno Haible  <bruno@clisp.org>
30992         Tests for module 'acosf'.
30993         * modules/acosf-tests: New file.
30994         * tests/test-acosf.c: New file.
30996         New module 'acosf'.
30997         * lib/math.in.h (acosf): New declaration.
30998         * lib/acosf.c: New file.
30999         * m4/acosf.m4: New file.
31000         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
31001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
31002         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
31003         * modules/acosf: New file.
31004         * tests/test-math-c++.cc: Check the declaration of acosf.
31005         * doc/posix-functions/acosf.texi: Mention the new module.
31007         acos: Use a .m4 file.
31008         * m4/acos.m4: New file.
31009         * modules/acos (Files): Add it.
31010         (configure.ac): Just invoke gl_FUNC_ACOS.
31012 2011-10-08  Bruno Haible  <bruno@clisp.org>
31014         Tests for module 'asinf'.
31015         * modules/asinf-tests: New file.
31016         * tests/test-asinf.c: New file.
31018         New module 'asinf'.
31019         * lib/math.in.h (asinf): New declaration.
31020         * lib/asinf.c: New file.
31021         * m4/asinf.m4: New file.
31022         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
31023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
31024         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
31025         * modules/asinf: New file.
31026         * tests/test-math-c++.cc: Check the declaration of asinf.
31027         * doc/posix-functions/asinf.texi: Mention the new module.
31029         asin: Use a .m4 file.
31030         * m4/asin.m4: New file.
31031         * modules/asin (Files): Add it.
31032         (configure.ac): Just invoke gl_FUNC_ASIN.
31034 2011-10-08  Bruno Haible  <bruno@clisp.org>
31036         Tests for module 'tanf'.
31037         * modules/tanf-tests: New file.
31038         * tests/test-tanf.c: New file.
31040         New module 'tanf'.
31041         * lib/math.in.h (tanf): New declaration.
31042         * lib/tanf.c: New file.
31043         * m4/tanf.m4: New file.
31044         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
31045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
31046         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
31047         * modules/tanf: New file.
31048         * tests/test-math-c++.cc: Check the declaration of tanf.
31049         * doc/posix-functions/tanf.texi: Mention the new module.
31051         tan: Use a .m4 file.
31052         * m4/tan.m4: New file.
31053         * modules/tan (Files): Add it.
31054         (configure.ac): Just invoke gl_FUNC_TAN.
31056 2011-10-08  Bruno Haible  <bruno@clisp.org>
31058         Tests for module 'cosf'.
31059         * modules/cosf-tests: New file.
31060         * tests/test-cosf.c: New file.
31062         New module 'cosf'.
31063         * lib/math.in.h (cosf): New declaration.
31064         * lib/cosf.c: New file.
31065         * m4/cosf.m4: New file.
31066         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
31067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
31068         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
31069         * modules/cosf: New file.
31070         * tests/test-math-c++.cc: Check the declaration of cosf.
31071         * doc/posix-functions/cosf.texi: Mention the new module.
31073         cos: Use a .m4 file.
31074         * m4/cos.m4: New file.
31075         * modules/cos (Files): Add it.
31076         (configure.ac): Just invoke gl_FUNC_COS.
31078 2011-10-08  Bruno Haible  <bruno@clisp.org>
31080         Tests for module 'sinf'.
31081         * modules/sinf-tests: New file.
31082         * tests/test-sinf.c: New file.
31084         New module 'sinf'.
31085         * lib/math.in.h (sinf): New declaration.
31086         * lib/sinf.c: New file.
31087         * m4/sinf.m4: New file.
31088         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
31089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
31090         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
31091         * modules/sinf: New file.
31092         * tests/test-math-c++.cc: Check the declaration of sinf.
31093         * doc/posix-functions/sinf.texi: Mention the new module.
31095         sin: Use a .m4 file.
31096         * m4/sin.m4: New file.
31097         * modules/sin (Files): Add it.
31098         (configure.ac): Just invoke gl_FUNC_SIN.
31100 2011-10-08  Bruno Haible  <bruno@clisp.org>
31102         Tests for module 'powf'.
31103         * modules/powf-tests: New file.
31104         * tests/test-powf.c: New file.
31106         New module 'powf'.
31107         * lib/math.in.h (powf): New declaration.
31108         * lib/powf.c: New file.
31109         * m4/powf.m4: New file.
31110         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
31111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
31112         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
31113         * modules/powf: New file.
31114         * tests/test-math-c++.cc: Check the declaration of powf.
31115         * doc/posix-functions/powf.texi: Mention the new module.
31117         pow: Use a .m4 file.
31118         * m4/pow.m4: New file.
31119         * modules/pow (Files): Add it.
31120         (configure.ac): Just invoke gl_FUNC_POW.
31122 2011-10-08  Bruno Haible  <bruno@clisp.org>
31124         Tests for module 'log10f'.
31125         * modules/log10f-tests: New file.
31126         * tests/test-log10f.c: New file.
31128         New module 'log10f'.
31129         * lib/math.in.h (log10f): New declaration.
31130         * lib/log10f.c: New file.
31131         * m4/log10f.m4: New file.
31132         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31134         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31135         * modules/log10f: New file.
31136         * tests/test-math-c++.cc: Check the declaration of log10f.
31137         * doc/posix-functions/log10f.texi: Mention the new module.
31139         log10: Use a .m4 file.
31140         * m4/log10.m4: New file.
31141         * modules/log10 (Files): Add it.
31142         (configure.ac): Just invoke gl_FUNC_LOG10.
31144 2011-10-08  Bruno Haible  <bruno@clisp.org>
31146         Tests for module 'logf'.
31147         * modules/logf-tests: New file.
31148         * tests/test-logf.c: New file.
31150         New module 'logf'.
31151         * lib/math.in.h (logf): New declaration.
31152         * lib/logf.c: New file.
31153         * m4/logf.m4: New file.
31154         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31156         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31157         * modules/logf: New file.
31158         * tests/test-math-c++.cc: Check the declaration of logf.
31159         * doc/posix-functions/logf.texi: Mention the new module.
31161         log: Use a .m4 file.
31162         * m4/log.m4: New file.
31163         * modules/log (Files): Add it.
31164         (configure.ac): Just invoke gl_FUNC_LOG.
31166 2011-10-08  Bruno Haible  <bruno@clisp.org>
31168         Tests for module 'expf'.
31169         * modules/expf-tests: New file.
31170         * tests/test-expf.c: New file.
31172         New module 'expf'.
31173         * lib/math.in.h (expf): New declaration.
31174         * lib/expf.c: New file.
31175         * m4/expf.m4: New file.
31176         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31178         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31179         * modules/expf: New file.
31180         * tests/test-math-c++.cc: Check the declaration of expf.
31181         * doc/posix-functions/expf.texi: Mention the new module.
31183         exp: Use a .m4 file.
31184         * m4/exp.m4: New file.
31185         * modules/exp (Files): Add it.
31186         (configure.ac): Just invoke gl_FUNC_EXP.
31188 2011-10-08  Bruno Haible  <bruno@clisp.org>
31190         Tests for module 'sqrtf'.
31191         * modules/sqrtf-tests: New file.
31192         * tests/test-sqrtf.c: New file.
31194         New module 'sqrtf'.
31195         * lib/math.in.h (sqrtf): New declaration.
31196         * lib/sqrtf.c: New file.
31197         * m4/sqrtf.m4: New file.
31198         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31200         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31201         * modules/sqrtf: New file.
31202         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31203         * doc/posix-functions/sqrtf.texi: Mention the new module.
31205 2011-10-08  Bruno Haible  <bruno@clisp.org>
31207         Tests: Avoid link failures w.r.t. libintl.
31208         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31209         $(LIBINTL).
31210         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31211         $(LIBINTL).
31212         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31213         against $(LIBINTL).
31214         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31215         $(LIBINTL).
31216         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31217         $(LIBINTL).
31218         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31220 2011-10-08  Bruno Haible  <bruno@clisp.org>
31222         pow tests: Defeat compiler optimizations.
31223         * tests/test-pow.c (main): Assign arguments to x and y before use.
31225 2011-10-08  Bruno Haible  <bruno@clisp.org>
31227         gnulib-tool: Improve last commit.
31228         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31229         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31230         ignore dependencies that are not among the modules list.
31232 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31234         gnulib-tool: don't follow dependencies to avoided modules
31235         This fixes a bug that is related to the previous one.
31236         * gnulib-tool (func_modules_transitive_closure)
31237         (func_emit_autoconf_snippets):
31238         Check whether a dependency is acceptable before using it.
31239         (--extract-dependencies): Report an error if --avoid is also used,
31240         since this combination of options is not yet supported.
31242         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31243         Problem reported by Peter Dyballa in
31244         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31245         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31246         when echoing "$condition".
31248 2011-10-07  Bruno Haible  <bruno@clisp.org>
31250         Fix documentation about math functions on MacOS X.
31251         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31252         MacOS X 10.5.
31253         * doc/posix-functions/fdim.texi: Likewise.
31254         * doc/posix-functions/feclearexcept.texi: Likewise.
31255         * doc/posix-functions/fegetenv.texi: Likewise.
31256         * doc/posix-functions/fegetround.texi: Likewise.
31257         * doc/posix-functions/feholdexcept.texi: Likewise.
31258         * doc/posix-functions/feraiseexcept.texi: Likewise.
31259         * doc/posix-functions/fesetenv.texi: Likewise.
31260         * doc/posix-functions/fesetround.texi: Likewise.
31261         * doc/posix-functions/fetestexcept.texi: Likewise.
31262         * doc/posix-functions/feupdateenv.texi: Likewise.
31263         * doc/posix-functions/fmax.texi: Likewise.
31264         * doc/posix-functions/fmin.texi: Likewise.
31265         * doc/posix-functions/log2.texi: Likewise.
31266         * doc/posix-functions/modff.texi: Likewise.
31267         * doc/posix-functions/nan.texi: Likewise.
31268         * doc/posix-functions/nanf.texi: Likewise.
31269         * doc/posix-functions/nextafterf.texi: Likewise.
31270         * doc/posix-functions/remquo.texi: Likewise.
31272 2011-10-07  Bruno Haible  <bruno@clisp.org>
31274         modff: Drop assumption about library that defines modff.
31275         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31276         AC_CHECK_FUNCS.
31277         * modules/modff (Files): Add m4/mathfunc.m4.
31279 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31281         raise tests: Avoid a GCC warning.
31282         * tests/test-raise.c (handler): Use _Noreturn.
31284 2011-10-07  Bruno Haible  <bruno@clisp.org>
31286         Tests for module 'ldexpf'.
31287         * modules/ldexpf-tests: New file.
31288         * tests/test-ldexpf.c: New file.
31290         New module 'ldexpf'.
31291         * lib/math.in.h (ldexpf): New declaration.
31292         * lib/ldexpf.c: New file.
31293         * m4/ldexpf.m4: New file.
31294         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31296         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31297         * modules/ldexpf: New file.
31298         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31299         * doc/posix-functions/ldexpf.texi: Mention the new module.
31301 2011-10-06  Bruno Haible  <bruno@clisp.org>
31303         frexpf: Work around problems on IRIX and mingw.
31304         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31306         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31307         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31308         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31309         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31310         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31312 2011-10-06  Bruno Haible  <bruno@clisp.org>
31314         fabsf: Drop assumption about library that defines fabsf.
31315         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31316         AC_CHECK_FUNCS.
31317         * modules/fabsf (Files): Add m4/mathfunc.m4.
31319 2011-10-06  Bruno Haible  <bruno@clisp.org>
31321         frexpf: Drop assumption about library that defines frexpf.
31322         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31323         'int *', 'float *', 'long double *', 'float', 'long double'.
31324         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31325         AC_CHECK_FUNCS.
31326         * modules/frexpf (Files): Add m4/mathfunc.m4.
31328         Tests for module 'frexpf'.
31329         * modules/frexpf-tests: New file.
31330         * tests/test-frexpf.c: New file.
31332         New module 'frexpf'.
31333         * lib/math.in.h (frexpf): New declaration.
31334         * lib/frexpf.c: New file.
31335         * m4/frexpf.m4: New file.
31336         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31338         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31339         * modules/frexpf: New file.
31340         * tests/test-math-c++.cc: Check the declaration of frexpf.
31341         * doc/posix-functions/frexpf.texi: Mention the new module.
31343 2011-10-06  Bruno Haible  <bruno@clisp.org>
31345         math: Sort function declarations of math.in.h.
31346         * lib/math.in.h (frexp, logb): Move declarations.
31348 2011-10-05  Bruno Haible  <bruno@clisp.org>
31350         Tests for module 'modff'.
31351         * modules/modff-tests: New file.
31352         * tests/test-modff.c: New file.
31354         New module 'modff'.
31355         * lib/math.in.h (modff): New declaration.
31356         * lib/modff.c: New file.
31357         * m4/modff.m4: New file.
31358         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31360         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31361         * modules/modff: New file.
31362         * tests/test-math-c++.cc: Check the declaration of modff.
31363         * doc/posix-functions/modff.texi: Mention the new module.
31365         modf tests: Make test sharper.
31366         * tests/test-modf.c (main): Strengthen upper bound.
31368         modf: Use a .m4 file.
31369         * m4/modf.m4: New file.
31370         * modules/modf (Files): Add it.
31371         (configure.ac): Just invoke gl_FUNC_MODF.
31373 2011-10-05  Bruno Haible  <bruno@clisp.org>
31375         Tests for module 'fmodf'.
31376         * modules/fmodf-tests: New file.
31377         * tests/test-fmodf.c: New file.
31379         New module 'fmodf'.
31380         * lib/math.in.h (fmodf): New declaration.
31381         * lib/fmodf.c: New file.
31382         * m4/fmodf.m4: New file.
31383         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31385         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31386         * modules/fmodf: New file.
31387         * tests/test-math-c++.cc: Check the declaration of fmodf.
31388         * doc/posix-functions/fmodf.texi: Mention the new module.
31390         fmod: Use a .m4 file.
31391         * m4/fmod.m4: New file.
31392         * modules/fmod (Files): Add it.
31393         (configure.ac): Just invoke gl_FUNC_FMOD.
31395 2011-10-05  Bruno Haible  <bruno@clisp.org>
31397         Tests for module 'fabsf'.
31398         * modules/fabsf-tests: New file.
31399         * tests/test-fabsf.c: New file.
31401         New module 'fabsf'.
31402         * lib/math.in.h (fabsf): New declaration.
31403         * lib/fabsf.c: New file.
31404         * m4/fabsf.m4: New file.
31405         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31407         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31408         * modules/fabsf: New file.
31409         * tests/test-math-c++.cc: Check the declaration of fabsf.
31410         * doc/posix-functions/fabsf.texi: Mention the new module.
31412         fabs: Use a .m4 file.
31413         * m4/fabs.m4: New file.
31414         * modules/fabs (Files): Add it.
31415         (configure.ac): Just invoke gl_FUNC_FABS.
31417 2011-10-05  Jim Meyering  <meyering@redhat.com>
31419         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31420         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31421         ls -lL regression introduced in coreutils-8.12, it does so at the
31422         cost of an additional stat call in the common case.  Besides, now
31423         that the kernel change that prompted commit 95f7c57f has been reverted
31424         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31425         we have no use for commit 95f7c57f, "file-has-acl: use
31426         acl_extended_file_nofollow if available".
31428 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31430         file-has-acl: revert unintended change in behavior of ls -L
31431         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31432         derived from...
31433         (file_has_acl): ...code here.  Call it.
31434         This problem was introduced with 2011-07-22 commit 95f7c57f,
31435         "file-has-acl: use acl_extended_file_nofollow if available".
31436         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31438 2011-10-03  Bruno Haible  <bruno@clisp.org>
31440         poll: Avoid link errors on MSVC.
31441         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31442         * modules/poll (Depends-on): Add sockets.
31443         (Link): New section.
31444         * NEWS: Mention the change.
31445         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31446         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31447         $(LIB_POLL) instead of $(LIBSOCKET).
31449 2011-10-03  Bruno Haible  <bruno@clisp.org>
31451         sys_select tests: Fix link error on MSVC 9.
31452         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31453         with $(LIB_SELECT) instead of $(LIBSOCKET).
31455 2011-10-03  Bruno Haible  <bruno@clisp.org>
31457         sys_select: Fix compilation error on mingw.
31458         * lib/sys_select.in.h: On native Windows, include <io.h>.
31460 2011-10-03  Bruno Haible  <bruno@clisp.org>
31462         wmemset: Support for MSVC.
31463         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31464         whether wmemset() exists.
31466 2011-10-03  Bruno Haible  <bruno@clisp.org>
31468         wmemmove: Support for MSVC.
31469         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31470         whether wmemmove() exists.
31472 2011-10-03  Bruno Haible  <bruno@clisp.org>
31474         wmemcpy: Support for MSVC.
31475         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31476         whether wmemcpy() exists.
31478 2011-10-03  Bruno Haible  <bruno@clisp.org>
31480         wmemcmp: Support for MSVC.
31481         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31482         whether wmemcmp() exists.
31484 2011-10-03  Bruno Haible  <bruno@clisp.org>
31486         wmemchr: Support for MSVC.
31487         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31488         whether wmemchr() exists.
31490 2011-10-03  Bruno Haible  <bruno@clisp.org>
31492         glthread/*, strsignal: Support for MSVC.
31493         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31494         including <winsock.h> on MSVC 9.
31495         * lib/glthread/lock.h: Likewise.
31496         * lib/glthread/thread.h: Likewise.
31497         * lib/glthread/tls.h: Likewise.
31498         * lib/glthread/yield.h: Likewise.
31499         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31500         if HAVE_UNISTD_H is false.
31501         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31503 2011-10-03  Bruno Haible  <bruno@clisp.org>
31505         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31506         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31507         Set to 100000.
31509 2011-10-03  Bruno Haible  <bruno@clisp.org>
31511         acl: Fix specification.
31512         * lib/file-has-acl.c (file_has_acl): Fix specification.
31514 2011-10-03  Bruno Haible  <bruno@clisp.org>
31516         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31517         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31518         (compute_curr_prefix, shared_library_fullname,
31519         find_shared_library_fullname, get_shared_library_fullname, relocate):
31520         Use it together with PIC && INSTALLDIR.
31521         Reported by <jojelino@gmail.com>
31522         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31524 2011-10-01  Jim Meyering  <meyering@redhat.com>
31526         maint.mk: adjust a release-related rule not to require use of gzip
31527         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31528         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31529         projects that build only .tar.xz files.  Also fix an erroneous test.
31531         test-linkat: don't leave behind a temporary file
31532         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31533         Otherwise, coreutils' "make distcheck" would fail with this:
31534           Only in /c/cu/tests/torture/coreutils/test/\
31535             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31536           make[2]: *** [my-distcheck] Error 1
31538         float, math: add omitted file
31539         * lib/itold.c: Add file, required for yesterday's float change.
31541 2011-10-01  Bruno Haible  <bruno@clisp.org>
31543         isinf: Fix for OpenBSD/x86.
31544         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31545         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31546         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31548 2011-10-01  Bruno Haible  <bruno@clisp.org>
31550         isfinite: Fix syntax error in configure test.
31551         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31553         isfinite: Fix typo.
31554         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31555         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31557 2011-10-01  Bruno Haible  <bruno@clisp.org>
31559         nonblocking tests: Fix test failure on Linux/IA-64.
31560         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31561         Set to 270000.
31563 2011-10-01  Bruno Haible  <bruno@clisp.org>
31565         mkfifoat tests: Fix a test failure on mingw.
31566         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31567         with error ENOSYS.
31569 2011-09-30  Bruno Haible  <bruno@clisp.org>
31571         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31572         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31573         'long double'. Set REPLACE_ITOLD.
31574         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31575         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31576         * lib/itold.c: New file.
31577         * modules/float (Files): Add lib/itold.c.
31578         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31579         (Makefile.am): Substitute REPLACE_ITOLD.
31580         * modules/math (Depends-on): Add float.
31581         (Makefile.am): Substitute REPLACE_ITOLD.
31582         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31583         * doc/posix-headers/math.texi: Likewise.
31584         * doc/posix-functions/logl.texi: Likewise.
31586 2011-09-30  Bruno Haible  <bruno@clisp.org>
31588         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31589         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31590         Set to 140000.
31592 2011-09-30  Bruno Haible  <bruno@clisp.org>
31594         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31595         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31596         invocation, say "right after AC_PROG_CC_STDC", not "right after
31597         AC_PROG_CC".
31598         Reported by Gary V. Vaughan <gary@gnu.org>.
31600 2011-09-30  Bruno Haible  <bruno@clisp.org>
31602         Centralize C99 requirement.
31603         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31604         * modules/stdarg (configure.ac-early): Invoke it instead of
31605         AC_PROG_CC_STDC.
31606         Reported by Gary V. Vaughan and Paul Eggert.
31608 2011-09-29  Bruno Haible  <bruno@clisp.org>
31610         float: Fix LDBL_MAX value on Linux/PowerPC.
31611         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31612         on Linux/PowerPC.
31613         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31614         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31615         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31616         platform.
31617         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31619 2011-09-29  Bruno Haible  <bruno@clisp.org>
31621         doc: Improve doc about gl_EARLY.
31622         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31623         AC_PROG_CC_STDC invocation.
31624         Reported by Gary V. Vaughan <gary@gnu.org>.
31626 2011-09-28  Bruno Haible  <bruno@clisp.org>
31628         fgetc, fputc, fread, fwrite tests: Fix link error.
31629         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31630         on non-MSVC platforms.
31631         * tests/test-fputc.c (main): Likewise.
31632         * tests/test-fread.c (main): Likewise.
31633         * tests/test-fwrite.c (main): Likewise.
31634         Reported by Jim Meyering.
31636 2011-09-27  Bruno Haible  <bruno@clisp.org>
31638         fputc, fwrite tests: Avoid test failure on MSVC.
31639         * tests/test-fgetc.c: Include msvc-inval.h.
31640         (main): Invoke gl_msvc_inval_ensure_handler.
31641         * tests/test-fputc.c: Include msvc-inval.h.
31642         (main): Invoke gl_msvc_inval_ensure_handler.
31643         * tests/test-fread.c: Include msvc-inval.h.
31644         (main): Invoke gl_msvc_inval_ensure_handler.
31645         * tests/test-fwrite.c: Include msvc-inval.h.
31646         (main): Invoke gl_msvc_inval_ensure_handler.
31647         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31648         * modules/fputc-tests (Depends-on): Likewise.
31649         * modules/fread-tests (Depends-on): Likewise.
31650         * modules/fwrite-tests (Depends-on): Likewise.
31652 2011-09-27  Bruno Haible  <bruno@clisp.org>
31654         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31655         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31656         (raise): Remove older, duplicated declaration.
31657         (_gl_raise_SIGPIPE): New declaration.
31658         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31659         (rpl_raise): Remove function.
31660         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31661         a gnulib-defined SIGPIPE here.
31662         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31663         'sigprocmask' has detected missing signal-blocking and the module
31664         'sigpipe' is enabled.
31665         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31667 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31669         base64-tests: avoid memory leak
31670         * tests/test-base64.c (main): Plug memory leak.
31672         base32: new module
31673         * modules/base32: New module.
31674         * lib/base32.c: New file.
31675         * lib/base32.h: Likewise.
31676         * m4/base32.m4: Likewise.
31677         * modules/base32-tests: New test.
31678         * tests/test-base32.c: Likewise.
31679         * MODULES.html.sh (Misc): Mention it.
31681 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31683         gnulib: use more-standard license notice wording
31684         * gnulib-tool (func_emit_copyright_notice): When emitting a
31685         license notice into a file, use the standard wording as suggested
31686         by the current information for GNU maintainers, except say "file"
31687         rather than "program".  The new wording gives a license version
31688         number, which addresses an issue raised by Glenn Morris in
31689         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31690         * m4/onceonly.m4: Use that same wording here, too.
31692         dup2: minor simplification
31693         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31694         as lib/dup2.c no longer uses 'inline'.
31696 2011-09-25  Bruno Haible  <bruno@clisp.org>
31698         strings: Fix compilation error on MSVC.
31699         * lib/strings.in.h: Include <stddef.h> for size_t.
31701 2011-09-25  Bruno Haible  <bruno@clisp.org>
31703         fflush et al.: Document limitation on MSVC.
31704         * doc/posix-functions/fflush.texi: Document possible crash in handling
31705         mode other than DEFAULT_HANDLING.
31706         * doc/posix-functions/fgetc.texi: Likewise.
31707         * doc/posix-functions/fputc.texi: Likewise.
31708         * doc/posix-functions/fread.texi: Likewise.
31709         * doc/posix-functions/fwrite.texi: Likewise.
31711 2011-09-25  Bruno Haible  <bruno@clisp.org>
31713         msvc-inval: Allow three invalid parameter handling modes.
31714         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31715         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31716         macros.
31717         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31718         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31719         SANE_LIBRARY_HANDLING as a no-op.
31720         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31721         <stdlib.h>.
31722         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31724 2011-09-25  Bruno Haible  <bruno@clisp.org>
31726         msvc-inval: Make handler multithread-safe.
31727         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31728         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31729         declarations.
31730         (gl_msvc_inval_current): New declaration.
31731         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31732         Operate on the structure returned by gl_msvc_inval_current().
31733         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31734         Remove varaiables.
31735         (tls_index, tls_initialized): New variables.
31736         (not_per_thread): New variable.
31737         (gl_msvc_inval_current): New function.
31738         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31739         returned by gl_msvc_inval_current().
31741 2011-09-25  Bruno Haible  <bruno@clisp.org>
31743         msvc-inval: Install handler globally.
31744         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31745         !_MSC_VER.
31746         (gl_msvc_invalid_parameter_handler): Remove declaration.
31747         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31748         declarations.
31749         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31750         Install the handler globally, don't uninstall it.
31751         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31752         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31753         currently valid, call RaiseException instead.
31754         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31755         for !_MSC_VER.
31757 2011-09-25  Bruno Haible  <bruno@clisp.org>
31759         strerror_r-posix: Fix for MSVC 9.
31760         * lib/strerror_r.c (local_snprintf): New function.
31761         (snprintf): Define to local_snprintf, not to _snprintf.
31763 2011-09-25  Bruno Haible  <bruno@clisp.org>
31765         ftruncate: Support for MSVC 9.
31766         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31767         (chsize_nothrow): New function.
31768         (chsize): Redefine as a macro.
31769         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31770         * modules/ftruncate (Depends-on): Add msvc-inval.
31772 2011-09-25  Bruno Haible  <bruno@clisp.org>
31774         New module 'fstat'.
31775         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31776         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31777         * lib/fchdir.c (rpl_fstat): Remove function.
31778         * m4/fstat.m4: New file.
31779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31781         declared.
31782         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31783         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31784         * modules/fstat: New file.
31785         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31786         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31787         is set.
31788         * doc/posix-functions/fstat.texi: Mention the new module and the
31789         problem on MSVC.
31790         * NEWS: Mention the change.
31791         * modules/acl (Depends-on): Add fstat.
31792         * modules/chdir-safer (Depends-on): Likewise.
31793         * modules/chown (Depends-on): Likewise.
31794         * modules/copy-file (Depends-on): Likewise.
31795         * modules/fchdir (Depends-on): Likewise.
31796         * modules/fdopendir (Depends-on): Likewise.
31797         * modules/fopen (Depends-on): Likewise.
31798         * modules/fts (Depends-on): Likewise.
31799         * modules/getcwd (Depends-on): Likewise.
31800         * modules/isapipe (Depends-on): Likewise.
31801         * modules/linkat (Depends-on): Likewise.
31802         * modules/lseek (Depends-on): Likewise.
31803         * modules/mkdir-p (Depends-on): Likewise.
31804         * modules/open (Depends-on): Likewise.
31805         * modules/openat (Depends-on): Likewise.
31806         * modules/read-file (Depends-on): Likewise.
31807         * modules/renameat (Depends-on): Likewise.
31808         * modules/utimens (Depends-on): Likewise.
31810 2011-09-25  Bruno Haible  <bruno@clisp.org>
31812         linkat: Fix compilation on MSVC 9.
31813         * lib/linkat.c: Don't include <stdint.h>.
31815 2011-09-25  Bruno Haible  <bruno@clisp.org>
31817         fclose: Support for MSVC 9.
31818         * lib/fclose.c: Include msvc-inval.h.
31819         (fclose_nothrow): New function.
31820         (rpl_fclose): Use it.
31821         * modules/fclose (Depends-on): Add msvc-inval.
31822         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31824 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31826         dup2: minor simplifications
31827         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31828         that it's a performance win.
31829         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31830         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31832 2011-09-24  Jim Meyering  <meyering@redhat.com>
31834         test-futimens: avoid a warning from gcc -Wshadow
31835         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31836         to avoid a shadowing warning.
31838 2011-09-24  Bruno Haible  <bruno@clisp.org>
31840         fdopen: Support for MSVC 9.
31841         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31842         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31843         * lib/fdopen.c: Include msvc-inval.h.
31844         (fdopen_nothrow): New function.
31845         (rpl_fdopen): Use it.
31846         * modules/fdopen (Depends-on): Add msvc-inval.
31847         * modules/fclose-tests (Depends-on): Add fdopen.
31848         * modules/fflush-tests (Depends-on): Likewise.
31849         * modules/fgetc-tests (Depends-on): Likewise.
31850         * modules/fputc-tests (Depends-on): Likewise.
31851         * modules/fread-tests (Depends-on): Likewise.
31852         * modules/freopen-tests (Depends-on): Likewise.
31853         * modules/fseeko-tests (Depends-on): Likewise.
31854         * modules/ftello-tests (Depends-on): Likewise.
31855         * modules/fwrite-tests  (Depends-on): Likewise.
31856         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31858 2011-09-24  Bruno Haible  <bruno@clisp.org>
31860         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31861         * modules/fgetc-tests (Depends-on): Add unistd.
31862         * modules/fputc-tests (Depends-on): Likewise.
31863         * modules/fread-tests (Depends-on): Likewise.
31864         * modules/fwrite-tests (Depends-on): Likewise.
31866 2011-09-24  Bruno Haible  <bruno@clisp.org>
31868         dup: Simplify autoconf test.
31869         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31870         on gl_MSVC_INVAL's result.
31872 2011-09-24  Bruno Haible  <bruno@clisp.org>
31874         Tests for function fwrite().
31875         * modules/fwrite-tests: New file.
31876         * tests/test-fwrite.c: New file.
31877         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31879         Tests for function fread().
31880         * modules/fread-tests: New file.
31881         * tests/test-fread.c: New file.
31882         * modules/stdio-tests (Depends-on): Add fread-tests.
31884         Activate fputc tests.
31885         * modules/stdio-tests (Depends-on): Add fputc-tests.
31887         Enhance fgetc, fputc tests.
31888         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31889         * tests/test-fputc.c (main): Likewise.
31891 2011-09-24  Bruno Haible  <bruno@clisp.org>
31893         write: Support for MSVC 9.
31894         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31895         is not 1.
31896         * lib/write.c (write_nothrow): New function.
31897         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31898         not 1. Use write_nothrow.
31899         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31900         invalid parameter handler.
31901         (gl_PREREQ_WRITE): New macro.
31902         * modules/write (Depends-on): Add msvc-inval.
31903         (configure.ac): Invoke gl_PREREQ_WRITE.
31904         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31906 2011-09-24  Bruno Haible  <bruno@clisp.org>
31908         read: Fix last commit.
31909         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31911 2011-09-24  Bruno Haible  <bruno@clisp.org>
31913         dup2: Fix last commit.
31914         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31915         (rpl_dup2): Disable fcntl workaround on native Windows.
31917         sigprocmask: Make code safer.
31918         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31919         section that changes macro definitions for this compilation unit.
31921 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31923         dup2: clarify by coalescing Windows-specific material
31924         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31925         "msvc-nothrow.h"' to the Windows-specific section, so that the
31926         Emacs source need not contain these include files.
31927         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31928         Windows-specific fixes into this function rather than just the
31929         nothrow fix, as this shortens and clarifies the code.  Always
31930         define as a function, as that's a bit cleaner than having it be
31931         sometimes a function and sometimes a macro.
31932         (rpl_dup2): Move the Windows-specific stuff out of here and into
31933         ms_windows_dup2.  Don't protect the Haiku-related fix with
31934         "#if !defined __linux__", as the same code also works around
31935         a Linux kernel bug, and it doesn't add any system calls on any
31936         platform.  Add comment about FreeBSD 6.1.
31938         sigprocmask: move #include directive
31939         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31940         Windows-specific section, so that the Emacs source need not
31941         contain msvc-inval.h.
31943 2011-09-23  Bruno Haible  <bruno@clisp.org>
31945         read: Support for MSVC 9.
31946         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31947         is not 1.
31948         * lib/read.c (read_nothrow): New function.
31949         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31950         read_nothrow.
31951         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31952         invalid parameter handler.
31953         (gl_PREREQ_READ): New macro.
31954         * modules/read (Depends-on): Add msvc-inval.
31955         (configure.ac): Invoke gl_PREREQ_READ.
31956         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31958 2011-09-23  Bruno Haible  <bruno@clisp.org>
31960         close: Support for MSVC 9.
31961         * lib/close.c: Include <errno.h>, msvc-inval.h.
31962         (close_nothrow): New function.
31963         (rpl_close): Use it.
31964         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31965         invalid parameter handler.
31966         * modules/close (Depends-on): Add msvc-inval.
31967         * modules/dup2-tests (Depends-on): Add close.
31968         * modules/dup3-tests (Depends-on): Likewise.
31969         * modules/fcntl-tests (Depends-on): Likewise.
31970         * modules/spawn-pipe-tests (Depends-on): Likewise.
31971         * modules/unistd-safer-tests (Depends-on): Likewise.
31972         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31974 2011-09-23  Bruno Haible  <bruno@clisp.org>
31976         New module 'dup'.
31977         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31978         Allow replacement.
31979         * lib/dup.c: New file.
31980         * lib/fchdir.c (rpl_dup): Remove function.
31981         * m4/dup.m4: New file.
31982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31983         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31984         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31985         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31986         * modules/dup: New file.
31987         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31988         'dup' module is in use.
31989         * modules/fdopendir (Depends-on): Add dup.
31990         * modules/fdutimensat-tests (Depends-on): Likewise.
31991         * modules/fts (Depends-on): Likewise.
31992         * modules/futimens-tests (Depends-on): Likewise.
31993         * modules/posix_spawnp-tests (Depends-on): Likewise.
31994         * modules/unistd-safer-tests (Depends-on): Likewise.
31995         * modules/utimens-tests (Depends-on): Likewise.
31996         * doc/posix-functions/dup.texi: Mention the new module and the problem
31997         on MSVC.
31999 2011-09-23  Bruno Haible  <bruno@clisp.org>
32001         getdtablesize: Support for MSVC 9.
32002         * lib/getdtablesize.c: Include msvc-inval.h.
32003         (_setmaxstdio_nothrow): New function.
32004         (_setmaxstdio): Redefine it.
32005         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
32006         * modules/getdtablesize (Depends-on): Add msvc-inval.
32007         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
32009 2011-09-23  Bruno Haible  <bruno@clisp.org>
32011         signal-h: Rename from signal.
32012         * modules/signal-h: Renamed from modules/signal.
32013         * modules/pthread_sigmask (Depends-on): Update.
32014         * modules/raise (Depends-on): Likewise.
32015         * modules/sigaction (Depends-on): Likewise.
32016         * modules/sigpipe (Depends-on): Likewise.
32017         * modules/sigprocmask (Depends-on): Likewise.
32018         * modules/sys_select (Depends-on): Likewise.
32019         * modules/signal-h-tests: Renamed from modules/signal-tests.
32020         (Files, Depends-on, Makefile.am): Update.
32021         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
32022         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
32023         (Files, Makefile.am): Update.
32024         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
32025         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
32026         * modules/signal: New placeholder file.
32027         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
32028         * doc/posix-headers/signal.texi: Update.
32029         * NEWS: Mention the change.
32031 2011-09-23  Bruno Haible  <bruno@clisp.org>
32033         sigprocmask: Avoid crashes through signal() on MSVC 9.
32034         * lib/sigprocmask.c: Include msvc-inval.h.
32035         (signal_nothrow): New function.
32036         (signal): Redefine it.
32037         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
32038         * modules/sigprocmask (Depends-on): Add msvc-inval.
32039         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
32041 2011-09-23  Bruno Haible  <bruno@clisp.org>
32043         Tests for module 'raise'.
32044         * modules/raise-tests: New file.
32045         * tests/test-raise.c: New file.
32047         raise: Support for MSVC.
32048         * lib/signal.in.h (raise): New declaration.
32049         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
32050         for native Windows platforms.
32051         * m4/raise.m4: New file.
32052         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
32053         HAVE_RAISE, REPLACE_RAISE.
32054         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
32055         REPLACE_RAISE.
32056         * modules/raise (Status, Notice): Remove fields.
32057         (Files): Add m4/raise.m4.
32058         (Depends-on): Add signal, msvc-inval.
32059         (configure.ac): Use the common idioms.
32060         (Maintainer): Add me.
32061         * tests/test-signal-c++.cc: Check the signature of raise.
32062         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
32064 2011-09-23  Bruno Haible  <bruno@clisp.org>
32066         pipe2: Fix compilation on pre-C99 compilers.
32067         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
32069 2011-09-23  Bruno Haible  <bruno@clisp.org>
32071         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
32072         * lib/msvc-nothrow.h: New file.
32073         * lib/msvc-nothrow.c: New file.
32074         * m4/msvc-nothrow.m4: New file.
32075         * modules/msvc-nothrow: New file.
32076         * lib/dup2.c: Include msvc-nothrow.h.
32077         (rpl_dup2): No need to protect _get_osfhandle call here.
32078         * lib/accept4.c: Include msvc-nothrow.h.
32079         * lib/error.c: Likewise.
32080         * lib/fcntl.c: Likewise.
32081         * lib/lseek.c: Likewise.
32082         * lib/nonblocking.c: Likewise.
32083         * lib/poll.c: Likewise.
32084         * lib/read.c: Likewise.
32085         * lib/select.c: Likewise.
32086         * lib/sockets.h: Likewise.
32087         * lib/sockets.c: Likewise.
32088         * lib/stdio-read.c: Likewise.
32089         * lib/stdio-write.c: Likewise.
32090         * lib/write.c: Likewise.
32091         * lib/w32sock.h: Likewise.
32092         * lib/w32spawn.h: Likewise.
32093         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
32094         * lib/fsync.c: Likewise.
32095         * lib/isapipe.c: Likewise.
32096         * modules/dup2 (Depends-on): Add msvc-nothrow.
32097         * modules/accept4 (Depends-on): Likewise.
32098         * modules/error (Depends-on): Likewise.
32099         * modules/fcntl (Depends-on): Likewise.
32100         * modules/lseek (Depends-on): Likewise.
32101         * modules/nonblocking (Depends-on): Likewise.
32102         * modules/poll (Depends-on): Likewise.
32103         * modules/read (Depends-on): Likewise.
32104         * modules/select (Depends-on): Likewise.
32105         * modules/sockets (Depends-on): Likewise.
32106         * modules/sigpipe (Depends-on): Likewise.
32107         * modules/write (Depends-on): Likewise.
32108         * modules/accept (Depends-on): Likewise.
32109         * modules/bind (Depends-on): Likewise.
32110         * modules/connect (Depends-on): Likewise.
32111         * modules/gethostname (Depends-on): Likewise.
32112         * modules/getpeername (Depends-on): Likewise.
32113         * modules/getsockname (Depends-on): Likewise.
32114         * modules/getsockopt (Depends-on): Likewise.
32115         * modules/ioctl (Depends-on): Likewise.
32116         * modules/listen (Depends-on): Likewise.
32117         * modules/recv (Depends-on): Likewise.
32118         * modules/recvfrom (Depends-on): Likewise.
32119         * modules/send (Depends-on): Likewise.
32120         * modules/sendto (Depends-on): Likewise.
32121         * modules/setsockopt (Depends-on): Likewise.
32122         * modules/shutdown (Depends-on): Likewise.
32123         * modules/socket (Depends-on): Likewise.
32124         * modules/execute (Depends-on): Likewise.
32125         * modules/spawn-pipe (Depends-on): Likewise.
32126         * modules/flock (Depends-on): Likewise.
32127         * modules/fsync (Depends-on): Likewise.
32128         * modules/isapipe (Depends-on): Likewise.
32129         * tests/test-cloexec.c: Include msvc-nothrow.h.
32130         * tests/test-dup-safer.c: Likewise.
32131         * tests/test-dup2.c: Likewise.
32132         * tests/test-dup3.c: Likewise.
32133         * tests/test-fcntl.c: Likewise.
32134         * tests/test-pipe.c: Likewise.
32135         * tests/test-pipe2.c: Likewise.
32136         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32137         * modules/unistd-safer-tests (Depends-on): Likewise.
32138         * modules/dup2-tests (Depends-on): Likewise.
32139         * modules/dup3-tests (Depends-on): Likewise.
32140         * modules/fcntl-tests (Depends-on): Likewise.
32141         * modules/pipe-posix-tests (Depends-on): Likewise.
32142         * modules/pipe2-tests (Depends-on): Likewise.
32144 2011-09-23  Bruno Haible  <bruno@clisp.org>
32146         dup2: Make code more maintainable.
32147         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32148         (rpl_dup2): Use it.
32149         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32150         * modules/dup2 (configure.ac): Invoke it.
32151         Reported by Paul Eggert.
32153 2011-09-23  Bruno Haible  <bruno@clisp.org>
32155         msvc-inval: Fix compilation error.
32156         * lib/msvc-inval.h: Include <excpt.h>.
32158 2011-09-23  Bruno Haible  <bruno@clisp.org>
32160         mkdir: Tweak for MSVC 9.
32161         * lib/sys_stat.in.h: Update comments.
32162         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32164         Tests for module 'chdir'.
32165         * modules/chdir-tests: New file.
32166         * tests/test-chdir.c: New file.
32168         New module 'chdir'.
32169         * modules/chdir: New file.
32170         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32171         (chdir): New declaration.
32172         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32173         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32174         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32175         * tests/test-unistd-c++.cc: Check signature of chdir.
32176         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32177         * modules/chdir-long (Depends-on): Add chdir.
32178         * modules/fchdir (Depends-on): Likewise.
32179         * modules/rename (Depends-on): Likewise.
32180         * modules/savewd (Depends-on): Likewise.
32182         rmdir: Support for mingw, MSVC 9.
32183         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32184         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32186         getcwd: Tweak for MSVC 9.
32187         * lib/unistd.in.h: Update comments.
32188         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32190 2011-09-22  Bruno Haible  <bruno@clisp.org>
32192         strerror_r-posix: Avoid a link error on MSVC.
32193         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32194         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32196 2011-09-22  Bruno Haible  <bruno@clisp.org>
32198         select: Avoid link errors on MSVC.
32199         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32200         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32201         * modules/pselect (Link): Likewise.
32202         * NEWS: Mention the change.
32203         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32204         test-select-stdin against $(LIB_SELECT).
32205         * modules/pselect-tests (Makefile.am): Link test-pselect against
32206         $(LIB_SELECT).
32208 2011-09-22  Bruno Haible  <bruno@clisp.org>
32210         select: Avoid compilation error on MSVC.
32211         * lib/select.c: Don't include <stdbool.h>.
32213 2011-09-21  Bruno Haible  <bruno@clisp.org>
32215         Consolidate all uses of PATH_MAX in *.m4 files.
32216         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32217         macros.
32218         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32219         and gl_PATHMAX_SNIPPET.
32220         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32222         * modules/chdir-long (Files): Add m4/pathmax.m4.
32223         * modules/getcwd (Files): Likewise.
32225 2011-09-21  Bruno Haible  <bruno@clisp.org>
32227         ftruncate: Un-deprecate, concentrate on Win32 support.
32228         * modules/ftruncate (Status, Notice): Remove sections.
32229         (Depends-on): Add largefile.
32230         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32231         non-mingw platforms.
32232         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32233         include <io.h>.
32234         * modules/perror-tests (Depends-on): Add ftruncate.
32235         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32236         'ftruncate' module.
32238 2011-09-21  Bruno Haible  <bruno@clisp.org>
32240         Add dependencies to new dirent related modules.
32241         * modules/opendir (Depends-on): Add closedir.
32242         * modules/getcwd (Depends-on): Add opendir, closedir.
32243         * modules/dirent-safer-tests (Depends-on): Likewise.
32244         * modules/fdopendir-tests (Depends-on): Likewise.
32245         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32246         * modules/renameat-tests (Depends-on): Likewise.
32248 2011-09-21  Bruno Haible  <bruno@clisp.org>
32250         opendir: Avoid compilation error on mingw.
32251         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32252         * modules/opendir (Depends-on): Add unistd.
32254 2011-09-21  Bruno Haible  <bruno@clisp.org>
32256         ftruncate tests: Avoid a test failure on mingw.
32257         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32259 2011-09-21  Bruno Haible  <bruno@clisp.org>
32261         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32262         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32263         native Windows.
32265 2011-09-21  Bruno Haible  <bruno@clisp.org>
32267         New module 'fdopen'.
32268         * lib/stdio.in.h (fdopen): New declaration.
32269         * lib/fdopen.c: New file.
32270         * m4/fdopen.m4: New file.
32271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32272         REPLACE_FDOPEN.
32273         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32274         REPLACE_FDOPEN.
32275         * modules/fdopen: New file.
32276         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32277         * tests/test-stdio-c++.cc: Check signature of fdopen.
32278         * doc/posix-functions/fdopen.texi: Mention the new module.
32280 2011-09-21  Bruno Haible  <bruno@clisp.org>
32282         unlockpt tests: Avoid test failure on NetBSD 5.1.
32283         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32284         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32286 2011-09-21  Bruno Haible  <bruno@clisp.org>
32288         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32289         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32290         * tests/test-getlogin_r.c (main): Likewise.
32292 2011-09-20  Bruno Haible  <bruno@clisp.org>
32294         time tests: Don't require pid_t.
32295         * doc/posix-headers/time.texi: Revert last change.
32296         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32297         * tests/test-time.c: Comment out the check for pid_t.
32299 2011-09-20  Bruno Haible  <bruno@clisp.org>
32301         fsync tests: Avoid a test failure on mingw.
32302         * tests/test-fsync.c (main): Allow a failure with EIO.
32304 2011-09-20  Bruno Haible  <bruno@clisp.org>
32306         euidaccess: Update comments.
32307         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32309 2011-09-20  Bruno Haible  <bruno@clisp.org>
32311         Ensure EBADF returns for socket functions on mingw.
32312         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32313         descriptor is invalid.
32314         * lib/bind.c (rpl_bind): Likewise.
32315         * lib/connect.c (rpl_connect): Likewise.
32316         * lib/getpeername.c (rpl_getpeername): Likewise.
32317         * lib/getsockname.c (rpl_getsockname): Likewise.
32318         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32319         * lib/listen.c (rpl_listen): Likewise.
32320         * lib/recv.c (rpl_recv): Likewise.
32321         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32322         * lib/send.c (rpl_send): Likewise.
32323         * lib/sendto.c (rpl_sendto): Likewise.
32324         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32325         * lib/shutdown.c (rpl_shutdown): Likewise.
32327 2011-09-20  Bruno Haible  <bruno@clisp.org>
32329         select tests: EBADF tests.
32330         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32331         test_bad_fd): New functions.
32332         (test_function): Invoke also test_bad_fd.
32334 2011-09-20  Bruno Haible  <bruno@clisp.org>
32336         Tests for module 'posix_spawn_file_actions_addopen.
32337         * modules/posix_spawn_file_actions_addopen-tests: New file.
32338         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32340         Tests for module 'posix_spawn_file_actions_adddup2'.
32341         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32342         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32344         Tests for module 'posix_spawn_file_actions_addclose'.
32345         * modules/posix_spawn_file_actions_addclose-tests: New file.
32346         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32348 2011-09-20  Bruno Haible  <bruno@clisp.org>
32350         Tests for module 'unlockpt'.
32351         * modules/unlockpt-tests: New file.
32352         * tests/test-unlockpt.c: New file.
32353         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32355         Tests for module 'grantpt'.
32356         * modules/grantpt-tests: New file.
32357         * tests/test-grantpt.c: New file.
32358         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32360 2011-09-20  Bruno Haible  <bruno@clisp.org>
32362         freopen tests: EBADF tests.
32363         * tests/test-freopen.c: Include errno.h, unistd.h.
32364         (main): Add tests for EBADF, commented out for the moment.
32366         fclose tests: EBADF tests.
32367         * tests/test-fclose.c (main): Add tests for EBADF.
32369         fflush tests: EBADF tests.
32370         * tests/test-fflush.c: Include errno.h, macros.h.
32371         (main): Add tests for EBADF.
32373         ftello tests: EBADF tests.
32374         * tests/test-ftello4.sh: New file.
32375         * tests/test-ftello4.c: New file.
32376         * modules/ftello-tests (Files): Add them.
32377         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32379         fseeko tests: EBADF tests.
32380         * tests/test-fseeko4.sh: New file.
32381         * tests/test-fseeko4.c: New file.
32382         * modules/fseeko-tests (Files): Add them.
32383         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32385         Tests for function fputc().
32386         * modules/fputc-tests: New file.
32387         * tests/test-fputc.c: New file.
32388         * modules/stdio-tests (Depends-on): Add fputc-tests.
32390         Tests for function fgetc().
32391         * modules/fgetc-tests: New file.
32392         * tests/test-fgetc.c: New file.
32393         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32395         Tests for function fdopen().
32396         * modules/fdopen-tests: New file.
32397         * tests/test-fdopen.c: New file.
32398         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32400         Tests for module 'vdprintf'.
32401         * modules/vdprintf-tests: New file.
32402         * tests/test-vdprintf.c: New file.
32404         Tests for module 'dprintf'.
32405         * modules/dprintf-tests: New file.
32406         * tests/test-dprintf.c: New file.
32408 2011-09-20  Bruno Haible  <bruno@clisp.org>
32410         Tests for module 'ioctl'.
32411         * modules/ioctl-tests: New file.
32412         * tests/test-ioctl.c: New file.
32414 2011-09-20  Bruno Haible  <bruno@clisp.org>
32416         fcntl tests: EBADF tests.
32417         * tests/test-fcntl.c (main): Add more tests for EBADF.
32419 2011-09-20  Bruno Haible  <bruno@clisp.org>
32421         utimensat tests: EBADF tests.
32422         * tests/test-utimensat.c (main): Add tests for EBADF.
32424         renameat tests: EBADF tests.
32425         * tests/test-renameat.c (main): Add tests for EBADF.
32427         mkfifoat tests: EBADF tests.
32428         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32430         readlinkat tests: EBADF tests.
32431         * tests/test-readlinkat.c (main): Add tests for EBADF.
32433         symlinkat tests: EBADF tests.
32434         * tests/test-symlinkat.c (main): Add tests for EBADF.
32436         linkat tests: EBADF tests.
32437         * tests/test-linkat.c (main): Add tests for EBADF.
32439         Tests for module 'faccessat'.
32440         * modules/faccessat-tests: New file.
32441         * tests/test-faccessat.c: New file.
32443         fdopendir tests: EBADF tests.
32444         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32446         openat tests: EBADF tests.
32447         * tests/test-fchownat.c (main): Add tests for EBADF.
32448         * tests/test-fstatat.c (main): Likewise.
32449         * tests/test-mkdirat.c (main): Likewise.
32450         * tests/test-openat.c (main): Likewise.
32451         * tests/test-unlinkat.c (main): Likewise.
32452         * tests/test-fchmodat.c: New file.
32453         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32454         (Makefile.am): Also run 'test-fchmodat'.
32456 2011-09-20  Bruno Haible  <bruno@clisp.org>
32458         utimens, futimens, fdutimensat tests: EBADF tests.
32459         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32461         Tests for function fstat().
32462         * modules/fstat-tests: New file.
32463         * tests/test-fstat.c: New file.
32464         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32466 2011-09-20  Bruno Haible  <bruno@clisp.org>
32468         test-ttyname_r tests: EBADF tests.
32469         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32471         Tests for module 'isatty'.
32472         * modules/isatty-tests: New file.
32473         * tests/test-isatty.c: New file.
32475         Tests for module 'write'.
32476         * modules/write-tests: New file.
32477         * tests/test-write.c: New file.
32479         Tests for module 'read'.
32480         * modules/read-tests: New file.
32481         * tests/test-read.c: New file.
32483         pwrite tests: EBADF tests.
32484         * tests/test-pwrite.c (main): Add tests for EBADF.
32486         pread tests: EBADF tests.
32487         * tests/test-pread.c (main): Add tests for EBADF.
32489         lseek tests: EBADF tests.
32490         * tests/test-lseek.c (main): Add more tests for EBADF.
32492         Tests for module 'ftruncate'.
32493         * modules/ftruncate-tests: New file.
32494         * tests/test-ftruncate.sh: New file.
32495         * tests/test-ftruncate.c: New file.
32497         fsync tests: EBADF tests.
32498         * tests/test-fsync.c (main): Add more tests for EBADF.
32500         fdatasync tests: EBADF tests.
32501         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32503         Tests for module 'fchown'.
32504         * modules/fchown-tests: New file.
32505         * tests/test-fchown.c: New file.
32507         Tests for module 'fchmod'.
32508         * modules/fchmod-tests: New file.
32509         * tests/test-fchmod.c: New file.
32511         fchdir tests: EBADF tests.
32512         * tests/test-fchdir.c (main): Add more tests for EBADF.
32514         dup2 tests: EBADF tests.
32515         * tests/test-dup2.c (main): Add more tests for EBADF.
32517         Tests for module 'dup'.
32518         * modules/dup-tests: New file.
32519         * tests/test-dup.c: New file.
32521         Tests for module 'close'.
32522         * modules/close-tests: New file.
32523         * tests/test-close.c: New file.
32525 2011-09-20  Bruno Haible  <bruno@clisp.org>
32527         Tests for module 'shutdown'.
32528         * modules/shutdown-tests: New file.
32529         * tests/test-shutdown.c: New file.
32531         Tests for module 'setsockopt'.
32532         * modules/setsockopt-tests: New file.
32533         * tests/test-setsockopt.c: New file.
32535         Tests for module 'sendto'.
32536         * modules/sendto-tests: New file.
32537         * tests/test-sendto.c: New file.
32539         Tests for module 'send'.
32540         * modules/send-tests: New file.
32541         * tests/test-send.c: New file.
32543         Tests for module 'recvfrom'.
32544         * modules/recvfrom-tests: New file.
32545         * tests/test-recvfrom.c: New file.
32547         Tests for module 'recv'.
32548         * modules/recv-tests: New file.
32549         * tests/test-recv.c: New file.
32551         Tests for module 'listen'.
32552         * modules/listen-tests: New file.
32553         * tests/test-listen.c: New file.
32555         Tests for module 'getsockopt'.
32556         * modules/getsockopt-tests: New file.
32557         * tests/test-getsockopt.c: New file.
32559         Tests for module 'getsockname'.
32560         * modules/getsockname-tests: New file.
32561         * tests/test-getsockname.c: New file.
32563         Tests for module 'getpeername'.
32564         * modules/getpeername-tests: New file.
32565         * tests/test-getpeername.c: New file.
32567         Tests for module 'connect'.
32568         * modules/connect-tests: New file.
32569         * tests/test-connect.c: New file.
32571         Tests for module 'bind'.
32572         * modules/bind-tests: New file.
32573         * tests/test-bind.c: New file.
32575         accept4 tests: Fix for native Windows.
32576         * tests/test-accept4.c: Include sockets.h.
32577         (main): Invoke gl_sockets_startup.
32578         * modules/accept4-tests (Depends-on): Add sockets.
32580         accept tests: Fix for native Windows.
32581         * tests/test-accept.c: Include sockets.h.
32582         (main): Invoke gl_sockets_startup.
32583         * modules/accept-tests (Depends-on): Add sockets.
32585 2011-09-19  Bruno Haible  <bruno@clisp.org>
32587         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32588         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32589         do...while(0).
32590         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32591         Suggested by Paul Eggert.
32593 2011-09-19  Bruno Haible  <bruno@clisp.org>
32595         sched: Ensure pid_t is defined.
32596         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32597         not define pid_t.
32598         * lib/sched.in.h: Include <sys/types.h>.
32599         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32602 2011-09-19  Bruno Haible  <bruno@clisp.org>
32604         msvc-inval: Ensure the entire expansion is a single statement.
32605         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32606         of braces.
32608 2011-09-19  Jim Meyering  <meyering@redhat.com>
32610         tests: use printf, not echo in init.sh's warn_ function
32611         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32612         misbehave when given strings containing a backslash or starting
32613         with e.g., -n.  James Youngman suggested setting IFS.
32615 2011-09-19  Eric Blake  <eblake@redhat.com>
32617         futimens: enhance test
32618         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32619         closed non-negative fd.
32621         date: accept 'hence' as opposite of 'ago'
32622         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32623         * tests/test-parse-datetime.c (main): Enhance test.
32624         Suggested by Jesse Wilson.
32626 2011-09-19  Jim Meyering  <meyering@redhat.com>
32628         getcwd: don't fail in a deep directory on a system without openat
32629         Before this change, getcwd would fail when called from a directory
32630         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32631         the non-openat implementation used "..", "../..", "../../..", etc.
32632         to access ancestor directories.  With too many, that string would
32633         be longer than PATH_MAX.
32634         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32635         using gnulib's openat replacement.
32636         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32637         we're using the replacement function.
32639 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32641         maint.mk: avoid warnings from perl about missing files
32642         * top/maint.mk (def_sym_regex): Ignore files listed in
32643         $(gl_other_headers_) that do not exist, say because a project
32644         does not use a corresponding module.
32646 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32648         stat: use pathmax.h only if needed
32649         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32650         This is better for Emacs, which does not have a mingw port and
32651         therefore can avoid the pathmax module.
32653         utimens: remove dependency on dup2
32654         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32655         to work around the Linux kernel bug.
32656         * modules/utimens (Depends-on): Remove dup2.
32658 2011-09-18  Bruno Haible  <bruno@clisp.org>
32660         inet_ntop, inet_pton: Look for it also in libresolv.
32661         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32662         libnsl, search for it in libresolv.
32663         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32664         Needed on Solaris 7.
32666 2011-09-18  Bruno Haible  <bruno@clisp.org>
32668         accept, accept4 tests: Avoid link error on Solaris.
32669         * modules/accept-tests (Makefile.am): Link test-accept against
32670         $(LIBSOCKET).
32671         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32672         $(LIBSOCKET).
32674         accept4: Avoid link error on Solaris.
32675         * modules/accept4 (Link): New section.
32677         socket functions: Avoid link errors on Solaris.
32678         * modules/accept (Depends-on): Add socketlib.
32679         (Link): New section.
32680         * modules/bind (Depends-on): Add socketlib.
32681         (Link): New section.
32682         * modules/connect (Depends-on): Add socketlib.
32683         (Link): New section.
32684         * modules/getpeername (Depends-on): Add socketlib.
32685         (Link): New section.
32686         * modules/getsockname (Depends-on): Add socketlib.
32687         (Link): New section.
32688         * modules/getsockopt (Depends-on): Add socketlib.
32689         (Link): New section.
32690         * modules/listen (Depends-on): Add socketlib.
32691         (Link): New section.
32692         * modules/recv (Depends-on): Add socketlib.
32693         (Link): New section.
32694         * modules/recvfrom (Depends-on): Add socketlib.
32695         (Link): New section.
32696         * modules/send (Depends-on): Add socketlib.
32697         (Link): New section.
32698         * modules/sendto (Depends-on): Add socketlib.
32699         (Link): New section.
32700         * modules/setsockopt (Depends-on): Add socketlib.
32701         (Link): New section.
32702         * modules/shutdown (Depends-on): Add socketlib.
32703         (Link): New section.
32704         * modules/socket (Depends-on): Add socketlib.
32705         (Link): New section.
32707 2011-09-18  Bruno Haible  <bruno@clisp.org>
32709         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32710         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32711         than 5 seconds.
32712         * modules/ptsname-tests (configure.ac): Test for alarm.
32714 2011-09-18  Bruno Haible  <bruno@clisp.org>
32716         posix_spawn_file_actions_add*: Fix module dependencies.
32717         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32718         posix_spawn_file_actions_init.
32719         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32720         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32722 2011-09-18  Bruno Haible  <bruno@clisp.org>
32724         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32725         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32726         * tests/test-renameat.c (main): Likewise.
32728 2011-09-18  Bruno Haible  <bruno@clisp.org>
32730         Tests for module 'accept4'.
32731         * modules/accept4-tests: New file.
32732         * tests/test-accept4.c: New file.
32734 2011-09-18  Bruno Haible  <bruno@clisp.org>
32736         Tests for module 'accept'.
32737         * modules/accept-tests: New file.
32738         * tests/test-accept.c: New file.
32740 2011-09-18  Bruno Haible  <bruno@clisp.org>
32742         dup2: Support for MSVC.
32743         * lib/dup2.c: Include msvc-inval.h.
32744         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32745         _get_osfhandle calls.
32746         * modules/dup2 (Depends-on): Add msvc-inval.
32747         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32749         New module 'msvc-inval'.
32750         * lib/msvc-inval.h: New file.
32751         * lib/msvc-inval.c: New file.
32752         * m4/msvc-inval.m4: New file.
32753         * modules/msvc-inval: New file.
32755 2011-09-17  Bruno Haible  <bruno@clisp.org>
32757         Tests for module 'pclose'.
32758         * modules/pclose-tests: New file.
32760         New module 'pclose'.
32761         * lib/stdio.in.h (pclose): New declaration.
32762         * lib/pclose.c: New file.
32763         * m4/pclose.m4: New file.
32764         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32765         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32766         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32767         * modules/pclose: New file.
32768         * modules/popen-tests (Depends-on): Add pclose.
32769         * modules/popen-safer-tests (Depends-on): Likewise.
32770         * doc/posix-functions/pclose.texi: Mention the new module.
32772 2011-09-17  Bruno Haible  <bruno@clisp.org>
32774         popen: Support for MSVC.
32775         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32776         * lib/popen.c (popen): Provide alternate definition for native Windows.
32777         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32779         * modules/popen (Depends-on, configure.ac): Update condition.
32780         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32781         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32782         fixed.
32784 2011-09-17  Bruno Haible  <bruno@clisp.org>
32786         isnanl, isnand, isnanf: Work around MSVC bug.
32787         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32789 2011-09-17  Bruno Haible  <bruno@clisp.org>
32791         sys_socket tests: Fix recent mistake.
32792         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32794 2011-09-17  Bruno Haible  <bruno@clisp.org>
32796         putenv: Support for MSVC.
32797         * modules/putenv (Depends-on): Add environ.
32798         * lib/putenv.c (environ): Disable declaration.
32799         * lib/unistd.in.h: Update comment.
32801 2011-09-17  Bruno Haible  <bruno@clisp.org>
32803         math: Avoid macro redefinition warnings on MSVC.
32804         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32805         Undefine before redefining.
32807 2011-09-17  Bruno Haible  <bruno@clisp.org>
32809         doc: Mention functions which are declared as macros.
32810         * doc/posix-functions/*[fl].texi: Mention that some functions are
32811         defined as macros with arguments only.
32813 2011-09-17  Bruno Haible  <bruno@clisp.org>
32815         Add dependencies to new dirent related modules.
32816         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32817         * modules/fts (Depends-on): Likewise.
32818         * modules/glob (Depends-on): Likewise.
32819         * modules/savedir (Depends-on): Likewise.
32820         * modules/scandir (Depends-on): Likewise.
32821         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32822         * modules/fdopendir (Depends-on): Add opendir.
32824 2011-09-17  Bruno Haible  <bruno@clisp.org>
32826         inet_pton: Support for MSVC on Windows Vista or newer.
32827         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32828         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32829         HAVE_DECL_INET_PTON is defined.
32830         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32831         On platforms with <winsock2.h>, test whether inet_pton is declared in
32832         <ws2tcpip.h>. If so, arrange to replace it.
32833         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32834         REPLACE_INET_PTON.
32835         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32836         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32837         (Depends-on, configure.ac): Update condition.
32838         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32840 2011-09-17  Bruno Haible  <bruno@clisp.org>
32842         inet_ntop: Support for MSVC on Windows Vista or newer.
32843         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32844         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32845         HAVE_DECL_INET_NTOP is defined.
32846         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32847         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32848         <ws2tcpip.h>. If so, arrange to replace it.
32849         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32850         REPLACE_INET_NTOP.
32851         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32852         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32853         (Depends-on, configure.ac): Update condition.
32854         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32856 2011-09-16  Eric Blake  <eblake@redhat.com>
32858         test-fsync: yet another enhancement
32859         * tests/test-fsync.c (main): Also test behavior on read-only text
32860         file.
32862 2011-09-16  Bruno Haible  <bruno@clisp.org>
32864         Enhance fsync, fdatasync tests.
32865         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32866         * tests/test-fdatasync.c (main): Likewise.
32868 2011-09-16  Bruno Haible  <bruno@clisp.org>
32870         Support for MSVC compiler: Ensure mode_t gets defined.
32871         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32872         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32874         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32875         * tests/test-fcntl-h.c: Check that mode_t is defined.
32876         * tests/test-sys_stat.c: Likewise.
32877         * tests/test-sys_types.c: Likewise.
32878         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32879         * doc/posix-headers/sys_stat.texi: Likewise.
32880         * doc/posix-headers/sys_types.texi: Likewise.
32882 2011-09-16  Bruno Haible  <bruno@clisp.org>
32884         sys_stat: Support for MSVC.
32885         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32886         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32887         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32888         MSVC.
32890 2011-09-16  Bruno Haible  <bruno@clisp.org>
32892         Support for MSVC compiler: Ensure off_t gets defined.
32893         * lib/unistd.in.h: Include <sys/types.h>.
32894         * tests/test-fcntl-h.c: Check that off_t is defined.
32895         * tests/test-sys_stat.c: Likewise.
32896         * tests/test-sys_types.c: Likewise.
32898 2011-09-16  Eric Blake  <eblake@redhat.com>
32900         fdatasync: port to Solaris
32901         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32902         * modules/fdatasync (Link): Document it.
32903         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32905         fdatasync: port to MacOS X 10.7
32906         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32907         declared.
32908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32909         * modules/unistd (Makefile.am): Substitute it.
32910         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32911         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32913         fdatasync: minor improvements
32914         * modules/fdatasync (Depends-on): Add condition for fsync.
32915         * lib/fdatasync.c (fdatasync): Add comment.
32916         * tests/test-unistd-c++.cc: Test fdatasync.
32918         unistd: update refs to newer POSIX
32919         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32920         Suggested by Bruno Haible.
32922         fdatasync: new module
32923         * modules/fsync (Description): Document difference to fdatasync.
32924         * modules/fdatasync: New module.
32925         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32926         * lib/fdatasync.c (fdatasync): Likewise.
32927         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32928         defaults.
32929         * modules/unistd (Makefile.am): Set witnesses.
32930         * lib/unistd.in.h (fdatasync): Declare.
32931         * MODULES.html.sh: Document it.
32932         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32933         * modules/fdatasync-tests: New test.
32934         * tests/test-fdatasync.c: Likewise.
32936 2011-09-16  Eric Blake  <eblake@redhat.com>
32938         test-fsync: enhance tests
32939         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32940         * tests/test-fsync.c (main): Enhance test.
32942 2011-09-15  Bruno Haible  <bruno@clisp.org>
32944         Support for MSVC compiler: Ensure ssize_t gets defined.
32945         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32946         * doc/posix-headers/stdio.texi: Likewise.
32947         * modules/stdio (Depends-on): Add ssize_t.
32948         * modules/sys_socket (Depends-on): Likewise.
32949         * modules/sys_types (Depends-on): Likewise.
32950         * modules/sys_uio (Depends-on): Likewise.
32951         * modules/unistd (Depends-on): Likewise.
32952         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32953         * tests/test-sys_types.c: Check that ssize_t is defined.
32955 2011-09-14  Bruno Haible  <bruno@clisp.org>
32957         Avoid using #, the m4 comment starter character, near brackets.
32958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32959         delimiter character in sed expressions.
32960         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32961         Suggested by Eric Blake.
32963         Properly quote AC_CHECK_DECLS' 4th argument.
32964         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32965         argument.
32966         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32967         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32968         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32969         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32970         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32971         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32973         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32974         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32975         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32976         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32977         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32978         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32979         * m4/isinf.m4 (gl_ISINF): Likewise.
32980         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32981         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32982         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32983         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32984         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32985         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32986         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32987         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32988         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32989         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32990         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32991         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32993         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32995         Reported by Eric Blake.
32997         Properly quote AC_CHECK_DECL's 4th argument.
32998         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32999         argument.
33000         * m4/argp.m4 (gl_ARGP): Likewise.
33001         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
33002         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33003         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
33004         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
33005         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
33006         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
33007         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33008         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
33009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33010         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
33011         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
33012         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
33013         Reported by Eric Blake.
33015 2011-09-14  Eric Blake  <eblake@redhat.com>
33017         opendir: avoid compile warning
33018         * lib/opendir.c (includes): Always include errno.h.
33019         Reported by Tatsuro MATSUOKA.
33021 2011-09-14  Jim Meyering  <meyering@redhat.com>
33023         maint.mk: sc_tight_scope: propagate failure from sub-make
33024         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
33025         Reported by Martin von Gagern.
33027 2011-09-13  Bruno Haible  <bruno@clisp.org>
33029         tempname: Support for MSVC.
33030         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
33031         MSVC.
33032         * modules/tempname (Depends-on): Add fcntl-h.
33034 2011-09-13  Bruno Haible  <bruno@clisp.org>
33036         sys_time: Support for MSVC.
33037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
33038         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
33039         include <winsock2.h>.
33040         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
33041         function declarations that collide with POSIX.
33042         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
33043         (Makefile.am): Substitute HAVE_WINSOCK2_H.
33045 2011-09-13  Bruno Haible  <bruno@clisp.org>
33047         stat: Support for MSVC.
33048         * lib/stat.c: Include pathmax.h.
33049         * modules/stat (Depends-on): Add pathmax.
33051         pathmax: Support for native Windows.
33052         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
33054 2011-09-12  Bruno Haible  <bruno@clisp.org>
33056         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
33057         * lib/dirent.in.h (struct dirent): New type.
33058         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
33059         DT_WHT): New macros.
33060         (DIR): New type.
33061         (opendir, closedir): Declare only if the module 'opendir' is enabled.
33062         (readdir, rewinddir): New declarations.
33063         * lib/dirent-private.h: New file.
33064         * lib/opendir.c: New file.
33065         * lib/readdir.c: New file.
33066         * lib/rewinddir.c: New file.
33067         * lib/closedir.c: New file.
33068         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
33069         * m4/opendir.m4: New file.
33070         * m4/readdir.m4: New file.
33071         * m4/rewinddir.m4: New file.
33072         * m4/closedir.m4: New file.
33073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
33074         REPLACE_CLOSEDIR here.
33075         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
33076         readdir, rewinddir are declared.
33077         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
33078         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
33079         HAVE_REWINDDIR, HAVE_CLOSEDIR.
33080         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33081         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
33082         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
33083         * modules/opendir: New file.
33084         * modules/readdir: New file.
33085         * modules/rewinddir: New file.
33086         * modules/closedir: New file.
33087         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
33088         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
33089         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
33090         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
33091         * NEWS: Mention the 'fchdir' change.
33093 2011-09-11  Bruno Haible  <bruno@clisp.org>
33095         asm-underscore.m4: Support for MSVC.
33096         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
33097         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
33099 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
33101         Doc about crypt functions.
33102         * doc/posix-functions/crypt.texi: Expand range of glibc versions
33103         needing for _GNU_SOURCE to get crypt.
33104         * doc/posix-functions/encrypt.texi: Likewise.
33105         * doc/posix-functions/setkey.texi: Likewise.
33107 2011-09-11  Bruno Haible  <bruno@clisp.org>
33109         doc: Update regarding MSVC 9.
33110         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
33111         tested".
33112         * doc/posix-functions/*.texi: Update with info about MSVC 9.
33113         * doc/posix-headers/*.texi: Likewise.
33114         * doc/pastposix-functions/*.texi: Likewise.
33115         * doc/glibc-functions/*.texi: Likewise.
33116         * doc/glibc-headers/*.texi: Likewise.
33118 2011-09-11  Bruno Haible  <bruno@clisp.org>
33120         unistd et al.: Don't assume <unistd.h> exists.
33121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
33122         does not exist.
33123         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33124         exist. But include <stdlib.h>.
33125         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33126         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33127         symlink() does not exist.
33128         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33129         include <io.h> instead.
33130         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33131         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33132         include <direct.h> instead.
33133         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33134         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33135         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33136         <io.h> instead.
33137         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33138         correctly if the system does not have hard links.
33139         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33140         <direct.h> instead.
33141         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33142         it when looking for function declarations.
33143         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33144         <direct.h> and <io.h> instead.
33145         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33147 2011-09-11  Bruno Haible  <bruno@clisp.org>
33149         strcase: Support for MSVC.
33150         * modules/strcase (Status, Notice): Remove obsoletion mark.
33151         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33152         * doc/posix-functions/strncasecmp.texi: Likewise.
33154         strings: Don't assume <strings.h> exists.
33155         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33156         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33157         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33158         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33160 2011-09-11  Bruno Haible  <bruno@clisp.org>
33162         dirent: Don't assume <dirent.h> exists.
33163         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33164         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33165         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33166         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33168 2011-09-11  Bruno Haible  <bruno@clisp.org>
33170         Fix wint_t on MSVC.
33171         * lib/wchar.in.h (wint_t): On MSVC, override it.
33172         * lib/wctype.in.h (wint_t): Likewise.
33173         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33174         MSVC.
33175         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33176         * doc/posix-headers/wctype.texi: Likewise.
33178 2011-09-11  Bruno Haible  <bruno@clisp.org>
33180         sys_types: Fix typo.
33181         * lib/sys_types.in.h: Fix typo in comment.
33182         Reported by Paul Eggert.
33184         Support for MSVC compiler: Ensure size_t gets defined.
33185         * modules/strings (Depends-on): Add 'sys_types'.
33186         * modules/sys_uio (Depends-on): Likewise.
33187         * lib/sys_uio.in.h: Update comment.
33189         C++ tests for module 'sys_types'.
33190         * modules/sys_types-c++-tests: New file.
33191         * tests/test-sys_types-c++.cc: New file.
33193         Tests for module 'sys_types'.
33194         * modules/sys_types-tests: New file.
33195         * tests/test-sys_types.c: New file.
33197         New module 'sys_types'.
33198         * lib/sys_types.in.h: New file.
33199         * m4/sys_types_h.m4: New file.
33200         * modules/sys_types: New file.
33201         * doc/posix-headers/sys_types.texi: Mention the new module and the
33202         size_t problem on MSVC 9.
33204 2011-09-11  Bruno Haible  <bruno@clisp.org>
33206         Support for MSVC compiler: Avoid division by a literal 0.
33207         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33208         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33209         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33210         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33211         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33212         * tests/infinity.h: New file.
33213         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33214         on MSVC.
33215         * tests/test-ceilf1.c: Include infinity.h.
33216         (main): Use Infinityf.
33217         * tests/test-ceil1.c: Include infinity.h.
33218         (main): Use Infinityd.
33219         * tests/test-ceill.c: Include infinity.h.
33220         (main): Use Infinityl.
33221         * tests/test-dprintf-posix.c: Include infinity.h.
33222         (test_function): Use Infinityd.
33223         * tests/test-floorf1.c: Include infinity.h.
33224         (main): Use Infinityf.
33225         * tests/test-floor1.c: Include infinity.h.
33226         (main): Use Infinityd.
33227         * tests/test-floorl.c: Include infinity.h.
33228         (main): Use Infinityl.
33229         * tests/test-fprintf-posix.c: Include infinity.h.
33230         (test_function): Use Infinityd.
33231         * tests/test-frexp.c: Include infinity.h.
33232         (main): Use Infinityd.
33233         * tests/test-frexpl.c: Include infinity.h.
33234         (main): Use Infinityl.
33235         * tests/test-isfinite.c: Include infinity.h.
33236         (test_isfinitef): Use Infinityf.
33237         (test_isfinited): Use Infinityd.
33238         (test_isfinitel): Use Infinityl.
33239         * tests/test-isinf.c: Include infinity.h.
33240         (test_isinff): Use Infinityf.
33241         (test_isinfd): Use Infinityd.
33242         (test_isinfl): Use Infinityl.
33243         * tests/test-isnan.c: Include infinity.h.
33244         (test_float): Use Infinityf.
33245         (test_double): Use Infinityd.
33246         (test_long_double): Use Infinityl.
33247         * tests/test-isnanf.h: Include infinity.h.
33248         (main): Use Infinityf.
33249         * tests/test-isnand.h: Include infinity.h.
33250         (main): Use Infinityd.
33251         * tests/test-isnanl.h: Include infinity.h.
33252         (main): Use Infinityl.
33253         * tests/test-ldexpl.c: Include infinity.h.
33254         (main): Use Infinityl.
33255         * tests/test-printf-posix.h: Include infinity.h.
33256         (test_function): Use Infinityd.
33257         * tests/test-roundf1.c: Include infinity.h.
33258         (main): Use Infinityf.
33259         * tests/test-round1.c: Include infinity.h.
33260         (main): Use Infinityd.
33261         * tests/test-roundl.c: Include infinity.h.
33262         (main): Use Infinityl.
33263         * tests/test-signbit.c: Include infinity.h.
33264         (test_signbitf): Use Infinityf.
33265         (test_signbitd): Use Infinityd.
33266         (test_signbitl): Use Infinityl.
33267         * tests/test-snprintf-posix.h: Include infinity.h.
33268         (test_function): Use Infinityd, Infinityl.
33269         * tests/test-sprintf-posix.h: Include infinity.h.
33270         (test_function): Use Infinityd, Infinityl.
33271         * tests/test-truncf1.c: Include infinity.h.
33272         (main): Use Infinityf.
33273         * tests/test-trunc1.c: Include infinity.h.
33274         (main): Use Infinityd.
33275         * tests/test-truncl.c: Include infinity.h.
33276         (main): Use Infinityl.
33277         * tests/test-vasnprintf-posix.c: Include infinity.h.
33278         (test_function): Use Infinityd, Infinityl.
33279         * tests/test-vasprintf-posix.c: Include infinity.h.
33280         (test_function): Use Infinityd, Infinityl.
33281         * modules/ceilf-tests (Files): Add tests/infinity.h.
33282         * modules/ceil-tests (Files): Likewise.
33283         * modules/ceill-tests (Files): Likewise.
33284         * modules/dprintf-posix-tests (Files): Likewise.
33285         * modules/floorf-tests (Files): Likewise.
33286         * modules/floor-tests (Files): Likewise.
33287         * modules/floorl-tests (Files): Likewise.
33288         * modules/fprintf-posix-tests (Files): Likewise.
33289         * modules/frexp-tests (Files): Likewise.
33290         * modules/frexp-nolibm-tests (Files): Likewise.
33291         * modules/frexpl-tests (Files): Likewise.
33292         * modules/frexpl-nolibm-tests (Files): Likewise.
33293         * modules/isfinite-tests (Files): Likewise.
33294         * modules/isinf-tests (Files): Likewise.
33295         * modules/isnan-tests (Files): Likewise.
33296         * modules/isnanf-tests (Files): Likewise.
33297         * modules/isnanf-nolibm-tests (Files): Likewise.
33298         * modules/isnand-tests (Files): Likewise.
33299         * modules/isnand-nolibm-tests (Files): Likewise.
33300         * modules/isnanl-tests (Files): Likewise.
33301         * modules/isnanl-nolibm-tests (Files): Likewise.
33302         * modules/ldexpl-tests (Files): Likewise.
33303         * modules/printf-posix-tests (Files): Likewise.
33304         * modules/roundf-tests (Files): Likewise.
33305         * modules/round-tests (Files): Likewise.
33306         * modules/roundl-tests (Files): Likewise.
33307         * modules/signbit-tests (Files): Likewise.
33308         * modules/snprintf-posix-tests (Files): Likewise.
33309         * modules/sprintf-posix-tests (Files): Likewise.
33310         * modules/truncf-tests (Files): Likewise.
33311         * modules/trunc-tests (Files): Likewise.
33312         * modules/truncl-tests (Files): Likewise.
33313         * modules/vasnprintf-posix-tests (Files): Likewise.
33314         * modules/vasprintf-posix-tests (Files): Likewise.
33315         * modules/vdprintf-posix-tests (Files): Likewise.
33316         * modules/vfprintf-posix-tests (Files): Likewise.
33317         * modules/vprintf-posix-tests (Files): Likewise.
33318         * modules/vsnprintf-posix-tests (Files): Likewise.
33319         * modules/vsprintf-posix-tests (Files): Likewise.
33320         * modules/xprintf-posix-tests (Files): Likewise.
33322 2011-09-11  Bruno Haible  <bruno@clisp.org>
33324         Ensure pid_t gets defined.
33325         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33326         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33327         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33328         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33329         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33330         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33331         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33332         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33333         * tests/test-fcntl-h.c: Check that pid_t is defined.
33334         * tests/test-sched.c: Likewise.
33335         * tests/test-termios.c: Likewise.
33336         * tests/test-time.c: Likewise.
33337         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33338         * doc/posix-headers/signal.texi: Likewise.
33339         * doc/posix-headers/sys_types.texi: Likewise.
33340         * doc/posix-headers/time.texi: Likewise.
33342 2011-09-11  Bruno Haible  <bruno@clisp.org>
33344         acl: Fix compilation on Solaris 10 (older version).
33345         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33346         of ACE_EVERYONE.
33347         * lib/set-mode-acl.c (qset_acl): Likewise.
33348         Reported by Christian Jullien <eligis@orange.fr>.
33350 2011-09-10  Bruno Haible  <bruno@clisp.org>
33352         iconv, unsetenv: Add support for MSVC compiler.
33353         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33354         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33356 2011-09-10  Bruno Haible  <bruno@clisp.org>
33358         *printf: Add support for MSVC compiler.
33359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33360         handles the exception caused by the %n directive. When cross-compiling,
33361         guess no on native Windows.
33362         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33363         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33364         emulate it through vsnprintf.
33365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33366         * doc/posix-functions/dprintf.texi: Update documentation regarding
33367         MSVC 9.
33368         * doc/posix-functions/fprintf.texi: Likewise.
33369         * doc/posix-functions/printf.texi: Likewise.
33370         * doc/posix-functions/snprintf.texi: Likewise.
33371         * doc/posix-functions/sprintf.texi: Likewise.
33372         * doc/posix-functions/swprintf.texi: Likewise.
33373         * doc/posix-functions/vdprintf.texi: Likewise.
33374         * doc/posix-functions/vfprintf.texi: Likewise.
33375         * doc/posix-functions/vprintf.texi: Likewise.
33376         * doc/posix-functions/vsnprintf.texi: Likewise.
33377         * doc/posix-functions/vsprintf.texi: Likewise.
33378         * doc/glibc-functions/asprintf.texi: Likewise.
33379         * doc/glibc-functions/obstack_printf.texi: Likewise.
33380         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33381         * doc/glibc-functions/vasprintf.texi: Likewise.
33383 2011-09-10  Bruno Haible  <bruno@clisp.org>
33385         nocrash: Add support for native Windows.
33386         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33388 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33389             Bruno Haible  <bruno@clisp.org>
33391         absolute-header, include-next: Add support for MSVC compiler.
33392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33393         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33394         directory separator in #line directives.
33395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33396         recognize also backslash as directory separator in #line directives.
33398 2011-09-08  Jim Meyering  <meyering@redhat.com>
33400         maint.mk: mark the post-release commit log with "maint: " prefix
33401         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33402         one-line commit-log summary.
33404 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33405             Bruno Haible  <bruno@clisp.org>
33407         Doc about crypt functions.
33408         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33409         systems.
33410         * doc/posix-functions/encrypt.texi: Likewise.
33411         * doc/posix-functions/setkey.texi: Likewise.
33413 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33415         * lib/gc.h: Fix copyright header.
33417 2011-09-07  Bruno Haible  <bruno@clisp.org>
33419         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33421         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33423 2011-09-07  Bruno Haible  <bruno@clisp.org>
33425         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33426         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33427         * lib/freopen.c: Likewise.
33428         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33429         * lib/lstat.c: Likewise.
33430         * lib/stat.c: Likewise.
33431         * lib/open.c: Use different syntax for include of <fcntl.h>.
33432         * lib/openat.c: Include fcntl.h again, explicitly.
33434 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33436         parse-datetime: document the newly accepted format
33437         * doc/parse-datetime.texi (Combined date and time of day items):
33438         New section.
33440 2011-09-06  Bruno Haible  <bruno@clisp.org>
33442         acl: Fix a test failure on newer Solaris 10 with ZFS.
33443         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33444         ENOSYS as no ACL.
33445         Reported by Jim Meyering.
33447 2011-09-06  Bruno Haible  <bruno@clisp.org>
33449         acl: Update for AIX >= 5.3 with NFS.
33450         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33451         ENOSYS as no ACL.
33453         acl: Fix a test failure on AIX >= 5.3 with NFS.
33454         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33455         as no ACL.
33457 2011-09-06  Bruno Haible  <bruno@clisp.org>
33459         acl: Fix a test failure on IRIX 6.5 with NFS.
33460         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33461         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33462         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33463         * lib/copy-acl.c (qcopy_acl): Likewise.
33465 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33467         openat: port to AIX 7.1 with large files
33468         AIX 7.1 does a "#define openat open64at" if large files are in use,
33469         so we can't simply #undef openat.  Use the orig_openat trick (similar
33470         to orig_open in lib/open.c) to work around the problem.  Problem
33471         reported by Kevin Brott for GNU tar, in the thread containing
33472         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33473         * lib/openat.c (__need_system_fcntl_h): Define first.
33474         Include <fcntl.h> and <sys/types.h> before undefining.
33475         (orig_openat) [HAVE_OPENAT]: New inline function.
33476         (openat) [HAVE_OPENAT]: Do not undef.
33477         (rpl_openat): Use orig_openat, not openat.
33479 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33480             Bruno Haible  <bruno@clisp.org>
33482         acl: Avoid errors on NonStop Kernel.
33483         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33484         ENOTSUP errors.
33486 2011-09-05  Bruno Haible  <bruno@clisp.org>
33488         acl: Clean up Solaris code.
33489         * lib/acl-internal.h: Remove no-op #if.
33490         * lib/file-has-acl.c: Likewise.
33491         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33492         * lib/copy-acl.c (qcopy_acl): Likewise.
33494 2011-09-05  Bruno Haible  <bruno@clisp.org>
33496         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33497         binaries built on the original Solaris 10.
33498         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33499         trivial.
33501 2011-09-05  Bruno Haible  <bruno@clisp.org>
33503         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33504         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33505         10.
33506         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33507         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33508         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33509         instead of acl_get, facl_get, acl_set, facl_set.
33511 2011-09-05  Bruno Haible  <bruno@clisp.org>
33513         copy-file: Try unit tests on more file systems.
33514         * tests/test-copy-file-1.sh: New file.
33515         * tests/test-copy-file-2.sh: New file.
33516         * modules/copy-file-tests (Files): Add them.
33517         (Makefile.am): Add them to TESTS.
33519         acl: Try unit tests on more file systems.
33520         * tests/test-file-has-acl-1.sh: New file.
33521         * tests/test-file-has-acl-2.sh: New file.
33522         * tests/test-set-mode-acl-1.sh: New file.
33523         * tests/test-set-mode-acl-2.sh: New file.
33524         * tests/test-copy-acl-1.sh: New file.
33525         * tests/test-copy-acl-2.sh: New file.
33526         * modules/acl-tests (Files): Add them.
33527         (Makefile.am): Add them to TESTS.
33529 2011-09-04  Bruno Haible  <bruno@clisp.org>
33531         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33532         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33533         10.
33534         (OLD_ALLOW, OLD_DENY): New macros.
33535         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33536         ACE_ACCESS_ALLOWED_ACE_TYPE.
33537         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33538         ACE_ACCESS_DENIED_ACE_TYPE.
33539         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33540         (NEW_ACE_EXECUTE): Fix value.
33541         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33542         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33543         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33544         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33545         NEW_ACE_SYNCHRONIZE): New macros.
33546         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33547         instead of acl_fromtext, acl_set, facl_set.
33548         Fixes a coreutils/tests/cp/perm failure.
33550 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33552         openat: test for fstatat (..., 0) bug
33553         Further testing with tar suggests that fstatat (..., 0)
33554         does not work in general, on AIX 7.1; see
33555         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33556         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33557         replacement fstatat (which is what older AIX releases were using
33558         anyway).
33559         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33560         use is now changed to orig_fstatat.  This was probably the right
33561         thing to do anyway.
33562         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33563         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33564         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33565         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33566         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33567         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33568         if the bug is found.
33570         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33571         This tests for another fstatat bug on AIX 7.1:
33572         fstatat (AT_FDCWD, ..., 0) does not work.  See
33573         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33574         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33575         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33576         (rpl_fstatat): Adjust so that it works around either (or both)
33577         bugs if present.
33578         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33580 2011-09-03  Karl Berry  <karl@gnu.org>
33582         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33583         in index entries.
33585 2011-09-02  Bruno Haible  <bruno@clisp.org>
33587         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33588         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33589         values of AR, ARFLAGS, RANLIB.
33590         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33592 2011-09-02  Bruno Haible  <bruno@clisp.org>
33594         Find 'ar' program that fits with --host argument.
33595         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33597 2011-09-02  Bruno Haible  <bruno@clisp.org>
33599         tests: init.sh: Support any non-GNU diff.
33600         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33601         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33602         Solaris 8.
33604 2011-09-02  Bruno Haible  <bruno@clisp.org>
33606         tests: init.sh: work also with any non-GNU diff that supports -u
33607         * tests/init.sh: Relax check for diff -u support.
33608         Rather than checking for GNU diff via --version, simply check
33609         for support for -u itself.  Useful at least on OpenBSD 4.9,
33610         AIX 7.1, IRIX 6.5, and Solaris 10.
33612 2011-09-01  Bruno Haible  <bruno@clisp.org>
33614         strtoimax, strtoumax: Document problem on HP-UX 11.
33615         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33616         * doc/posix-functions/strtoumax.texi: Likewise.
33618 2011-09-01  Bruno Haible  <bruno@clisp.org>
33620         strtoumax: Avoid link error on OSF/1 with DTK cc.
33621         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33622         defined as a function.
33623         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33624         strtoumax is defined, not whether it is declared.
33626 2011-09-01  Bruno Haible  <bruno@clisp.org>
33628         strtoimax: Avoid link error on OSF/1 with DTK cc.
33629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33630         defined as a function.
33631         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33632         strtoimax is defined, not whether it is declared.
33634 2011-09-01  Bruno Haible  <bruno@clisp.org>
33636         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33637         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33638         as a function.
33639         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33640         whether it is declared.
33642 2011-09-01  Bruno Haible  <bruno@clisp.org>
33644         imaxabs: Avoid link error on OSF/1 with DTK cc.
33645         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33646         as a function.
33647         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33648         whether it is declared.
33650 2011-09-01  Bruno Haible  <bruno@clisp.org>
33652         Tests for module 'strtoumax'.
33653         * modules/strtoumax-tests: New file.
33654         * tests/test-strtoumax.c: New file.
33656         Tests for module 'strtoimax'.
33657         * modules/strtoimax-tests: New file.
33658         * tests/test-strtoimax.c: New file.
33660         Tests for module 'imaxdiv'.
33661         * modules/imaxdiv-tests: New file.
33662         * tests/test-imaxdiv.c: New file.
33664         Tests for module 'imaxabs'.
33665         * modules/imaxabs-tests: New file.
33666         * tests/test-imaxabs.c: New file.
33668 2011-09-01  Bruno Haible  <bruno@clisp.org>
33670         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33672         pthread_create.
33674 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33676         openat: work around AIX 7.1 fstatat issue
33677         This should fix the problem that was not properly fixed
33678         in the previous change, dated 2011-08-30.
33679         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33680         __need_system_stat_h defined.
33681         (orig_fstatat) [HAVE_FSTATAT]: New function.
33682         (rpl_fstatat): Go back to the old way of doing things,
33683         except call orig_fstatat instead of fstatat.
33684         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33685         Remove unnecessary check whether fstatat fills in st_size etc.
33687 2011-09-01  Bruno Haible  <bruno@clisp.org>
33689         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33690         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33691         just include the system's header.
33693 2011-08-31  Jim Meyering  <meyering@redhat.com>
33695         tests: avoid spurious assertion failure in test-float.c on ppc64
33696         * tests/test-float.c (test_long_double): Comment out an assertion,
33697         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33698         with gcc-4.4.4.
33700         maint: indent with spaces, not TABs
33701         I need to get in the habit of running gnulib's "make check".
33702         Both of these would have been caught.
33703         * m4/largefile.m4: Indent with spaces, not TABs.
33704         * lib/parse-datetime.y (iso_8601_time): Likewise.
33705         Spotted by Pádraig Brady.
33707         test-parse-datetime.c: accommodate a relatively strict gcc warning
33708         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33709         to avoid a warning from gcc's -Werror=missing-declarations.
33710         Insert a few spaces-before-funcall-parenthesis.
33712 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33714         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33715         The parser now accepts ISO 8601 date-time strings with "T" as the
33716         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33717         with a space between the date and time strings.  Now it also parses
33718         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33719         variants like "2004-02-29T16:21:42.333-07:00"
33720         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33721         of day representation using the 'T' separator character.
33722         * doc/parse-datetime.texi (General date syntax): replace use of
33723         deprecated --iso-8601 option with --rfc-3339 in example of date
33724         command output formats that can be parsed.
33725         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33726         lib/parse-datetime.y.
33727         (gmt_offset): New function.
33728         (main): Add additional test cases to validate ISO8601 extended
33729         date and time of day parsing.
33731 2011-08-31  Bruno Haible  <bruno@clisp.org>
33733         freopen: Documentation.
33734         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33735         name.
33736         Reported by Claudio Bley <claudio.bley@gmail.com>.
33738 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33740         freopen: Don't crash if the filename argument is NULL.
33741         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33742         NULL.
33744 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33746         openat: work around AIX 7.1 fstatat bug
33747         Problem reported by Kevin Brott for GNU tar, in the thread containing
33748         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33749         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33750         FSTATAT_ST_SIZE_ETC_BROKEN.
33751         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33752         rpl_fstatat.
33753         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33754         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33755         AC_CHECK_FUNCS_ONCE for fstatat.
33756         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33757         fchmodat, mkdirat, openat and unlinkat.
33759 2011-08-30  Bruno Haible  <bruno@clisp.org>
33761         Avoid endless recursions if config.h includes some header files.
33762         * lib/fopen.c (__need_FILE): Define already before including config.h.
33763         * lib/freopen.c (__need_FILE): Likewise.
33764         * lib/open.c (__need_system_fcntl_h): Likewise.
33765         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33766         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33767         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33769 2011-08-25  Karl Berry  <karl@gnu.org>
33771         * config/srclist.txt (ylwrap): new try.
33772         * build-aux/ylwrap: new file.
33774 2011-08-23  Bruno Haible  <bruno@clisp.org>
33776         tmpdir: Use a good default directory on native Windows.
33777         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33778         (P_tmpdir): Default to _P_tmpdir on native Windows.
33779         (path_search): On native Windows, try the value returned by GetTempPath
33780         before trying P_tmpdir.
33781         * modules/tmpdir (Depends-on): Add pathmax.
33782         Suggested by John Darrington <john@darrington.wattle.id.au>.
33784 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33786         doc: fix typo in README-release
33787         * top/README-release: Capitalize first word of a sentence.
33789 2011-08-19  Jim Meyering  <meyering@redhat.com>
33791         fts: do not exhaust memory when processing million-entry directories
33792         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33793         directory would require about 256*N bytes of memory.  Thus, it was
33794         easy to construct a directory too large to be processed by any of
33795         those tools.  With this change, fts' maximum memory utilization is
33796         now limited to around 30MB.
33797         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33798         (fts_read): When we've processed the final entry (i.e., when
33799         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33800         using the parent entry to read any remaining entries.  Dispatch
33801         depending on what fts_build returns:
33802         - NULL+stop, aka failure: stop
33803         - NULL otherwise: move up in the dir hierarchy
33804         - non-NULL: handle this new entry
33805         (fts_build): Declare and use new local, continue_readdir.
33806         Prepare to be called from fts_read, when the entries
33807         from a partially-read directory have just been exhausted.
33808         In that case, we'll skip the opendir and instead use the parent's
33809         fts_dirp and derive dir_fd from that.
33810         Finally, in the readdir loop, if we read max_entries entries,
33811         exit the loop ensuring *not* to call closedir.  This is required
33812         so that fts_dirp can be reused on a subsequent call.
33813         Prompted by Ben England's report of memory exhaustion in find
33814         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33816         maint: fts: move decl of `dp' down into while loop; split a long line
33817         * lib/fts.c (fts_build): No semantic change.
33819         fts: add/use new struct member, fts_dirp
33820         We are about to use this to manage any directory with
33821         too many entries to read all of them into memory at once.
33822         To do that, we'll need to save the DIR* pointer in each
33823         affected FTSENT struct.
33824         * lib/fts_.h: Include <dirent.h>.
33825         (struct FTSENT) [fts_dirp]: New member.
33826         * lib/fts.c (closedir_and_clear): Define.
33827         Use it in place of closedir so that we are sure to
33828         clear the new fts_dirp member when done with it.
33829         (fts_alloc): Initialize the new member.
33830         (fts_lfree): Free, if needed.
33832         maint: fts: give __opendir2 a new parameter and rename
33833         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33834         than surreptitiously using sole caller's "dir_fd".
33835         (fts_opendir): Rename from __opendir2.
33837         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33838         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33840         maint: fts.c: correct off-by-one indentation
33841         * lib/fts.c (fts_build): Correct indentation, change style
33842         of a couple of block comments, and bracing style.
33844         maint: fts.c: move __opendir2 #define "up" out of function body
33845         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33847         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33848         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33849         out for a long time and besides was useful only on BSD systems.
33851 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33853         regex: port to Stratus OpenVOS
33854         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33855         define to empty, rather than attempting nonportable optimizations.
33856         Problem reported by Paul Green in:
33857         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33858         and fix suggested by Eric Blake in:
33859         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33861 2011-08-17  Eric Blake  <eblake@redhat.com>
33863         getcwd: fix test failures on mingw
33864         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33865         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33866         test if long directory cannot be created, and allow mingw errno.
33868         getcwd-lgpl: fix m4 to match relaxed test for BSD
33869         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33870         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33871         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33872         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33873         signature problem.
33875         getcwd: fix compilation on mingw64
33876         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33877         getcwd.
33878         Reported by Marc-André Lureau.
33880         pipe2: silence compiler warning
33881         * lib/pipe2.c (pipe2): Hide label if it is not used.
33883 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33885         relocatable-prog: fix link error
33886         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33887         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33888         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33889         into modules/relocatable-lib without noticing that
33890         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33891         also needs to build relocatable.c.
33893 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33895         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33897         shell code: it contained a 'break' that was not in a loop.
33898         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33899         via a shell-language loop; this may have been true in old Autoconf
33900         versions, but it's not true in Autoconf 2.68.  I found this bug
33901         when testing coreutils git on Solaris 8, whose shell complains
33902         about the syntax error.
33904 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33906         * lib/base64.c: Fix comment to reference RFC 4648.
33907         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33908         <gvtulder@gmail.com>.
33910 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33912         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33914         po/Makefile.in.in: fix make -q problem
33915         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33916         rule, since there's no file named 'check-macro-version' and its
33917         use as a file breaks make -q.
33918         (all): Don't depend on check-macro-version.
33919         (CHECK_MACRO_VERSION): New macro.
33920         (stamp-po): Use it.
33922         configmake: fix make -q problem
33923         * modules/configmake (configmake.h): Update configmake.h's time stamp
33924         even if the file does not change.  Otherwise, 'make -q' fails.
33925         Problem reported by Simon Josefsson in
33926         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33928 2011-08-11  Jim Meyering  <meyering@redhat.com>
33930         git-version-gen: correct the advice in a comment
33931         * build-aux/git-version-gen: Correct comment.
33932         Don't recommend to list .tarball-version in .gitignore.
33934 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33936         base64: fix off-by-one buffer size bug
33937         Problem and (trivial) fix reported by Gijs van Tulder in
33938         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33939         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33940         * tests/test-base64.c (main): Catch the bug.
33942 2011-08-10  Eric Blake  <eblake@redhat.com>
33944         closein: correct comments
33945         * lib/closein.c (close_stdin): Improve comments.
33947 2011-08-09  Bruno Haible  <bruno@clisp.org>
33949         More tests for 'fseeko'.
33950         * tests/test-fseeko3.c: New file, from Eric Blake.
33951         * tests/test-fseeko3.sh: New file.
33952         * modules/fseeko-tests (Files): Add them.
33953         (TESTS): Add test-fseeko3.sh.
33954         (check_PROGRAMS): Add test-fseeko3.
33956 2011-08-09  Eric Blake  <eblake@redhat.com>
33958         fseeko: remove unneeded hack
33959         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33961         fseeko: fix bug on glibc
33962         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33963         Reported by John W. Eaton.
33965 2011-08-08  Bruno Haible  <bruno@clisp.org>
33967         unictype/base: Fix interoperability with preinstalled libunistring.
33968         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33969         Reported by Simon Josefsson.
33971 2011-08-08  Bruno Haible  <bruno@clisp.org>
33973         iswblank: Detect declaration correctly.
33974         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33975         AC_CHECK_DECLS invocation.
33977 2011-08-08  Bruno Haible  <bruno@clisp.org>
33979         tcgetsid: Detect declaration correctly.
33980         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33981         AC_CHECK_DECLS invocation.
33982         Reported by Simon Josefsson.
33984 2011-08-08  Eric Blake  <eblake@redhat.com>
33986         largefile: fix typo that regressed large file support
33987         * modules/largefile (configure.ac-early): Fix section name.
33989 2011-08-06  Karl Berry  <karl@gnu.org>
33991         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33992         a separate module.
33994 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33996         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33997         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33998         get prototype for free.
34000 2011-08-04  Bruno Haible  <bruno@clisp.org>
34002         Tests for module 'pathmax'.
34003         * modules/pathmax-tests: New file.
34004         * tests/test-pathmax.c: New file.
34006         canonicalize-lgpl: Support larger filenames on the Hurd.
34007         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
34008         Reported by Paul Eggert.
34010         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
34011         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
34012         * lib/chdir-long.h: Include pathmax.h.
34013         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
34014         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
34015         (PATH_MAX): Remove code that is done by pathmax.h.
34016         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
34017         * lib/tmpfile.c: Add a comment.
34018         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
34019         * modules/chdir-long (Depends-on): Add pathmax.
34020         * modules/getcwd (Depends-on): Add pathmax.
34021         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
34022         is not defined.
34023         * doc/posix-headers/limits.texi: Mention the pathmax module.
34024         * NEWS: Mention the change.
34026 2011-08-02  Bruno Haible  <bruno@clisp.org>
34028         pthread_sigmask: Actually use results of gl_THREADLIB.
34029         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
34030         gl_THREADLIB, not gl_[]THREADLIB.
34031         Reported by Eric Blake.
34033 2011-08-02  Jim Meyering  <meyering@redhat.com>
34035         maint.mk: relax the default _gl_TS_function_match regexp
34036         * top/maint.mk (_gl_TS_function_match): Don't require at least one
34037         space between function name and "(" in an "extern" declaration.
34038         That would fail to match a decl with no space there: extern void foo();
34040 2011-07-31  Iain Nicol  <iain@thenicols.net>
34042         git-version-gen: document that EXTRA_DIST must include .version
34043         * build-aux/git-version-gen: In the how-to-use comment, document
34044         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
34045         will fail when run from an unpacked distribution tarball.
34047 2011-08-01  Bruno Haible  <bruno@clisp.org>
34049         wctype-h: Fix last change.
34050         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
34051         REPLACE_TOWLOWER to 0.
34052         Reported by Sam Steingold <sds@gnu.org>.
34054 2011-07-31  Bruno Haible  <bruno@clisp.org>
34056         frexpl: Update autoconf test.
34057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
34058         according to changes of 2011-06-20.
34060 2011-07-31  Bruno Haible  <bruno@clisp.org>
34062         sys_utsname: Add support for Minix.
34063         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
34064         <sys/utsname.h>.
34065         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34066         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
34068 2011-07-31  Bruno Haible  <bruno@clisp.org>
34070         strings: Add support for Minix.
34071         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
34072         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34073         * doc/posix-headers/strings.texi: Document the Minix problem.
34075 2011-07-31  Bruno Haible  <bruno@clisp.org>
34077         wctype-h: Add support for Minix.
34078         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
34079         REPLACE_TOWLOWER.
34080         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
34081         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
34082         REPLACE_ISWCNTRL.
34084 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
34086         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
34087         This is a performance improvement for 64-bit hosts: it causes the
34088         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
34090 2011-07-31  Bruno Haible  <bruno@clisp.org>
34092         stdioext: Add support for Minix.
34093         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
34094         * lib/fpurge.c (fpurge): Likewise.
34095         * lib/freadahead.c (freadahead): Likewise.
34096         * lib/freadable.c (freadable): Likewise.
34097         * lib/freading.c (freading): Likewise.
34098         * lib/freadptr.c (freadptr): Likewise.
34099         * lib/freadseek.c (freadptrinc): Likewise.
34100         * lib/fseeko.c (rpl_fseeko): Likewise.
34101         * lib/fseterr.c (fseterr): Likewise.
34102         * lib/fwritable.c (fwritable): Likewise.
34103         * lib/fwriting.c (fwriting): Likewise.
34104         * lib/fflush.c (clear_ungetc_buffer): Update comment.
34105         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
34107 2011-07-31  Bruno Haible  <bruno@clisp.org>
34109         errno: Port to Minix.
34110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
34111         ECONNABORTED are defined.
34112         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
34113         GNULIB_defined_ECONNABORTED): New macros.
34114         * lib/strerror-override.h (strerror_override): Test also
34115         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
34116         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
34117         ECONNABORTED.
34118         * doc/posix-headers/errno.texi: Mention the Minix problem.
34120 2011-07-31  Bruno Haible  <bruno@clisp.org>
34122         Work around declaration collisions on Minix.
34123         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34124         defined, set REPLACE_MBSINIT.
34125         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34126         defined, set REPLACE_MBRTOWC.
34127         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34128         set REPLACE_MBRLEN.
34129         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34130         defined, set REPLACE_MBSRTOWCS.
34131         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34132         defined, set REPLACE_WCRTOMB.
34133         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34134         defined, set REPLACE_WCSRTOMBS.
34136 2011-07-31  Bruno Haible  <bruno@clisp.org>
34138         Add support for Minix with ACK compiler.
34139         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34140         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34141         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34143 2011-07-31  Bruno Haible  <bruno@clisp.org>
34145         Documentation about Minix.
34146         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34147         * doc/glibc-headers/*.texi: Likewise.
34148         * doc/posix-functions/*.texi: Likewise.
34149         * doc/glibc-functions/*.texi: Likewise.
34151 2011-07-31  Bruno Haible  <bruno@clisp.org>
34153         snippet/warn-on-use: Fix indentation.
34154         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34156 2011-07-25  Jim Meyering  <meyering@redhat.com>
34158         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34159         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34160         commands.
34162 2011-07-27  Jim Meyering  <meyering@redhat.com>
34164         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34165         * top/maint.mk (gl_extract_significant_defines_): Now that
34166         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34167         gnulib/lib/signal.in.h, and now that we recommend to
34168         define-if-undefined those two symbols in application code,
34169         we must filter them out of the "significant" list.
34170         This avoids a "make syntax-check" failure in coreutils.
34172 2011-07-26  Eric Blake  <eblake@redhat.com>
34174         warnings: add comments about previous patch
34175         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34176         * m4/include_next.m4: Likewise.
34177         * m4/warn-on-use.m4: Likewise.
34178         * m4/warnings.m4: Likewise, and simplify use.
34179         Suggested by Stefano Lattarini.
34181         include-next, warnings: support older autoconf
34182         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34183         AS_VAR_PUSHDEF in a way that works with older autoconf.
34184         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34185         Reported by Daniel P. Berrange.
34187 2011-07-25  Bruno Haible  <bruno@clisp.org>
34189         fseek, ftell: Fix doc.
34190         * doc/posix-functions/fseek.texi: Reword statement about
34191         AC_SYS_LARGEFILE.
34192         * doc/posix-functions/ftell.texi: Likewise.
34194 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34195             Bruno Haible  <bruno@clisp.org>
34197         Add dependencies to the 'largefile' module.
34198         * modules/fopen (Depends-on): Add 'largefile'.
34199         * modules/freopen (Depends-on): Likewise.
34200         * modules/fseeko (Depends-on): Likewise.
34201         * modules/ftello (Depends-on): Likewise.
34202         * modules/glob (Depends-on): Likewise.
34203         * modules/lseek (Depends-on): Likewise.
34204         * modules/lstat (Depends-on): Likewise.
34205         * modules/mkostemp (Depends-on): Likewise.
34206         * modules/mkostemps (Depends-on): Likewise.
34207         * modules/mkstemp (Depends-on): Likewise.
34208         * modules/mkstemps (Depends-on): Likewise.
34209         * modules/open (Depends-on): Likewise.
34210         * modules/openat (Depends-on): Likewise.
34211         * modules/pread (Depends-on): Likewise.
34212         * modules/pwrite (Depends-on): Likewise.
34213         * modules/scandir (Depends-on): Likewise.
34214         * modules/stat (Depends-on): Likewise.
34215         * modules/tmpfile (Depends-on): Likewise.
34216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34217         since the containing module now depends on the largefile module.
34218         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34219         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34220         off_t is fixed by gnulib.
34221         * doc/posix-functions/freopen.texi: Likewise.
34222         * doc/posix-functions/fseeko.texi: Likewise.
34223         * doc/posix-functions/fstatat.texi: Likewise.
34224         * doc/posix-functions/ftello.texi: Likewise.
34225         * doc/posix-functions/glob.texi: Likewise.
34226         * doc/posix-functions/lseek.texi: Likewise.
34227         * doc/posix-functions/lstat.texi: Likewise.
34228         * doc/posix-functions/mkstemp.texi: Likewise.
34229         * doc/posix-functions/open.texi: Likewise.
34230         * doc/posix-functions/openat.texi: Likewise.
34231         * doc/posix-functions/pread.texi: Likewise.
34232         * doc/posix-functions/pwrite.texi: Likewise.
34233         * doc/posix-functions/scandir.texi: Likewise.
34234         * doc/posix-functions/stat.texi: Likewise.
34235         * doc/posix-functions/tmpfile.texi: Likewise.
34236         * doc/glibc-functions/mkostemp.texi: Likewise.
34237         * doc/glibc-functions/mkostemps.texi: Likewise.
34238         * doc/glibc-functions/mkstemps.texi: Likewise.
34240 2011-07-25  Bruno Haible  <bruno@clisp.org>
34242         fcntl: Move AC_LIBOBJ invocation to module description.
34243         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34244         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34246         fcntl: Remove call-in from fchdir.m4.
34247         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34250         dup3: Remove potential call-in from fchdir.m4.
34251         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34254         dup2: Move AC_LIBOBJ invocation to module description.
34255         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34256         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34257         Don't invoke AC_LIBOBJ.
34258         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34260         dup2: Remove call-in from fchdir.m4.
34261         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34264         fclose: Move AC_LIBOBJ invocation to module description.
34265         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34266         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34267         to 1.
34268         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34270         fclose: Remove call-in from close.m4.
34271         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34272         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34274         close: Move AC_LIBOBJ invocation to module description.
34275         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34276         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34277         1.
34278         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34280         close: Remove call-in from fchdir.m4.
34281         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34284         open: Move AC_LIBOBJ invocation to module description.
34285         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34286         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34287         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34289         open: Remove call-in from fchdir.m4.
34290         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34293         fchdir: Start to remove gl_REPLACE_* idiom.
34294         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34295         (gl_FUNC_FCHDIR): Invoke it.
34297 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34299         * lib/ftell.c (ftell): Comment out cast.
34301         close: use gl_REPLACE_FCLOSE only if defined
34302         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34303         is defined.  The close module doesn't depend on the fclose module
34304         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34305         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34306         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34308 2011-07-24  Jim Meyering  <meyering@redhat.com>
34310         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34311         * tests/test-select.h (test_function): Declare as "static".
34313 2011-07-24  Bruno Haible  <bruno@clisp.org>
34315         doc: Mention the effects of AC_SYS_LARGEFILE.
34316         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34317         on this function.
34318         * doc/posix-functions/aio_error.texi: Likewise.
34319         * doc/posix-functions/aio_fsync.texi: Likewise.
34320         * doc/posix-functions/aio_read.texi: Likewise.
34321         * doc/posix-functions/aio_return.texi: Likewise.
34322         * doc/posix-functions/aio_suspend.texi: Likewise.
34323         * doc/posix-functions/aio_write.texi: Likewise.
34324         * doc/posix-functions/fgetpos.texi: Likewise.
34325         * doc/posix-functions/fopen.texi: Likewise.
34326         * doc/posix-functions/freopen.texi: Likewise.
34327         * doc/posix-functions/fsetpos.texi: Likewise.
34328         * doc/posix-functions/fstatvfs.texi: Likewise.
34329         * doc/posix-functions/ftruncate.texi: Likewise.
34330         * doc/posix-functions/ftw.texi: Likewise.
34331         * doc/posix-functions/getrlimit.texi: Likewise.
34332         * doc/posix-functions/glob.texi: Likewise.
34333         * doc/posix-functions/lio_listio.texi: Likewise.
34334         * doc/posix-functions/lockf.texi: Likewise.
34335         * doc/posix-functions/mkstemp.texi: Likewise.
34336         * doc/posix-functions/mmap.texi: Likewise.
34337         * doc/posix-functions/nftw.texi: Likewise.
34338         * doc/posix-functions/openat.texi: Likewise.
34339         * doc/posix-functions/opendir.texi: Likewise.
34340         * doc/posix-functions/posix_fadvise.texi: Likewise.
34341         * doc/posix-functions/posix_fallocate.texi: Likewise.
34342         * doc/posix-functions/pread.texi: Likewise.
34343         * doc/posix-functions/pwrite.texi: Likewise.
34344         * doc/posix-functions/readdir.texi: Likewise.
34345         * doc/posix-functions/readdir_r.texi: Likewise.
34346         * doc/posix-functions/rewinddir.texi: Likewise.
34347         * doc/posix-functions/scandir.texi: Likewise.
34348         * doc/posix-functions/seekdir.texi: Likewise.
34349         * doc/posix-functions/setrlimit.texi: Likewise.
34350         * doc/posix-functions/statvfs.texi: Likewise.
34351         * doc/posix-functions/telldir.texi: Likewise.
34352         * doc/posix-functions/tmpfile.texi: Likewise.
34353         * doc/posix-functions/truncate.texi: Likewise.
34354         * doc/glibc-functions/fallocate.texi: Likewise.
34355         * doc/glibc-functions/fstatfs.texi: Likewise.
34356         * doc/glibc-functions/fts_children.texi: Likewise.
34357         * doc/glibc-functions/fts_read.texi: Likewise.
34358         * doc/glibc-functions/getdirentries.texi: Likewise.
34359         * doc/glibc-functions/mkostemp.texi: Likewise.
34360         * doc/glibc-functions/mkostemps.texi: Likewise.
34361         * doc/glibc-functions/mkstemps.texi: Likewise.
34362         * doc/glibc-functions/preadv.texi: Likewise.
34363         * doc/glibc-functions/pwritev.texi: Likewise.
34364         * doc/glibc-functions/sendfile.texi: Likewise.
34365         * doc/glibc-functions/statfs.texi: Likewise.
34367 2011-07-24  Bruno Haible  <bruno@clisp.org>
34369         doc: Fix typo.
34370         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34372 2011-07-24  Bruno Haible  <bruno@clisp.org>
34374         doc: Mention fsusage.
34375         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34377 2011-07-24  Bruno Haible  <bruno@clisp.org>
34379         doc: Mention new glibc headers and functions.
34380         * doc/glibc-headers/gshadow.texi: New file.
34381         * doc/glibc-functions/endsgent.texi: New file.
34382         * doc/glibc-functions/fgetsgent.texi: New file.
34383         * doc/glibc-functions/fgetsgent_r.texi: New file.
34384         * doc/glibc-functions/getsgent.texi: New file.
34385         * doc/glibc-functions/getsgent_r.texi: New file.
34386         * doc/glibc-functions/getsgnam.texi: New file.
34387         * doc/glibc-functions/getsgnam_r.texi: New file.
34388         * doc/glibc-functions/putsgent.texi: New file.
34389         * doc/glibc-functions/setsgent.texi: New file.
34390         * doc/glibc-functions/sgetsgent.texi: New file.
34391         * doc/glibc-functions/sgetsgent_r.texi: New file.
34392         * doc/glibc-functions/malloc_info.texi: New file.
34393         * doc/glibc-functions/preadv.texi: New file.
34394         * doc/glibc-functions/pwritev.texi: New file.
34395         * doc/glibc-functions/register_printf_modifier.texi: New file.
34396         * doc/glibc-functions/register_printf_specifier.texi: New file.
34397         * doc/glibc-functions/register_printf_type.texi: New file.
34398         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34399         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34400         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34401         * doc/glibc-functions/pthread_getname_np.texi: New file.
34402         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34403         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34404         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34405         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34406         * doc/glibc-functions/pthread_setname_np.texi: New file.
34407         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34408         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34409         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34410         * doc/glibc-functions/qsort_r.texi: New file.
34411         * doc/glibc-functions/quick_exit.texi: New file.
34412         * doc/glibc-functions/syncfs.texi: New file.
34413         * doc/gnulib.texi: Include them.
34414         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34415         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34416         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34417         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34418         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34419         * doc/glibc-functions/execvpe.texi: Likewise.
34421 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34423         ftell: don't include <unistd.h>
34424         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34425         guaranteed to define off_t, and the ftell module depends on the
34426         stdio module.
34428         ftell: do not assume wraparound signed arithmetic
34429         * lib/ftell.c: Include <limits.h>.
34430         (ftell): Don't assume wraparound signed arithmetic.
34432 2011-07-24  Bruno Haible  <bruno@clisp.org>
34434         close: No longer depend on module 'fclose'.
34435         * modules/close (Depends-on): Remove fclose.
34436         * NEWS: Mention the change.
34437         Suggested by Sam Steingold <sds@gnu.org>.
34439 2011-07-24  Bruno Haible  <bruno@clisp.org>
34441         fsusage: Enable large volume support on AIX >= 5.2.
34442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34443         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34444         instead of STAT_STATVFS.
34445         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34447         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34448         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34449         f_blocks field only on MacOS X.
34451         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34452         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34453         * modules/fsusage (Depends-on): Add largefile.
34455 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34457         * README: Modernize discussion of signed integers.
34458         Assuming overflow wraparound is no longer safe.
34459         Mention ones' complement and signed magnitude.
34461 2011-07-22  Bruno Haible  <bruno@clisp.org>
34463         select tests, pselect tests: Refactor.
34464         * tests/test-select.h: New file, extracted from tests/test-select.c.
34465         (select_fn): New type.
34466         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34467         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34468         test_pipe): Add my_select argument.
34469         (test_function): Renamed from main. Add my_select argument.
34470         * tests/test-select.c: Move most code to tests/test-select.h. Include
34471         test-select.h.
34472         * modules/select-tests (Files): Add tests/test-select.h.
34473         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34474         (my_select, main): New functions.
34475         * modules/pselect-tests (Files): Add tests/test-select.h,
34476         tests/macros.h, tests/signature.h.
34477         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34478         (configure.ac): Check for <sys/wait.h>.
34480 2011-07-22  Bruno Haible  <bruno@clisp.org>
34482         sys_select tests: Check the signature of FD_*.
34483         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34484         signature tests from here...
34485         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34486         here.
34487         * modules/sys_select-tests (Files): Add tests/signature.h.
34489 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34491         largefile: new module, replacing large-inode
34492         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34493         * MODULES.html.sh: Add largefile, remove large-inode.
34494         * modules/largefile, m4/largefile.m4: New files.
34495         * modules/large-inode, m4/large-inode.m4: Remove.
34497         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34498         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34499         implementations that use only 32 bits to count blocks.
34500         On typical hosts with 1024-byte blocks, this fails with file
34501         systems as small as 4 TiB.  Problem reported by Herb Wartens
34502         <http://debbugs.gnu.org/9140> and this should also fix a similar
34503         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34505         large-inode: New module
34506         * MODULES.html.sh: Add it.
34507         * modules/large-inode, m4/large-inode.m4: New files.
34509         extensions: Enable extensions on MacOS X 10.5 and later.
34510         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34512 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34514         file-has-acl: use acl_extended_file_nofollow if available
34515         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34516         (acl_extended_file): New macro.
34517         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34518         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34520 2011-07-21  Bruno Haible  <bruno@clisp.org>
34522         Declare system functions in a way that works with C++.
34523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34524         declare fdopendir as extern "C".
34525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34526         declare frexpl as extern "C".
34527         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34528         declare gai_strerror as extern "C".
34529         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34530         programs, declare gai_strerror as extern "C".
34531         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34532         declare getlogin_r as extern "C".
34533         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34534         as extern "C".
34535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34536         declare ldexpl as extern "C".
34537         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34538         as extern "C".
34539         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34540         program, declare getmntinfo as extern "C".
34541         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34542         stpncpy as extern "C".
34543         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34544         program, declare __xpg_strerror_r as extern "C".
34545         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34546         strndup as extern "C".
34547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34548         declare memset and bzero as extern "C".
34549         Reported by Sam Steingold <sds@gnu.org>.
34551 2011-07-12  Jim Meyering  <meyering@redhat.com>
34553         maint.mk: prohibit inclusion of "verify.h" without use
34554         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34556 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34558         timer-time: A new module to check for timer_settime()
34559         * m4/timer_time.m4: Check for the posix function.
34560         * modules/timer-time: Add the new module.
34561         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34562         Mention it.
34564 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34565             Bruno Haible  <bruno@clisp.org>
34567         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34569         not defined, assume POSIX threads and look for pthread_sigmask in
34570         $LIBS, without changing $CPPFLAGS.
34572 2011-07-19  Bruno Haible  <bruno@clisp.org>
34574         strstr: Update cross-compilation guess.
34575         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34576         CPUs, guess no, in view of glibc
34577         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34578         Suggested by Eric Blake. Reported by Reuben Thomas.
34580 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34582         getopt-gnu: suppress core dumps from detection code
34583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34584         to suppress core dumps that may well occur on glibc systems.
34585         * modules/getopt-gnu: Depend on nocrash.
34587 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34589         pthread_sigmask: ensure usleep is declared
34590         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34591         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34593 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34595         doc: Document NonStop portability issues.
34596         * doc/posix-functions/sigaction.texi (sigaction):
34597         * doc/posix-headers/signal.texi (signal.h):
34598         Document NonStop.  See Joachim Schmitz in
34599         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34601 2011-07-15  Bruno Haible  <bruno@clisp.org>
34603         ffsl, ffsll: Avoid unportable behaviour.
34604         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34606 2011-07-15  Bruno Haible  <bruno@clisp.org>
34608         ffs: More tests.
34609         * tests/test-ffs.c (NBITS): New macro.
34610         (main): Add more tests.
34611         * tests/test-ffsl.c (NBITS): New macro.
34612         (main): Add more tests.
34613         * tests/test-ffsll.c (NBITS): New macro.
34614         (main): Add more tests.
34616 2011-07-15  Eric Blake  <eblake@redhat.com>
34618         ffsl, ffsll: new modules
34619         * modules/ffsl: New file.
34620         * modules/ffsll: Likewise.
34621         * m4/ffsl.m4: Likewise.
34622         * m4/ffsll.m4: Likewise.
34623         * lib/ffsl.c: Likewise.
34624         * lib/ffsl.h: Likewise.
34625         * lib/ffsll.c: Likewise.
34626         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34627         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34628         * modules/string (Makefile.am): Substitute witnesses.
34629         * lib/strings.in.h (ffsl, ffsll): Declare.
34630         * modules/ffsl-tests: New test file.
34631         * modules/ffsll-tests: Likewise.
34632         * tests/test-ffsl.c: Likewise.
34633         * tests/test-ffsll.c: Likewise.
34634         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34635         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34636         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34638         ffs: fix m4 prerequisite
34639         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34641         ffs: avoid undefined behavior
34642         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34643         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34644         Reported by Bruno Haible.
34646 2011-07-12  Bruno Haible  <bruno@clisp.org>
34648         pthread_sigmask: Rely on module 'threadlib'.
34649         * modules/pthread_sigmask (Depends-on): Add threadlib.
34650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34651         is defined.
34653 2011-07-12  Bruno Haible  <bruno@clisp.org>
34655         regex: Depend on module 'strcase'.
34656         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34658 2011-07-12  Jim Meyering  <meyering@redhat.com>
34660         warn-on-use: fix typo in file name
34661         * modules/snippet/warn-on-use (Files): Correct file name:
34662         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34664 2011-07-12  Bruno Haible  <bruno@clisp.org>
34666         strings: Document module.
34667         * doc/posix-headers/strings.texi: Mention module 'strings'.
34669 2011-07-12  Bruno Haible  <bruno@clisp.org>
34671         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34672         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34673         (Files, Makefile.am): Update.
34674         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34675         * modules/stdlib (Depends-on): Update.
34677 2011-07-12  Bruno Haible  <bruno@clisp.org>
34679         * NEWS: Mention the changes.
34681         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34682         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34683         (Files, Makefile.am): Update.
34684         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34685         * modules/arpa_inet (Depends-on): Update.
34686         * modules/ctype (Depends-on): Update.
34687         * modules/dirent (Depends-on): Update.
34688         * modules/fcntl-h (Depends-on): Update.
34689         * modules/glob (Depends-on): Update.
34690         * modules/iconv-h (Depends-on): Update.
34691         * modules/inttypes-incomplete (Depends-on): Update.
34692         * modules/langinfo (Depends-on): Update.
34693         * modules/locale (Depends-on): Update.
34694         * modules/math (Depends-on): Update.
34695         * modules/netdb (Depends-on): Update.
34696         * modules/poll-h (Depends-on): Update.
34697         * modules/pty (Depends-on): Update.
34698         * modules/search (Depends-on): Update.
34699         * modules/signal (Depends-on): Update.
34700         * modules/spawn (Depends-on): Update.
34701         * modules/stdio (Depends-on): Update.
34702         * modules/stdlib (Depends-on): Update.
34703         * modules/string (Depends-on): Update.
34704         * modules/strings (Depends-on): Update.
34705         * modules/sys_file (Depends-on): Update.
34706         * modules/sys_ioctl (Depends-on): Update.
34707         * modules/sys_select (Depends-on): Update.
34708         * modules/sys_socket (Depends-on): Update.
34709         * modules/sys_stat (Depends-on): Update.
34710         * modules/sys_time (Depends-on): Update.
34711         * modules/sys_times (Depends-on): Update.
34712         * modules/sys_utsname (Depends-on): Update.
34713         * modules/sys_wait (Depends-on): Update.
34714         * modules/termios (Depends-on): Update.
34715         * modules/time (Depends-on): Update.
34716         * modules/unistd (Depends-on): Update.
34717         * modules/wchar (Depends-on): Update.
34718         * modules/wctype-h (Depends-on): Update.
34719         * MODULES.html.sh (Support for building libraries and executables):
34720         Update.
34722         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34723         * modules/snippet/unused-parameter: Renamed from
34724         modules/unused-parameter.
34725         (Files, Makefile.am): Update.
34726         * build-aux/snippet/unused-parameter.h: Renamed from
34727         build-aux/unused-parameter.h.
34728         * modules/selinux-h (Depends-on): Update.
34729         * modules/unistr/base (Depends-on): Update.
34730         * MODULES.html.sh (Core language properties): Update.
34732         Rename module 'link-warning' to 'snippet/link-warning'.
34733         * modules/snippet/link-warning: Renamed from modules/link-warning.
34734         (Files, Makefile.am): Update.
34735         * build-aux/snippet/link-warning.h: Renamed from
34736         build-aux/link-warning.h.
34737         * MODULES.html.sh (Support for building libraries and executables):
34738         Update.
34740         Rename module 'c++defs' to 'snippet/c++defs'.
34741         * modules/snippet/c++defs: Renamed from modules/c++defs.
34742         (Files, Makefile.am): Update.
34743         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34744         * modules/arpa_inet (Depends-on): Update.
34745         * modules/ctype (Depends-on): Update.
34746         * modules/dirent (Depends-on): Update.
34747         * modules/fcntl-h (Depends-on): Update.
34748         * modules/glob (Depends-on): Update.
34749         * modules/iconv-h (Depends-on): Update.
34750         * modules/langinfo (Depends-on): Update.
34751         * modules/locale (Depends-on): Update.
34752         * modules/math (Depends-on): Update.
34753         * modules/netdb (Depends-on): Update.
34754         * modules/poll-h (Depends-on): Update.
34755         * modules/pty (Depends-on): Update.
34756         * modules/search (Depends-on): Update.
34757         * modules/signal (Depends-on): Update.
34758         * modules/spawn (Depends-on): Update.
34759         * modules/stdio (Depends-on): Update.
34760         * modules/stdlib (Depends-on): Update.
34761         * modules/string (Depends-on): Update.
34762         * modules/strings (Depends-on): Update.
34763         * modules/sys_ioctl (Depends-on): Update.
34764         * modules/sys_select (Depends-on): Update.
34765         * modules/sys_socket (Depends-on): Update.
34766         * modules/sys_stat (Depends-on): Update.
34767         * modules/sys_time (Depends-on): Update.
34768         * modules/sys_wait (Depends-on): Update.
34769         * modules/termios (Depends-on): Update.
34770         * modules/time (Depends-on): Update.
34771         * modules/unistd (Depends-on): Update.
34772         * modules/wchar (Depends-on): Update.
34773         * modules/wctype-h (Depends-on): Update.
34775         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34776         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34777         (Files, Makefile.am): Update.
34778         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34779         * modules/argv-iter (Depends-on): Update.
34780         * modules/arpa_inet (Depends-on): Update.
34781         * modules/dirent (Depends-on): Update.
34782         * modules/fcntl-h (Depends-on): Update.
34783         * modules/fnmatch (Depends-on): Update.
34784         * modules/getopt-posix (Depends-on): Update.
34785         * modules/glob (Depends-on): Update.
34786         * modules/iconv-h (Depends-on): Update.
34787         * modules/inttypes-incomplete (Depends-on): Update.
34788         * modules/locale (Depends-on): Update.
34789         * modules/math (Depends-on): Update.
34790         * modules/netdb (Depends-on): Update.
34791         * modules/search (Depends-on): Update.
34792         * modules/signal (Depends-on): Update.
34793         * modules/spawn (Depends-on): Update.
34794         * modules/stdio (Depends-on): Update.
34795         * modules/stdlib (Depends-on): Update.
34796         * modules/string (Depends-on): Update.
34797         * modules/strings (Depends-on): Update.
34798         * modules/sys_socket (Depends-on): Update.
34799         * modules/sys_stat (Depends-on): Update.
34800         * modules/sys_time (Depends-on): Update.
34801         * modules/sys_times (Depends-on): Update.
34802         * modules/sys_utsname (Depends-on): Update.
34803         * modules/time (Depends-on): Update.
34804         * modules/unistd (Depends-on): Update.
34805         * modules/wchar (Depends-on): Update.
34806         * MODULES.html.sh (Support for building libraries and executables):
34807         Update.
34809 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34811         Improvements on _Noreturn and related modules.
34813         modules/_Exit-tests: test _Noreturn too
34814         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34815         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34816         (main): Use them.
34818         stdnoreturn, stdnoreturn-tests: remove modules
34819         They're not needed here and a bit premature for use elsewhere.  See
34820         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34821         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34822         * tests/test-stdnoreturn.c: Remove files.
34823         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34824         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34825         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34826         and using noreturn.
34827         * modules/openat, modules/sigpipe-die, modules/xalloc:
34828         * modules/xmemdup0, modules/xstrtol:
34829         Remove dependency on stdnoreturn.
34831         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34832         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34833         Reparenthesize to avoid GCC warning.
34834         Support Microsoft's syntax.
34835         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34837         _Noreturn-tests: remove module
34838         * modules/_Noreturn-tests: Remove.
34839         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34840         * tests/test-_Noreturn.c: Remove.
34841         * tests/test-stdnoreturn.c: Merge from the old
34842         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34844 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34846         _Noreturn, stdnoreturn, and related modules.
34848         * top/maint.mk: Adjust to new noreturn support.
34849         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34850         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34852         xalloc: use stdnoreturn.h
34853         * lib/xalloc.h: Include <stdnoreturn.h>.
34854         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34855         * modules/xalloc (Depends-on): Add stdnoreturn.
34857         xstrtol: use stdnoreturn.h
34858         * lib/xstrtol.h: Include <stdnoreturn.h>.
34859         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34860         * modules/xstrtol (Depends-on): Add stdnoreturn.
34862         xmemdup0: use stdnoreturn.h
34863         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34864         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34865         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34867         sigpipe-die: use stdnoreturn.h
34868         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34869         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34870         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34872         openat: use stdnoreturn.h
34873         * lib/openat.h: Include <stdnoreturn.h>.
34874         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34875         * modules/openat (Depends-on): Add stdnoreturn.
34877         * lib/openat-die.c (openat_save_fail): Modernize comment.
34879         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34881         * lib/glthread/thread.h: Modernize comment.
34883         obstack: use _Noreturn
34884         * lib/obstack.c (__attribute__): Remove macro.
34885         (print_and_abort): Use _Noreturn.
34887         c-stack: use _Noreturn
34888         * lib/c-stack.c (die, overflow_handler, segv_handler):
34889         Use _Noreturn rather than __attribute__((noreturn)).
34891         argmatch-tests, exclude_tests: use _Noreturn
34892         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34893         Remove.
34894         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34896         stdlib: use _Noreturn
34897         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34898         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34899         * modules/stdlib (Depends-on): Add _Noreturn.
34900         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34902         stdnoreturn-tests: new module
34903         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34905         stdnoreturn: new module
34906         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34907         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34909         _Noreturn-tests: new module
34910         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34912         _Noreturn: new module
34913         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34914         New section, mentioning it.
34915         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34917         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34919 2011-07-11  Eric Blake  <eblake@redhat.com>
34921         ffs: new module
34922         * modules/ffs: New file.
34923         * m4/ffs.m4: Likewise.
34924         * lib/ffs.c: Likewise.
34925         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34926         * modules/strings (Makefile.am): Substitute witness.
34927         (Depends-on): Add c++defs.
34928         * lib/strings.in.h (ffs): Declare.
34929         * modules/ffs-tests: New test file.
34930         * tests/test-ffs.c: Test new module.
34931         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34932         * doc/posix-functions/ffs.texi (ffs): Likewise.
34934         regex: avoid compiler warning
34935         * lib/regex.c (includes): Include <strings.h>, for use of
34936         strcasecmp in regcomp.c.
34937         Reported by Joachim Schmitz.
34939 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34941         stdint: respect system's intmax_t if INTMAX_MAX
34942         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34943         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34944         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34945         long but int64_t is long long, and where we will clash with the
34946         system intmax_t if we override it.  See
34947         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34948         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34949         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34950         similarly for UINTMAX_C.
34952 2011-07-08  Bruno Haible  <bruno@clisp.org>
34954         pthread_sigmask tests: Avoid a compiler warning.
34955         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34956         non-zero.
34958         sigprocmask tests: A better way to avoid a compiler warning.
34959         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34960         (main): Complain if system() returns non-zero.
34961         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34963 2011-07-08  Bruno Haible  <bruno@clisp.org>
34965         pthread_sigmask: Work around IRIX bug.
34966         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34967         bug.
34968         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34969         there may be unblocked pending signals.
34970         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34972 2011-07-08  Bruno Haible  <bruno@clisp.org>
34974         pthread_sigmask: Work around Cygwin bug.
34975         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34976         bug.
34977         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34978         the system's pthread_sigmask function.
34979         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34981 2011-07-08  Bruno Haible  <bruno@clisp.org>
34983         pthread_sigmask: Work around bug in single-threaded implementation.
34984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34985         FreeBSD, HP-UX, Solaris bug.
34986         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34987         * lib/pthread_sigmask.c: Include <stddef.h>.
34988         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34989         the system's pthread_sigmask function.
34990         * modules/pthread_sigmask (configure.ac): Invoke
34991         gl_PREREQ_PTHREAD_SIGMASK.
34992         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34993         HP-UX, Solaris.
34995 2011-07-08  Eric Blake  <eblake@redhat.com>
34997         test-sigprocmask: avoid compiler warning
34998         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34999         * tests/test-sigprocmask.c (main): Use it to silence warning.
35000         Reported by Jim Meyering.
35002         test-snprintf: avoid compiler warning
35003         * tests/test-snprintf.c (main): Avoid shadowed declaration.
35004         * tests/test-vsnprintf.c (main): Likewise.
35005         Reported by Jim Meyering.
35007 2011-07-08  Bruno Haible  <bruno@clisp.org>
35009         Tests for module 'pthread_sigmask'.
35010         * modules/pthread_sigmask-tests: New file.
35011         * tests/test-pthread_sigmask1.c: New file, based on
35012         tests/test-sigprocmask.c.
35013         * tests/test-pthread_sigmask2.c: New file.
35015 2011-07-08  Jim Meyering  <meyering@redhat.com>
35017         test-getopt.h: avoid warning about an unused variable
35018         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
35020 2011-07-07  Jim Meyering  <meyering@redhat.com>
35022         maint: reduce list of files exempt from sc_prohibit_leading_TABs
35023         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
35024         now that it no longer contains leading TABs.
35025         Remove unused "url=FIXME" statement.
35027 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35029         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
35030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35031         When gl_THREADLIB is not in use, assume that the POSIX sematics
35032         are desired.  This is better for Emacs, which uses POSIX semantics
35033         on GNUish and/or POSIXish platforms, and does not use threads at
35034         all otherwise.
35036         pthread_sigmask: fix typo when testing for libraries
35037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35038         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
35040 2011-07-08  Eric Blake  <eblake@redhat.com>
35042         fts: introduce FTS_NOATIME
35043         * lib/fts_.h (FTS_NOATIME): New bit flag.
35044         (FTS_OPTIONMASK): Adjust.
35045         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
35046         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
35048 2011-07-08  Bruno Haible  <bruno@clisp.org>
35050         Tests for module 'thread'.
35051         * modules/thread-tests: New file.
35052         * tests/test-thread_self.c: New file.
35053         * tests/test-thread_create.cc: New file.
35055 2011-07-08  Bruno Haible  <bruno@clisp.org>
35057         thread: Avoid gcc warnings when using gl_thread_self().
35058         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
35059         'void *'.
35060         (gl_thread_self_pointer): Update.
35062 2011-07-07  Bruno Haible  <bruno@clisp.org>
35064         signal-c++-tests: Check declaration of pthread_sigmask.
35065         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
35066         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
35067         $(LIB_PTHREAD_SIGMASK).
35069 2011-07-07  Bruno Haible  <bruno@clisp.org>
35071         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
35072         * lib/signal.in.h (pthread_sigmask): Override if
35073         REPLACE_PTHREAD_SIGMASK is 1.
35074         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35075         REPLACE_PTHREAD_SIGMASK.
35076         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
35077         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
35078         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
35079         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35080         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
35082 2011-07-07  Bruno Haible  <bruno@clisp.org>
35084         pthread_sigmask: Ensure declaration in <signal.h>.
35085         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
35086         include <pthread.h>.
35087         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
35088         problem.
35090 2011-07-07  Bruno Haible  <bruno@clisp.org>
35092         pthread_sigmask: Document the module.
35093         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
35095 2011-07-07  Bruno Haible  <bruno@clisp.org>
35097         pthread_sigmask: Follow gnulib conventions.
35098         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
35099         gl_PTHREAD_SIGMASK.
35100         * modules/pthread_sigmask (configure.ac): Update.
35102 2011-07-07  Bruno Haible  <bruno@clisp.org>
35104         pthread_sigmask: Make declaration C++ safe.
35105         * lib/signal.in.h: In two special conditions, just do an #include_next.
35106         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35107         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
35108         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35109         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35110         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
35111         not REPLACE_PTHREAD_MASK.
35112         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
35113         not REPLACE_PTHREAD_MASK.
35114         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35116 2011-07-07  Bruno Haible  <bruno@clisp.org>
35118         pthread_sigmask: Fix return value.
35119         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
35120         * lib/pthread_sigmask.c: New file.
35121         * modules/pthread_sigmask (Files): Add it.
35122         (configure.ac): Invoke AC_LIBOBJ.
35124 2011-07-07  Eric Blake  <eblake@redhat.com>
35126         getopt: more portable argv creation
35127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35128         const, use char arrays rather than strings.
35129         Suggested by Paul Eggert.
35131 2011-07-07  Bruno Haible  <bruno@clisp.org>
35133         Tests for module 'sigprocmask'.
35134         * modules/sigprocmask-tests: New file.
35135         * tests/test-sigprocmask.c: New file.
35137 2011-07-07  Bruno Haible  <bruno@clisp.org>
35139         float tests: Tweak.
35140         * tests/test-float.c (main): Tweak skip message.
35142 2011-07-07  Eric Blake  <eblake@redhat.com>
35144         getopt: avoid compiler warning during configure
35145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35146         assigning string literals to non-const pointer.
35148         getopt-gnu: avoid crash in glibc getopt
35149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35150         * tests/test-getopt.h (test_getopt): Enhance test.
35151         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35152         * doc/posix-functions/getopt.texi (getopt): Document it.
35153         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35154         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35155         Likewise.
35157 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35159         getopt: handle W; without long options in getopt [BZ #12922]
35160         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35161         but no long options are defined, just return 'W'.
35163 2011-07-07  Bruno Haible  <bruno@clisp.org>
35165         Avoid literal tabs.
35166         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35167         variable containing a tab instead of a literal tab.
35168         Reported by Jim Meyering.
35170 2011-07-07  Bruno Haible  <bruno@clisp.org>
35172         Comments.
35173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35175 2011-07-06  Bruno Haible  <bruno@clisp.org>
35177         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35178         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35179         <winsock2.h>.
35180         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35181         lib/sys_socket.in.h.
35182         (close, gethostname): Hide declarations from <winsock2.h>.
35183         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35184         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35185         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35186         (select): Don't override if gnulib's <sys/select.h> was already
35187         included.
35188         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35189         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35190         setsockopt, shutdown, select): Tweak indentation.
35192 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35194         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35195         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35196         in an application that does not use the sys_select module.
35198 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35200         poll: do not return 0 on timeout=-1
35201         * lib/poll.c: Loop with yield if no events occurred.
35203 2011-07-06  Eric Blake  <eblake@redhat.com>
35205         pthread_sigmask: always replace when not using pthread
35206         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35207         replacement when using some threading other than pthread.  Fix
35208         logic bug.
35210 2011-07-06  Bruno Haible  <bruno@clisp.org>
35212         Comments.
35213         * m4/printf.m4: Update comments about mingw.
35215 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35217         sys_select: define sigset_t more portably
35218         * lib/sys_select.in.h: Always include <sys/types.h>, since
35219         we now need sigset_t and mingw defines it there.
35220         Include <signal.h> before split inclusion guard, to avoid
35221         mishaps on Solaris, whose <signal.h> eventually includes us.
35222         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35223         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35224         which come from ...
35225         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35226         gl_CHECK_TYPE_SIGSET_T.
35227         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35228         does the real work.
35229         * modules/sys_select (Depends-on): Add 'signal'.
35231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35232         Suggested by Bruno Haible.
35234         pselect: Use pthread_sigmask, not sigprocmask.
35235         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35236         multithreaded apps better than sigprocmask does.
35237         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35238         sigprocmask directly.
35240 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35242         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35243         Don't #undef,  since we don't need any underlying pselect.
35244         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35245         (Depends-on): Add select.
35246         (Link): Add $(LIBSOCKET).
35247         These changes suggested by Bruno Haible.
35249         pselect: document better
35250         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35251         * doc/posix-functions/pselect.texi (pselect): Document new module.
35253         pthread_sigmask: new module
35254         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35255         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35256         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35257         This is done only as a macro; I don't know how well that'll
35258         work for C++.  Move <sys/types.h> include before the include_next,
35259         to avoid mishap on Solaris.
35260         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35261         * modules/signal (Makefile.am): Substitute the check's results.
35262         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35264         test-pselect: new module
35265         * modules/pselect-tests, tests/test-pselect.c: New files.
35266         * tests/test-select.c, tests/test-sys_select-c++.cc:
35267         If TEST_PSELECT is defined, test pselect instead of testing select.
35269         * tests/test-sys_select.c (sigset_t): Test for it, too.
35270         Suggested by Bruno Haible.
35272 2011-07-05  Eric Blake  <eblake@redhat.com>
35274         snprintf: guarantee %1$d, for libintl
35275         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35276         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35277         * doc/posix-functions/snprintf.texi (snprintf): Update.
35278         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35279         * tests/test-snprintf.c (main): Enhance test.
35280         * tests/test-vsnprintf.c (main): Likewise.
35282 2011-07-05  Jim Meyering  <meyering@redhat.com>
35284         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35285         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35286         per Bruno's request, to accommodate this idiom (no space after "#")
35287         even when the function is inside an #if block:
35288         char *
35289         gets (char *s)
35290         #undef gets
35291         {
35292           ...
35293         }
35295 2011-07-04  Jim Meyering  <meyering@redhat.com>
35297         maint: indent with spaces, not TABs, and add a rule to check this
35298         * tests/test-userspec.c: Indent with spaces, not TABs.
35299         * tests/test-argp.c: Likewise.
35300         * tests/test-c-stack2.sh: Likewise.
35301         * tests/test-parse-duration.sh: Likewise
35302         * m4/strtod.m4: Likewise.
35303         * m4/alloca.m4: Likewise.
35304         * m4/pselect.m4: Likewise.
35305         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35307 2011-07-03  Jim Meyering  <meyering@redhat.com>
35309         maint.mk: correct omissions in prohibit_argmatch_without_use check
35310         This rule would mistakenly report that argmatch.h is included without
35311         use even when both the argmatch and invalid_arg macro were used.
35312         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35313         of argmatch and invalid_arg.
35315 2011-07-03  Bruno Haible  <bruno@clisp.org>
35317         Comments about EINTR.
35318         * lib/safe-read.h: Explain the purpose of this module.
35319         * lib/safe-write.h: Likewise.
35320         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35321         module.
35322         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35323         module.
35324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35326 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35328         xnanosleep: Rewrite to use new dtotimespec module.
35329         It has the conversion code that used to be in xnanosleep.
35330         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35331         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35332         (TIME_T_MAX): Remove.
35333         (xnanosleep): Rewrite in terms of dtotimespec.
35334         * modules/xnanosleep (Depends-on): Add dtotimespec.
35335         Remove intprops, stdbool.
35337         timespec-add, timespec-sub: new modules
35338         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35339         * lib/timespec-add.c, lib/timespec-sub.c:
35340         * modules/timespec-add, modules/timespec-sub: New files.
35342         dtotimespec: new module
35343         * lib/timespec.h (dtotimespec): New decl.
35344         * lib/dtotimespec.c, modules/dtotimespec: New files.
35346         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35348         pselect: new module
35349         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35350         (pselect): New decls.
35351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35352         since the standard pselect decl uses 'restrict'.
35353         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35354         HAVE_PSELECT, REPLACE_PSELECT.
35355         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35356         HAVE_PSELECT, REPLACE_PSELECT.
35357         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35359         sys_select: don't depend on sys_socket
35360         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35361         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35362         This fix works on GNU and GNU-like platforms, but has not been tested
35363         on native Windows.
35364         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35366         gl_HEADER_SYS_SOCKET.
35367         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35368         gl_PREREQ_SYS_H_WINSOCK2.
35370 2011-06-29  Eric Blake  <eblake@redhat.com>
35372         pipe2: fix C89 compile problem
35373         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35374         Reported by Bruno Haible.
35376         pipe, pipe2: don't corrupt fd on error
35377         * lib/pipe.c (pipe): Leave fd unchanged on error.
35378         * lib/pipe2.c (pipe2): Likewise.
35379         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35380         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35382 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35384         mmap-anon: do not use regular expressions inadvertently
35385         * m4/mmap-anon.m4: Remove trailing period from strings sought
35386         in the output.
35388 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35390         nanosleep: fix integer overflow problem
35391         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35392         arithmetic wraps around on overflow.
35394         nanosleep: simplify carrying
35395         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35396         first call to the underyling nanosleep, not for the last one.
35397         This doesn't fix any bugs, but it simplifies the computation of
35398         the remaining delay.  Found while auditing integer overflow issues.
35400         dup2: remove test for existence of fcntl
35401         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35402         "#if HAVE_FCNTL", in the configure-time test program.
35403         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35404         and therefore speeds up "configure" a bit.  Found while
35405         adding the dup2 module to Emacs.
35407 2011-06-24  Eric Blake  <eblake@redhat.com>
35409         maint.mk: enhance useless header checks
35410         * top/maint.mk (_sc_header_without_use): Check both include
35411         styles.
35412         (sc_prohibit_assert_without_use)
35413         (sc_prohibit_close_stream_without_use)
35414         (sc_prohibit_getopt_without_use)
35415         (sc_prohibit_quotearg_without_use)
35416         (sc_prohibit_quote_without_use)
35417         (sc_prohibit_long_options_without_use)
35418         (sc_prohibit_inttostr_without_use)
35419         (sc_prohibit_ignore_value_without_use)
35420         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35421         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35422         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35423         (sc_prohibit_hash_pjw_without_use)
35424         (sc_prohibit_safe_read_without_use)
35425         (sc_prohibit_argmatch_without_use)
35426         (sc_prohibit_canonicalize_without_use)
35427         (sc_prohibit_root_dev_ino_without_use)
35428         (sc_prohibit_openat_without_use)
35429         (sc_prohibit_c_ctype_without_use)
35430         (sc_prohibit_signal_without_use)
35431         (sc_prohibit_stdio--_without_use)
35432         (sc_prohibit_stdio-safer_without_use)
35433         (sc_prohibit_strings_without_use)
35434         (sc_prohibit_intprops_without_use)
35435         (sc_prohibit_stddef_without_use)
35436         (sc_prohibit_xfreopen_without_use): Update clients.
35438 2011-06-24  Jim Meyering  <meyering@redhat.com>
35440         syntax-check: keep one maint.mk rule in sync with its header
35441         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35442         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35443         I prefer to avoid temporary files here, so use <(...), but that
35444         is not supported by /bin/sh, so...
35445         (SHELL): Define to /bin/bash.
35447 2011-06-24  Eric Blake  <eblake@redhat.com>
35449         maint.mk: update sc_prohibit_intprops_without_use
35450         * top/maint.mk (_intprops_names): Match recent changes.
35452 2011-06-24  Bruno Haible  <bruno@clisp.org>
35454         strerror-override: No-op tweak.
35455         * lib/strerror-override.h (strerror_override): Reorder conditions,
35456         for consistency with lib/strerror-override.c.
35458 2011-06-23  Eric Blake  <eblake@redhat.com>
35460         maint.mk: test further PATH_MAX issues
35461         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35462         (sc_prohibit_path_max_allocation): ...and also test alloca.
35463         Suggested by Jim Meyering.
35465 2011-06-22  Eric Blake  <eblake@redhat.com>
35467         maint.mk: add syntax-check to avoid char[PATH_MAX]
35468         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35470         stat: be robust to PATH_MAX definition
35471         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35472         * modules/stat (Depends-on): Add verify.
35474         link: work around IRIX bug
35475         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35476         * lib/link.c (rpl_link): Work around it.
35477         * tests/test-link.h (test_link): Enhance test.
35478         * doc/posix-functions/link.texi (link): Document the bug.
35480         getopt: silence clang warning
35481         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35482         dereference.
35483         Reported by Gustavo Martin Domato.
35485 2011-06-22  Jim Meyering  <meyering@redhat.com>
35487         bootstrap: do not insert a blank line into each .gitignore file
35488         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35490 2011-06-21  Eric Blake  <eblake@redhat.com>
35492         perror: test for output mismatch
35493         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35494         perror on IRIX.
35496         strerror_r: fix OpenBSD behavior on out-of-range
35497         * lib/strerror_r.c (strerror_r): Always use maximal string.
35498         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35500         strerror_r: fix OpenBSD behavior on 0
35501         * lib/strerror-override.c (strerror_override): Also override 0
35502         when needed.
35503         * lib/strerror-override.h (strerror_override): Likewise.
35504         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35505         earlier.
35506         * lib/strerror_r.c (strerror_r): Likewise.
35507         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35508         behavior...
35509         (gl_FUNC_STRERROR_0): ...into new macro.
35510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35511         is overridden.
35512         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35513         * modules/strerror-override (Files): Add strerror.m4.
35514         (configure.ac): Also provide override for 0 when needed.
35515         * doc/posix-functions/strerror.texi (strerror): Document this.
35516         * doc/posix-functions/perror.texi (perror): Likewise.
35518         perror: adjust array size
35519         * modules/perror (Depends-on): Add strerror-override.
35520         * lib/perror.c (perror): Use it to avoid magic number.
35522         strerror-override: reduce size
35523         * lib/strerror-override.c (strerror_override): Use fewer lines.
35525 2011-06-20  Bruno Haible  <bruno@clisp.org>
35527         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35528         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35530 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35532         alloca: port to compilers that can optimize like GCC 4.6.0
35533         * lib/alloca.c (find_stack_direction): New signature, taken from
35534         Autoconf git.  This works with GCC 4.6.0.  This code should never
35535         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35536         be used with other compilers that optimize as well as GCC 4.6.0 does.
35537         (alloca): Adjust to new signature.
35538         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35539         New macro, which patches Autoconf in a similar way.
35541         c-stack: stop worrying about stack direction
35542         * lib/c-stack.c (find_stack_direction): Remove.
35543         (segv_handler): Don't worry about stack direction growth, as it's
35544         too much of a pain to configure this correctly, given how compilers
35545         are optimizing-away our stack-growth detection code.  Instead, assume
35546         that any access to just before or just after the stack is OK.
35547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35548         Don't require AC_FUNC_ALLOCA; no longer needed.
35550 2011-06-20  Eric Blake  <eblake@redhat.com>
35552         test-stat: don't allocate PATH_MAX bytes
35553         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35554         PATH_MAX-sized buffer.
35555         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35556         * modules/stat-tests (Depends-on): Likewise.
35557         * tests/test-fstatat.c (includes): Drop pathmax.h.
35558         * tests/test-stat.c (includes): Likewise.
35559         Reported by Bruno Haible.
35561 2011-06-20  Bruno Haible  <bruno@clisp.org>
35563         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35564         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35565         * lib/float.c: New file.
35566         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35567         REPLACE_FLOAT_LDBL.
35568         * modules/float (Files): Add lib/float.c.
35569         (configure.ac): Invoke AC_LIBOBJ.
35570         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35572 2011-06-20  Bruno Haible  <bruno@clisp.org>
35574         Tests for module 'float'.
35575         * modules/float-tests: New file.
35576         * tests/test-float.c: New file.
35578 2011-06-19  Bruno Haible  <bruno@clisp.org>
35580         isinf: Coding style.
35581         * lib/isinf.c: Use GNU coding style.
35583 2011-06-19  Bruno Haible  <bruno@clisp.org>
35585         linkat test: Avoid test failure on AIX 7.1.
35586         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35587         * tests/test-link.h (test_link): Likewise.
35589 2011-06-19  Bruno Haible  <bruno@clisp.org>
35591         pread test: Avoid test failure on OpenBSD 4.9.
35592         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35594 2011-06-19  Bruno Haible  <bruno@clisp.org>
35596         sprintf-posix: Fix test failure on AIX 7.1.
35597         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35598         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35599         on AIX.
35600         * doc/posix-functions/fprintf.texi: Likewise.
35601         * doc/posix-functions/printf.texi: Likewise.
35602         * doc/posix-functions/snprintf.texi: Likewise.
35603         * doc/posix-functions/sprintf.texi: Likewise.
35604         * doc/posix-functions/vdprintf.texi: Likewise.
35605         * doc/posix-functions/vfprintf.texi: Likewise.
35606         * doc/posix-functions/vprintf.texi: Likewise.
35607         * doc/posix-functions/vsnprintf.texi: Likewise.
35608         * doc/posix-functions/vsprintf.texi: Likewise.
35610 2011-06-19  Bruno Haible  <bruno@clisp.org>
35612         roundl-ieee: Fix test failure on AIX 7.1.
35613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35614         * doc/posix-functions/roundl.texi: Mention problem with negative
35615         arguments.
35617 2011-06-19  Bruno Haible  <bruno@clisp.org>
35619         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35620         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35621         * doc/posix-functions/round.texi: Mention problem with negative
35622         arguments.
35623         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35625 2011-06-19  Bruno Haible  <bruno@clisp.org>
35627         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35628         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35629         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35630         * doc/posix-functions/roundf.texi: Mention problem with negative
35631         arguments.
35632         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35634 2011-06-19  Bruno Haible  <bruno@clisp.org>
35636         ceilf-ieee: Work around bug on MacOS X 10.5.
35637         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35639         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35640         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35641         IEEE compliant, avoid compiler optimizations.
35642         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35643         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35644         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35645         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35646         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35647         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35648         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35649         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35650         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35651         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35653 2011-06-19  Bruno Haible  <bruno@clisp.org>
35655         ceilf-ieee: Work around bug on AIX 7.1.
35656         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35657         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35659 2011-06-19  Bruno Haible  <bruno@clisp.org>
35661         ceil-ieee: Work around bug on AIX 7.1.
35662         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35663         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35665 2011-06-18  Bruno Haible  <bruno@clisp.org>
35667         fsync test: Avoid test failure on MacOS X and AIX.
35668         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35669         EINVAL.
35671 2011-06-18  Bruno Haible  <bruno@clisp.org>
35673         openat, fdopendir tests: Fix link errors.
35674         * modules/openat-tests (Depends-on): Add progname.
35675         * modules/fdopendir-tests (Depends-on): Likewise.
35676         * tests/test-fchownat.c: Include progname.h.
35677         (main): Call set_program_name.
35678         * tests/test-fstatat.c: Include progname.h.
35679         (main): Call set_program_name.
35680         * tests/test-mkdirat.c: Include progname.h.
35681         (main): Call set_program_name.
35682         * tests/test-openat.c: Include progname.h.
35683         (main): Call set_program_name.
35684         * tests/test-unlinkat.c: Include progname.h.
35685         (main): Call set_program_name.
35686         * tests/test-fdopendir.c: Include progname.h.
35687         (main): Call set_program_name.
35689 2011-06-18  Bruno Haible  <bruno@clisp.org>
35691         Doc update.
35692         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35693         HP-UX.
35694         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35696 2011-06-18  Bruno Haible  <bruno@clisp.org>
35698         getcwd tests: Avoid compilation error on HP-UX 11.31.
35699         * modules/getcwd-tests (Depends-on): Add pathmax.
35700         * tests/test-getcwd.c: Include pathmax.h.
35702 2011-06-18  Bruno Haible  <bruno@clisp.org>
35704         isfinite, isinf: Fix link error on AIX 6 and 7.
35705         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35706         needed, also test the macro with a 'float' argument.
35707         * m4/isinf.m4 (gl_ISINF): Likewise.
35709 2011-06-18  Bruno Haible  <bruno@clisp.org>
35711         getloadavg: Don't clobber LIBS. Regression from previous commit.
35712         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35713         AC_CHECK_LIB from here...
35714         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35715         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35716         gl_func_getloadavg_done.
35717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35719 2011-06-18  Bruno Haible  <bruno@clisp.org>
35721         clean-temp: Improve documentation.
35722         * lib/clean-temp.h: Explain better how to use this module.
35723         Reported by John Darrington <john@darrington.wattle.id.au>.
35725 2011-06-17  Bruno Haible  <bruno@clisp.org>
35727         pread, pwrite: Avoid cc warning on AIX.
35728         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35729         (pwrite): Likewise.
35731 2011-06-17  Bruno Haible  <bruno@clisp.org>
35733         spawn-pipe tests: Fix link error.
35734         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35737 2011-06-17  Bruno Haible  <bruno@clisp.org>
35739         Tests: Remove unnecessary dependency.
35740         * modules/canonicalize-tests (Depends-on): Remove progname.
35741         * modules/chown-tests (Depends-on): Likewise.
35742         * modules/dirname-tests (Depends-on): Likewise.
35743         * modules/fdopendir-tests (Depends-on): Likewise.
35744         * modules/fdutimensat-tests (Depends-on): Likewise.
35745         * modules/hash-tests (Depends-on): Likewise.
35746         * modules/lchown-tests (Depends-on): Likewise.
35747         * modules/linkat-tests (Depends-on): Likewise.
35748         * modules/renameat-tests (Depends-on): Likewise.
35749         * modules/spawn-pipe-tests (Depends-on): Likewise.
35750         * modules/utimensat-tests (Depends-on): Likewise.
35752 2011-06-17  Bruno Haible  <bruno@clisp.org>
35754         spawn-pipe tests: Fix link error.
35755         * tests/test-spawn-pipe-child.c: Undefine fflush.
35757 2011-06-17  Bruno Haible  <bruno@clisp.org>
35759         Fix tests link errors.
35760         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35761         * modules/chown-tests (Makefile.am): Don't link test-chown with
35762         LIBINTL.
35763         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35764         LIBINTL.
35765         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35766         LIBINTL.
35767         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35768         LIBINTL.
35770 2011-06-16  Bruno Haible  <bruno@clisp.org>
35772         crypto/gc-sha1: Fix recent regression.
35773         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35774         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35776         crypto/gc-md5: Fix recent regression.
35777         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35779         crypto/gc-md4: Fix recent regression.
35780         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35781         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35783         crypto/gc-arctwo: Fix recent regression.
35784         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35785         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35787         crypto/gc-rijndael: Fix recent regression.
35788         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35789         (configure.ac): Invoke AC_LIBOBJ here.
35790         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35793         crypto/gc-hmac-sha1: Fix recent regression.
35794         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35795         (configure.ac): Invoke AC_LIBOBJ here.
35796         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35799         crypto/gc-hmac-md5: Fix recent regression.
35800         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35801         (configure.ac): Invoke AC_LIBOBJ here.
35802         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35805         crypto/gc-des: Fix recent regression.
35806         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35807         (configure.ac): Invoke AC_LIBOBJ here.
35808         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35811         crypto/gc-arcfour: Fix recent regression.
35812         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35813         (configure.ac): Invoke AC_LIBOBJ here.
35814         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35817 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35819         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35820         After the 2011-05-21 change, this macro requires
35821         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35824 2011-06-16  Bruno Haible  <bruno@clisp.org>
35826         fprintftime: Move AC_LIBOBJ invocations to module description.
35827         * m4/fprintftime.m4: Remove file.
35828         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35829         (configure.ac): Remove gl_FPRINTFTIME call.
35830         (Makefile.am): Augment lib_SOURCES.
35831         Reported by Jim Meyering.
35833 2011-06-16  Bruno Haible  <bruno@clisp.org>
35835         tmpfile-safer: Finish 2011-05-23 commit.
35836         * m4/stdio-safer.m4: Really remove file.
35837         Reported by Jim Meyering.
35839 2011-06-16  Bruno Haible  <bruno@clisp.org>
35841         syntax-check: Fix typo.
35842         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35843         printf-posix.m4.
35844         Reported by Jim Meyering.
35846 2011-06-13  Jim Meyering  <meyering@redhat.com>
35848         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35849         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35851 2011-05-23  Bruno Haible  <bruno@clisp.org>
35853         yesno: Move AC_LIBOBJ invocations to module description.
35854         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35855         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35857 2011-05-23  Bruno Haible  <bruno@clisp.org>
35859         xstrtol: Move AC_LIBOBJ invocations to module description.
35860         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35861         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35863 2011-05-23  Bruno Haible  <bruno@clisp.org>
35865         xstrtold: Move AC_LIBOBJ invocations to module description.
35866         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35867         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35869 2011-05-23  Bruno Haible  <bruno@clisp.org>
35871         xstrtod: Move AC_LIBOBJ invocations to module description.
35872         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35873         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35875 2011-05-23  Bruno Haible  <bruno@clisp.org>
35877         xnanosleep: Move AC_LIBOBJ invocations to module description.
35878         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35879         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35881 2011-05-23  Bruno Haible  <bruno@clisp.org>
35883         xgetcwd: Move AC_LIBOBJ invocations to module description.
35884         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35885         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35887 2011-05-23  Bruno Haible  <bruno@clisp.org>
35889         xalloc: Move AC_LIBOBJ invocations to module description.
35890         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35891         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35893 2011-05-23  Bruno Haible  <bruno@clisp.org>
35895         write-any-file: Move AC_LIBOBJ invocations to module description.
35896         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35897         invocation.
35898         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35900 2011-05-23  Bruno Haible  <bruno@clisp.org>
35902         utimens: Move AC_LIBOBJ invocations to module description.
35903         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35904         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35906 2011-05-23  Bruno Haible  <bruno@clisp.org>
35908         utimecmp: Move AC_LIBOBJ invocations to module description.
35909         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35910         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35912 2011-05-23  Bruno Haible  <bruno@clisp.org>
35914         userspec: Move AC_LIBOBJ invocations to module description.
35915         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35916         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35918 2011-05-23  Bruno Haible  <bruno@clisp.org>
35920         unlinkdir: Move AC_LIBOBJ invocations to module description.
35921         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35922         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35924 2011-05-23  Bruno Haible  <bruno@clisp.org>
35926         unistd-safer: Move AC_LIBOBJ invocations to module description.
35927         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35928         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35930 2011-05-23  Bruno Haible  <bruno@clisp.org>
35932         tempname: Move AC_LIBOBJ invocations to module description.
35933         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35934         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35936 2011-05-23  Bruno Haible  <bruno@clisp.org>
35938         strftime: Move AC_LIBOBJ invocations to module description.
35939         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35940         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35942 2011-05-23  Bruno Haible  <bruno@clisp.org>
35944         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35945         * m4/stdlib-safer.m4: Remove file.
35946         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35947         (configure.ac): Remove gl_STDLIB_SAFER call.
35948         (Makefile.am): Augment lib_SOURCES.
35950 2011-05-23  Bruno Haible  <bruno@clisp.org>
35952         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35953         * m4/stdio-safer.m4: Remove file.
35954         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35955         (configure.ac): Remove gl_TMPFILE_SAFER call.
35956         (Makefile.am): Augment lib_SOURCES.
35958 2011-05-23  Bruno Haible  <bruno@clisp.org>
35960         popen-safer: Move AC_LIBOBJ invocations to module description.
35961         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35962         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35963         (configure.ac): Remove gl_POPEN_SAFER call.
35964         (Makefile.am): Augment lib_SOURCES.
35966 2011-05-23  Bruno Haible  <bruno@clisp.org>
35968         freopen-safer: Move AC_LIBOBJ invocations to module description.
35969         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35970         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35971         (configure.ac): Remove gl_FREOPEN_SAFER call.
35972         (Makefile.am): Augment lib_SOURCES.
35974 2011-05-23  Bruno Haible  <bruno@clisp.org>
35976         fopen-safer: Move AC_LIBOBJ invocations to module description.
35977         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35978         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35979         (configure.ac): Remove gl_FOPEN_SAFER call.
35980         (Makefile.am): Augment lib_SOURCES.
35982 2011-05-23  Bruno Haible  <bruno@clisp.org>
35984         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35985         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35986         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35988 2011-05-23  Bruno Haible  <bruno@clisp.org>
35990         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35991         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35992         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35994 2011-05-23  Bruno Haible  <bruno@clisp.org>
35996         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35997         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35998         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
36000 2011-05-23  Bruno Haible  <bruno@clisp.org>
36002         settime: Move AC_LIBOBJ invocations to module description.
36003         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
36004         * modules/settime (Makefile.am): Augment lib_SOURCES.
36006 2011-05-23  Bruno Haible  <bruno@clisp.org>
36008         savedir: Move AC_LIBOBJ invocations to module description.
36009         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
36010         * modules/savedir (Makefile.am): Augment lib_SOURCES.
36012 2011-05-23  Bruno Haible  <bruno@clisp.org>
36014         save-cwd: Move AC_LIBOBJ invocations to module description.
36015         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
36016         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
36018 2011-05-23  Bruno Haible  <bruno@clisp.org>
36020         same: Move AC_LIBOBJ invocations to module description.
36021         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
36022         * modules/same (Makefile.am): Augment lib_SOURCES.
36024 2011-05-23  Bruno Haible  <bruno@clisp.org>
36026         safe-write: Move AC_LIBOBJ invocations to module description.
36027         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
36028         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
36029         instead of gl_SAFE_WRITE.
36030         (Makefile.am): Augment lib_SOURCES.
36032 2011-05-23  Bruno Haible  <bruno@clisp.org>
36034         safe-read: Move AC_LIBOBJ invocations to module description.
36035         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
36036         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
36037         of gl_SAFE_READ.
36038         (Makefile.am): Augment lib_SOURCES.
36040 2011-05-23  Bruno Haible  <bruno@clisp.org>
36042         safe-alloc: Move AC_LIBOBJ invocations to module description.
36043         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
36044         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
36046 2011-05-23  Bruno Haible  <bruno@clisp.org>
36048         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
36049         * m4/rijndael.m4: Remove file.
36050         * modules/crypto/rijndael (Files): Remove it.
36051         (configure.ac): Remove gl_RIJNDAEL call.
36052         (Makefile.am): Augment lib_SOURCES.
36054 2011-05-23  Bruno Haible  <bruno@clisp.org>
36056         readtokens: Move AC_LIBOBJ invocations to module description.
36057         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
36058         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
36060 2011-05-23  Bruno Haible  <bruno@clisp.org>
36062         read-file: Move AC_LIBOBJ invocations to module description.
36063         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
36064         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
36065         of gl_FUNC_READ_FILE.
36066         (Makefile.am): Augment lib_SOURCES.
36068 2011-05-23  Bruno Haible  <bruno@clisp.org>
36070         quotearg: Move AC_LIBOBJ invocations to module description.
36071         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
36072         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
36074 2011-05-23  Bruno Haible  <bruno@clisp.org>
36076         quote: Move AC_LIBOBJ invocations to module description.
36077         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
36078         * modules/quote (Makefile.am): Augment lib_SOURCES.
36080 2011-05-23  Bruno Haible  <bruno@clisp.org>
36082         posixver: Move AC_LIBOBJ invocations to module description.
36083         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
36084         * modules/posixver (Makefile.am): Augment lib_SOURCES.
36086 2011-05-23  Bruno Haible  <bruno@clisp.org>
36088         posixtm: Move AC_LIBOBJ invocations to module description.
36089         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
36090         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
36092 2011-05-23  Bruno Haible  <bruno@clisp.org>
36094         physmem: Move AC_LIBOBJ invocations to module description.
36095         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
36096         * modules/physmem (Makefile.am): Augment lib_SOURCES.
36098 2011-05-23  Bruno Haible  <bruno@clisp.org>
36100         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
36101         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
36102         invocation.
36103         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
36105 2011-05-23  Bruno Haible  <bruno@clisp.org>
36107         mpsort: Move AC_LIBOBJ invocations to module description.
36108         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
36109         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
36111 2011-05-23  Bruno Haible  <bruno@clisp.org>
36113         modechange: Move AC_LIBOBJ invocations to module description.
36114         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
36115         * modules/modechange (Makefile.am): Augment lib_SOURCES.
36117 2011-05-23  Bruno Haible  <bruno@clisp.org>
36119         mkdir-p: Move AC_LIBOBJ invocations to module description.
36120         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
36121         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
36123 2011-05-23  Bruno Haible  <bruno@clisp.org>
36125         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36126         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36127         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36129 2011-05-23  Bruno Haible  <bruno@clisp.org>
36131         mgetgroups: Move AC_LIBOBJ invocations to module description.
36132         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36133         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36135 2011-05-23  Bruno Haible  <bruno@clisp.org>
36137         memxor: Move AC_LIBOBJ invocations to module description.
36138         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36139         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36141 2011-05-23  Bruno Haible  <bruno@clisp.org>
36143         memcoll: Move AC_LIBOBJ invocations to module description.
36144         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36145         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36147 2011-05-23  Bruno Haible  <bruno@clisp.org>
36149         memcasecmp: Move AC_LIBOBJ invocations to module description.
36150         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36151         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36153 2011-05-23  Bruno Haible  <bruno@clisp.org>
36155         crypto/md5: Move AC_LIBOBJ invocations to module description.
36156         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36157         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36159 2011-05-23  Bruno Haible  <bruno@clisp.org>
36161         crypto/md4: Move AC_LIBOBJ invocations to module description.
36162         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36163         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36165 2011-05-23  Bruno Haible  <bruno@clisp.org>
36167         crypto/md2: Move AC_LIBOBJ invocations to module description.
36168         * m4/md2.m4: Remove file.
36169         * modules/crypto/md2 (Files): Remove it.
36170         (configure.ac): Remove gl_MD2 call.
36171         (Makefile.am): Augment lib_SOURCES.
36173 2011-05-23  Bruno Haible  <bruno@clisp.org>
36175         long-options: Move AC_LIBOBJ invocations to module description.
36176         * m4/long-options.m4: Remove file.
36177         * modules/long-options (Files): Remove it.
36178         (configure.ac): Remove gl_LONG_OPTIONS call.
36179         (Makefile.am): Augment lib_SOURCES.
36181 2011-05-23  Bruno Haible  <bruno@clisp.org>
36183         i-ring: Move AC_LIBOBJ invocations to module description.
36184         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36185         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36187 2011-05-23  Bruno Haible  <bruno@clisp.org>
36189         idcache: Move AC_LIBOBJ invocations to module description.
36190         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36191         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36193 2011-05-23  Bruno Haible  <bruno@clisp.org>
36195         human: Move AC_LIBOBJ invocations to module description.
36196         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36197         * modules/human (Makefile.am): Augment lib_SOURCES.
36199 2011-05-23  Bruno Haible  <bruno@clisp.org>
36201         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36202         * m4/hmac-sha1.m4: Remove file.
36203         * modules/crypto/hmac-sha1 (Files): Remove it.
36204         (configure.ac): Remove gl_HMAC_SHA1 call.
36205         (Makefile.am): Augment lib_SOURCES.
36207 2011-05-23  Bruno Haible  <bruno@clisp.org>
36209         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36210         * m4/hmac-md5.m4: Remove file.
36211         * modules/crypto/hmac-md5 (Files): Remove it.
36212         (configure.ac): Remove gl_HMAC_MD5 call.
36213         (Makefile.am): Augment lib_SOURCES.
36215 2011-05-23  Bruno Haible  <bruno@clisp.org>
36217         hash: Move AC_LIBOBJ invocations to module description.
36218         * m4/hash.m4: Remove file.
36219         * modules/hash (Files): Remove it.
36220         (configure.ac): Remove gl_HASH call.
36221         (Makefile.am): Augment lib_SOURCES.
36223 2011-05-23  Bruno Haible  <bruno@clisp.org>
36225         hard-locale: Move AC_LIBOBJ invocations to module description.
36226         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36227         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36229 2011-05-23  Bruno Haible  <bruno@clisp.org>
36231         getugroups: Move AC_LIBOBJ invocations to module description.
36232         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36233         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36235 2011-05-23  Bruno Haible  <bruno@clisp.org>
36237         gettime: Move AC_LIBOBJ invocations to module description.
36238         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36239         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36241 2011-05-23  Bruno Haible  <bruno@clisp.org>
36243         getndelim2: Move AC_LIBOBJ invocations to module description.
36244         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36245         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36247 2011-05-23  Bruno Haible  <bruno@clisp.org>
36249         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36250         * m4/gc-pbkdf2-sha1.m4: Remove file.
36251         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36252         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36253         (Makefile.am): Augment lib_SOURCES.
36255 2011-05-23  Bruno Haible  <bruno@clisp.org>
36257         fts: Move AC_LIBOBJ invocations to module description.
36258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36259         * modules/fts (configure.ac): ... to here.
36261 2011-05-23  Bruno Haible  <bruno@clisp.org>
36263         file-type: Move AC_LIBOBJ invocations to module description.
36264         * m4/file-type.m4: Remove file.
36265         * modules/file-type (Files): Remove it.
36266         (configure.ac): Remove gl_FILE_TYPE call.
36267         (Makefile.am): Augment lib_SOURCES.
36269 2011-05-23  Bruno Haible  <bruno@clisp.org>
36271         filenamecat*: Respect rules for use of AC_LIBOBJ.
36272         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36273         Remove AC_LIBOBJ invocation.
36274         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36275         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36277 2011-05-23  Bruno Haible  <bruno@clisp.org>
36279         filemode: Move AC_LIBOBJ invocations to module description.
36280         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36281         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36283 2011-05-23  Bruno Haible  <bruno@clisp.org>
36285         openat-safer: Move AC_LIBOBJ invocations to module description.
36286         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36287         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36289 2011-05-23  Bruno Haible  <bruno@clisp.org>
36291         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36292         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36293         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36295 2011-05-23  Bruno Haible  <bruno@clisp.org>
36297         exclude: Move AC_LIBOBJ invocations to module description.
36298         * m4/exclude.m4: Remove file.
36299         * modules/exclude (Files): Remove it.
36300         (configure.ac): Remove gl_EXCLUDE call.
36301         (Makefile.am): Augment lib_SOURCES.
36303 2011-05-23  Bruno Haible  <bruno@clisp.org>
36305         dirname*: Respect rules for use of AC_LIBOBJ.
36306         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36307         invocations.
36308         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36309         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36311 2011-05-23  Bruno Haible  <bruno@clisp.org>
36313         dirent-safer: Move AC_LIBOBJ invocations to module description.
36314         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36315         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36317 2011-05-23  Bruno Haible  <bruno@clisp.org>
36319         crypto/des: Move AC_LIBOBJ invocations to module description.
36320         * m4/des.m4: Remove file.
36321         * modules/crypto/des (Files): Remove it.
36322         (configure.ac): Remove gl_DES call.
36323         (Makefile.am): Augment lib_SOURCES.
36325 2011-05-23  Bruno Haible  <bruno@clisp.org>
36327         cycle-check: Move AC_LIBOBJ invocations to module description.
36328         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36329         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36331 2011-05-23  Bruno Haible  <bruno@clisp.org>
36333         c-strtold: Move AC_LIBOBJ invocations to module description.
36334         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36335         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36337 2011-05-23  Bruno Haible  <bruno@clisp.org>
36339         c-strtod: Move AC_LIBOBJ invocations to module description.
36340         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36341         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36343 2011-05-23  Bruno Haible  <bruno@clisp.org>
36345         crc: Move AC_LIBOBJ invocations to module description.
36346         * m4/crc.m4: Remove file.
36347         * modules/crc (Files): Remove it.
36348         (configure.ac): Remove gl_CRC call.
36349         (Makefile.am): Augment lib_SOURCES.
36351 2011-05-23  Bruno Haible  <bruno@clisp.org>
36353         close-stream: Move AC_LIBOBJ invocations to module description.
36354         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36355         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36357 2011-05-23  Bruno Haible  <bruno@clisp.org>
36359         closeout: Move AC_LIBOBJ invocations to module description.
36360         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36361         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36363 2011-05-23  Bruno Haible  <bruno@clisp.org>
36365         closein: Move AC_LIBOBJ invocations to module description.
36366         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36367         * modules/closein (Makefile.am): Augment lib_SOURCES.
36369 2011-05-23  Bruno Haible  <bruno@clisp.org>
36371         cloexec: Move AC_LIBOBJ invocations to module description.
36372         * m4/cloexec.m4: Remove file.
36373         * modules/cloexec (Files): Remove it.
36374         (configure.ac): Remove gl_CLOEXEC call.
36375         (Makefile.am): Augment lib_SOURCES.
36377 2011-05-23  Bruno Haible  <bruno@clisp.org>
36379         check-version: Move AC_LIBOBJ invocations to module description.
36380         * m4/check-version.m4: Remove file.
36381         * modules/check-version (Files): Remove it.
36382         (configure.ac): Remove gl_CHECK_VERSION call.
36383         (Makefile.am): Augment lib_SOURCES.
36385 2011-05-23  Bruno Haible  <bruno@clisp.org>
36387         chdir-safer: Move AC_LIBOBJ invocations to module description.
36388         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36389         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36391 2011-05-23  Bruno Haible  <bruno@clisp.org>
36393         canonicalize: Move AC_LIBOBJ invocations to module description.
36394         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36395         AC_LIBOBJ invocation.
36396         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36398 2011-05-23  Bruno Haible  <bruno@clisp.org>
36400         canon-host: Move AC_LIBOBJ invocations to module description.
36401         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36402         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36403         instead of gl_CANON_HOST.
36404         (Makefile.am): Augment lib_SOURCES.
36406 2011-05-23  Bruno Haible  <bruno@clisp.org>
36408         backupfile: Move AC_LIBOBJ invocations to module description.
36409         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36410         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36412 2011-05-23  Bruno Haible  <bruno@clisp.org>
36414         argmatch: Move AC_LIBOBJ invocations to module description.
36415         * m4/argmatch.m4: Remove file.
36416         * modules/argmatch (Files): Remove it.
36417         (configure.ac): Remove gl_ARGMATCH call.
36418         (Makefile.am): Augment lib_SOURCES.
36420 2011-05-23  Bruno Haible  <bruno@clisp.org>
36422         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36423         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36424         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36426 2011-05-23  Bruno Haible  <bruno@clisp.org>
36428         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36429         * m4/arcfour.m4: Remove file.
36430         * modules/crypto/arcfour (Files): Remove it.
36431         (configure.ac): Remove gl_ARCFOUR call.
36432         (Makefile.am): Augment lib_SOURCES.
36434 2011-05-22  Bruno Haible  <bruno@clisp.org>
36436         write: Move AC_LIBOBJ invocations to module description.
36437         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36438         * modules/write (configure.ac): ... to here.
36440 2011-05-22  Bruno Haible  <bruno@clisp.org>
36442         wmemset: Move AC_LIBOBJ invocations to module description.
36443         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36444         here...
36445         * modules/wmemset (configure.ac): ... to here.
36447 2011-05-22  Bruno Haible  <bruno@clisp.org>
36449         wmemmove: Move AC_LIBOBJ invocations to module description.
36450         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36451         here...
36452         * modules/wmemmove (configure.ac): ... to here.
36454 2011-05-22  Bruno Haible  <bruno@clisp.org>
36456         wmemcpy: Move AC_LIBOBJ invocations to module description.
36457         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36458         here...
36459         * modules/wmemcpy (configure.ac): ... to here.
36461 2011-05-22  Bruno Haible  <bruno@clisp.org>
36463         wmemcmp: Move AC_LIBOBJ invocations to module description.
36464         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36465         here...
36466         * modules/wmemcmp (configure.ac): ... to here.
36468 2011-05-22  Bruno Haible  <bruno@clisp.org>
36470         wmemchr: Move AC_LIBOBJ invocations to module description.
36471         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36472         here...
36473         * modules/wmemchr (configure.ac): ... to here.
36475 2011-05-22  Bruno Haible  <bruno@clisp.org>
36477         wcswidth: Move AC_LIBOBJ invocations to module description.
36478         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36479         here...
36480         * modules/wcswidth (configure.ac): ... to here.
36482 2011-05-22  Bruno Haible  <bruno@clisp.org>
36484         wcwidth: Respect rules for use of AC_LIBOBJ.
36485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36486         invocation from here...
36487         * modules/wcwidth (configure.ac): ... to here.
36488         (Depends-on): Update conditions.
36490 2011-05-22  Bruno Haible  <bruno@clisp.org>
36492         wctype: Move AC_LIBOBJ invocations to module description.
36493         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36494         invocation from here...
36495         * modules/wctype (configure.ac): ... to here.
36496         (Depends-on): Update conditions.
36498 2011-05-22  Bruno Haible  <bruno@clisp.org>
36500         wctrans: Move AC_LIBOBJ invocations to module description.
36501         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36502         invocation from here...
36503         * modules/wctrans (configure.ac): ... to here.
36505 2011-05-22  Bruno Haible  <bruno@clisp.org>
36507         wctomb: Move AC_LIBOBJ invocations to module description.
36508         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36509         invocations from here...
36510         * modules/wctomb (configure.ac): ... to here.
36512 2011-05-22  Bruno Haible  <bruno@clisp.org>
36514         wctob: Move AC_LIBOBJ invocations to module description.
36515         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36516         gl_PREREQ_WCTOB invocations from here...
36517         * modules/wctob (configure.ac): ... to here.
36518         (Depends-on): Update conditions.
36520 2011-05-22  Bruno Haible  <bruno@clisp.org>
36522         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36523         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36524         here...
36525         * modules/wcsxfrm (configure.ac): ... to here.
36527 2011-05-22  Bruno Haible  <bruno@clisp.org>
36529         wcstok: Move AC_LIBOBJ invocations to module description.
36530         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36531         * modules/wcstok (configure.ac): ... to here.
36533 2011-05-22  Bruno Haible  <bruno@clisp.org>
36535         wcsstr: Move AC_LIBOBJ invocations to module description.
36536         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36537         * modules/wcsstr (configure.ac): ... to here.
36539 2011-05-22  Bruno Haible  <bruno@clisp.org>
36541         wcsspn: Move AC_LIBOBJ invocations to module description.
36542         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36543         * modules/wcsspn (configure.ac): ... to here.
36545 2011-05-22  Bruno Haible  <bruno@clisp.org>
36547         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36548         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36549         gl_PREREQ_WCSRTOMBS invocations from here...
36550         * modules/wcsrtombs (configure.ac): ... to here.
36552 2011-05-22  Bruno Haible  <bruno@clisp.org>
36554         wcsrchr: Move AC_LIBOBJ invocations to module description.
36555         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36556         here...
36557         * modules/wcsrchr (configure.ac): ... to here.
36559 2011-05-22  Bruno Haible  <bruno@clisp.org>
36561         wcspbrk: Move AC_LIBOBJ invocations to module description.
36562         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36563         here...
36564         * modules/wcspbrk (configure.ac): ... to here.
36566 2011-05-22  Bruno Haible  <bruno@clisp.org>
36568         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36569         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36570         gl_PREREQ_WCSNRTOMBS invocations from here...
36571         * modules/wcsnrtombs (configure.ac): ... to here.
36573 2011-05-22  Bruno Haible  <bruno@clisp.org>
36575         wcsnlen: Move AC_LIBOBJ invocations to module description.
36576         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36577         here...
36578         * modules/wcsnlen (configure.ac): ... to here.
36580 2011-05-22  Bruno Haible  <bruno@clisp.org>
36582         wcsncpy: Move AC_LIBOBJ invocations to module description.
36583         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36584         here...
36585         * modules/wcsncpy (configure.ac): ... to here.
36587 2011-05-22  Bruno Haible  <bruno@clisp.org>
36589         wcsncmp: Move AC_LIBOBJ invocations to module description.
36590         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36591         here...
36592         * modules/wcsncmp (configure.ac): ... to here.
36594 2011-05-22  Bruno Haible  <bruno@clisp.org>
36596         wcsncat: Move AC_LIBOBJ invocations to module description.
36597         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36598         here...
36599         * modules/wcsncat (configure.ac): ... to here.
36601 2011-05-22  Bruno Haible  <bruno@clisp.org>
36603         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36604         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36605         from here...
36606         * modules/wcsncasecmp (configure.ac): ... to here.
36608 2011-05-22  Bruno Haible  <bruno@clisp.org>
36610         wcslen: Move AC_LIBOBJ invocations to module description.
36611         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36612         * modules/wcslen (configure.ac): ... to here.
36614 2011-05-22  Bruno Haible  <bruno@clisp.org>
36616         wcsdup: Move AC_LIBOBJ invocations to module description.
36617         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36618         * modules/wcsdup (configure.ac): ... to here.
36620 2011-05-22  Bruno Haible  <bruno@clisp.org>
36622         wcscspn: Move AC_LIBOBJ invocations to module description.
36623         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36624         here...
36625         * modules/wcscspn (configure.ac): ... to here.
36627 2011-05-22  Bruno Haible  <bruno@clisp.org>
36629         wcscpy: Move AC_LIBOBJ invocations to module description.
36630         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36631         * modules/wcscpy (configure.ac): ... to here.
36633 2011-05-22  Bruno Haible  <bruno@clisp.org>
36635         wcscoll: Move AC_LIBOBJ invocations to module description.
36636         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36637         here...
36638         * modules/wcscoll (configure.ac): ... to here.
36640 2011-05-22  Bruno Haible  <bruno@clisp.org>
36642         wcscmp: Move AC_LIBOBJ invocations to module description.
36643         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36644         * modules/wcscmp (configure.ac): ... to here.
36646 2011-05-22  Bruno Haible  <bruno@clisp.org>
36648         wcschr: Move AC_LIBOBJ invocations to module description.
36649         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36650         * modules/wcschr (configure.ac): ... to here.
36652 2011-05-22  Bruno Haible  <bruno@clisp.org>
36654         wcscat: Move AC_LIBOBJ invocations to module description.
36655         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36656         * modules/wcscat (configure.ac): ... to here.
36658 2011-05-22  Bruno Haible  <bruno@clisp.org>
36660         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36661         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36662         here...
36663         * modules/wcscasecmp (configure.ac): ... to here.
36665 2011-05-22  Bruno Haible  <bruno@clisp.org>
36667         wcrtomb: Move AC_LIBOBJ invocations to module description.
36668         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36669         invocations from here...
36670         * modules/wcrtomb (configure.ac): ... to here.
36672 2011-05-22  Bruno Haible  <bruno@clisp.org>
36674         wcpncpy: Move AC_LIBOBJ invocations to module description.
36675         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36676         here...
36677         * modules/wcpncpy (configure.ac): ... to here.
36679 2011-05-22  Bruno Haible  <bruno@clisp.org>
36681         wcpcpy: Move AC_LIBOBJ invocations to module description.
36682         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36683         * modules/wcpcpy (configure.ac): ... to here.
36685 2011-05-22  Bruno Haible  <bruno@clisp.org>
36687         waitpid: Move AC_LIBOBJ invocations to module description.
36688         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36689         invocation from here...
36690         * modules/waitpid (configure.ac): ... to here.
36692 2011-05-22  Bruno Haible  <bruno@clisp.org>
36694         utimensat: Move AC_LIBOBJ invocations to module description.
36695         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36696         here...
36697         * modules/utimensat (configure.ac): ... to here.
36699 2011-05-22  Bruno Haible  <bruno@clisp.org>
36701         usleep: Move AC_LIBOBJ invocations to module description.
36702         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36703         here...
36704         * modules/usleep (configure.ac): ... to here.
36706 2011-05-22  Bruno Haible  <bruno@clisp.org>
36708         unlockpt: Move AC_LIBOBJ invocations to module description.
36709         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36710         gl_PREREQ_UNLOCKPT invocations from here...
36711         * modules/unlockpt (configure.ac): ... to here.
36713 2011-05-22  Bruno Haible  <bruno@clisp.org>
36715         unlink: Respect rules for use of AC_LIBOBJ.
36716         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36717         * modules/unlink (configure.ac): ... to here.
36719 2011-05-22  Bruno Haible  <bruno@clisp.org>
36721         uname: Move AC_LIBOBJ invocations to module description.
36722         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36724         here...
36725         * modules/uname (configure.ac): ... to here.
36727 2011-05-22  Bruno Haible  <bruno@clisp.org>
36729         ttyname_r: Move AC_LIBOBJ invocations to module description.
36730         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36731         gl_PREREQ_TTYNAME_R invocations from here...
36732         * modules/ttyname_r (configure.ac): ... to here.
36734 2011-05-22  Bruno Haible  <bruno@clisp.org>
36736         tsearch: Move AC_LIBOBJ invocations to module description.
36737         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36738         invocations from here...
36739         * modules/tsearch (configure.ac): ... to here.
36741 2011-05-22  Bruno Haible  <bruno@clisp.org>
36743         towctrans: Move AC_LIBOBJ invocations to module description.
36744         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36745         AC_LIBOBJ invocation from here...
36746         * modules/towctrans (configure.ac): ... to here.
36748 2011-05-22  Bruno Haible  <bruno@clisp.org>
36750         tmpfile: Move AC_LIBOBJ invocations to module description.
36751         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36752         invocations from here...
36753         * modules/tmpfile (configure.ac): ... to here.
36755 2011-05-22  Bruno Haible  <bruno@clisp.org>
36757         times: Move AC_LIBOBJ invocations to module description.
36758         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36759         * modules/times (configure.ac): ... to here.
36761 2011-05-22  Bruno Haible  <bruno@clisp.org>
36763         time_r: Move AC_LIBOBJ invocations to module description.
36764         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36765         invocations from here...
36766         * modules/time_r (configure.ac): ... to here.
36768 2011-05-22  Bruno Haible  <bruno@clisp.org>
36770         timegm: Move AC_LIBOBJ invocations to module description.
36771         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36772         invocations from here...
36773         * modules/timegm (configure.ac): ... to here.
36775 2011-05-22  Bruno Haible  <bruno@clisp.org>
36777         tcgetsid: Move AC_LIBOBJ invocations to module description.
36778         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36779         and gl_PREREQ_TCGETSID invocations from here...
36780         * modules/tcgetsid (configure.ac): ... to here.
36781         (Depends-on): Update conditions.
36783 2011-05-22  Bruno Haible  <bruno@clisp.org>
36785         symlinkat: Move AC_LIBOBJ invocations to module description.
36786         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36787         here...
36788         * modules/symlinkat (configure.ac): ... to here.
36790 2011-05-22  Bruno Haible  <bruno@clisp.org>
36792         symlink: Move AC_LIBOBJ invocations to module description.
36793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36794         here...
36795         * modules/symlink (configure.ac): ... to here.
36797 2011-05-22  Bruno Haible  <bruno@clisp.org>
36799         strverscmp: Move AC_LIBOBJ invocations to module description.
36800         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36802         from here...
36803         * modules/strverscmp (configure.ac): ... to here.
36805 2011-05-22  Bruno Haible  <bruno@clisp.org>
36807         strtok_r: Move AC_LIBOBJ invocations to module description.
36808         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36809         and gl_PREREQ_STRTOK_R invocations from here...
36810         * modules/strtok_r (configure.ac): ... to here.
36811         (Depends-on): Update conditions.
36813 2011-05-22  Bruno Haible  <bruno@clisp.org>
36815         strtoumax: Move AC_LIBOBJ invocations to module description.
36816         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36818         from here...
36819         * modules/strtoumax (configure.ac): ... to here.
36821 2011-05-22  Bruno Haible  <bruno@clisp.org>
36823         strtoimax: Move AC_LIBOBJ invocations to module description.
36824         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36826         from here...
36827         * modules/strtoimax (configure.ac): ... to here.
36829 2011-05-22  Bruno Haible  <bruno@clisp.org>
36831         strtoull: Move AC_LIBOBJ invocations to module description.
36832         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36834         from here...
36835         * modules/strtoull (configure.ac): ... to here.
36837 2011-05-22  Bruno Haible  <bruno@clisp.org>
36839         strtoll: Move AC_LIBOBJ invocations to module description.
36840         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36841         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36842         here...
36843         * modules/strtoll (configure.ac): ... to here.
36845 2011-05-22  Bruno Haible  <bruno@clisp.org>
36847         strtoul: Move AC_LIBOBJ invocations to module description.
36848         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36849         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36850         * modules/strtoul (configure.ac): ... to here.
36852 2011-05-22  Bruno Haible  <bruno@clisp.org>
36854         strtol: Move AC_LIBOBJ invocations to module description.
36855         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36856         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36857         * modules/strtol (configure.ac): ... to here.
36859 2011-05-22  Bruno Haible  <bruno@clisp.org>
36861         strtod: Move AC_LIBOBJ invocations to module description.
36862         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36863         invocations from here...
36864         * modules/strtod (configure.ac): ... to here.
36866 2011-05-22  Bruno Haible  <bruno@clisp.org>
36868         strstr*: Move AC_LIBOBJ invocations to module description.
36869         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36870         invocations from here...
36871         * modules/strstr-simple (configure.ac): ... to here.
36872         * modules/strstr (configure.ac): ... and here.
36874 2011-05-22  Bruno Haible  <bruno@clisp.org>
36876         strsignal: Move AC_LIBOBJ invocations to module description.
36877         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36878         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36879         * modules/strsignal (configure.ac): ... to here.
36880         (Depends-on): Update conditions.
36882 2011-05-22  Bruno Haible  <bruno@clisp.org>
36884         strsep: Move AC_LIBOBJ invocations to module description.
36885         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36887         here...
36888         * modules/strsep (configure.ac): ... to here.
36890 2011-05-22  Bruno Haible  <bruno@clisp.org>
36892         strptime: Move AC_LIBOBJ invocations to module description.
36893         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36894         gl_PREREQ_STRPTIME invocations from here...
36895         * modules/strptime (configure.ac): ... to here.
36897 2011-05-22  Bruno Haible  <bruno@clisp.org>
36899         strpbrk: Move AC_LIBOBJ invocations to module description.
36900         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36902         here...
36903         * modules/strpbrk (configure.ac): ... to here.
36905 2011-05-22  Bruno Haible  <bruno@clisp.org>
36907         strnlen: Move AC_LIBOBJ invocations to module description.
36908         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36909         invocations from here...
36910         * modules/strnlen (configure.ac): ... to here.
36912 2011-05-22  Bruno Haible  <bruno@clisp.org>
36914         strndup: Move AC_LIBOBJ invocations to module description.
36915         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36916         invocations from here...
36917         * modules/strndup (configure.ac): ... to here.
36918         (Depends-on): Update conditions.
36920 2011-05-22  Bruno Haible  <bruno@clisp.org>
36922         strncat: Move AC_LIBOBJ invocations to module description.
36923         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36924         invocations from here...
36925         * modules/strncat (configure.ac): ... to here.
36927 2011-05-22  Bruno Haible  <bruno@clisp.org>
36929         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36930         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36931         invocations from here...
36932         * modules/strdup (configure.ac): ... to here.
36933         * modules/strdup-posix (configure.ac): ... and here.
36935 2011-05-22  Bruno Haible  <bruno@clisp.org>
36937         strcspn: Move AC_LIBOBJ invocations to module description.
36938         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36940         here...
36941         * modules/strcspn (configure.ac): ... to here.
36943 2011-05-22  Bruno Haible  <bruno@clisp.org>
36945         strchrnul: Move AC_LIBOBJ invocations to module description.
36946         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36947         gl_PREREQ_STRCHRNUL invocations from here...
36948         * modules/strchrnul (configure.ac): ... to here.
36950 2011-05-22  Bruno Haible  <bruno@clisp.org>
36952         strcasestr*: Move AC_LIBOBJ invocations to module description.
36953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36954         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36955         * modules/strcasestr-simple (configure.ac): ... to here.
36956         * modules/strcasestr (configure.ac): ... and here.
36958 2011-05-22  Bruno Haible  <bruno@clisp.org>
36960         strcase: Move AC_LIBOBJ invocations to module description.
36961         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36962         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36963         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36964         gl_PREREQ_STRNCASECMP invocations from here...
36965         * modules/strcase (configure.ac): ... to here.
36967 2011-05-22  Bruno Haible  <bruno@clisp.org>
36969         stpncpy: Move AC_LIBOBJ invocations to module description.
36970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36971         here...
36972         * modules/stpncpy (configure.ac): ... to here.
36974 2011-05-22  Bruno Haible  <bruno@clisp.org>
36976         stpcpy: Move AC_LIBOBJ invocations to module description.
36977         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36979         here...
36980         * modules/stpcpy (configure.ac): ... to here.
36982 2011-05-21  Bruno Haible  <bruno@clisp.org>
36984         stat: Move AC_LIBOBJ invocations to module description.
36985         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36986         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36987         here...
36988         * modules/stat (configure.ac): ... to here.
36990 2011-05-21  Bruno Haible  <bruno@clisp.org>
36992         sleep: Move AC_LIBOBJ invocations to module description.
36993         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36994         * modules/sleep (configure.ac): ... to here.
36996 2011-05-21  Bruno Haible  <bruno@clisp.org>
36998         signbit: Move AC_LIBOBJ invocations to module description.
36999         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
37000         * modules/signbit (configure.ac): ... to here.
37002 2011-05-21  Bruno Haible  <bruno@clisp.org>
37004         sigprocmask: Move AC_LIBOBJ invocations to module description.
37005         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
37006         gl_PREREQ_SIGPROMASK invocations from here...
37007         * modules/sigprocmask (configure.ac): ... to here.
37009 2011-05-21  Bruno Haible  <bruno@clisp.org>
37011         sigaction: Move AC_LIBOBJ invocations to module description.
37012         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
37013         gl_PREREQ_SIGACTION invocations from here...
37014         * modules/sigaction (configure.ac): ... to here.
37016 2011-05-21  Bruno Haible  <bruno@clisp.org>
37018         sig2str: Move AC_LIBOBJ invocations to module description.
37019         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
37020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
37021         here...
37022         * modules/sig2str (configure.ac): ... to here.
37024 2011-05-21  Bruno Haible  <bruno@clisp.org>
37026         setlocale: Move AC_LIBOBJ invocations to module description.
37027         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
37028         gl_PREREQ_SETLOCALE invocations from here...
37029         * modules/setlocale (configure.ac): ... to here.
37031 2011-05-21  Bruno Haible  <bruno@clisp.org>
37033         unsetenv: Move AC_LIBOBJ invocations to module description.
37034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
37035         and gl_PREREQ_UNSETENV invocations from here...
37036         * modules/unsetenv (configure.ac): ... to here.
37037         (Depends-on): Update.
37039 2011-05-21  Bruno Haible  <bruno@clisp.org>
37041         setenv: Move AC_LIBOBJ invocations to module description.
37042         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
37043         here...
37044         * modules/setenv (configure.ac): ... to here.
37046 2011-05-21  Bruno Haible  <bruno@clisp.org>
37048         selinux-h: Move AC_LIBOBJ invocations to module description.
37049         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
37050         AC_LIBOBJ invocation from here...
37051         * modules/selinux-h (configure.ac): ... to here.
37053 2011-05-21  Bruno Haible  <bruno@clisp.org>
37055         select: Respect rules for use of AC_LIBOBJ.
37056         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
37057         here...
37058         * modules/select (configure.ac): ... to here.
37060 2011-05-21  Bruno Haible  <bruno@clisp.org>
37062         scandir: Move AC_LIBOBJ invocations to module description.
37063         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
37064         invocations from here...
37065         * modules/scandir (configure.ac): ... to here.
37067 2011-05-21  Bruno Haible  <bruno@clisp.org>
37069         rpmatch: Move AC_LIBOBJ invocations to module description.
37070         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
37071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
37072         here...
37073         * modules/rpmatch (configure.ac): ... to here.
37075 2011-05-21  Bruno Haible  <bruno@clisp.org>
37077         rmdir: Respect rules for use of AC_LIBOBJ.
37078         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
37079         * modules/rmdir (configure.ac): ... to here.
37081 2011-05-21  Bruno Haible  <bruno@clisp.org>
37083         renameat: Move AC_LIBOBJ invocations to module description.
37084         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
37085         here...
37086         * modules/renameat (configure.ac): ... to here.
37088 2011-05-21  Bruno Haible  <bruno@clisp.org>
37090         rename: Respect rules for use of AC_LIBOBJ.
37091         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
37092         here...
37093         * modules/rename (configure.ac): ... to here.
37095 2011-05-21  Bruno Haible  <bruno@clisp.org>
37097         remove: Move AC_LIBOBJ invocations to module description.
37098         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
37099         here...
37100         * modules/remove (configure.ac): ... to here.
37102 2011-05-21  Bruno Haible  <bruno@clisp.org>
37104         relocatable-lib: Move AC_LIBOBJ invocations to module description.
37105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
37106         macro.
37107         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
37108         * modules/relocatable-lib (configure.ac): ... to here.
37109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37110         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
37112 2011-05-21  Bruno Haible  <bruno@clisp.org>
37114         relocatable-prog: Move AC_LIBOBJ invocations to module description.
37115         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
37116         here...
37117         * modules/relocatable-prog (configure.ac): ... to here.
37119 2011-05-21  Bruno Haible  <bruno@clisp.org>
37121         regex: Move AC_LIBOBJ invocations to module description.
37122         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
37123         invocations from here...
37124         * modules/regex (configure.ac): ... to here.
37126 2011-05-21  Bruno Haible  <bruno@clisp.org>
37128         realloc-*: Move AC_LIBOBJ invocations to module description.
37129         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37130         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37131         AC_LIBOBJ invocations from here...
37132         * modules/realloc-gnu (configure.ac): ... to here.
37133         * modules/realloc-posix (configure.ac): ... and here.
37135 2011-05-21  Bruno Haible  <bruno@clisp.org>
37137         readutmp: Move AC_LIBOBJ invocations to module description.
37138         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37139         * modules/readutmp (configure.ac): ... to here.
37141 2011-05-21  Bruno Haible  <bruno@clisp.org>
37143         readlinkat: Move AC_LIBOBJ invocations to module description.
37144         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37145         here...
37146         * modules/readlinkat (configure.ac): ... to here.
37148 2011-05-21  Bruno Haible  <bruno@clisp.org>
37150         readlink: Move AC_LIBOBJ invocations to module description.
37151         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37152         gl_PREREQ_READLINK invocations from here...
37153         * modules/readlink (configure.ac): ... to here.
37155 2011-05-21  Bruno Haible  <bruno@clisp.org>
37157         readline: Move AC_LIBOBJ invocations to module description.
37158         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37159         gl_PREREQ_READLINE invocations from here...
37160         * modules/readline (configure.ac): ... to here.
37162 2011-05-21  Bruno Haible  <bruno@clisp.org>
37164         read: Move AC_LIBOBJ invocations to module description.
37165         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37166         * modules/read (configure.ac): ... to here.
37168 2011-05-21  Bruno Haible  <bruno@clisp.org>
37170         rawmemchr: Move AC_LIBOBJ invocations to module description.
37171         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37173         from here...
37174         * modules/rawmemchr (configure.ac): ... to here.
37176 2011-05-21  Bruno Haible  <bruno@clisp.org>
37178         random_r: Move AC_LIBOBJ invocations to module description.
37179         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37180         gl_PREREQ_RANDOM_R invocations from here...
37181         * modules/random_r (configure.ac): ... to here.
37183 2011-05-21  Bruno Haible  <bruno@clisp.org>
37185         pwrite: Move AC_LIBOBJ invocations to module description.
37186         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37187         * modules/pwrite (configure.ac): ... to here.
37189 2011-05-21  Bruno Haible  <bruno@clisp.org>
37191         putenv: Move AC_LIBOBJ invocations to module description.
37192         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37193         * modules/putenv (configure.ac): ... to here.
37195 2011-05-21  Bruno Haible  <bruno@clisp.org>
37197         login_tty: Move AC_LIBOBJ invocations to module description.
37198         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37199         * modules/login_tty (configure.ac): ... to here.
37201 2011-05-21  Bruno Haible  <bruno@clisp.org>
37203         openpty: Move AC_LIBOBJ invocations to module description.
37204         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37205         * modules/openpty (configure.ac): ... to here.
37207 2011-05-21  Bruno Haible  <bruno@clisp.org>
37209         forkpty: Move AC_LIBOBJ invocations to module description.
37210         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37211         * modules/forkpty (configure.ac): ... to here.
37213 2011-05-21  Bruno Haible  <bruno@clisp.org>
37215         ptsname: Move AC_LIBOBJ invocations to module description.
37216         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37217         invocations from here...
37218         * modules/ptsname (configure.ac): ... to here.
37220 2011-05-21  Bruno Haible  <bruno@clisp.org>
37222         pread: Move AC_LIBOBJ invocations to module description.
37223         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37224         * modules/pread (configure.ac): ... to here.
37226 2011-05-21  Bruno Haible  <bruno@clisp.org>
37228         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37229         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37230         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37231         * modules/posix_spawn (configure.ac): ... to here.
37232         * modules/posix_spawnp (configure.ac): ... and here.
37234 2011-05-21  Bruno Haible  <bruno@clisp.org>
37236         popen: Move AC_LIBOBJ invocations to module description.
37237         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37238         invocations from here...
37239         * modules/popen (configure.ac): ... to here.
37241 2011-05-21  Bruno Haible  <bruno@clisp.org>
37243         poll: Move AC_LIBOBJ invocations to module description.
37244         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37245         invocations from here...
37246         * modules/poll (configure.ac): ... to here.
37248 2011-05-21  Bruno Haible  <bruno@clisp.org>
37250         pipe-posix: Move AC_LIBOBJ invocations to module description.
37251         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37252         * modules/pipe-posix (configure.ac): ... to here.
37254 2011-05-21  Bruno Haible  <bruno@clisp.org>
37256         openat: Respect rules for use of AC_LIBOBJ.
37257         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37258         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37259         * modules/openat (configure.ac): ... to here.
37261 2011-05-21  Bruno Haible  <bruno@clisp.org>
37263         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37264         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37265         invocation from here...
37266         * modules/obstack-printf (configure.ac): ... to here.
37267         * modules/obstack-printf-posix (configure.ac): ... and here.
37269 2011-05-21  Bruno Haible  <bruno@clisp.org>
37271         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37272         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37273         from here...
37274         * modules/nl_langinfo (configure.ac): ... to here.
37276 2011-05-21  Bruno Haible  <bruno@clisp.org>
37278         nanosleep: Move AC_LIBOBJ invocations to module description.
37279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37280         gl_PREREQ_NANOSLEEP invocations from here...
37281         * modules/nanosleep (configure.ac): ... to here.
37283 2011-05-21  Bruno Haible  <bruno@clisp.org>
37285         mountlist: Move AC_LIBOBJ invocations to module description.
37286         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37287         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37288         * modules/mountlist (configure.ac): ... to here.
37290 2011-05-21  Bruno Haible  <bruno@clisp.org>
37292         mktime: Respect rules for use of AC_LIBOBJ.
37293         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37294         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37295         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37296         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37297         * modules/mktime (configure.ac): ... to here.
37298         * modules/mktime-internal (configure.ac): ... and here.
37299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37301 2011-05-21  Bruno Haible  <bruno@clisp.org>
37303         mkstemps: Move AC_LIBOBJ invocations to module description.
37304         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37305         here...
37306         * modules/mkstemps (configure.ac): ... to here.
37308 2011-05-21  Bruno Haible  <bruno@clisp.org>
37310         mkstemp: Move AC_LIBOBJ invocations to module description.
37311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37312         gl_PREREQ_MKSTEMP invocations from here...
37313         * modules/mkstemp (configure.ac): ... to here.
37315 2011-05-21  Bruno Haible  <bruno@clisp.org>
37317         mkostemps: Move AC_LIBOBJ invocations to module description.
37318         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37319         here...
37320         * modules/mkostemps (configure.ac): ... to here.
37322 2011-05-21  Bruno Haible  <bruno@clisp.org>
37324         mkostemp: Move AC_LIBOBJ invocations to module description.
37325         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37326         gl_PREREQ_MKOSTEMP invocations from here...
37327         * modules/mkostemp (configure.ac): ... to here.
37329 2011-05-21  Bruno Haible  <bruno@clisp.org>
37331         mknod: Move AC_LIBOBJ invocations to module description.
37332         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37333         * modules/mknod (configure.ac): ... to here.
37335 2011-05-21  Bruno Haible  <bruno@clisp.org>
37337         mkfifoat: Move AC_LIBOBJ invocations to module description.
37338         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37339         here...
37340         * modules/mkfifoat (configure.ac): ... to here.
37342 2011-05-21  Bruno Haible  <bruno@clisp.org>
37344         mkfifo: Respect rules for use of AC_LIBOBJ.
37345         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37346         here...
37347         * modules/mkfifo (configure.ac): ... to here.
37349 2011-05-21  Bruno Haible  <bruno@clisp.org>
37351         mkdtemp: Move AC_LIBOBJ invocations to module description.
37352         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37353         invocations from here...
37354         * modules/mkdtemp (configure.ac): ... to here.
37356 2011-05-21  Bruno Haible  <bruno@clisp.org>
37358         mkdir: Move AC_LIBOBJ invocations to module description.
37359         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37360         * modules/mkdir (configure.ac): ... to here.
37362 2011-05-21  Bruno Haible  <bruno@clisp.org>
37364         memset: Move AC_LIBOBJ invocations to module description.
37365         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37366         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37367         here...
37368         * modules/memset (configure.ac): ... to here.
37370 2011-05-21  Bruno Haible  <bruno@clisp.org>
37372         memrchr: Move AC_LIBOBJ invocations to module description.
37373         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37375         here...
37376         * modules/memrchr (configure.ac): ... to here.
37378 2011-05-21  Bruno Haible  <bruno@clisp.org>
37380         mempcpy: Move AC_LIBOBJ invocations to module description.
37381         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37383         here...
37384         * modules/mempcpy (configure.ac): ... to here.
37386 2011-05-21  Bruno Haible  <bruno@clisp.org>
37388         memmove: Move AC_LIBOBJ invocations to module description.
37389         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37390         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37391         here...
37392         * modules/memmove (configure.ac): ... to here.
37394 2011-05-21  Bruno Haible  <bruno@clisp.org>
37396         memmem*: Move AC_LIBOBJ invocations to module description.
37397         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37398         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37399         here...
37400         (gl_FUNC_MEMMEM): ... and here...
37401         * modules/memmem-simple (configure.ac): ... to here.
37402         * modules/memmem (configure.ac): ... and here.
37404 2011-05-21  Bruno Haible  <bruno@clisp.org>
37406         memcpy: Move AC_LIBOBJ invocations to module description.
37407         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37409         here...
37410         * modules/memcpy (configure.ac): ... to here.
37412 2011-05-21  Bruno Haible  <bruno@clisp.org>
37414         memcmp: Simplify autoconf macro.
37415         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37416         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37417         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37419 2011-05-21  Bruno Haible  <bruno@clisp.org>
37421         memcmp: Move AC_LIBOBJ invocations to module description.
37422         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37423         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37424         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37425         * modules/memcmp (configure.ac): ... to here.
37426         (Depends-on): Update conditions.
37428 2011-05-21  Bruno Haible  <bruno@clisp.org>
37430         memchr: Respect rules for use of AC_LIBOBJ.
37431         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37432         invocations from here...
37433         * modules/memchr (configure.ac): ... to here.
37435 2011-05-21  Bruno Haible  <bruno@clisp.org>
37437         mbtowc: Move AC_LIBOBJ invocations to module description.
37438         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37439         invocations from here...
37440         * modules/mbtowc (configure.ac): ... to here.
37442 2011-05-21  Bruno Haible  <bruno@clisp.org>
37444         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37445         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37446         gl_PREREQ_MBSRTOWCS invocations from here...
37447         * modules/mbsrtowcs (configure.ac): ... to here.
37449 2011-05-21  Bruno Haible  <bruno@clisp.org>
37451         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37452         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37453         gl_PREREQ_MBSNRTOWCS invocations from here...
37454         * modules/mbsnrtowcs (configure.ac): ... to here.
37456 2011-05-21  Bruno Haible  <bruno@clisp.org>
37458         mbsinit: Move AC_LIBOBJ invocations to module description.
37459         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37460         invocations from here...
37461         * modules/mbsinit (configure.ac): ... to here.
37463 2011-05-21  Bruno Haible  <bruno@clisp.org>
37465         mbrlen: Move AC_LIBOBJ invocations to module description.
37466         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37467         invocations from here...
37468         * modules/mbrlen (configure.ac): ... to here.
37470 2011-05-21  Bruno Haible  <bruno@clisp.org>
37472         mbrtowc: Respect rules for use of AC_LIBOBJ.
37473         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37474         invocations from here...
37475         * modules/mbrtowc (configure.ac): ... to here.
37477 2011-05-21  Bruno Haible  <bruno@clisp.org>
37479         malloc-*: Move AC_LIBOBJ invocations to module description.
37480         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37481         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37482         AC_LIBOBJ invocations from here...
37483         * modules/malloc-gnu (configure.ac): ... to here.
37484         * modules/malloc-posix (configure.ac): ... and here.
37486 2011-05-21  Bruno Haible  <bruno@clisp.org>
37488         lstat, openat: Respect rules for use of AC_LIBOBJ.
37489         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37490         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37491         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37492         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37493         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37494         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37495         here.
37496         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37498 2011-05-21  Bruno Haible  <bruno@clisp.org>
37500         lseek: Move AC_LIBOBJ invocations to module description.
37501         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37502         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37503         * modules/lseek (configure.ac): ... to here.
37505 2011-05-21  Bruno Haible  <bruno@clisp.org>
37507         linkat: Move AC_LIBOBJ invocations to module description.
37508         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37509         here...
37510         * modules/linkat (configure.ac): ... to here.
37512 2011-05-21  Bruno Haible  <bruno@clisp.org>
37514         link: Respect rules for use of AC_LIBOBJ.
37515         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37516         * modules/link (configure.ac): ... to here.
37518 2011-05-21  Bruno Haible  <bruno@clisp.org>
37520         lchown: Move AC_LIBOBJ invocations to module description.
37521         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37522         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37523         * modules/lchown (configure.ac): ... to here.
37525 2011-05-21  Bruno Haible  <bruno@clisp.org>
37527         iswctype: Move AC_LIBOBJ invocations to module description.
37528         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37529         here...
37530         * modules/iswctype (configure.ac): ... to here.
37532 2011-05-21  Bruno Haible  <bruno@clisp.org>
37534         iswblank: Move AC_LIBOBJ invocations to module description.
37535         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37536         here...
37537         * modules/iswblank (configure.ac): ... to here.
37539 2011-05-21  Bruno Haible  <bruno@clisp.org>
37541         atanl: Move AC_LIBOBJ invocations to module description.
37542         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37543         * modules/atanl (configure.ac): ... to here.
37545 2011-05-21  Bruno Haible  <bruno@clisp.org>
37547         acosl: Move AC_LIBOBJ invocations to module description.
37548         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37549         * modules/acosl (configure.ac): ... to here.
37551 2011-05-21  Bruno Haible  <bruno@clisp.org>
37553         asinl: Respect rules for use of AC_LIBOBJ.
37554         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37555         * modules/asinl (configure.ac): ... to here.
37557 2011-05-21  Bruno Haible  <bruno@clisp.org>
37559         tanl: Move AC_LIBOBJ invocations to module description.
37560         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37561         * modules/tanl (configure.ac): ... to here.
37563 2011-05-21  Bruno Haible  <bruno@clisp.org>
37565         cosl: Move AC_LIBOBJ invocations to module description.
37566         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37567         * modules/cosl (configure.ac): ... to here.
37569 2011-05-21  Bruno Haible  <bruno@clisp.org>
37571         sinl: Move AC_LIBOBJ invocations to module description.
37572         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37573         * modules/sinl (configure.ac): ... to here.
37575 2011-05-21  Bruno Haible  <bruno@clisp.org>
37577         logl: Move AC_LIBOBJ invocations to module description.
37578         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37579         * modules/logl (configure.ac): ... to here.
37581 2011-05-21  Bruno Haible  <bruno@clisp.org>
37583         expl: Move AC_LIBOBJ invocations to module description.
37584         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37585         * modules/expl (configure.ac): ... to here.
37587 2011-05-21  Bruno Haible  <bruno@clisp.org>
37589         roundl: Move AC_LIBOBJ invocations to module description.
37590         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37591         * modules/roundl (configure.ac): ... to here.
37593 2011-05-21  Bruno Haible  <bruno@clisp.org>
37595         round: Move AC_LIBOBJ invocations to module description.
37596         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37597         * modules/round (configure.ac): ... to here.
37599 2011-05-21  Bruno Haible  <bruno@clisp.org>
37601         roundf: Move AC_LIBOBJ invocations to module description.
37602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37603         * modules/roundf (configure.ac): ... to here.
37605 2011-05-21  Bruno Haible  <bruno@clisp.org>
37607         truncl: Move AC_LIBOBJ invocations to module description.
37608         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37609         * modules/truncl (configure.ac): ... to here.
37611 2011-05-21  Bruno Haible  <bruno@clisp.org>
37613         trunc: Move AC_LIBOBJ invocations to module description.
37614         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37615         * modules/trunc (configure.ac): ... to here.
37617 2011-05-21  Bruno Haible  <bruno@clisp.org>
37619         truncf: Move AC_LIBOBJ invocations to module description.
37620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37621         * modules/truncf (configure.ac): ... to here.
37623 2011-05-21  Bruno Haible  <bruno@clisp.org>
37625         ceill: Move AC_LIBOBJ invocations to module description.
37626         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37627         * modules/ceill (configure.ac): ... to here.
37629 2011-05-21  Bruno Haible  <bruno@clisp.org>
37631         ceil: Move AC_LIBOBJ invocations to module description.
37632         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37633         * modules/ceil (configure.ac): ... to here.
37635 2011-05-21  Bruno Haible  <bruno@clisp.org>
37637         ceilf: Move AC_LIBOBJ invocations to module description.
37638         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37639         * modules/ceilf (configure.ac): ... to here.
37641 2011-05-21  Bruno Haible  <bruno@clisp.org>
37643         floorl: Respect rules for use of AC_LIBOBJ.
37644         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37645         * modules/floorl (configure.ac): ... to here.
37647 2011-05-21  Bruno Haible  <bruno@clisp.org>
37649         floor: Respect rules for use of AC_LIBOBJ.
37650         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37651         * modules/floor (configure.ac): ... to here.
37653 2011-05-21  Bruno Haible  <bruno@clisp.org>
37655         floorf: Move AC_LIBOBJ invocations to module description.
37656         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37657         * modules/floorf (configure.ac): ... to here.
37659 2011-05-20  Bruno Haible  <bruno@clisp.org>
37661         sqrtl: Respect rules for use of AC_LIBOBJ.
37662         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37663         * modules/sqrtl (configure.ac): ... to here.
37665 2011-05-20  Bruno Haible  <bruno@clisp.org>
37667         ldexpl: Respect rules for use of AC_LIBOBJ.
37668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37669         * modules/ldexpl (configure.ac): ... to here.
37671 2011-05-20  Bruno Haible  <bruno@clisp.org>
37673         frexpl*: Respect rules for use of AC_LIBOBJ.
37674         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37675         invocation from here...
37676         * modules/frexpl (configure.ac): ... to here.
37677         * modules/frexpl-nolibm (configure.ac): ... and here.
37679 2011-05-20  Bruno Haible  <bruno@clisp.org>
37681         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37682         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37683         invocation from here...
37684         * modules/frexp (configure.ac): ... to here.
37685         * modules/frexp-nolibm (configure.ac): ... and here.
37687 2011-05-20  Bruno Haible  <bruno@clisp.org>
37689         isnan: Respect rules for use of AC_LIBOBJ.
37690         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37691         invocations here.
37692         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37693         REPLACE_ISNAN.
37694         * modules/isnand (configure.ac): Likewise.
37695         * modules/isnanl (configure.ac): Likewise.
37697 2011-05-20  Bruno Haible  <bruno@clisp.org>
37699         isnanl*: Respect rules for use of AC_LIBOBJ.
37700         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37701         invocation from here...
37702         * modules/isnanl (configure.ac): ... to here.
37703         * modules/isnanl-nolibm (configure.ac): ... and here.
37705 2011-05-20  Bruno Haible  <bruno@clisp.org>
37707         isnand*: Move AC_LIBOBJ invocations to module description.
37708         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37709         invocation from here...
37710         * modules/isnand (configure.ac): ... to here.
37711         * modules/isnand-nolibm (configure.ac): ... and here.
37713 2011-05-20  Bruno Haible  <bruno@clisp.org>
37715         isnanf*: Move AC_LIBOBJ invocations to module description.
37716         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37717         invocation from here...
37718         * modules/isnanf (configure.ac): ... to here.
37719         * modules/isnanf-nolibm (configure.ac): ... and here.
37721 2011-05-20  Bruno Haible  <bruno@clisp.org>
37723         isnan*: Separate the AC_LIBOBJ invocations.
37724         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37725         AC_LIBOBJ invocation.
37726         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37727         here.
37728         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37729         AC_LIBOBJ invocation.
37730         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37731         here.
37732         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37733         AC_LIBOBJ invocation.
37734         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37735         here.
37736         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37738 2011-05-08  Bruno Haible  <bruno@clisp.org>
37740         isinf: Move AC_LIBOBJ invocations to module description.
37741         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37742         * modules/isinf (configure.ac): ... to here.
37744 2011-05-08  Bruno Haible  <bruno@clisp.org>
37746         isfinite: Move AC_LIBOBJ invocations to module description.
37747         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37748         * modules/isfinite (configure.ac): ... to here.
37750 2011-05-08  Bruno Haible  <bruno@clisp.org>
37752         isblank: Move AC_LIBOBJ invocations to module description.
37753         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37754         here...
37755         * modules/isblank (configure.ac): ... to here.
37757 2011-05-08  Bruno Haible  <bruno@clisp.org>
37759         isapipe: Move AC_LIBOBJ invocations to module description.
37760         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37761         gl_PREREQ_ISAPIPE invocations from here...
37762         * modules/isapipe (configure.ac): ... to here.
37763         (Depends-on): Update condition.
37765 2011-05-08  Bruno Haible  <bruno@clisp.org>
37767         ioctl: Move AC_LIBOBJ invocations to module description.
37768         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37769         invocations from here...
37770         * modules/ioctl (configure.ac): ... to here.
37771         (Depends-on): Update condition.
37773 2011-05-08  Bruno Haible  <bruno@clisp.org>
37775         imaxdiv: Move AC_LIBOBJ invocations to module description.
37776         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37777         invocations from here...
37778         * modules/imaxdiv (configure.ac): ... to here.
37780 2011-05-08  Bruno Haible  <bruno@clisp.org>
37782         imaxabs: Move AC_LIBOBJ invocations to module description.
37783         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37784         invocations from here...
37785         * modules/imaxabs (configure.ac): ... to here.
37787 2011-05-08  Bruno Haible  <bruno@clisp.org>
37789         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37791         AC_LIBOBJ invocations from here...
37792         * modules/getaddrinfo (configure.ac): ... to here.
37793         (Depends-on): Add conditions.
37795 2011-05-08  Bruno Haible  <bruno@clisp.org>
37797         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37798         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37799         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37800         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37801         (gl_PREREQ_INET_PTON): ... from here.
37802         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37803         gl_PREREQ_INET_PTON here.
37804         (Depends-on): Update condition.
37806 2011-05-08  Bruno Haible  <bruno@clisp.org>
37808         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37809         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37810         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37811         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37812         (gl_PREREQ_INET_NTOP): ... from here.
37813         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37814         gl_PREREQ_INET_NTOP here.
37815         (Depends-on): Update condition.
37817 2011-05-08  Bruno Haible  <bruno@clisp.org>
37819         iconv_open: Move AC_LIBOBJ invocations to module description.
37820         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37821         AC_LIBOBJ invocations from here...
37822         * modules/iconv_open (configure.ac): ... to here.
37824 2011-05-08  Bruno Haible  <bruno@clisp.org>
37826         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37827         If module 'iconv_open' is among the main modules and module
37828         'iconv_open-utf' is among the tests dependencies, then
37829         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37830         return the special iconv_t values. Therefore iconv() and iconv_close()
37831         must support these special iconv_t values, already in lib, not only in
37832         tests.
37833         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37835         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37836         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37837         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37838         (Depends-on): Add the dependencies of iconv_open-utf.
37839         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37840         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37841         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37843 2011-05-08  Bruno Haible  <bruno@clisp.org>
37845         group-member: Move AC_LIBOBJ invocations to module description.
37846         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37847         gl_PREREQ_GROUP_MEMBER invocations from here...
37848         * modules/group-member (configure.ac): ... to here.
37850 2011-05-08  Bruno Haible  <bruno@clisp.org>
37852         grantpt: Move AC_LIBOBJ invocations to module description.
37853         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37854         invocations from here...
37855         * modules/grantpt (configure.ac): ... to here.
37857 2011-05-08  Bruno Haible  <bruno@clisp.org>
37859         glob: Move AC_LIBOBJ invocations to module description.
37860         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37861         from here...
37862         * modules/glob (configure.ac): ... to here.
37864 2011-05-08  Bruno Haible  <bruno@clisp.org>
37866         getusershell: Move AC_LIBOBJ invocations to module description.
37867         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37868         Move AC_LIBOBJ invocation from here...
37869         * modules/getusershell (configure.ac): ... to here.
37870         (Depends-on): Update condition.
37872 2011-05-08  Bruno Haible  <bruno@clisp.org>
37874         gettimeofday: Move AC_LIBOBJ invocations to module description.
37875         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37876         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37877         gl_PREREQ_GETTIMEOFDAY invocations from here...
37878         * modules/gettimeofday (configure.ac): ... to here.
37880 2011-05-08  Bruno Haible  <bruno@clisp.org>
37882         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37883         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37884         just gl_FUNC_TZSET.
37885         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37886         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37888         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37890 2011-05-08  Bruno Haible  <bruno@clisp.org>
37892         getsubopt: Move AC_LIBOBJ invocations to module description.
37893         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37894         gl_PREREQ_GETSUBOPT invocations from here...
37895         * modules/getsubopt (configure.ac): ... to here.
37897 2011-05-08  Bruno Haible  <bruno@clisp.org>
37899         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37900         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37901         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37902         * modules/getpass-gnu (configure.ac): ... to here.
37904 2011-05-08  Bruno Haible  <bruno@clisp.org>
37906         getpass: Move AC_LIBOBJ invocations to module description.
37907         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37908         gl_PREREQ_GETPASS invocations from here...
37909         * modules/getpass (configure.ac): ... to here.
37911 2011-05-08  Bruno Haible  <bruno@clisp.org>
37913         getpagesize: Move AC_LIBOBJ invocations to module description.
37914         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37915         from here...
37916         * modules/getpagesize (configure.ac): ... to here.
37918 2011-05-08  Bruno Haible  <bruno@clisp.org>
37920         getopt: Move AC_LIBOBJ invocations to module description.
37921         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37922         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37923         invocations from here...
37924         * modules/getopt-gnu (configure.ac): ... to here.
37925         * modules/getopt-posix (configure.ac): ... and here.
37926         (Depends-on): Update condition.
37928 2011-05-08  Bruno Haible  <bruno@clisp.org>
37930         getopt, argp: Respect rules for use of AC_LIBOBJ.
37931         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37932         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37933         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37934         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37936 2011-05-08  Bruno Haible  <bruno@clisp.org>
37938         getlogin_r: Move AC_LIBOBJ invocations to module description.
37939         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37940         gl_PREREQ_GETLOGIN_R invocations from here...
37941         * modules/getlogin_r (configure.ac): ... to here.
37943 2011-05-08  Bruno Haible  <bruno@clisp.org>
37945         getlogin: Move AC_LIBOBJ invocations to module description.
37946         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37947         here...
37948         * modules/getlogin (configure.ac): ... to here.
37950 2011-05-08  Bruno Haible  <bruno@clisp.org>
37952         getloadavg: Move AC_LIBOBJ invocations to module description.
37953         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37954         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37955         * modules/getloadavg (configure.ac): ... to here.
37957 2011-05-08  Bruno Haible  <bruno@clisp.org>
37959         gethrxtime: Move AC_LIBOBJ invocations to module description.
37960         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37961         LIB_GETHRXTIME from here...
37962         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37963         invocations from here...
37964         * modules/gethrxtime (configure.ac): ... to here.
37966 2011-05-08  Bruno Haible  <bruno@clisp.org>
37968         gethostname: Move AC_LIBOBJ invocations to module description.
37969         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37970         gl_PREREQ_GETHOSTNAME invocations from here...
37971         * modules/gethostname (configure.ac): ... to here.
37973 2011-05-08  Bruno Haible  <bruno@clisp.org>
37975         getgroups: Move AC_LIBOBJ invocations to module description.
37976         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37977         here...
37978         * modules/getgroups (configure.ac): ... to here.
37980 2011-05-08  Bruno Haible  <bruno@clisp.org>
37982         getdtablesize: Move AC_LIBOBJ invocations to module description.
37983         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37984         invocation from here...
37985         * modules/getdtablesize (configure.ac): ... to here.
37987 2011-05-08  Bruno Haible  <bruno@clisp.org>
37989         getdomainname: Move AC_LIBOBJ invocations to module description.
37990         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37991         gl_PREREQ_GETDOMAINNAME invocations from here...
37992         * modules/getdomainname (configure.ac): ... to here.
37994 2011-05-08  Bruno Haible  <bruno@clisp.org>
37996         getline: Move AC_LIBOBJ invocations to module description.
37997         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37998         invocations from here...
37999         * modules/getline (configure.ac): ... to here.
38001 2011-05-08  Bruno Haible  <bruno@clisp.org>
38003         getline: Simplify.
38004         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
38005         It's already handled through the module dependency.
38007 2011-05-08  Bruno Haible  <bruno@clisp.org>
38009         getdelim: Move AC_LIBOBJ invocations to module description.
38010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
38011         and gl_PREREQ_GETDELIM invocations from here...
38012         * modules/getdelim (configure.ac): ... to here.
38013         (Depends-on): Fix condition.
38015 2011-05-08  Bruno Haible  <bruno@clisp.org>
38017         getcwd: Move AC_LIBOBJ invocations to module description.
38018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
38019         invocations from here...
38020         * modules/getcwd (configure.ac): ... to here.
38022 2011-05-08  Bruno Haible  <bruno@clisp.org>
38024         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
38025         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
38026         here...
38027         * modules/getcwd-lgpl (configure.ac): ... to here.
38029 2011-05-07  Bruno Haible  <bruno@clisp.org>
38031         crypto/gc: Move AC_LIBOBJ invocations to module description.
38032         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
38033         * modules/crypto/gc (configure.ac): ... to here.
38035 2011-05-07  Bruno Haible  <bruno@clisp.org>
38037         fwriting: Move AC_LIBOBJ invocations to module description.
38038         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
38039         here...
38040         * modules/fwriting (configure.ac): ... to here.
38042 2011-05-07  Bruno Haible  <bruno@clisp.org>
38044         fwritable: Move AC_LIBOBJ invocations to module description.
38045         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
38046         here...
38047         * modules/fwritable (configure.ac): ... to here.
38049 2011-05-07  Bruno Haible  <bruno@clisp.org>
38051         futimens: Move AC_LIBOBJ invocations to module description.
38052         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
38053         here...
38054         * modules/futimens (configure.ac): ... to here.
38056 2011-05-07  Bruno Haible  <bruno@clisp.org>
38058         ftruncate: Move AC_LIBOBJ invocations to module description.
38059         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
38060         gl_PREREQ_FTRUNCATE invocations from here...
38061         * modules/ftruncate (configure.ac): ... to here.
38063 2011-05-07  Bruno Haible  <bruno@clisp.org>
38065         fsync: Move AC_LIBOBJ invocations to module description.
38066         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
38067         invocations from here...
38068         * modules/fsync (configure.ac): ... to here.
38070 2011-05-07  Bruno Haible  <bruno@clisp.org>
38072         fsusage: Move AC_LIBOBJ invocations to module description.
38073         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
38074         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
38075         * modules/fsusage (configure.ac): ... to here.
38077 2011-05-07  Bruno Haible  <bruno@clisp.org>
38079         freopen: Move AC_LIBOBJ invocations to module description.
38080         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
38081         invocations from here...
38082         * modules/freopen (configure.ac): ... to here.
38084 2011-05-07  Bruno Haible  <bruno@clisp.org>
38086         free: Move AC_LIBOBJ invocations to module description.
38087         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
38088         invocations from here...
38089         * modules/free (configure.ac): ... to here.
38091 2011-05-07  Bruno Haible  <bruno@clisp.org>
38093         freadable: Move AC_LIBOBJ invocations to module description.
38094         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
38095         here...
38096         * modules/freadable (configure.ac): ... to here.
38098 2011-05-07  Bruno Haible  <bruno@clisp.org>
38100         fpurge: Move AC_LIBOBJ invocations to module description.
38101         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
38102         invocations from here...
38103         * modules/fpurge (configure.ac): ... to here.
38105 2011-05-07  Bruno Haible  <bruno@clisp.org>
38107         fpending: Move AC_LIBOBJ invocations to module description.
38108         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
38109         gl_FUNC_FPENDING.
38110         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
38111         invocations from here...
38112         * modules/fpending (configure.ac): ... to here.
38114 2011-05-07  Bruno Haible  <bruno@clisp.org>
38116         fopen: Move AC_LIBOBJ invocations to module description.
38117         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
38118         invocations from here...
38119         * modules/fopen (configure.ac): ... to here.
38121 2011-05-07  Bruno Haible  <bruno@clisp.org>
38123         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38124         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38125         gl_FUNC_FNMATCH_POSIX.
38126         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38127         invocations from here...
38128         * modules/fnmatch (configure.ac): ... to here.
38129         * modules/fnmatch-gnu (configure.ac): ... and here.
38131 2011-05-07  Bruno Haible  <bruno@clisp.org>
38133         flock: Move AC_LIBOBJ invocations to module description.
38134         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38135         invocations from here...
38136         * modules/flock (configure.ac): ... to here.
38138 2011-05-07  Bruno Haible  <bruno@clisp.org>
38140         fileblocks: Move AC_LIBOBJ invocations to module description.
38141         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38142         gl_PREREQ_FILEBLOCKS invocations from here...
38143         * modules/fileblocks (configure.ac): ... to here.
38145 2011-05-06  Bruno Haible  <bruno@clisp.org>
38147         fflush: Move AC_LIBOBJ invocations to module description.
38148         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38149         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38150         invocations from here...
38151         * modules/fflush (configure.ac): ... to here.
38153 2011-05-06  Bruno Haible  <bruno@clisp.org>
38155         fdopendir: Move AC_LIBOBJ invocations to module description.
38156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38157         here...
38158         * modules/fdopendir (configure.ac): ... to here.
38159         (Depends-on): Improve conditions.
38161 2011-05-06  Bruno Haible  <bruno@clisp.org>
38163         _Exit: Move AC_LIBOBJ invocations to module description.
38164         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38165         invocations from here...
38166         * modules/_Exit (configure.ac): ... to here.
38168 2011-05-21  Bruno Haible  <bruno@clisp.org>
38170         euidaccess: Respect rules for use of AC_LIBOBJ.
38171         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38173         from here...
38174         * modules/euidaccess (configure.ac): ... to here.
38176 2011-05-06  Bruno Haible  <bruno@clisp.org>
38178         error: Move AC_LIBOBJ invocations to module description.
38179         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38180         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38181         invocations from here...
38182         * modules/error (configure.ac): ... to here.
38184 2011-05-06  Bruno Haible  <bruno@clisp.org>
38186         duplocale: Move AC_LIBOBJ invocations to module description.
38187         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38188         gl_PREREQ_DUPLOCALE invocations from here...
38189         * modules/duplocale (configure.ac): ... to here.
38191 2011-05-05  Bruno Haible  <bruno@clisp.org>
38193         dirfd: Move AC_LIBOBJ invocations to module description.
38194         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38195         gl_FUNC_DIRFD.
38196         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38197         here...
38198         * modules/dirfd (configure.ac): ... to here.
38199         (Depends-on): Fix condition.
38201 2011-05-05  Bruno Haible  <bruno@clisp.org>
38203         chown: Respect rules for use of AC_LIBOBJ.
38204         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38205         * modules/chown (configure.ac): ... to here.
38207 2011-05-05  Bruno Haible  <bruno@clisp.org>
38209         chdir-long: Move AC_LIBOBJ invocations to module description.
38210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38211         gl_PREREQ_CHDIR_LONG invocations from here...
38212         * modules/chdir-long (configure.ac): ... to here.
38214 2011-05-05  Bruno Haible  <bruno@clisp.org>
38216         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38217         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38218         from here...
38219         * modules/canonicalize-lgpl (configure.ac): ... to here.
38221 2011-05-05  Bruno Haible  <bruno@clisp.org>
38223         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38224         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38225         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38226         REPLACE_CALLOC.
38227         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38228         * modules/calloc-gnu (configure.ac): Likewise.
38230 2011-05-05  Bruno Haible  <bruno@clisp.org>
38232         btowc: Move AC_LIBOBJ invocations to module description.
38233         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38234         invocations from here...
38235         * modules/btowc (configure.ac): ... to here.
38237 2011-05-21  Bruno Haible  <bruno@clisp.org>
38239         atexit: Move AC_LIBOBJ invocations to module description.
38240         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38242         here...
38243         * modules/atexit (configure.ac): ... to here.
38245 2011-05-05  Bruno Haible  <bruno@clisp.org>
38247         atoll: Move AC_LIBOBJ invocations to module description.
38248         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38249         invocations from here...
38250         * modules/atoll (configure.ac): ... to here.
38252 2011-05-05  Bruno Haible  <bruno@clisp.org>
38254         argz: Move AC_LIBOBJ invocations to module description.
38255         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38256         * modules/argz (configure.ac): ... to here.
38258 2011-05-05  Bruno Haible  <bruno@clisp.org>
38260         alphasort: Move AC_LIBOBJ invocations to module description.
38261         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38262         gl_PREREQ_ALPHASORT invocations from here...
38263         * modules/alphasort (configure.ac): ... to here.
38265 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38267         verify: new macro verify_expr; verify_true deprecated
38268         * NEWS: Mention this.
38269         * doc/verify.texi (Compile-time Assertions): Document this.
38270         * lib/verify.h (verify_true): Deprecate.
38271         (verify_expr): New macro.
38272         * tests/test-verify.c (function): Test verify_expr.
38274 2011-06-14  Jim Meyering  <meyering@redhat.com>
38276         init.sh: give more portable redirection-related advice in a comment
38277         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38278         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38279         for lots of discussion.  Stefano Lattarini suggested the solution
38280         of putting "9>&2" after the command.  Reported by Bruno Haible.
38282 2011-06-13  Bruno Haible  <bruno@clisp.org>
38284         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38286         'none'.
38288 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38290         ftoastr: use strtof only if HAVE_STRTOF
38291         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38292         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38293         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38294         * modules/ftoastr (configure.ac): Check for strtof.
38296 2011-06-13  Bruno Haible  <bruno@clisp.org>
38298         gnulib-tool: Addendum to 2011-06-08 commit.
38299         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38300         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38302 2011-06-13  Bruno Haible  <bruno@clisp.org>
38304         fseeko: Provide a non-inline replacement of fseek().
38305         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38306         * modules/fseeko (Depends-on): Add fseek.
38307         * modules/fseek (License): Change to LGPLv2+.
38309 2011-06-13  Bruno Haible  <bruno@clisp.org>
38311         ftello: Provide a non-inline replacement of ftell().
38312         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38313         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38314         not have ftello() (such as on mingw).
38315         * modules/ftello (Depends-on): Add ftell.
38316         * modules/ftell (License): Change to LGPLv2+.
38318 2011-05-07  Bruno Haible  <bruno@clisp.org>
38320         ftell: Move AC_LIBOBJ invocations to module description.
38321         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38322         * modules/ftell (configure.ac): ... to here.
38324 2011-05-07  Bruno Haible  <bruno@clisp.org>
38326         ftello: Respect rules for use of AC_LIBOBJ.
38327         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38328         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38329         here...
38330         * modules/ftello (configure.ac): ... to here.
38332 2011-05-07  Bruno Haible  <bruno@clisp.org>
38334         fseeko: Simplify.
38335         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38336         (gl_FUNC_FSEEKO): Inline it here.
38338 2011-05-07  Bruno Haible  <bruno@clisp.org>
38340         fseek: Move AC_LIBOBJ invocations to module description.
38341         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38342         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38343         * modules/fseek (configure.ac): ... to here.
38345 2011-05-07  Bruno Haible  <bruno@clisp.org>
38347         fseek: Respect rules for use of AC_LIBOBJ.
38348         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38349         here...
38350         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38352 2011-05-07  Bruno Haible  <bruno@clisp.org>
38354         fseeko: Respect rules for use of AC_LIBOBJ.
38355         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38356         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38357         here...
38358         * modules/fseeko (configure.ac): ... to here.
38360 2011-06-13  Bruno Haible  <bruno@clisp.org>
38362         gnulib-tool: Allow comments in the 'Depends-on' section.
38363         * doc/gnulib.texi (Module description): Mention comment syntax in the
38364         Depends-on section.
38365         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38367 2011-06-13  Bruno Haible  <bruno@clisp.org>
38369         file-set.h: guard __attibute__ use, now that it's not always defined
38370         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38371         versions that support it.  This fixes a coreutils build failure with
38372         the vendor cc on HP-UX 11.31.
38374 2011-06-12  Bruno Haible  <bruno@clisp.org>
38376         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38377         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38378         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38379         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38380         (acl, aclsort): New declarations.
38381         (aclv_nontrivial): New declaration.
38382         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38383         (file_has_acl): Read also the second kind of HP-UX ACLs.
38384         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38385         kind of HP-UX ACLs if the first kind fails.
38386         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38387         second kind of HP-UX ACLs.
38388         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38389         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38390         agree.
38391         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38392         hpuxjfs.
38393         Handle hpuxjfs.
38394         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38395         hpuxjfs.
38396         Handle hpuxjfs.
38397         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38398         (func_test_same_acls): Use both lsacl and getacl.
38399         Handle hpuxjfs.
38400         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38401         (func_test_same_acls): Use both lsacl and getacl.
38402         Handle hpuxjfs.
38404 2011-06-12  Bruno Haible  <bruno@clisp.org>
38406         acl: Complete the 2010-08-10 fix.
38407         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38408         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38409         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38410         explicitly.
38411         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38412         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38414 2011-06-12  Bruno Haible  <bruno@clisp.org>
38416         spawn-pipe tests: Comments.
38417         * tests/test-spawn-pipe-child.c (main): Update comment.
38418         Reported by James Youngman <jay@gnu.org>.
38420 2011-06-11  James Youngman  <jay@gnu.org>
38422         New module 'stat-size'.
38423         * modules/stat-size: New module.  Provides macros for accessing
38424         file size information in instances of struct stat.  Depends on the
38425         fileblocks module because it calls st_blocks.
38426         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38427         * doc/gnulib.texi: Include stat-size.texi.
38428         * doc/stat-size.texi: Documentation for this module.
38429         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38430         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38431         AC_STRUCT_ST_BLOCKS.
38433 2011-06-09  Bruno Haible  <bruno@clisp.org>
38435         thread: Support pthreads-win32.
38436         * lib/glthread/thread.h (gl_thread_self): Define differently on
38437         pthreads-win32.
38438         (gl_null_thread): New declaration.
38439         (gl_thread_self_pointer): New macro.
38440         * lib/glthread/thread.c (gl_null_thread): New constant.
38441         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38442         gl_thread_self.
38443         * tests/test-tls.c: Likewise.
38444         Suggested by Paul Eggert. Reported by Eric Blake.
38446 2011-06-09  Bruno Haible  <bruno@clisp.org>
38448         thread: Fix confusion between NULL and 0.
38449         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38450         Reported by Paul Eggert.
38452 2011-06-09  Bruno Haible  <bruno@clisp.org>
38454         spawn-pipe tests: Avoid test failure on HP-UX 11.
38455         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38456         is closed.
38458 2011-06-09  Bruno Haible  <bruno@clisp.org>
38460         acl tests: Fix compilation error on HP-UX 11.
38461         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38463 2011-06-09  Bruno Haible  <bruno@clisp.org>
38465         rmdir: Avoid test failure on HP-UX 10.20.
38466         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38467         EEXIST.
38469 2011-06-08  Eric Blake  <eblake@redhat.com>
38471         perror: fix test on mingw
38472         * modules/perror-tests (Depends-on): Add dup2.
38474         strerror_r-posix: fix on MacOS
38475         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38476         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38477         logic bug.
38478         * lib/strerror_r.c (strerror_r): Fix the bug.
38479         * lib/strerror.c (strerror): Likewise.
38480         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38481         problem.
38482         * doc/posix-functions/strerror.texi (strerror): Likewise.
38483         * doc/posix-functions/perror.texi (perror): Likewise.
38484         * tests/test-strerror.c (main): Enhance test.
38485         * tests/test-strerror_r.c (main): Likewise.
38487 2011-06-08  Bruno Haible  <bruno@clisp.org>
38489         gnulib-tool: Better isolation between different gnulib-tool invocations.
38490         * gnulib-tool: New option --witness-c-macro.
38491         (witness_c_macro): New variable.
38492         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38493         AM_CPPFLAGS define it as a C macro.
38494         (func_emit_tests_Makefile_am): Likewise.
38495         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38496         read it from there.
38497         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38498         m4_define, not AC_DEFUN.
38499         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38500         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38501         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38502         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38503         s|...|...|, to substitute the values of the GNULIB_* module indicator
38504         variables.
38505         * modules/dirent (Makefile.am): Likewise.
38506         * modules/fcntl-h (Makefile.am): Likewise.
38507         * modules/iconv-h (Makefile.am): Likewise.
38508         * modules/langinfo (Makefile.am): Likewise.
38509         * modules/locale (Makefile.am): Likewise.
38510         * modules/math (Makefile.am): Likewise.
38511         * modules/netdb (Makefile.am): Likewise.
38512         * modules/poll-h (Makefile.am): Likewise.
38513         * modules/pty (Makefile.am): Likewise.
38514         * modules/search (Makefile.am): Likewise.
38515         * modules/signal (Makefile.am): Likewise.
38516         * modules/spawn (Makefile.am): Likewise.
38517         * modules/stdio (Makefile.am): Likewise.
38518         * modules/stdlib (Makefile.am): Likewise.
38519         * modules/string (Makefile.am): Likewise.
38520         * modules/sys_ioctl (Makefile.am): Likewise.
38521         * modules/sys_select (Makefile.am): Likewise.
38522         * modules/sys_socket (Makefile.am): Likewise.
38523         * modules/sys_stat (Makefile.am): Likewise.
38524         * modules/sys_times (Makefile.am): Likewise.
38525         * modules/sys_utsname (Makefile.am): Likewise.
38526         * modules/sys_wait (Makefile.am): Likewise.
38527         * modules/termios (Makefile.am): Likewise.
38528         * modules/time (Makefile.am): Likewise.
38529         * modules/unistd (Makefile.am): Likewise.
38530         * modules/wchar (Makefile.am): Likewise.
38532 2011-06-08  Eric Blake  <eblake@redhat.com>
38534         strerror: simplify replacement
38535         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38536         * modules/strerror (configure.ac): No prereqs needed here...
38537         * modules/strerror-override (configure.ac): ...but this needs it.
38538         (Files): Add file for needed prereq macro.
38540 2011-06-08  Bruno Haible  <bruno@clisp.org>
38542         strerror_r-posix: Tweaks.
38543         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38544         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38546         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38547         (gl_FUNC_STRERROR_R): ... to here.
38548         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38550 2011-06-07  Eric Blake  <eblake@redhat.com>
38552         perror: document fixed bugs
38553         * doc/posix-functions/perror.texi (perror): Document recent
38554         patches.
38556 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38558         stat-time: get_stat_birthtime failure is better-defined
38559         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38560         return a timestamp whose tv_sec and tv_nsec values are both -1.
38561         Previously, the spec said only that the tv_nsec value was negative.
38562         This upward-compatible change simplifies GNU tar a bit.
38564 2011-06-07  Eric Blake  <eblake@redhat.com>
38566         strerror_r-posix: work around cygwin 1.7.9
38567         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38568         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38569         bug without replacing strerror_r.
38570         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38571         strerror_r is buggy, but without requiring strerror_r compilation.
38572         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38574         test-perror: relax test to ignore cygwin bug
38575         * tests/test-perror2.c (main): Relax test on requiring detection
38576         of stream errors, and use unbuffered stream.
38577         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38578         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38579         * doc/posix-functions/fputc.texi (fputc): Likewise.
38580         * doc/posix-functions/fputs.texi (fputs): Likewise.
38581         * doc/posix-functions/fputws.texi (fputws): Likewise.
38582         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38583         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38584         * doc/posix-functions/getopt.texi (getopt): Likewise.
38585         * doc/posix-functions/perror.texi (perror): Likewise.
38586         * doc/posix-functions/printf.texi (printf): Likewise.
38587         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38588         * doc/posix-functions/psignal.texi (psignal): Likewise.
38589         * doc/posix-functions/putc.texi (putc): Likewise.
38590         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38591         Likewise.
38592         * doc/posix-functions/putchar.texi (putchar): Likewise.
38593         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38594         Likewise.
38595         * doc/posix-functions/puts.texi (puts): Likewise.
38596         * doc/posix-functions/putwc.texi (putwc): Likewise.
38597         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38598         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38599         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38600         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38601         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38602         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38603         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38604         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38606 2011-05-22  Bruno Haible  <bruno@clisp.org>
38608         strerror: Move AC_LIBOBJ invocations to module description.
38609         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38610         gl_PREREQ_STRERROR invocations from here...
38611         * modules/strerror (configure.ac): ... to here.
38613 2011-05-21  Bruno Haible  <bruno@clisp.org>
38615         perror: Use common idiom.
38616         * modules/perror (configure.ac): Reorder statements.
38618 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38620         tests: fix usage message in 'mktempd_'
38621         * tests/init.sh (mktempd_): In the usage message, use literal
38622         'mktempd_', not '$ME' (which is even undefined), as the name of
38623         the subroutine.
38625 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38627         tests init: new function 'fatal_', for hard errors
38628         Before this patch, the only way offered by tests/init.sh to
38629         properly signal a hard error was the `framework_failure_'
38630         function.  But the error message issued by that function,
38631         as its name would suggest, refers to a set-up failure in the
38632         testsuite, while hard errors can obviously also be due to
38633         other reasons.  The best way to fix this inconsistency is to
38634         introduce a new function with a more general error message.
38635         * tests/init.sh (fatal_): New function.
38637 2011-06-06  Eric Blake  <eblake@redhat.com>
38639         canonicalize-lgpl: use common idiom
38640         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38641         over newer POSIX -Rf.
38642         Reported by Bruno Haible.
38644         canonicalize-lgpl: work around AIX realpath bug
38645         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38646         * doc/posix-functions/realpath.texi (realpath): Document it.
38647         Reported by Bruno Haible.
38649         strerror: work around FreeBSD bug
38650         * lib/strerror.c (strerror): Special case 0.
38651         Reported by Bruno Haible.
38653         strerror-override: avoid bloating errno module
38654         * modules/errno (Files, configure.ac): Move replacement strings...
38655         * modules/strerror-override: ...to new module.
38656         * modules/strerror (Depends-on): Add strerror-override.
38657         * modules/strerror_r-posix (Depends-on): Likewise.
38658         * MODULES.html.sh: Document new module.
38659         Reported by Bruno Haible.
38661 2011-06-06  Bruno Haible  <bruno@clisp.org>
38663         spawn-pipe tests: Rename program.
38664         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38665         * tests/test-spawn-pipe-child.c: Update comment.
38666         * tests/test-spawn-pipe.sh: Update.
38667         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38669         spawn-pipe tests: Link the child program only against libc.
38670         * tests/test-spawn-pipe-child.c: New file, extracted from
38671         tests/test-spawn-pipe.c.
38672         (main): Expect only one argument.
38673         (is_open): New function, copied from tests/test-pipe.c.
38674         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38675         (child_main): Remove function.
38676         (test_pipe): Pass only one argument to the child program.
38677         (main): Remove child process code. Expect the child program's name as
38678         first argument.
38679         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38680         argument.
38681         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38682         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38683         test-spawn-pipe-child against no libraries.
38685 2011-06-06  Bruno Haible  <bruno@clisp.org>
38687         careadlinkat: Avoid mismatch between ssize_t and int.
38688         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38689         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38691 2011-06-06  Jim Meyering  <meyering@redhat.com>
38693         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38694         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38695         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38697 2011-06-05  Bruno Haible  <bruno@clisp.org>
38699         ansi-c++-opt: Interoperability with libtool.
38700         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38701         set the variable to "no", not to ":".
38702         * NEWS: Mention the change.
38704 2011-06-05  Bruno Haible  <bruno@clisp.org>
38706         acl: Fix test failure on AIX 7.
38707         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38708         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38710 2011-06-05  Bruno Haible  <bruno@clisp.org>
38712         pipe-filter-ii: Fix test failure on AIX and IRIX.
38713         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38714         with EAGAIN, retry with a smaller buffer size.
38716 2011-06-05  Bruno Haible  <bruno@clisp.org>
38718         localename: Fix link dependencies.
38719         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38720         * modules/localename-tests (Makefile.am): Link test-localename with
38721         $(LIBTHREAD).
38723 2011-06-05  Bruno Haible  <bruno@clisp.org>
38725         error: Avoid gcc warning.
38726         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38728 2011-06-05  Bruno Haible  <bruno@clisp.org>
38730         unsetenv: Avoid gcc warning.
38731         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38733 2011-06-05  Bruno Haible  <bruno@clisp.org>
38735         setenv: Avoid gcc warning.
38736         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38738 2011-06-05  Bruno Haible  <bruno@clisp.org>
38740         sys_select: Ensure memset is declared also on AIX 7.
38741         * lib/sys_select.in.h: Include <string.h> also on AIX.
38742         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38743         self-contained also on AIX 7.1.
38745 2011-06-04  Jim Meyering  <meyering@redhat.com>
38747         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38748         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38749         function name, "error".
38750         (_gl_translatable_diag_func_re): New configurable variable.
38752 2011-06-04  Bruno Haible  <bruno@clisp.org>
38754         getopt: Avoid gcc warning.
38755         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38757 2011-06-04  Bruno Haible  <bruno@clisp.org>
38759         strerror_r: Fix comments.
38760         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38761         commit.
38763 2011-06-04  Bruno Haible  <bruno@clisp.org>
38765         perror: Fix compilation error.
38766         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38767         Undefine fprintf, not sprintf.
38768         * modules/perror (Depends-on): Remove intprops, verify.
38770 2011-06-04  Bruno Haible  <bruno@clisp.org>
38772         setlocale: Enable replacement on Cygwin 1.5.
38773         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38774         Cygwin 1.5.x.
38775         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38776         LC_CTYPE category also exists on Cygwin 1.5.x.
38778 2011-06-04  Bruno Haible  <bruno@clisp.org>
38780         strerror-override: Don't disable symbol renamings.
38781         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38782         * lib/strerror-override.c: Include config.h.
38783         (strerror_override): Don't undefine.
38785 2011-06-03  Bruno Haible  <bruno@clisp.org>
38787         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38788         * lib/localename.h: Update copyright header.
38789         * lib/localename.c: Likewise.
38790         * lib/relocatable.h: Likewise.
38791         * lib/relocatable.c: Likewise.
38793 2011-06-02  Bruno Haible  <bruno@clisp.org>
38795         doc: Fix a module name.
38796         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38798 2011-06-02  Bruno Haible  <bruno@clisp.org>
38800         pipe2: Remove dependency on 'nonblocking' module.
38801         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38802         O_NONBLOCK is defined by gnulib.
38803         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38804         is zero.
38805         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38806         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38807         defined by gnulib.
38808         (get_nonblocking_flag): New function.
38809         (main): Test O_NONBLOCK flag only if it is nonzero.
38810         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38812 2011-06-03  Jim Meyering  <meyering@redhat.com>
38814         maint: three new prohibit-header-without-use rules
38815         Prohibit use of cloexec.h, posixver.h, same.h without use.
38816         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38817         (sc_prohibit_posixver_without_use): Likewise.
38818         (sc_prohibit_same_without_use): Likewise.
38820 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38822         allocator: 'die' routine is now given requested size
38823         * lib/allocator.h (struct allocator.die): New size arg.
38824         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38825         If the actual problem is an ssize_t limitation, not a size_t or
38826         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38828 2011-06-01  Eric Blake  <eblake@redhat.com>
38830         strerror: drop strerror_r dependency
38831         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38832         * lib/strerror-override.c (strerror_override): ...to new file.
38833         * lib/strerror-override.h: Add prototype.
38834         * lib/strerror-impl.h: Delete.
38835         * lib/strerror.c (strerror): New implementation.
38836         * modules/errno (Files): Add new files.
38837         (configure.ac): Compile new file as appropriate.
38838         * modules/strerror (Files): Drop unused file.
38839         (Depends-on): Drop strerror_r-posix.
38840         * MODULES.html.sh: Document strerror_r-posix.
38841         Requested by Sam Steingold.
38843         perror: call strerror_r directly
38844         * modules/perror (Files): Drop strerror-impl.h.
38845         * lib/perror.c (perror): Use our own stack buffer, rather than
38846         calling a wrapper that uses static storage.
38847         * doc/posix-functions/perror.texi (perror): Document a limitation
38848         of our replacement.
38850         strerror_r: fix includes for FreeBSD
38851         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38852         since we use abort on some platforms.
38853         Reported by Matthias Bolte.
38855 2011-05-31  Bruno Haible  <bruno@clisp.org>
38857         Fix link errors in tests: openat-die uses gettext-h.
38858         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38859         against $(LIBINTL).
38860         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38861         against $(LIBINTL).
38862         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38863         $(LIBINTL).
38864         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38865         against $(LIBINTL).
38866         * modules/linkat-tests (Makefile.am): Link test-linkat against
38867         $(LIBINTL).
38868         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38869         $(LIBINTL).
38870         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38871         against $(LIBINTL).
38872         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38873         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38874         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38875         $(LIBINTL).
38876         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38877         $(LIBINTL).
38878         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38879         $(LIBINTL).
38880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38882 2011-05-31  Bruno Haible  <bruno@clisp.org>
38884         Fix link errors in tests: wait-process uses gettext-h.
38885         * modules/nonblocking-pipe-tests (Makefile.am): Set
38886         test_nonblocking_pipe_main_LDADD.
38887         * modules/nonblocking-socket-tests (Makefile.am): Link
38888         test-nonblocking-socket-main against $(LIBINTL).
38889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38891 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38893         assert-h: work around 'verify' incompatibility
38894         * lib/verify.h: Use @...@ directives, not ifdef.
38895         * modules/assert-h (assert.h): Implement the directives.
38896         (assert.h): Substitute the symbol-prefix more consistently.
38898 2011-05-29  Jim Meyering  <meyering@redhat.com>
38900         trim: remove three superfluous assignments
38901         * lib/trim.c (trim2): Remove three superfluous assignments
38902         and correct brace positioning.
38904 2011-05-29  Bruno Haible  <bruno@clisp.org>
38906         wctype-h: Avoid namespace pollution on Solaris 2.6.
38907         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38908         identifiers.
38909         * doc/posix-headers/wctype.texi: Mention the problem.
38910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38912 2011-05-28  Jim Meyering  <meyering@redhat.com>
38914         parse-datetime.y: accommodate -Wstrict-overflow
38915         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38916         placate -Wstrict-overflow.
38918         trim: avoid a warning from -O2 -Wstrict-overflow
38919         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38921 2011-05-29  Bruno Haible  <bruno@clisp.org>
38923         gnulib-tool: Fix bug in yesterday's commit.
38924         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38925         twice.
38927 2011-05-29  Bruno Haible  <bruno@clisp.org>
38929         Allow multiple gnulib generated include files to be combined.
38930         * gnulib-tool (func_compute_include_guard_prefix): New function.
38931         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38932         ${gl_include_guard_prefix} references.
38933         (func_import, func_create_testdir): Invoke
38934         func_compute_include_guard_prefix.
38935         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38936         * lib/ctype.in.h: Likewise.
38937         * lib/dirent.in.h: Likewise.
38938         * lib/errno.in.h: Likewise.
38939         * lib/fcntl.in.h: Likewise.
38940         * lib/float.in.h: Likewise.
38941         * lib/getopt.in.h: Likewise.
38942         * lib/iconv.in.h: Likewise.
38943         * lib/langinfo.in.h: Likewise.
38944         * lib/locale.in.h: Likewise.
38945         * lib/math.in.h: Likewise.
38946         * lib/netdb.in.h: Likewise.
38947         * lib/netinet_in.in.h: Likewise.
38948         * lib/poll.in.h: Likewise.
38949         * lib/pthread.in.h: Likewise.
38950         * lib/pty.in.h: Likewise.
38951         * lib/sched.in.h: Likewise.
38952         * lib/se-selinux.in.h: Likewise.
38953         * lib/search.in.h: Likewise.
38954         * lib/signal.in.h: Likewise.
38955         * lib/spawn.in.h: Likewise.
38956         * lib/stdarg.in.h: Likewise.
38957         * lib/stddef.in.h: Likewise.
38958         * lib/stdint.in.h: Likewise.
38959         * lib/stdio.in.h: Likewise.
38960         * lib/stdlib.in.h: Likewise.
38961         * lib/string.in.h: Likewise.
38962         * lib/strings.in.h: Likewise.
38963         * lib/sys_file.in.h: Likewise.
38964         * lib/sys_ioctl.in.h: Likewise.
38965         * lib/sys_select.in.h: Likewise.
38966         * lib/sys_socket.in.h: Likewise.
38967         * lib/sys_stat.in.h: Likewise.
38968         * lib/sys_time.in.h: Likewise.
38969         * lib/sys_times.in.h: Likewise.
38970         * lib/sys_uio.in.h: Likewise.
38971         * lib/sys_utsname.in.h: Likewise.
38972         * lib/sys_wait.in.h: Likewise.
38973         * lib/sysexits.in.h: Likewise.
38974         * lib/termios.in.h: Likewise.
38975         * lib/time.in.h: Likewise.
38976         * lib/unistd.in.h: Likewise.
38977         * lib/wchar.in.h: Likewise.
38978         * lib/wctype.in.h: Likewise.
38979         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38980         * modules/ctype (Makefile.am): Likewise.
38981         * modules/dirent (Makefile.am): Likewise.
38982         * modules/errno (Makefile.am): Likewise.
38983         * modules/fcntl-h (Makefile.am): Likewise.
38984         * modules/float (Makefile.am): Likewise.
38985         * modules/getopt-posix (Makefile.am): Likewise.
38986         * modules/iconv-h (Makefile.am): Likewise.
38987         * modules/langinfo (Makefile.am): Likewise.
38988         * modules/locale (Makefile.am): Likewise.
38989         * modules/math (Makefile.am): Likewise.
38990         * modules/netdb (Makefile.am): Likewise.
38991         * modules/netinet_in (Makefile.am): Likewise.
38992         * modules/poll-h (Makefile.am): Likewise.
38993         * modules/pthread (Makefile.am): Likewise.
38994         * modules/pty (Makefile.am): Likewise.
38995         * modules/sched (Makefile.am): Likewise.
38996         * modules/search (Makefile.am): Likewise.
38997         * modules/selinux-h (Makefile.am): Likewise.
38998         * modules/signal (Makefile.am): Likewise.
38999         * modules/spawn (Makefile.am): Likewise.
39000         * modules/stdarg (Makefile.am): Likewise.
39001         * modules/stddef (Makefile.am): Likewise.
39002         * modules/stdint (Makefile.am): Likewise.
39003         * modules/stdio (Makefile.am): Likewise.
39004         * modules/stdlib (Makefile.am): Likewise.
39005         * modules/string (Makefile.am): Likewise.
39006         * modules/strings (Makefile.am): Likewise.
39007         * modules/sys_file (Makefile.am): Likewise.
39008         * modules/sys_ioctl (Makefile.am): Likewise.
39009         * modules/sys_select (Makefile.am): Likewise.
39010         * modules/sys_socket (Makefile.am): Likewise.
39011         * modules/sys_stat (Makefile.am): Likewise.
39012         * modules/sys_time (Makefile.am): Likewise.
39013         * modules/sys_times (Makefile.am): Likewise.
39014         * modules/sys_uio (Makefile.am): Likewise.
39015         * modules/sys_utsname (Makefile.am): Likewise.
39016         * modules/sys_wait (Makefile.am): Likewise.
39017         * modules/sysexits (Makefile.am): Likewise.
39018         * modules/termios (Makefile.am): Likewise.
39019         * modules/time (Makefile.am): Likewise.
39020         * modules/unistd (Makefile.am): Likewise.
39021         * modules/wchar (Makefile.am): Likewise.
39022         * modules/wctype-h (Makefile.am): Likewise.
39023         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
39025 2011-05-29  Bruno Haible  <bruno@clisp.org>
39027         assert-h: Allow multiple gnulib generated replacements to coexist.
39028         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
39030 2011-05-29  Bruno Haible  <bruno@clisp.org>
39032         argp: Allow coexistence with strerror_r-posix module.
39033         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
39034         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
39035         by gnulib's <string.h> replacement), assume it has the POSIX signature,
39036         not the glibc signature.
39038 2011-05-28  Bruno Haible  <bruno@clisp.org>
39040         gnulib-tool: Alternative structure of testdirs, similar to --import.
39041         * gnulib-tool: New option --single-configure.
39042         (func_usage): Document it.
39043         (single_configure): New variable.
39044         (func_modules_transitive_closure_separately,
39045         func_modules_transitive_closure_separately,
39046         func_determine_use_libtests, func_modules_add_dummy_separately,
39047         func_modules_to_filelist_separately): New functions, extracted from
39048         func_import.
39049         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
39050         (func_import): Use the new functions.
39051         (func_create_testdir): Set final_modules. Handle $single_configure =
39052         true case.
39054 2011-05-28  Bruno Haible  <bruno@clisp.org>
39056         getloadavg: Remove an unreliable safety check.
39057         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
39058         getloadavg.c is in place.
39059         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
39060         Reported by Sam Steingold <sds@gnu.org>.
39062 2011-05-28  Bruno Haible  <bruno@clisp.org>
39064         doc: Cleanup yet another file produced by texinfo.tex.
39065         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
39067 2011-05-28  Bruno Haible  <bruno@clisp.org>
39069         Finish the conditional dependencies mechanism.
39070         * gnulib-tool: New option --no-conditional-dependencies.
39071         (func_usage): Document it. Don't mark --conditional-dependencies as
39072         experimental.
39073         (cond_dependencies): The possible values can now be true, false, empty.
39074         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
39075         (func_import): Store setting in gnulib-cache.m4 and read it from there.
39076         * doc/gnulib-tool.texi (Conditional dependencies): New section.
39078 2011-05-28  Bruno Haible  <bruno@clisp.org>
39080         doc: Use a recent texinfo.tex.
39081         * doc/Makefile (tex_opts): New variable.
39082         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
39084 2011-05-28  Jim Meyering  <meyering@redhat.com>
39086         intprops.h: adjust comment to match code change
39087         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
39088         only once, it *may* have side effects.  Also fix an unrelated typo.
39089         (_GL_INT_SIGNED): Likewise.
39091 2011-05-26  Simon Josefsson  <simon@josefsson.org>
39093         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
39095 2011-05-26  Bruno Haible  <bruno@clisp.org>
39097         mbsrchr: Avoid collision with system function on Interix.
39098         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
39099         Reported by Markus Duft <mduft@gentoo.org>.
39101 2011-05-15  James Youngman  <jay@gnu.org>
39103         getopt: for ambiguous options, enumerate the possibilities.
39104         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
39105         the ambiguous options when an ambiguous prefix is given. This was
39106         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
39107         glibc change was
39108         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
39110 2011-05-25  Eric Blake  <eblake@redhat.com>
39112         getcwd: work around mingw bug
39113         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
39114         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39115         Reported by Matthias Bolte.
39117 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
39119         test-intprops: disable -Wtype-limits diagnostics
39120         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
39121         diagnostics.  Otherwise, the integer overflow macros generate many
39122         diagnostics.  Reported by Jim Meyering in
39123         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39125         intprops: shorten, to pacify gcc -Woverlength-strings
39126         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39127         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39128         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39129         likely to run afoul of C compiler limits for string constant lengths.
39130         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39132 2011-05-24  Eric Blake  <eblake@redhat.com>
39134         docs: document recently fixed glibc printf bug
39135         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39136         * doc/posix-functions/printf.texi (printf): Likewise.
39137         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39138         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39140         closein-tests: convert to init.sh
39141         * modules/closein-tests (Files): Add init.sh
39142         * tests/test-closein.sh Use it.
39144         yesno-tests: convert to init.sh
39145         * modules/yesno-tests (Files): Add init.sh.
39146         * tests/test-yesno.sh: Use it.
39148         atexit-tests: ensure reliable exit status
39149         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39150         Reported by Bruno Haible.
39152 2011-05-24  Bruno Haible  <bruno@clisp.org>
39154         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39155         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39156         gl_PREREQ_STRERROR_R invocations from here...
39157         * modules/strerror_r-posix (configure.ac): ... to here.
39159 2011-05-24  Eric Blake  <eblake@redhat.com>
39161         strerror_r: fix missing header
39162         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39164         strerror_r: fix AIX test failures
39165         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39166         ERANGE failure.
39168         strerror_r: fix Solaris test failures
39169         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39170         failures.
39171         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39173         strerror_r: enforce POSIX recommendations
39174         * lib/strerror_r.c (safe_copy): New helper method.
39175         (strerror_r): Guarantee a non-empty string.
39176         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39177         recent POSIX rulings and to match our strerror guarantees.
39178         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39180 2011-05-24  Jim Meyering  <meyering@redhat.com>
39182         test-perror2.c: avoid warning about unused variable
39183         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39185 2011-05-24  Eric Blake  <eblake@redhat.com>
39187         perror: avoid spurious test failure on HP-UX
39188         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39190         tests: fix logic bug in init.sh
39191         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39192         shell.
39194 2011-05-24  Jim Meyering  <meyering@redhat.com>
39196         utimensat: do not reference an out-of-scope buffer
39197         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39198         declared in an inner scope, yet "times" would be dereferenced outside
39199         the scope in which "ts" was valid.
39200         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39201         of ts[2] "out/up", so that the use of aliased "times" (via
39202         "times = ts;") does not end up referencing an out-of-scope "ts"
39204         opendir-safer.c: don't clobber errno; don't close negative FD
39205         * lib/opendir-safer.c (opendir_safer):
39206         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39207         file descriptor, and more importantly, don't clobber the
39208         offending errno value with EINVAL.  Before, upon failure
39209         of dup_safer, we would pass the negative file descriptor to
39210         fdopendir, which would clobber errno.
39212 2011-05-23  Bruno Haible  <bruno@clisp.org>
39214         idcache: Fix module description.
39215         * modules/idcache (Include): Set to "idcache.h".
39217 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39219         gnulib-tool: fix portability problem with MacOS sed
39220         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39221         before the "}".  Problem reported by Leo in
39222         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39223         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39224         sed_extract_condition1, sed_extract_condition2.
39226 2011-05-23  Bruno Haible  <bruno@clisp.org>
39228         hash: Simplify autoconf macro.
39229         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39231 2011-05-23  Bruno Haible  <bruno@clisp.org>
39233         getugroups: Fix module description.
39234         * modules/getugroups (Include): Set to "getugroups.h".
39236 2011-05-23  Bruno Haible  <bruno@clisp.org>
39238         linkat: Simplify autoconf macro.
39239         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39241 2011-05-23  Bruno Haible  <bruno@clisp.org>
39242             Eric Blake  <eblake@redhat.com>
39244         linkat, renameat: Update dependencies.
39245         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39246         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39247         symlinkat.
39249 2011-05-23  Jim Meyering  <meyering@redhat.com>
39251         maint.mk: more tight_scope improvements
39252         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39253         (_gl_TS_headers): Define only in if-0'd block.
39254         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39255         sometimes we must *not* use it.  Adjust uses accordingly.
39256         (sc_tight_scope): Use much simpler grep-based test to determine
39257         whether we skip this rule.
39259         maint.mk: generalize/improve the tight-scope rule
39260         * top/maint.mk: Emit a warning when the test is skipped.
39261         (_gl_TS_dir): Add $(srcdir)/ prefix.
39262         (_gl_TS_function_match): Simplify, rather than trying
39263         to enumerate common types.  Otherwise, it would fail to match an
39264         "extern unsigned char const *" declaration in idutils.
39265         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39266         a way to support use of that type of macro.
39267         (_gl_TS_var_match): Simplify regexp.
39268         (_gl_TS_obj_files): New configurable variable.
39269         (_gl_TS_headers): Likewise.
39271 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39273         verify: fix bug when gnulib <assert.h> is also included
39274         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39275         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39276         Perhaps there's a better way, but this fixes the immediate problem.
39277         Problem reported by Bruno Haible in
39278         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39280 2011-05-22  Bruno Haible  <bruno@clisp.org>
39282         xgetcwd: Simplify autoconf macro.
39283         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39285 2011-05-22  Bruno Haible  <bruno@clisp.org>
39287         New module 'mktime-internal'.
39288         * modules/mktime-internal: New file.
39289         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39290         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39291         mktime_internal as a C macro if libc has __mktime_internal.
39292         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39293         conditions.
39294         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39296 2011-05-22  Bruno Haible  <bruno@clisp.org>
39298         timegm: Correct mktime replacement statements.
39299         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39300         defining mktime as a C macro. This completes a 2009-07-28 commit.
39302 2011-05-22  Bruno Haible  <bruno@clisp.org>
39304         timegm: Simplify autoconf macro.
39305         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39307 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39309         clock-time: change to LGPLv2+.
39310         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39311         BSD-like but we have no mark for that; this is good enough for now.
39313 2011-05-21  Bruno Haible  <bruno@clisp.org>
39315         strerror_r: Fix comments.
39316         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39318 2011-05-21  Bruno Haible  <bruno@clisp.org>
39320         relocatable-prog-wrapper: Fix possible link error.
39321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39322         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39323         (gl_FUNC_SETENV): ... to here.
39324         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39325         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39327 2011-05-21  Bruno Haible  <bruno@clisp.org>
39329         relocatable-prog-wrapper: Assume strerror() exists.
39330         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39331         m4/strerror.m4.
39332         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39333         * lib/relocwrapper.c: Remove mention of strerror module.
39334         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39336         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39337         C macro.
39339 2011-05-21  Bruno Haible  <bruno@clisp.org>
39341         select: Simplify replacement idiom.
39342         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39343         Win32 platforms.
39344         * lib/sys_select.in.h (select): Simplify accordingly.
39345         * modules/select (Depends-on): Likewise.
39347 2011-05-21  Bruno Haible  <bruno@clisp.org>
39349         mkdir-p: Simplify autoconf macro.
39350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39351         gl_FUNC_LCHOWN.
39353 2011-05-21  Eric Blake  <eblake@redhat.com>
39355         strerror_r: avoid clobbering strerror on cygwin
39356         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39357         fall back instead to sys_errlist.
39358         * modules/strerror (configure.ac): Add witness.
39359         * tests/test-strerror_r.c (main): Enhance test.
39360         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39361         * tests/test-perror2.c (main): Free memory before exit.
39363 2011-05-21  Bruno Haible  <bruno@clisp.org>
39365         mkdtemp: Use gnulib naming conventions.
39366         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39367         * modules/mkdtemp (configure.ac): Update.
39369 2011-05-20  Eric Blake  <eblake@redhat.com>
39371         strerror_r: avoid corrupting errno on Solaris
39372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39373         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39375         strerror_r: avoid compiler warning
39376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39378         strerror_r: simplify AIX code
39379         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39381         test-perror: avoid spurious failure on FreeBSD
39382         * modules/perror-tests (Depends-on): Add strerror, now that
39383         strerror_r no longer pulls it in.
39385 2011-05-20  Bruno Haible  <bruno@clisp.org>
39387         strerror_r-posix: Remove unused dependencies.
39388         * modules/strerror_r-posix (Depends-on): Remove strerror.
39389         Reported by Eric Blake.
39391 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39393         intprops: remove assumption about A|B representation
39394         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39395         is a valid integer if both A and B are.  Although this is true for
39396         all known practical hosts, the C standard doesn't guarantee it,
39397         and the code need not assume it.  Also, this change may work around
39398         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39399         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39401 2011-05-20  Eric Blake  <eblake@redhat.com>
39403         perror: work around FreeBSD bug
39404         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39405         is broken.  Move AC_LIBOBJ...
39406         * modules/perror (configure.ac): Here.
39407         * doc/posix-functions/perror.texi (perror): Document this.
39408         * tests/test-perror2.c (main): Enhance test.
39410         test-perror: check for strerror interactions
39411         * tests/macros.h (STREQ): Add macro.
39412         * modules/perror-tests (Files): Add second test.
39413         * tests/test-perror2.c (main): New file.
39414         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39416         test-perror: rewrite to use init script
39417         * modules/perror-tests (Files): Add init.sh.
39418         * tests/test-perror.sh: Use temporary directory.
39420 2011-05-20  Jim Meyering  <meyering@redhat.com>
39422         maint: replace misused "a" with "an"
39423         * doc/intprops.texi: "a integer"
39424         * doc/regex.texi: "a explanation"
39425         * lib/alignof.h: "a object"
39426         * lib/argmatch.h: "a explanation"
39427         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39428         * lib/stdint.in.h: "a integer"
39429         * lib/userspec.c: "a owner"
39430         * doc/gnulib.texi: Fix "a idea", and reword.
39432 2011-05-19  Jim Meyering  <meyering@redhat.com>
39434         maint: correct misuse of "a" and "an"
39435         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39436         * lib/argp-help.c: "an docum...": s/an/a/
39437         * lib/argp-parse.c: "An vector": s/An/A/
39438         * lib/execute.c: "an native": s/an/a/
39439         * lib/spawn-pipe.c: Likewise.
39440         * lib/gc.h: "an Gc_rc": s/an/a/
39441         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39442         * lib/fts.c: "an stat.st_dev": s/an/a/
39444 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39446         intprops-tests: work around HP-UX 11.23 cc bug with constants
39447         * tests/test-intprops.c (VERIFY): New macro.
39448         (main): Use it, instead of verify, to work around the compiler bug; see
39449         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39451         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39452         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39453         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39454         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39455         (_GL_REMAINDER_OVERFLOW): Use it.
39457         intprops-tests: revert unsigned part of previous change
39458         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39459         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39460         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39461         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39463 2011-05-19  Bruno Haible  <bruno@clisp.org>
39465         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39466         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39467         strerror_r() returned without filling the buffer.
39468         Reported by Eric Blake.
39470 2011-05-19  Eric Blake  <eblake@redhat.com>
39472         strerror_r: guarantee unchanged errno
39473         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39474         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39475         failure.
39476         * tests/test-strerror_r.c (main): Enhance test.
39478 2011-05-19  Bruno Haible  <bruno@clisp.org>
39480         strerror_r: Reorder #if blocks.
39481         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39482         for consistency with the previous commit.
39484 2011-05-19  Bruno Haible  <bruno@clisp.org>
39486         perror: Avoid clobbering the strerror buffer when possible.
39487         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39488         * lib/strerror.c: Include it.
39489         * modules/strerror (Files): Add lib/strerror-impl.h.
39490         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39491         (my_strerror): New function, defined through lib/strerror-impl.h.
39492         (perror): Use it instead of strerror.
39493         * modules/perror (Files): Add lib/strerror-impl.h.
39494         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39496 2011-05-19  Eric Blake  <eblake@redhat.com>
39498         strerror_r: fix on newer cygwin
39499         * lib/strerror_r.c (strerror_r): Cygwin now has
39500         __xpg_strerror_r, use it.
39502 2011-05-19  Bruno Haible  <bruno@clisp.org>
39504         strerror_r: Avoid clobbering the strerror buffer when possible.
39505         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39506         (sys_nerr, sys_errlist): New declarations.
39507         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39508         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39509         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39511 2011-05-19  Bruno Haible  <bruno@clisp.org>
39513         strerror_r: Fix test failure on mingw.
39514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39515         EXTEND_STRERROR_R.
39516         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39517         macros from errno.in.h instead.
39519 2011-05-19  Eric Blake  <eblake@redhat.com>
39521         strerror: relax test for Solaris
39522         * tests/test-strerror.c (main): Permit Solaris behavior.
39523         * tests/test-strerror_r.c (main): Likewise.
39525         strerror: enforce POSIX ruling on strerror(0)
39526         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39527         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39528         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39529         * doc/posix-functions/strerror.texi (strerror): Document it.
39530         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39531         * tests/test-strerror.c (main): Strengthen test.
39532         * tests/test-strerror_r.c (main): Likewise.
39534 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39536         intprop-tests: port to older and more-pedantic compilers
39537         * modules/intprops-tests (Files): Add tests/macros.h.
39538         * tests/test-intprops.c: Include macros.h.
39539         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39540         it's no longer documented to expand to an integer constant expression.
39541         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39542         argument is floating point, as it's no longer documented to expand
39543         to an integer constant expression in that case.
39544         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39545         compiler bugs reported by Bruno Haible.  See
39546         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39547         (U0, U1): New constants, to work around the same bugs.  Also,
39548         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39550         intprops: work around C compiler bugs
39551         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39552         bug in Sun C 5.11 2010/08/13 and other compilers; see
39553         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39555         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39556         * doc/intprops.texi (Integer Type Determination): Fix
39557         documentation for TYPE_IS_INTEGER: it returns an constant
39558         expression, not an integer constant expression.  Fix doc for
39559         TYPE_SIGNED: it returns an integer constant expression only if its
39560         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39561         hardly worth documented that way....)
39563 2011-05-18  Bruno Haible  <bruno@clisp.org>
39565         strerror_r: Avoid clobbering the strerror buffer when possible.
39566         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39567         Handle gnulib defined errno values here. When strerror() returns NULL
39568         or an empty string, return EINVAL.
39569         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39570         gnulib defined errno values here.
39571         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39573 2011-05-18  Eric Blake  <eblake@redhat.com>
39575         fnmatch: avoid compiler warning
39576         * lib/fnmatch_loop.c (FCT): Use correct type.
39577         Reported by Matthias Bolte.
39579 2011-05-13  Jim Meyering  <meyering@redhat.com>
39581         maint.mk: three new prohibit_<HDR>_without_use rules
39582         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39583         (sc_prohibit_stdio-safer_without_use): Likewise.
39584         (sc_prohibit_xfreopen_without_use): Likewise.
39586 2011-05-17  Jim Meyering  <meyering@redhat.com>
39588         announce-gen: fail if the NEWS delta is empty
39589         If there's nothing noteworthy in NEWS, then either you forgot
39590         or you shouldn't be releasing.
39591         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39593 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39595         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39596         reserved symbols starting with double underscore from the check.
39598 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39600         intprops: add doc
39601         * doc/intprops.texi: New file, documenting intprops.
39602         * doc/gnulib.texi (Particular Modules): Include it.
39604         verify: add doc to gnulib manual and fix example
39605         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39606         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39607         (Compile-time Assertions): Fix example so it can't overflow.
39609 2011-05-17  Jim Meyering  <meyering@redhat.com>
39611         warnings.m4: don't usurp save_CPPFLAGS variable name
39612         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39614         doc: fix typo
39615         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39617 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39618             Bruno Haible  <bruno@clisp.org>
39620         doc: Tweak recent change.
39621         * README (Portability guidelines): Tweak new text.
39622         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39623         Interix 6.1.
39625 2011-05-16  Eric Blake  <eblake@redhat.com>
39627         inttypes: avoid autoconf warning
39628         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39629         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39631 2011-05-16  Sam Steingold  <sds@gnu.org>
39632         and Eric Blake  <eblake@redhat.com>
39634         vc-list-files: accept multiple directory operands
39635         * build-aux/vc-list-files: Iterate over all remaining operands.
39637 2011-05-16  Bruno Haible  <bruno@clisp.org>
39639         Fix confusion regarding deprecated modules.
39640         * modules/calloc (Status, Notice): Mark module as deprecated, not
39641         obsolete.
39642         * modules/fnmatch-posix (Status, Notice): Likewise.
39643         * modules/getdate (Status, Notice): Likewise.
39644         * modules/getopt (Status, Notice): Likewise.
39645         * modules/malloc (Status, Notice): Likewise.
39646         * modules/pipe (Status, Notice): Likewise.
39647         * modules/realloc (Status, Notice): Likewise.
39648         * modules/rename-dest-slash (Status, Notice): Likewise.
39649         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39650         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39651         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39652         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39653         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39655 2011-05-16  Bruno Haible  <bruno@clisp.org>
39657         doc: List the target platforms.
39658         * doc/gnulib-intro.texi (Target Platforms): New section.
39659         * doc/gnulib.texi (Introduction): Update menu.
39660         * README (Portability guidelines): Refer to the new section. Update
39661         statement about oldest supported environment. Remove rationale why
39662         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39663         unportable C89 function.
39664         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39665         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39667 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39669         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39671 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39673         intprops-tests: new module
39674         * modules/intprops-tests, tests/test-intprops.c: New files.
39676         intprops: add safe, portable integer overflow checking
39677         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39678         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39679         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39680         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39681         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39682         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39683         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39684         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39685         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39686         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39687         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39689 2011-05-12  James Youngman  <jay@gnu.org>
39691         Add a test for glibc's Bugzilla bug #12378.
39692         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39693         doesn't allow the literal matching of a lone "[" (which is
39694         required by POSIX).
39695         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39697 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39699         Sync glibc change fixing Bugzilla bug #12378.
39700         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39701         beginning and fall back to matching as normal character if the
39702         string ends before the matching ']' is found.  This is what POSIX
39703         requires.
39705 2011-05-13  Eric Blake  <eblake@redhat.com>
39707         getcwd-lgpl: relax test for FreeBSD
39708         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39709         issue.
39710         * tests/test-getcwd-lgpl.c (main): Relax test.
39711         Reported by Matthias Bolte.
39713 2011-05-11  Eric Blake  <eblake@redhat.com>
39715         test-fflush: silence compiler warning
39716         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39718 2011-05-11  Bruno Haible  <bruno@clisp.org>
39720         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39721         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39722         * modules/canonicalize (Depends-on): Add 'nocrash'.
39723         * modules/canonicalize-lgpl (Depends-on): Likewise.
39724         * doc/posix-functions/realpath.texi: Update platforms list.
39725         Reported by Ryan Schmidt <ryandesign@macports.org>.
39727 2011-05-11  Bruno Haible  <bruno@clisp.org>
39729         group-member: Declare function in <unistd.h>.
39730         * lib/unistd.in.h (group_member): New declaration.
39731         * lib/group-member.h: Remove file.
39732         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39733         * tests/test-unistd-c++.cc: Check signature of group_member.
39734         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39735         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39736         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39737         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39738         HAVE_GROUP_MEMBER.
39739         * modules/group-member (Files): Remove lib/group-member.h.
39740         (Depends-on): Add unistd. Specify conditions.
39741         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39742         (Include): Change to <unistd.h>.
39743         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39744         HAVE_GROUP_MEMBER.
39745         * NEWS: Mention the change.
39746         * lib/euidaccess.c: Don't include group-member.h.
39748 2011-05-11  Bruno Haible  <bruno@clisp.org>
39750         group-member: Document module.
39751         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39752         module.
39754 2011-05-11  Bruno Haible  <bruno@clisp.org>
39756         fclose: Fix mistake earlier today.
39757         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39759 2011-05-11  Eric Blake  <eblake@redhat.com>
39761         fclose: preserve fflush errors
39762         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39763         Reported by Jim Meyering.
39765         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39766         * build-aux/bootstrap (check_versions): When no specific version
39767         is required, merely check that the app produces an exit status
39768         that indicates its existence.
39770         maint.mk: drop redundant check
39771         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39772         the same but better.
39774 2011-05-11  Bruno Haible  <bruno@clisp.org>
39776         fclose: Fix possible link error.
39777         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39778         unregister_shadow_fd. Improve comments.
39779         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39780         Eric Blake.
39782 2011-05-11  Jim Meyering  <meyering@redhat.com>
39784         maint.mk: improve "can not" detection and generalize rule name
39785         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39786         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39787         Use the same technique as in sc_prohibit_doubled_word, so that
39788         we recognize "can not" also when the words are separated by a newline.
39789         Suggested by Eric Blake.
39790         (perl_filename_lineno_text_): Define.  Factored out of...
39791         (prohibit_doubled_word_): ...here.  Use the new definition.
39792         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39793         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39794         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39796 2011-05-10  Eric Blake  <eblake@redhat.com>
39798         fclose: avoid double close race when possible
39799         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39800         all but WINDOWS_SOCKETS.
39802 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39804         openat: correct new comment
39805         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39807 2011-05-10  Jim Meyering  <meyering@redhat.com>
39809         openat: add comments
39810         * lib/openat-proc.c (openat_proc_name): Add comments,
39811         mostly from Eric Blake.
39813 2011-05-09  Eric Blake  <eblake@redhat.com>
39815         openat: reduce syscalls in first probe of /proc
39816         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39817         be a directory.  Simplify the probe for .. bugs.
39818         * modules/openat (Depends-on): Drop same-inode.
39819         Reported by Bastien ROUCARIES.
39821 2011-05-09  Jim Meyering  <meyering@redhat.com>
39823         maint.mk: change semantics/name of tight_scope variables
39824         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39825         Rename variables to align with semantics that make them more useful.
39827         maint.mk: tweak new rule's name not to impinge
39828         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39829         (sc_tight_scope): Use new rule name rather than $@-0.
39831         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39832         * top/maint.mk (sc_tight_scope): New rule.
39833         (sc_tight_scope-0): New rule, ifdef'd out.
39834         (_gl_TS_dir): Default.
39835         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39836         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39838 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39840         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39841         Haible <bruno@clisp.org>.
39843 2011-05-08  Bruno Haible  <bruno@clisp.org>
39845         Comments.
39846         * m4/isnanf.m4: Add comment.
39847         * m4/isnanl.m4: Likewise.
39849 2011-05-08  Bruno Haible  <bruno@clisp.org>
39851         glob: Remove obsolete macro.
39852         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39854 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39856         intprops: Sun C 5.11 supports __typeof__
39857         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39858         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39859         which is new.
39860         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39862         intprops: switch to usual gnulib indenting and naming
39863         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39864         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39866         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39868 2011-05-08  Jim Meyering  <meyering@redhat.com>
39870         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39871         * top/maint.mk (release-prep): Use make's --no-print-directory
39872         option when generating the announcement.  This eliminates the
39873         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39874         generated announcement template.
39876 2011-05-08  Bruno Haible  <bruno@clisp.org>
39878         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39879         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39880         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39882 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39884         ignore-value, verify: Omit include files from lib_SOURCES.
39885         * modules/ignore-value, modules/verify (Makefile.am):
39886         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39887         that leads Automake to duplicate use of am__objects_... variables
39888         in Makefile.in.  See
39889         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39891 2011-05-07  Bruno Haible  <bruno@clisp.org>
39893         fclose: Simplify autoconf macro.
39894         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39895         defined.
39897 2011-05-07  Bruno Haible  <bruno@clisp.org>
39899         canonicalize-lgpl: Fix autoconf macro ordering bug.
39900         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39901         gl_STDLIB_H_DEFAULTS.
39903 2011-05-06  Eric Blake  <eblake@redhat.com>
39905         maintainer-makefile: make sc_po_check easier to tune
39906         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39907         to probe for strings, such as an alternate location for gnulib.
39909         fclose: guarantee behavior on seekable stdin
39910         * modules/fclose (Depends-on): Add fflush.
39911         * doc/posix-functions/fclose.texi (fclose): Document this.
39912         * tests/test-fclose.c (main): Make test for this unconditional.
39914 2011-05-06  Bruno Haible  <bruno@clisp.org>
39916         fflush, fpurge: Relicense under LGPLv2+.
39917         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39918         * modules/fpurge (License): Likewise.
39919         With permission from Eric Blake and Jim Meyering.
39920         Suggested by Eric Blake.
39922 2011-05-06  Karl Berry  <karl@gnu.org>
39924         * MODULES.html.sh (func_all_modules): remove exit.
39926 2011-05-06  Jim Meyering  <meyering@redhat.com>
39928         maint.mk: use info-gnu@ as the default only for a stable release
39929         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39930         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39931         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39934 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39936         assert-h: new module, which supports C1X-style static_assert
39937         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39938         * lib/verify.h: Revamp so that this can be copied into assert.h,
39939         while retaining the ability to use it standalone as before.
39940         Rename private identifiers so as not to encroach on the
39941         standard C namespace, since this is now used by assert.h.
39942         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39943         the old verify_true.
39944         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39945         the old verify_true.  Use _GL_VERIFY_TYPE.
39946         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39947         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39948         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39949         defined when this file is copied into the replacement assert.h.
39950         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39951         and _Static_assert is not built in.
39952         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39953         defined, and use the new macros mentioned above.
39954         * doc/posix-headers/assert.texi: Document this.
39956 2011-05-05  Bruno Haible  <bruno@clisp.org>
39958         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39959         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39960         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39961         gl_REPLACE_FCLOSE here.
39962         * modules/fflush (Depends-on): Remove fclose.
39963         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39964         combination with module 'fclose'.
39966 2011-05-05  Bruno Haible  <bruno@clisp.org>
39968         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39969         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39970         gl_FUNC_FFLUSH.
39971         (gl_FUNC_FFLUSH): Use it.
39972         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39974         gl_REPLACE_FSEEKO here.
39976 2011-05-05  Bruno Haible  <bruno@clisp.org>
39978         tzset: Relicense under LGPL.
39979         * modules/tzset (License): Change to LGPL.
39980         No agreement needed; it's a no-op.
39982         strtoimax, strtoumax: Relicense under LGPL.
39983         * modules/strtoimax (License): Change to LGPL.
39984         * modules/strtoumax (License): Likewise.
39985         With permission from Jim Meyering, Paul Eggert:
39986         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39987         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39989         getgroups: Relicense under LGPL.
39990         * modules/getgroups (License): Change to LGPL.
39991         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39992         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39993         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39994         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39996         nanosleep: Relicense under LGPL.
39997         * modules/nanosleep (License): Change to LGPL.
39998         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39999         Haible:
40000         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40001         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40002         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40003         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40005         futimens: Relicense under LGPL.
40006         * modules/futimens (License): Change to LGPL.
40007         With permission from Eric Blake:
40008         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40010         fflush: Relicense under LGPL.
40011         * modules/fflush (License): Change to LGPL.
40012         With permission from Eric Blake, Bruno Haible, Jim Meyering:
40013         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40014         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40015         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
40017         tmpfile: Relicense under LGPL.
40018         * modules/tmpfile (License): Change to LGPL.
40019         With permission from Ben Pfaff:
40020         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40022         isfinite: Relicense under LGPL.
40023         * modules/isfinite (License): Change to LGPL.
40024         With permission from Ben Pfaff, Bruno Haible:
40025         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40026         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
40028         acosl..tanl: Relicense under LGPL.
40029         * modules/acosl (License): Change to LGPL.
40030         * modules/asinl (License): Likewise.
40031         * modules/atanl (License): Likewise.
40032         * modules/cosl (License): Likewise.
40033         * modules/expl (License): Likewise.
40034         * modules/logl (License): Likewise.
40035         * modules/sinl (License): Likewise.
40036         * modules/sqrtl (License): Likewise.
40037         * modules/tanl (License): Likewise.
40038         Source code originally from glibc and Paolo Bonzini. Agreements:
40039         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
40040         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
40042 2011-05-05  Bruno Haible  <bruno@clisp.org>
40044         signal: Define sighandler_t.
40045         * lib/signal.in.h (sighandler_t): New type.
40046         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
40047         whether sighandler_t is defined.
40048         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
40049         * modules/signal (Depends-on): Add extensions.
40050         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
40051         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
40052         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
40054 2011-05-05  Eric Blake  <eblake@redhat.com>
40056         maint: remove useless REPLACE_*_H macros
40057         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
40058         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40059         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40060         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
40061         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40062         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40063         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
40064         * m4/btowc.m4: Update callers.
40065         * m4/dirfd.m4: Likewise.
40066         * m4/duplocale.m4: Likewise.
40067         * m4/fchdir.m4: Likewise.
40068         * m4/fdopendir.m4: Likewise.
40069         * m4/inet_ntop.m4: Likewise.
40070         * m4/inet_pton.m4: Likewise.
40071         * m4/ioctl.m4: Likewise.
40072         * m4/mbrlen.m4: Likewise.
40073         * m4/mbrtowc.m4: Likewise.
40074         * m4/mbsinit.m4: Likewise.
40075         * m4/mbsnrtowcs.m4: Likewise.
40076         * m4/mbsrtowcs.m4: Likewise.
40077         * m4/poll.m4: Likewise.
40078         * m4/setlocale.m4: Likewise.
40079         * m4/wcrtomb.m4: Likewise.
40080         * m4/wcsnrtombs.m4: Likewise.
40081         * m4/wcsrtombs.m4: Likewise.
40082         * m4/wctob.m4: Likewise.
40083         * m4/wcwidth.m4: Likewise.
40084         * modules/posix_spawn: Likewise.
40085         * modules/posix_spawn_file_actions_addclose: Likewise.
40086         * modules/posix_spawn_file_actions_adddup2: Likewise.
40087         * modules/posix_spawn_file_actions_addopen: Likewise.
40088         * modules/posix_spawn_file_actions_destroy: Likewise.
40089         * modules/posix_spawn_file_actions_init: Likewise.
40090         * modules/posix_spawnattr_destroy: Likewise.
40091         * modules/posix_spawnattr_getflags: Likewise.
40092         * modules/posix_spawnattr_getpgroup: Likewise.
40093         * modules/posix_spawnattr_getschedparam: Likewise.
40094         * modules/posix_spawnattr_getschedpolicy: Likewise.
40095         * modules/posix_spawnattr_getsigdefault: Likewise.
40096         * modules/posix_spawnattr_getsigmask: Likewise.
40097         * modules/posix_spawnattr_init: Likewise.
40098         * modules/posix_spawnattr_setflags: Likewise.
40099         * modules/posix_spawnattr_setpgroup: Likewise.
40100         * modules/posix_spawnattr_setschedparam: Likewise.
40101         * modules/posix_spawnattr_setschedpolicy: Likewise.
40102         * modules/posix_spawnattr_setsigdefault: Likewise.
40103         * modules/posix_spawnattr_setsigmask: Likewise.
40104         * modules/posix_spawnp: Likewise.
40106 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
40108         Add option to do-release-commit-and-tag to specify branch.
40109         * build-aux/do-release-commit-and-tag: Add --branch.
40111 2011-05-03  Bruno Haible  <bruno@clisp.org>
40113         Avoid unnecessary compilation units, through conditional dependencies.
40114         * modules/accept (Depends-on): Add conditions to the dependencies.
40115         * modules/acosl (Depends-on): Likewise.
40116         * modules/argz (Depends-on): Likewise.
40117         * modules/asinl (Depends-on): Likewise.
40118         * modules/atanl (Depends-on): Likewise.
40119         * modules/atoll (Depends-on): Likewise.
40120         * modules/bind (Depends-on): Likewise.
40121         * modules/btowc (Depends-on): Likewise.
40122         * modules/canonicalize-lgpl (Depends-on): Likewise.
40123         * modules/ceil (Depends-on): Likewise.
40124         * modules/ceilf (Depends-on): Likewise.
40125         * modules/ceill (Depends-on): Likewise.
40126         * modules/chdir-long (Depends-on): Likewise.
40127         * modules/chown (Depends-on): Likewise.
40128         * modules/close (Depends-on): Likewise.
40129         * modules/connect (Depends-on): Likewise.
40130         * modules/cosl (Depends-on): Likewise.
40131         * modules/dirfd (Depends-on): Likewise.
40132         * modules/dprintf (Depends-on): Likewise.
40133         * modules/dprintf-posix (Depends-on): Likewise.
40134         * modules/error (Depends-on): Likewise.
40135         * modules/euidaccess (Depends-on): Likewise.
40136         * modules/expl (Depends-on): Likewise.
40137         * modules/faccessat (Depends-on): Likewise.
40138         * modules/fchdir (Depends-on): Likewise.
40139         * modules/fclose (Depends-on): Likewise.
40140         * modules/fcntl (Depends-on): Likewise.
40141         * modules/fdopendir (Depends-on): Likewise.
40142         * modules/fflush (Depends-on): Likewise.
40143         * modules/floor (Depends-on): Likewise.
40144         * modules/floorf (Depends-on): Likewise.
40145         * modules/floorl (Depends-on): Likewise.
40146         * modules/fnmatch (Depends-on): Likewise.
40147         * modules/fopen (Depends-on): Likewise.
40148         * modules/fprintf-posix (Depends-on): Likewise.
40149         * modules/frexp (Depends-on): Likewise.
40150         * modules/frexp-nolibm (Depends-on): Likewise.
40151         * modules/frexpl (Depends-on): Likewise.
40152         * modules/frexpl-nolibm (Depends-on): Likewise.
40153         * modules/fseek (Depends-on): Likewise.
40154         * modules/fsusage (Depends-on): Likewise.
40155         * modules/ftell (Depends-on): Likewise.
40156         * modules/ftello (Depends-on): Likewise.
40157         * modules/futimens (Depends-on): Likewise.
40158         * modules/getcwd (Depends-on): Likewise.
40159         * modules/getcwd-lgpl (Depends-on): Likewise.
40160         * modules/getdelim (Depends-on): Likewise.
40161         * modules/getdomainname (Depends-on): Likewise.
40162         * modules/getgroups (Depends-on): Likewise.
40163         * modules/gethostname (Depends-on): Likewise.
40164         * modules/getline (Depends-on): Likewise.
40165         * modules/getlogin_r (Depends-on): Likewise.
40166         * modules/getopt-posix (Depends-on): Likewise.
40167         * modules/getpeername (Depends-on): Likewise.
40168         * modules/getsockname (Depends-on): Likewise.
40169         * modules/getsockopt (Depends-on): Likewise.
40170         * modules/getsubopt (Depends-on): Likewise.
40171         * modules/getusershell (Depends-on): Likewise.
40172         * modules/glob (Depends-on): Likewise.
40173         * modules/grantpt (Depends-on): Likewise.
40174         * modules/iconv_open (Depends-on): Likewise.
40175         * modules/iconv_open-utf (Depends-on): Likewise.
40176         * modules/inet_ntop (Depends-on): Likewise.
40177         * modules/inet_pton (Depends-on): Likewise.
40178         * modules/ioctl (Depends-on): Likewise.
40179         * modules/isapipe (Depends-on): Likewise.
40180         * modules/isfinite (Depends-on): Likewise.
40181         * modules/isinf (Depends-on): Likewise.
40182         * modules/lchown (Depends-on): Likewise.
40183         * modules/ldexpl (Depends-on): Likewise.
40184         * modules/link (Depends-on): Likewise.
40185         * modules/linkat (Depends-on): Likewise.
40186         * modules/listen (Depends-on): Likewise.
40187         * modules/logl (Depends-on): Likewise.
40188         * modules/lstat (Depends-on): Likewise.
40189         * modules/mbrlen (Depends-on): Likewise.
40190         * modules/mbrtowc (Depends-on): Likewise.
40191         * modules/mbsinit (Depends-on): Likewise.
40192         * modules/mbsnrtowcs (Depends-on): Likewise.
40193         * modules/mbsrtowcs (Depends-on): Likewise.
40194         * modules/mbtowc (Depends-on): Likewise.
40195         * modules/memcmp (Depends-on): Likewise.
40196         * modules/mkdir (Depends-on): Likewise.
40197         * modules/mkdtemp (Depends-on): Likewise.
40198         * modules/mkfifo (Depends-on): Likewise.
40199         * modules/mkfifoat (Depends-on): Likewise.
40200         * modules/mknod (Depends-on): Likewise.
40201         * modules/mkostemp (Depends-on): Likewise.
40202         * modules/mkostemps (Depends-on): Likewise.
40203         * modules/mkstemp (Depends-on): Likewise.
40204         * modules/mkstemps (Depends-on): Likewise.
40205         * modules/mktime (Depends-on): Likewise.
40206         * modules/nanosleep (Depends-on): Likewise.
40207         * modules/open (Depends-on): Likewise.
40208         * modules/openat (Depends-on): Likewise.
40209         * modules/perror (Depends-on): Likewise.
40210         * modules/poll (Depends-on): Likewise.
40211         * modules/popen (Depends-on): Likewise.
40212         * modules/posix_spawn (Depends-on): Likewise.
40213         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40214         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40215         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40216         * modules/posix_spawnp (Depends-on): Likewise.
40217         * modules/pread (Depends-on): Likewise.
40218         * modules/printf-posix (Depends-on): Likewise.
40219         * modules/ptsname (Depends-on): Likewise.
40220         * modules/putenv (Depends-on): Likewise.
40221         * modules/pwrite (Depends-on): Likewise.
40222         * modules/readline (Depends-on): Likewise.
40223         * modules/readlink (Depends-on): Likewise.
40224         * modules/readlinkat (Depends-on): Likewise.
40225         * modules/recv (Depends-on): Likewise.
40226         * modules/recvfrom (Depends-on): Likewise.
40227         * modules/regex (Depends-on): Likewise.
40228         * modules/remove (Depends-on): Likewise.
40229         * modules/rename (Depends-on): Likewise.
40230         * modules/renameat (Depends-on): Likewise.
40231         * modules/rmdir (Depends-on): Likewise.
40232         * modules/round (Depends-on): Likewise.
40233         * modules/roundf (Depends-on): Likewise.
40234         * modules/roundl (Depends-on): Likewise.
40235         * modules/rpmatch (Depends-on): Likewise.
40236         * modules/select (Depends-on): Likewise.
40237         * modules/send (Depends-on): Likewise.
40238         * modules/sendto (Depends-on): Likewise.
40239         * modules/setenv (Depends-on): Likewise.
40240         * modules/setlocale (Depends-on): Likewise.
40241         * modules/setsockopt (Depends-on): Likewise.
40242         * modules/shutdown (Depends-on): Likewise.
40243         * modules/sigaction (Depends-on): Likewise.
40244         * modules/signbit (Depends-on): Likewise.
40245         * modules/sigprocmask (Depends-on): Likewise.
40246         * modules/sinl (Depends-on): Likewise.
40247         * modules/sleep (Depends-on): Likewise.
40248         * modules/snprintf (Depends-on): Likewise.
40249         * modules/snprintf-posix (Depends-on): Likewise.
40250         * modules/socket (Depends-on): Likewise.
40251         * modules/sprintf-posix (Depends-on): Likewise.
40252         * modules/sqrtl (Depends-on): Likewise.
40253         * modules/stat (Depends-on): Likewise.
40254         * modules/strchrnul (Depends-on): Likewise.
40255         * modules/strdup-posix (Depends-on): Likewise.
40256         * modules/strerror (Depends-on): Likewise.
40257         * modules/strerror_r-posix (Depends-on): Likewise.
40258         * modules/strndup (Depends-on): Likewise.
40259         * modules/strnlen (Depends-on): Likewise.
40260         * modules/strptime (Depends-on): Likewise.
40261         * modules/strsep (Depends-on): Likewise.
40262         * modules/strsignal (Depends-on): Likewise.
40263         * modules/strstr-simple (Depends-on): Likewise.
40264         * modules/strtod (Depends-on): Likewise.
40265         * modules/strtoimax (Depends-on): Likewise.
40266         * modules/strtok_r (Depends-on): Likewise.
40267         * modules/strtoumax (Depends-on): Likewise.
40268         * modules/symlink (Depends-on): Likewise.
40269         * modules/symlinkat (Depends-on): Likewise.
40270         * modules/tanl (Depends-on): Likewise.
40271         * modules/tcgetsid (Depends-on): Likewise.
40272         * modules/tmpfile (Depends-on): Likewise.
40273         * modules/trunc (Depends-on): Likewise.
40274         * modules/truncf (Depends-on): Likewise.
40275         * modules/truncl (Depends-on): Likewise.
40276         * modules/uname (Depends-on): Likewise.
40277         * modules/unlink (Depends-on): Likewise.
40278         * modules/unlockpt (Depends-on): Likewise.
40279         * modules/unsetenv (Depends-on): Likewise.
40280         * modules/usleep (Depends-on): Likewise.
40281         * modules/utimensat (Depends-on): Likewise.
40282         * modules/vasprintf (Depends-on): Likewise.
40283         * modules/vdprintf (Depends-on): Likewise.
40284         * modules/vdprintf-posix (Depends-on): Likewise.
40285         * modules/vfprintf-posix (Depends-on): Likewise.
40286         * modules/vprintf-posix (Depends-on): Likewise.
40287         * modules/vsnprintf (Depends-on): Likewise.
40288         * modules/vsnprintf-posix (Depends-on): Likewise.
40289         * modules/vsprintf-posix (Depends-on): Likewise.
40290         * modules/wcrtomb (Depends-on): Likewise.
40291         * modules/wcscasecmp (Depends-on): Likewise.
40292         * modules/wcscspn (Depends-on): Likewise.
40293         * modules/wcsdup (Depends-on): Likewise.
40294         * modules/wcsncasecmp (Depends-on): Likewise.
40295         * modules/wcsnrtombs (Depends-on): Likewise.
40296         * modules/wcspbrk (Depends-on): Likewise.
40297         * modules/wcsrtombs (Depends-on): Likewise.
40298         * modules/wcsspn (Depends-on): Likewise.
40299         * modules/wcsstr (Depends-on): Likewise.
40300         * modules/wcstok (Depends-on): Likewise.
40301         * modules/wcswidth (Depends-on): Likewise.
40302         * modules/wctob (Depends-on): Likewise.
40303         * modules/wctomb (Depends-on): Likewise.
40304         * modules/wctype (Depends-on): Likewise.
40305         * modules/wcwidth (Depends-on): Likewise.
40306         * modules/write (Depends-on): Likewise.
40308 2011-05-03  Bruno Haible  <bruno@clisp.org>
40310         Support for conditional dependencies.
40311         * doc/gnulib.texi (Module description): Document the syntax of
40312         conditional dependencies.
40313         * gnulib-tool: New option --conditional-dependencies.
40314         (func_usage): Document it.
40315         (cond_dependencies): New variable.
40316         (func_get_automake_snippet_conditional,
40317         func_get_automake_snippet_unconditional): New functions, extracted from
40318         func_get_automake_snippet.
40319         (func_get_automake_snippet): Use them.
40320         (sed_first_32_chars): New variable.
40321         (func_module_shellfunc_name): New function.
40322         (func_module_shellvar_name): New function.
40323         (func_module_conditional_name): New function.
40324         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40325         func_cond_module_condition): New functions.
40326         (func_modules_transitive_closure): Add support for conditional
40327         dependencies.
40328         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40329         conditional automake snippet in an automake conditional.
40330         (func_emit_autoconf_snippets): Emit shell functions that contain the
40331         code for conditional modules.
40332         (func_import, func_create_testdir): Update specification.
40334 2011-05-03  Eric Blake  <eblake@redhat.com>
40336         test-getaddrinfo: report error information
40337         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40339 2011-05-03  Jim Meyering  <meyering@redhat.com>
40341         bootstrap: avoid build failure when $GZIP is set
40342         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40343         program name.  If defined at all, it is supposed to list gzip options.
40344         Reported by Alan Curry in http://debbugs.gnu.org/8609
40346 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40348         readme-release: new module with release instructions
40349         * modules/readme-release: New module.
40350         * top/README-release: New file, from coreutils, grep, diffutils.
40351         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40353 2011-05-02  Eric Blake  <eblake@redhat.com>
40355         fflush: also replace fclose when fixing fflush
40356         * modules/fflush (Depends-on): Add fclose.
40357         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40358         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40359         memstreams with no backing fd.
40360         * doc/posix-functions/fclose.texi (fclose): Document the use of
40361         fflush module to fix the bug.
40362         * tests/test-fclose.c (main): Relax test when fclose is used in
40363         isolation.
40365         fclose: add some tests
40366         * modules/fclose-tests: New test module.
40367         * tests/test-fclose.c: New file.
40368         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40370         fclose: reduced dependencies
40371         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40372         simpler lseek.
40373         * lib/fclose.c (rpl_fclose): Likewise.
40374         Reported by Simon Josefsson.
40376         exit: drop remaining clients
40377         * modules/argmatch (Depends-on): Replace exit with stdlib.
40378         * modules/copy-file (Depends-on): Likewise.
40379         * modules/execute (Depends-on): Likewise.
40380         * modules/exitfail (Depends-on): Likewise.
40381         * modules/obstack (Depends-on): Likewise.
40382         * modules/pagealign_alloc (Depends-on): Likewise.
40383         * modules/pipe-filter-gi (Depends-on): Likewise.
40384         * modules/pipe-filter-ii (Depends-on): Likewise.
40385         * modules/savewd (Depends-on): Likewise.
40386         * modules/spawn-pipe (Depends-on): Likewise.
40387         * modules/wait-process (Depends-on): Likewise.
40388         * modules/xsetenv (Depends-on): Likewise.
40389         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40390         * modules/git-merge-changelog (Depends-on): Likewise.
40391         * modules/long-options (Depends-on): Likewise.
40392         * modules/pt_chown (Depends-on): Likewise.
40393         * modules/sysexits (Depends-on): Likewise.
40395         freading: relax license from LGPLv3+ to LGPLv2+
40396         * modules/freading (License): Relax LGPL version.
40398 2011-05-02  Bruno Haible  <bruno@clisp.org>
40400         fchdir: Remove unused dependencies.
40401         * modules/fchdir (Depends-on): Remove include_next.
40403 2011-05-02  Bruno Haible  <bruno@clisp.org>
40405         gnulib-tool: Refactor.
40406         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40407         from func_emit_autoconf_snippets.
40408         (func_emit_autoconf_snippets): Use it.
40410 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40412         * NEWS: Document removal of 'exit'.
40413         * modules/exit: Remove file.
40415 2011-05-01  Bruno Haible  <bruno@clisp.org>
40417         Update DEPENDENCIES.
40418         * DEPENDENCIES (gettext): Recommend the newest release.
40419         Reported by Simon Josefsson.
40421 2011-05-01  Bruno Haible  <bruno@clisp.org>
40423         gnulib-tool: Reduce code duplication.
40424         * gnulib-tool (func_emit_autoconf_snippets): New function.
40425         (func_import, func_create_testdir): Use it.
40427 2011-04-30  Eric Blake  <eblake@redhat.com>
40429         fclose: don't fail on non-seekable input stream
40430         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40431         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40432         since fflush is allowed to fail in that case.
40434 2011-04-30  Bruno Haible  <bruno@clisp.org>
40436         dup3: cleanup
40437         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40439 2011-04-30  Bruno Haible  <bruno@clisp.org>
40441         netdb: Make it work in C++ mode.
40442         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40443         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40444         module.
40445         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40446         gl_MODULE_INDICATOR_FOR_TESTS.
40447         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40448         * modules/netdb-c++-tests: New file.
40449         * tests/test-netdb-c++.cc: New file.
40451 2011-04-30  Bruno Haible  <bruno@clisp.org>
40453         New modules 'vfscanf', 'vscanf'.
40454         * modules/vfscanf: New file.
40455         * modules/vscanf: New file.
40456         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40457         here.
40458         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40459         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40461 2011-04-30  Bruno Haible  <bruno@clisp.org>
40463         passfd: Add comments.
40464         * lib/passfd.c: Add comments about platforms.
40466 2011-04-30  Bruno Haible  <bruno@clisp.org>
40468         sys_uio: Make <sys/uio.h> self-contained.
40469         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40470         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40472 2011-04-30  Bruno Haible  <bruno@clisp.org>
40474         sys_socket: Ensure 'struct iovec' definition.
40475         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40476         <sys/socket.h>.
40477         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40479 2011-04-30  Bruno Haible  <bruno@clisp.org>
40481         sys_uio: Protect definition of 'struct iovec'.
40482         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40483         it as a C struct.
40485 2011-04-30  Bruno Haible  <bruno@clisp.org>
40487         manywarnings: fix indentation
40488         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40490 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40492         manywarnings: add -Wno-missing-field-initializers if needed.
40493         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40494         option if it's needed to allow initialization with { 0, }
40496 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40498         announce-gen: cosmetic improvement
40499         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40501 2011-04-29  Jim Meyering  <meyering@redhat.com>
40503         vc-list-files: indent with spaces, not TABs
40504         * build-aux/vc-list-files: Convert leading TABs to spaces,
40505         to match the style of most other files in gnulib.
40507         announce-gen: indent with spaces, not TABs
40508         * build-aux/announce-gen: Convert all TABs to spaces, to match
40509         the style of most other files in gnulib.
40511 2011-04-29  Eric Blake  <eblake@redhat.com>
40513         quotearg: avoid uninitialized variable use
40514         * lib/quotearg.c (quoting_options_from_style): Initialize
40515         remaining fields, and ensure that custom styles are only used via
40516         quoting_options rather than quoting_style.
40518 2011-04-29  Jim Meyering  <meyering@redhat.com>
40520         maint.mk: remove unused VC-tag variable
40521         * top/maint.mk (VC-tag): Remove unused variable.
40523 2011-04-29  Bruno Haible  <bruno@clisp.org>
40525         netdb: fix gai_strerror replacements
40526         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40527         * modules/netdb: Substitute it.
40529 2011-04-29  Jim Meyering  <meyering@redhat.com>
40531         test-getcwd.c: avoid new set-but-not-used warning
40532         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40533         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40534         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40535         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40537         test-hash.c: avoid a new shadowing warning
40538         * tests/test-hash.c (main): Don't shadow "dup".
40540 2011-04-28  Eric Blake  <eblake@redhat.com>
40542         getaddrinfo: fix gai_strerror signature
40543         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40544         and work around mingw with UNICODE defined.
40545         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40546         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40547         * modules/netdb (Makefile.am): Substitute it.
40548         * lib/netdb.in.h (gai_strerror): Declare replacement.
40549         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40550         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40551         the fix.
40553         getsockopt: avoid compiler warning
40554         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40555         Reported by Matthias Bolte.
40557         tests: drop unused link dependency
40558         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40559         * modules/dirent-safer-tests (Makefile.am): Likewise.
40560         * modules/fdopendir-tests (Makefile.am): Likewise.
40561         * modules/mkfifoat-tests (Makefile.am): Likewise.
40562         * modules/openat-safer-tests (Makefile.am): Likewise.
40563         * modules/openat-tests (Makefile.am): Likewise.
40564         * modules/readlinkat-tests (Makefile.am): Likewise.
40565         * modules/symlinkat-tests (Makefile.am): Likewise.
40566         * modules/linkat-tests (Makefile.am): Likewise.
40567         (Depends-on): Switch to filenamecat-lgpl.
40568         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40569         LIBINTL.
40570         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40571         * tests/test-linkat.c (main): Don't require xalloc.
40573         hash, mgetgroups: drop xalloc dependency
40574         * lib/hash.c (includes): Adjust includes.
40575         * lib/mgetgroups.c (includes): Likewise.
40576         (xgetgroups): Move...
40577         * lib/xgetgroups.c: ...to new file.
40578         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40579         * modules/xgetgroups: New file, split from...
40580         * modules/mgetgroups: ...here.
40581         (Depends-on): Add xalloc-oversized.
40582         * modules/hash (Depends-on): Likewise.
40583         * modules/hash-tests (Depends-on): Drop xalloc.
40584         (test_hash_LDADD): Drop unused library.
40585         * tests/test-hash.c (main): Break xalloc dependency.
40586         (includes): Drop unused include.
40588         xalloc-oversized: new module
40589         * modules/xalloc-oversized: New module.
40590         * modules/xalloc (Depends-on): Add it.
40591         * lib/xalloc.h (xalloc_oversized): Move...
40592         * lib/xalloc-oversized.h: ...into new file.
40594         utimecmp: drop dependency on xmalloc
40595         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40596         due to memory pressure.
40597         * modules/utimecmp (Depends-on): Drop xalloc.
40599 2011-04-27  Eric Blake  <eblake@redhat.com>
40601         getcwd: fix mingw bugs
40602         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40603         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40604         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40606 2011-04-27  Bruno Haible  <bruno@clisp.org>
40608         mkstemps: Ensure declaration on MacOS X 10.5.
40609         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40610         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40611         MacOS X.
40613 2011-04-27  Bruno Haible  <bruno@clisp.org>
40615         mkstemp: More documentation.
40616         * doc/posix-functions/mkstemp.texi: Document header file problem on
40617         MacOS X.
40619 2011-04-27  Bruno Haible  <bruno@clisp.org>
40621         mkstemp: Tweak configure message when cross-compiling.
40622         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40623         result as a guess.
40625 2011-04-27  Bruno Haible  <bruno@clisp.org>
40627         clean-temp: Clarify what it does.
40628         * lib/clean-temp.h: Add more comments.
40629         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40630         module.
40631         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40632         * doc/glibc-functions/mkstemps.texi: Likewise.
40633         * doc/glibc-functions/mkostemps.texi: Likewise.
40635 2011-04-27  Eric Blake  <eblake@redhat.com>
40637         fchdir: avoid extra chdir and fix test
40638         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40639         getcwd-lgpl.
40640         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40641         have to be canonical.
40642         (canonicalize_file_name): Drop unused macro.
40643         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40645         filenamecat-lgpl: fix licence
40646         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40647         when it was first created.
40649         linkat, renameat: add missing dependency
40650         * modules/linkat (Depends-on): Require getcwd-lgpl.
40651         * modules/renameat (Depends-on): Likewise.
40653         tests: reduce dependencies
40654         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40655         * tests/test-renameat.c (main): Likewise.
40656         * modules/linkat-tests (Depends-on): Relax dependency.
40657         * modules/renameat-tests (Depends-on): Likewise.
40658         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40659         dependency explicit.
40661         save-cwd: reduce default dependency
40662         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40663         * lib/save-cwd.c: Update comments.
40664         * NEWS: Document the semantic change.
40666         getcwd: enhance tests
40667         * tests/test-getcwd-lgpl.c: New file, taken from...
40668         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40669         repeat long path stress tests from m4 probe.
40670         * modules/getcwd-lgpl-tests: New module.
40671         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40672         * m4/getcwd-abort-bug.m4: Update comment.
40673         * m4/getcwd-path-max.m4: Likewise.
40675         getcwd-lgpl: new module
40676         * modules/getcwd-lgpl: New module.
40677         * lib/getcwd-lgpl.c: New file.
40678         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40679         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40680         * modules/getcwd (configure.ac): Set C witness.
40681         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40683         getcwd: tweak comments
40684         * m4/getcwd-abort-bug.m4: Fix comments.
40685         * m4/getcwd-path-max.m4: Likewise.
40686         * m4/getcwd.m4: Likewise.
40688 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40689         and Eric Blake  <eblake@redhat.com>
40691         mkstemp: replace if system version uses wrong permissions
40692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40693         read/write mode bits set in file created by mkstemp.
40694         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40696 2011-04-27  Eric Blake  <eblake@redhat.com>
40698         passfd: avoid compiler warning
40699         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40700         Reported by Laine Stump.
40702 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40704         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40705         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40707 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40708         and Eric Blake  <eblake@redhat.com>
40710         mkstemp: mention clean-temp module
40711         * lib/mkstemp.c: Add comment.
40712         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40714 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40716         inttypes: also provide default values for 32-bit tests
40717         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40718         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40720 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40722         strtoumax: remove dependency on strtoimax
40723         This is like the strtoull change of yesterday.
40724         * modules/strtoumax (Files): Add lib/strtoimax.c.
40725         (Depends-on): Remove strtoimax and add verify.
40727         inttypes-incomplete: new module
40728         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40729         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40730         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40731         of gl_INTTYPES_H.
40732         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40733         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40734         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40735         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40736         * modules/strtoumax, modules/xstrtol (Depends-on):
40737         Depend on inttypes-incomplete, not inttypes.
40738         * modules/inttypes-incomplete: New module, containing the contents
40739         of the old modules/inttypes module, except that the Files: section
40740         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40741         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40742         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40743         (Depends-on): Depend only on inttypes-incomplete.
40744         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40746         inttypes: omit now-redundant strtoimax and strtoumax work
40747         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40748         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40750         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40751         This supports apps that need pointers to strtoimax and strtoumax,
40752         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40753         nonexistent functions.  See
40754         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40755         et seq.
40756         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40757         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40758         a macro.
40759         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40761 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40763         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40765 2011-04-25  Bruno Haible  <bruno@clisp.org>
40767         strtol, strtoul: Mark modules as obsolete.
40768         * modules/strtol (Status, Notice): New sections.
40769         * modules/strtoul (Status, Notice): New sections.
40771 2011-04-25  Bruno Haible  <bruno@clisp.org>
40773         strtod: Remove check for strtod, unless supporting old platforms.
40774         * modules/strtod-obsolete: New file.
40775         * m4/strtod-obsolete.m4: New file.
40776         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40777         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40778         * modules/strtod (Depends-on): Add strtod-obsolete.
40779         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40781 2011-04-25  Bruno Haible  <bruno@clisp.org>
40783         strcase: Make module obsolete.
40784         * modules/strcase (Status, Notice): New sections.
40786 2011-04-25  Bruno Haible  <bruno@clisp.org>
40788         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40789         * modules/dup2-obsolete: New file.
40790         * m4/dup2-obsolete.m4: New file.
40791         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40792         gl_FUNC_DUP2_OBSOLETE is not also defined.
40793         * modules/dup2 (Depends-on): Add dup2-obsolete.
40794         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40796 2011-04-25  Bruno Haible  <bruno@clisp.org>
40798         strnlen: Avoid memchr related link error on old obsolete platforms.
40799         * modules/memchr-obsolete: New file.
40800         * m4/memchr-obsolete.m4: New file.
40801         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40802         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40803         * modules/memchr (Depends-on): Add memchr-obsolete.
40804         * modules/strnlen (Depends-on): Likewise.
40805         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40807 2011-04-25  Jim Meyering  <meyering@redhat.com>
40809         maint.mk: makefile_at_at_check extend and clean up
40810         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40811         in addition to */Makefile.am.
40812         Exempt legitimate uses of @VAR@ notation, e.g.,
40813         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40814         Remove obsolete coreutils-specific comment.
40815         Prompted by discussion here:
40816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40818 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40820         strtoul: remove dependency on strtol
40821         This is so that 'configure' need not check for strtol merely because
40822         the application needs strtoul.
40823         * modules/strtoul (Files): Add lib/strtol.c.
40824         (Depends-on): Remove strtol.
40826         strtoull: remove dependency on strtoul
40827         This is like the strtoll change.
40828         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40829         (Depends-on): Remove strtoul.
40831         strtoll: remove dependency on strtol
40832         This is so that 'configure' need not check for strtol merely because
40833         the application needs strtoll.
40834         * modules/strtoll (Files): Add lib/strtol.c.
40835         (Depends-on): Remove strtol.
40837 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40839         inttypes: Move some configure check to module 'imaxdiv'.
40840         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40841         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40842         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40844 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40846         inttypes: Move some configure check to module 'imaxabs'.
40847         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40848         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40849         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40851 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40853         inttypes: Remove configure tests that are not needed since 2009-12-31.
40854         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40855         gl_cv_header_working_inttypes_h.
40857 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40859         * modules/strnlen (Depends-on): Remove memchr.
40860         The strnlen implementation doesn't need the memchr module's fixes; see
40861         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40863         strtol: remove dependency on wchar
40864         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40865         * modules/strtol (Depends-on): Remove wchar.
40867 2011-04-21  Eric Blake  <eblake@redhat.com>
40869         passfd: fix test regression on Linux
40870         * modules/passfd-tests (configure.ac): Correct socketpair check.
40872         passfd: speed up configure and drop unused code
40873         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40874         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40875         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40876         Instead of probing at configure for unix_scm_rights_bsd44_way,
40877         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40878         check to a struct member probe.
40879         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40880         (sendfd, recvfd): Update preprocessor checks.
40881         * modules/passfd (Files): Reflect rename, and drop unused file.
40882         (Depends-on): Drop unused dependency.
40884         passfd: allow compilation on mingw
40885         * modules/sys_socket (Depends-on): Add sys_uio.
40886         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40887         iovec and a minimal struct msghdr.
40888         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40889         * tests/test-sys_socket.c (main): Enhance test.
40890         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40891         guaranteed to provide what we need.
40892         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40893         * modules/passfd-tests (Depends-on): Add sys_wait.
40894         * tests/test-passfd.c (main): Skip test on mingw, for now.
40895         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40896         partial 'struct msghdr' implementation.
40898         sys_uio: new module
40899         * modules/sys_uio: New module.
40900         * modules/sys_uio-tests: Likewise.
40901         * lib/sys_uio.in.h: New file.
40902         * m4/sys_uio_h.m4: Likewise.
40903         * tests/test-sys_uio.c: Likewise.
40904         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40905         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40907 2011-04-20  Jim Meyering  <meyering@redhat.com>
40909         useless-if-before-free: avoid false-positive
40910         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40911         disjunct so that it too requires a terminating ";".  Without that,
40912         this script would identify as useless one statement from gcc that
40913         was not:
40914           if (aligned_ptr)
40915             free (((void **) aligned_ptr) [-1]);
40917 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40919         doc: update users.txt.
40920         * users.txt: Add barcode.
40922 2011-04-19  Bruno Haible  <bruno@clisp.org>
40924         ioctl: Remove link dependency on native Windows.
40925         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40926         (gl_close_fn, gl_ioctl_fn): New types.
40927         (struct fd_hook): Renamed from struct close_hook. Change type of
40928         private_close_fn field. Add private_ioctl_fn field.
40929         (close_hook_fn): Add parameter for primary close method.
40930         (execute_close_hooks, execute_all_close_hooks): Likewise.
40931         (ioctl_hook_fn): New type.
40932         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40933         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40934         argument.
40935         (unregister_fd_hook): Renamed from unregister_close_hook.
40936         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40937         Don't include <unistd.h>.
40938         (close): Remove undef.
40939         (anchor): Update.
40940         (execute_close_hooks): Add argument for primary close method.
40941         (execute_all_close_hooks): Likewise.
40942         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40943         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40944         argument. Allow each argument to be NULL.
40945         (unregister_fd_hook): Renamed from unregister_close_hook.
40946         * lib/close.c (rpl_close): Pass 'close' function pointer to
40947         execute_all_close_hooks.
40948         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40949         (primary_ioctl): New function.
40950         (ioctl): Don't call ioctlsocket here. Instead, call
40951         execute_all_ioctl_hooks.
40952         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40953         close method.
40954         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40955         (fd_sockets_hook): Renamed from close_sockets_hook.
40956         (gl_sockets_startup, gl_sockets_cleanup): Update.
40957         * modules/fd-hook: Renamed from modules/close-hook. Update.
40958         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40959         * modules/sockets (Depends-on): Likewise.
40960         * modules/ioctl (Depends-on): Add fd-hook.
40961         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40962         GNULIB_SOCKET.
40964 2011-04-19  Bruno Haible  <bruno@clisp.org>
40966         Move the support of O_NONBLOCK in open() to the 'open' module.
40967         * modules/nonblocking (Depends-on): Remove 'open'.
40968         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40969         gl_cv_have_open_O_NONBLOCK.
40970         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40971         O_NONBLOCK support.
40972         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40974 2011-04-17  Bruno Haible  <bruno@clisp.org>
40976         pipe2: Simplify code.
40977         * lib/pipe2.c (pipe2): Reduce code duplication.
40979 2011-04-17  Bruno Haible  <bruno@clisp.org>
40981         nonblocking: Add comment.
40982         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40984 2011-04-17  Bruno Haible  <bruno@clisp.org>
40986         nonblocking: Add tests for sockets.
40987         * tests/test-nonblocking-socket.sh: New file.
40988         * tests/test-nonblocking-socket-main.c: New file.
40989         * tests/test-nonblocking-socket-child.c: New file.
40990         * tests/test-nonblocking-socket.h: New file.
40991         * tests/socket-server.h: New file.
40992         * tests/socket-client.h: New file.
40993         * modules/nonblocking-socket-tests: New file.
40994         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40996 2011-04-17  Bruno Haible  <bruno@clisp.org>
40998         nonblocking: Add tests for pipes.
40999         * tests/test-nonblocking-pipe.sh: New file.
41000         * tests/test-nonblocking-pipe-main.c: New file.
41001         * tests/test-nonblocking-pipe-child.c: New file.
41002         * tests/test-nonblocking-pipe.h: New file.
41003         * tests/test-nonblocking-writer.h: New file.
41004         * tests/test-nonblocking-reader.h: New file.
41005         * tests/test-nonblocking-misc.h: New file.
41006         * modules/nonblocking-pipe-tests: New file.
41007         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
41009 2011-04-16  Bruno Haible  <bruno@clisp.org>
41011         gettext: Clarify the needed programmer actions.
41012         * modules/gettext (Notice): New field.
41013         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41015 2011-04-16  Bruno Haible  <bruno@clisp.org>
41017         strchrnul: Tweak last commit.
41018         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41019         bug.
41020         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
41021         as in _GL_FUNCDECL_SYS.
41022         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
41023         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
41025 2011-04-15  Eric Blake  <eblake@redhat.com>
41027         strchrnul: work around cygwin bug
41028         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
41029         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
41030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
41031         * modules/string (Makefile.am): Substitute it.
41032         * lib/string.in.h (strchrnul): Use it.
41034 2011-04-15  Bruno Haible  <bruno@clisp.org>
41036         Don't require lib/stdio-write.c when only module 'stdio' is used.
41037         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
41038         invocation.
41039         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
41041 2011-04-14  Bruno Haible  <bruno@clisp.org>
41043         Support non-blocking pipe I/O in read() on native Windows.
41044         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
41045         (read): New declaration.
41046         * lib/read.c: New file.
41047         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
41048         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
41049         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
41050         vscanf): New declarations.
41051         * lib/stdio-read.c: New file.
41052         * m4/read.m4: New file.
41053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
41054         REPLACE_READ.
41055         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
41056         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41057         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
41058         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
41059         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
41060         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41061         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41062         * modules/read: New file.
41063         * modules/nonblocking (Files): Add lib/stdio-read.c.
41064         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
41065         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
41066         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41067         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41068         * modules/pread (Depends-on): Add read.
41069         * modules/safe-read (Depends-on): Likewise.
41070         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
41071         gets, scanf, vfscanf, vscanf): Verify signatures.
41072         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
41073         problem with non-blocking pipes.
41074         * doc/posix-functions/fgetc.texi: Likewise.
41075         * doc/posix-functions/fgets.texi: Likewise.
41076         * doc/posix-functions/fread.texi: Likewise.
41077         * doc/posix-functions/fscanf.texi: Likewise.
41078         * doc/posix-functions/getc.texi: Likewise.
41079         * doc/posix-functions/getchar.texi: Likewise.
41080         * doc/posix-functions/gets.texi: Likewise.
41081         * doc/posix-functions/scanf.texi: Likewise.
41082         * doc/posix-functions/vfscanf.texi: Likewise.
41083         * doc/posix-functions/vscanf.texi: Likewise.
41085 2011-04-14  Bruno Haible  <bruno@clisp.org>
41087         Support non-blocking pipe I/O in write() on native Windows.
41088         * lib/write.c (rpl_write): Split a write request that failed merely
41089         because the byte count was larger than the pipe buffer's size.
41090         * doc/posix-functions/write.texi: Mention the problem with large byte
41091         counts.
41093 2011-04-14  Bruno Haible  <bruno@clisp.org>
41095         wchar: Ensure that wchar_t gets defined on uClibc.
41096         * lib/wchar.in.h: On uClibc, include <stddef.h>.
41097         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
41099 2011-04-13  Bruno Haible  <bruno@clisp.org>
41101         safe-write, full-read: Avoid unnecessary compilation units.
41102         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
41103         (Depends-on): Remove safe-read. Add ssize_t.
41104         * modules/full-read (Files): Add lib/full-write.c.
41105         (Depends-on): Add full-write.
41107 2011-04-13  Bruno Haible  <bruno@clisp.org>
41109         Support non-blocking pipe I/O and SIGPIPE in pwrite().
41110         * modules/pwrite (Depends-on): Add 'write'.
41112 2011-04-13  Bruno Haible  <bruno@clisp.org>
41114         Support non-blocking pipe I/O in write() on native Windows.
41115         * lib/unistd.in.h (write): Enable replacement also if
41116         GNULIB_UNISTD_H_NONBLOCKING is 1.
41117         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
41118         (rpl_write): When failing to write on a non-blocking pipe, change
41119         errno from ENOSPC to EAGAIN.
41120         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
41121         putchar, puts, vfprintf, vprintf): Enable replacement also if
41122         GNULIB_STDIO_H_NONBLOCKING is 1.
41123         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41124         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41125         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41126         CALL_WITH_SIGPIPE_EMULATION.
41127         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41128         * m4/nonblocking.m4: New file.
41129         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41130         for non-blocking I/O support.
41131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41132         GNULIB_UNISTD_H_NONBLOCKING.
41133         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41134         required for non-blocking I/O support.
41135         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41136         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41137         lib/stdio-write.c, m4/asm-underscore.m4.
41138         (Depends-on): Add stdio, unistd.
41139         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41140         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41141         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41142         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41143         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41144         problem with non-blocking pipes.
41145         * doc/posix-functions/fputc.texi: Likewise.
41146         * doc/posix-functions/fputs.texi: Likewise.
41147         * doc/posix-functions/fwrite.texi: Likewise.
41148         * doc/posix-functions/printf.texi: Likewise.
41149         * doc/posix-functions/putc.texi: Likewise.
41150         * doc/posix-functions/putchar.texi: Likewise.
41151         * doc/posix-functions/puts.texi: Likewise.
41152         * doc/posix-functions/vfprintf.texi: Likewise.
41153         * doc/posix-functions/vprintf.texi: Likewise.
41154         * doc/posix-functions/write.texi: Likewise.
41156 2011-04-10  Jim Meyering  <meyering@redhat.com>
41158         maint.mk: prohibit doubled words
41159         Detect them also when they're separated by a newline.
41160         There are 3 ways to customize it:
41161           - disable the test on a per file basis, as usual with rules using
41162             $(VC_LIST_EXCEPT)
41163           - replace the default doubled-word-selecting regexp (affects all files)
41164           - ignore a particular file-vs-doubled-word match
41165         I nearly used that last one to ignore the "is is" match in
41166         coreutils' NEWS file, since the text was "ls -is is ..."
41167         To do that, I would have added this line to cfg.mk:
41168           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41169         but it would have ignored any "is is" match in NEWS.
41170         Low probability, but still...
41171         Instead, I changed the text, slightly:
41172           -  ls -is is now consistent with ls -lis in ignoring values returned
41173           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41174         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41175         (prohibit_doubled_word_): Define.
41176         (sc_prohibit_doubled_word): New rule.
41177         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41179 2011-04-10  Jim Meyering  <meyering@redhat.com>
41181         maint: fix doubled-word typo in comment
41182         * m4/gethostname.m4: s/is is/it is/
41183         * m4/getdomainname.m4: Likewise.
41185 2011-04-10  Jim Meyering  <meyering@redhat.com>
41187         maint: remove doubled word: s/it it/it/
41188         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41190 2011-04-10  Jim Meyering  <meyering@redhat.com>
41192         maint.mk: remove useless semicolon and backslash
41193         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41194         semicolon and backslash.
41196 2011-04-10  Bruno Haible  <bruno@clisp.org>
41198         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41199         * modules/stdint-tests (Depends-on): Add wchar.
41201 2011-04-10  Jim Meyering  <meyering@redhat.com>
41203         maint: remove doubled words in comments, e.g., s/a a/a/
41204         * lib/strptime.c (day_of_the_week): s/the the/the/
41205         * tests/test-chown.h (test_chown): s/a a/a/
41207         test-chown.h: correct a cast
41208         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41209         when the destination is a stat.st_gid.
41211 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41213         getaddrinfo: Fix test for sa_len member.
41214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41215         include <sys/types.h> before <sys/socket.h>.
41217 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41219         maint: change "can not" to "cannot"
41220         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41221         boundaries.
41223 2011-04-09  Jim Meyering  <meyering@redhat.com>
41225         maint: change "a a" to "a"
41226         * tests/test-lchown.h (test_lchown): s/a a/a/
41228         maint.mk: prohibit \<the the\>
41229         * top/maint.mk (sc_prohibit_the_the): New rule.
41231         maint: fix "the the" in comment
41232         * lib/count-one-bits.h: s/the the/the/
41234         maint: change "can not" to "cannot"
41235         But do not change the occurrences in maintain.texi or in
41236         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41237         * doc/gnulib-tool.texi: s/can not/cannot/
41238         * doc/posix-functions/accept.texi (accept): Likewise.
41239         * doc/posix-functions/socket.texi (socket): Likewise.
41240         * lib/mbrtowc.c: Likewise.
41242         maint.mk: prohibit use of "can not"
41243         * top/maint.mk (sc_prohibit_can_not): New rule.
41244         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41246 2011-04-09  Bruno Haible  <bruno@clisp.org>
41248         careadlinkat: Guard against misuse of careadlinkatcwd.
41249         * lib/careadlinkat.c: Include <stdlib.h>.
41250         (careadlinkatcwd): Check that the fd argument is as expected.
41252 2011-04-09  Bruno Haible  <bruno@clisp.org>
41254         careadlinkat: Use common coding style.
41255         * lib/careadlinkat.c: Move gnulib includes after system includes.
41257 2011-04-09  Bruno Haible  <bruno@clisp.org>
41259         careadlinkat: Clarify specification.
41260         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41261         (careadlinkatcwd): Add comment.
41262         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41264 2011-04-09  Bruno Haible  <bruno@clisp.org>
41266         areadlinkat: Avoid link error on many platforms.
41267         * modules/areadlinkat (Depends-on): Add areadlink.
41269 2011-04-09  Bruno Haible  <bruno@clisp.org>
41271         allocator, careadlinkat: Fix double-inclusion guard.
41272         * lib/allocator.h: Fix double-inclusion guard.
41273         * lib/careadlinkat.h: Likewise.
41275 2011-04-09  Bruno Haible  <bruno@clisp.org>
41277         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41278         * lib/relocwrapper.c: Update dependencies hierarchy.
41279         * build-aux/install-reloc: Update list of files to be compiled.
41280         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41281         lib/allocator.[hc].
41283 2011-04-08  Eric Blake  <eblake@redhat.com>
41285         strftime: silence gnulib-tool warning
41286         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41288 2011-04-08  Bruno Haible  <bruno@clisp.org>
41290         verify: Fix syntax error with GCC 4.6 in C++ mode.
41291         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41292         (HAVE_STATIC_ASSERT): New macro.
41293         (verify_true, verify): Use 'static_assert' if it is supported and
41294         '_Static_assert' is not supported.
41296 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41298         allocator: New module.
41299         * modules/allocator, lib/allocator.c: New files.
41300         * lib/allocator.h (stdlib_allocator): New decl.
41301         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41302         Remove.  Do not include <stdlib.h>.
41303         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41304         * modules/careadlinkat (Files): Remove lib/allocator.h.
41305         (Depends-on): Add allocator.
41307         stdlib: let modules use system malloc, realloc
41308         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41309         if !_GL_USE_STDLIB_ALLOC.
41310         (malloc, realloc): Limit this change to a smaller scope.
41312         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41313         (malloc, realloc): Don't #undef; no longer needed.
41314         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41315         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41316         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41317         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41318         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41319         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41320         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41321         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41323         careadlinkat: rename members to avoid problem
41324         * lib/allocator.h (struct allocator): Rename members from
41325         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41326         and realloc are #define'd.  Reported by Eric Blake in
41327         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41328         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41330 2011-04-08  Eric Blake  <eblake@redhat.com>
41332         nonblocking: reduce dependency
41333         * tests/test-nonblocking.c: Only test sockets when in use.
41334         * modules/nonblocking-tests (Depends-on): Drop socket.
41335         (Makefile.am): Link even if sockets are not present.
41336         * modules/pipe2-tests (Makefile.am): Likewise.
41337         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41339         pipe2: fix O_NONBLOCK support on mingw
41340         * modules/pipe2 (Depends-on): Add nonblocking.
41341         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41342         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41343         * tests/test-nonblocking.c (main): Likewise.
41344         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41346         fcntl-h: fix O_ACCMODE on cygwin
41347         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41348         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41350         pipe-filter: drop O_NONBLOCK workarounds
41351         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41352         * modules/pipe-filter-ii (Depends-on): Likewise.
41353         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41355         nonblocking: provide O_NONBLOCK for mingw
41356         * modules/nonblocking (Depends-on): Add open.
41357         (configure.ac): Set new witness macro.
41358         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41359         * modules/fcntl-h (Makefile.am): Substitute it.
41360         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41361         nonblocking module is in use.
41362         * lib/nonblocking.c: Adjust portability test.
41363         * lib/open.c (open): Don't let native open see gnulib flag.
41364         * tests/test-fcntl-h.c (main): Enhance test.
41365         * tests/test-open.h (test_open): Likewise.
41366         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41368         careadlinkat: fix compilation error on mingw
41369         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41370         within struct allocator.
41372 2011-04-06  Eric Blake  <eblake@redhat.com>
41374         binary-io: relicense under LGPLv2+
41375         * modules/binary-io (License): Relax to LGPLv2+.
41376         Requested for libvirt, and required by pipe2.
41378 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41380         verify: use _Static_assert if available
41381         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41382         (verify_true, verify): Use it if available.  This generates better
41383         diagnostics with GCC 4.6.0 and later.
41385 2011-04-05  Bruno Haible  <bruno@clisp.org>
41387         Remove leftover generated .h files after config.status changed.
41389         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41390         GL_GENERATE_ALLOCA_H.
41391         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41392         GL_GENERATE_ALLOCA_H evaluates to false.
41394         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41395         GL_GENERATE_ARGZ_H.
41396         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41397         evaluates to false.
41399         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41400         GL_GENERATE_BYTESWAP_H.
41401         * modules/byteswap (Makefile.am): Remove byteswap.h if
41402         GL_GENERATE_BYTESWAP_H evaluates to false.
41404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41405         GL_GENERATE_ERRNO_H.
41406         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41407         evaluates to false.
41409         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41410         GL_GENERATE_FLOAT_H.
41411         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41412         evaluates to false.
41414         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41415         GL_GENERATE_FNMATCH_H.
41416         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41417         GL_GENERATE_FNMATCH_H evaluates to false.
41419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41420         GL_GENERATE_GLOB_H.
41421         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41422         evaluates to false.
41424         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41425         automake conditional GL_GENERATE_ICONV_H.
41426         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41427         evaluates to false.
41429         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41430         GL_GENERATE_NETINET_IN_H.
41431         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41432         GL_GENERATE_NETINET_IN_H evaluates to false.
41434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41435         conditional GL_GENERATE_PTHREAD_H.
41436         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41437         * modules/pthread (Makefile.am): Remove pthread.h if
41438         GL_GENERATE_PTHREAD_H evaluates to false.
41440         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41441         GL_GENERATE_SCHED_H.
41442         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41443         evaluates to false.
41445         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41446         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41447         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41448         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41450         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41451         GL_GENERATE_STDARG_H.
41452         * modules/stdarg (Makefile.am): Remove stdarg.h if
41453         GL_GENERATE_STDARG_H evaluates to false.
41455         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41456         GL_GENERATE_STDBOOL_H.
41457         * modules/stdbool (Makefile.am): Remove stdbool.h if
41458         GL_GENERATE_STDBOOL_H evaluates to false.
41460         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41461         conditional GL_GENERATE_STDDEF_H.
41462         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41463         * modules/stddef (Makefile.am): Remove stddef.h if
41464         GL_GENERATE_STDDEF_H evaluates to false.
41466         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41467         GL_GENERATE_STDINT_H.
41468         * modules/stdint (Makefile.am): Remove stdint.h if
41469         GL_GENERATE_STDINT_H evaluates to false.
41471         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41472         GL_GENERATE_SYSEXITS_H.
41473         * modules/sysexits (Makefile.am): Remove sysexits.h if
41474         GL_GENERATE_SYSEXITS_H evaluates to false.
41476         Reported by Karl Berry and Ralf Wildenhues.
41478 2011-04-05  Bruno Haible  <bruno@clisp.org>
41480         Ensure to rebuild generated .h files when config.status has changed.
41481         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41482         config.status.
41483         * modules/ctype (Makefile.am): Likewise.
41484         * modules/dirent (Makefile.am): Likewise.
41485         * modules/errno (Makefile.am): Likewise.
41486         * modules/fcntl-h (Makefile.am): Likewise.
41487         * modules/float (Makefile.am): Likewise.
41488         * modules/getopt-posix (Makefile.am): Likewise.
41489         * modules/glob (Makefile.am): Likewise.
41490         * modules/iconv-h (Makefile.am): Likewise.
41491         * modules/inttypes (Makefile.am): Likewise.
41492         * modules/langinfo (Makefile.am): Likewise.
41493         * modules/locale (Makefile.am): Likewise.
41494         * modules/math (Makefile.am): Likewise.
41495         * modules/netdb (Makefile.am): Likewise.
41496         * modules/netinet_in (Makefile.am): Likewise.
41497         * modules/poll-h (Makefile.am): Likewise.
41498         * modules/pthread (Makefile.am): Likewise.
41499         * modules/pty (Makefile.am): Likewise.
41500         * modules/sched (Makefile.am): Likewise.
41501         * modules/search (Makefile.am): Likewise.
41502         * modules/selinux-h (Makefile.am): Likewise.
41503         * modules/signal (Makefile.am): Likewise.
41504         * modules/spawn (Makefile.am): Likewise.
41505         * modules/stdarg (Makefile.am): Likewise.
41506         * modules/stdbool (Makefile.am): Likewise.
41507         * modules/stddef (Makefile.am): Likewise.
41508         * modules/stdint (Makefile.am): Likewise.
41509         * modules/stdio (Makefile.am): Likewise.
41510         * modules/stdlib (Makefile.am): Likewise.
41511         * modules/string (Makefile.am): Likewise.
41512         * modules/strings (Makefile.am): Likewise.
41513         * modules/sys_file (Makefile.am): Likewise.
41514         * modules/sys_ioctl (Makefile.am): Likewise.
41515         * modules/sys_select (Makefile.am): Likewise.
41516         * modules/sys_socket (Makefile.am): Likewise.
41517         * modules/sys_stat (Makefile.am): Likewise.
41518         * modules/sys_time (Makefile.am): Likewise.
41519         * modules/sys_times (Makefile.am): Likewise.
41520         * modules/sys_utsname (Makefile.am): Likewise.
41521         * modules/sys_wait (Makefile.am): Likewise.
41522         * modules/sysexits (Makefile.am): Likewise.
41523         * modules/termios (Makefile.am): Likewise.
41524         * modules/time (Makefile.am): Likewise.
41525         * modules/unistd (Makefile.am): Likewise.
41526         * modules/wchar (Makefile.am): Likewise.
41527         * modules/wctype-h (Makefile.am): Likewise.
41528         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41530 2011-04-05  Bruno Haible  <bruno@clisp.org>
41532         pipe2: Relicense under LGPLv2+.
41533         * modules/pipe2 (License): Change to LGPLv2+.
41534         Requested by Eric Blake, for libvirt.
41536 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41538         bootstrap: compute gnulib_extra_files after updating build_aux
41539         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41540         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41542 2011-04-05  Eric Blake  <eblake@redhat.com>
41544         bootstrap: preserve git whitelist item sorting
41545         * build-aux/bootstrap (sort_patterns): New function.
41546         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41548 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41550         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41551         sc_space_tab check.
41553 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41555         areadlink, areadlinkat: rewrite in terms of careadlinkat
41556         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41557         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41558         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41559         (malloc, realloc): Remove #undefs.
41560         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41561         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41562         readlink, ssize_t, stdint, unistd.
41563         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41564         areadlink, stdint.
41566         careadlinkat: new module
41567         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41568         * modules/careadlinkat: New files, written by me with
41569         a review and feedback from Ben Pfaff in
41570         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41572 2011-04-01  Bruno Haible  <bruno@clisp.org>
41574         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41575         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41576         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41577         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41578         Reported by Bruce Korb <bruce.korb@gmail.com>.
41580 2011-04-01  Bruno Haible  <bruno@clisp.org>
41582         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41583         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41584         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41585         * modules/wcpcpy (Depends-on): Add extensions.
41586         * modules/wcpncpy (Depends-on): Likewise.
41587         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41588         systems.
41589         * doc/posix-functions/wcpncpy.texi: Likewise.
41590         * doc/posix-functions/wcwidth.texi: Likewise.
41592 2011-03-31  Eric Blake  <eblake@redhat.com>
41594         nonblocking: fix mingw test failures
41595         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41596         non-blocking flag on regular file.
41597         (get_nonblocking_flag): Set errno on invalid fd.
41598         * tests/test-nonblocking.c (main): Avoid test failure on
41599         directories if fchdir is not active.
41600         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41602 2011-03-31  Bruno Haible  <bruno@clisp.org>
41604         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41605         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41606         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41607         Reported by Simon Josefsson <simon@josefsson.org>.
41609 2011-03-31  Bruno Haible  <bruno@clisp.org>
41610         and Eric Blake  <eblake@redhat.com>
41612         nonblocking: new module
41613         * modules/nonblocking: New module.
41614         * modules/nonblocking-tests: Likewise.
41615         * lib/nonblocking.h: New file.
41616         * lib/nonblocking.c: Likewise.
41617         * tests/test-nonblocking.c: New test.
41618         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41620 2011-03-30  Bruno Haible  <bruno@clisp.org>
41622         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41623         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41624         instead of 'printf' format for GCC >= 4.4.
41625         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41626         (fprintf, printf, vfprintf, vprintf): Declare with
41627         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41628         the system's vfprintf() function.
41629         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41631 2011-03-30  Eric Blake  <eblake@redhat.com>
41633         passfd: fix scoping bug
41634         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41635         before sendmsg/recvmsg.
41637         passfd: standardize coding conventions
41638         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41639         can be learned at compile time.
41640         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41641         ifdefs.
41642         (sendfd, recvfd): Follow gnulib code conventions.
41644         passfd: fix incorrect sendmsg arguments
41645         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41646         incorrect msg_controllen value.
41647         * modules/passfd-tests (Depends-on): Check for alarm.
41648         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41649         Reported by Bastien ROUCARIES.
41651 2011-03-30  Bruno Haible  <bruno@clisp.org>
41653         c-strcasestr: Relicense under LGPLv2+.
41654         * modules/c-strcasestr (License): Change to LGPLv2+.
41655         Requested by Eric Blake, for libvirt.
41657 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41659         * users.txt: Add libidn2.  Fix libtasn1 link.
41661 2011-03-30  Jim Meyering  <meyering@redhat.com>
41663         tests: readlink* ("",... fails with EINVAL on newer kernels
41664         readlink and readlinkat have typically failed with ENOENT for
41665         the invalid, empty file name,  "".  However, with the advent
41666         of linux-2.6.39, they fail with EINVAL.
41667         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41668         when operating on the empty file name.
41669         * tests/test-readlink.h (test_readlink): Likewise.
41671 2011-03-29  Bruno Haible  <bruno@clisp.org>
41673         Relicense some modules under LGPLv2+, for libidn2.
41674         * modules/array-mergesort (License): Change to LGPLv2+.
41675         * modules/c-strcaseeq (License): Likewise.
41676         * modules/striconveh (License): Likewise.
41677         * modules/striconveha (License): Likewise.
41678         * modules/uniconv/base (License): Likewise.
41679         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41680         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41681         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41682         * modules/unictype/base (License): Likewise.
41683         * modules/unictype/bidiclass-of (License): Likewise.
41684         * modules/unictype/category-M (License): Likewise.
41685         * modules/unictype/category-none (License): Likewise.
41686         * modules/unictype/category-of (License): Likewise.
41687         * modules/unictype/category-test (License): Likewise.
41688         * modules/unictype/category-test-withtable (License): Likewise.
41689         * modules/unictype/combining-class (License): Likewise.
41690         * modules/unictype/joiningtype-of (License): Likewise.
41691         * modules/unictype/scripts (License): Likewise.
41692         * modules/uninorm/base (License): Likewise.
41693         * modules/uninorm/canonical-decomposition (License): Likewise.
41694         * modules/uninorm/composition (License): Likewise.
41695         * modules/uninorm/decompose-internal (License): Likewise.
41696         * modules/uninorm/decomposition-table (License): Likewise.
41697         * modules/uninorm/nfc (License): Likewise.
41698         * modules/uninorm/nfd (License): Likewise.
41699         * modules/uninorm/u32-normalize (License): Likewise.
41700         * modules/unistr/base (License): Likewise.
41701         * modules/unistr/u32-cpy (License): Likewise.
41702         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41703         * modules/unistr/u32-to-u8 (License): Likewise.
41704         * modules/unistr/u32-uctomb (License): Likewise.
41705         * modules/unistr/u8-check (License): Likewise.
41706         * modules/unistr/u8-mblen (License): Likewise.
41707         * modules/unistr/u8-mbtouc (License): Likewise.
41708         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41709         * modules/unistr/u8-mbtoucr (License): Likewise.
41710         * modules/unistr/u8-prev (License): Likewise.
41711         * modules/unistr/u8-strlen (License): Likewise.
41712         * modules/unistr/u8-to-u32 (License): Likewise.
41713         * modules/unistr/u8-uctomb (License): Likewise.
41714         * modules/unitypes (License): Likewise.
41715         Requested by Simon Josefsson.
41717 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41719         lib-symbol-visibility: Add a notice.
41720         * modules/lib-symbol-visibility (Notice): New field.
41722 2011-03-29  Bruno Haible  <bruno@clisp.org>
41724         getaddrinfo: Doc fix.
41725         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41726         section "fixed in Gnulib".
41728 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41730         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41731         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41733 2011-03-26  Bruno Haible  <bruno@clisp.org>
41735         unictype/property-byname: Reduce the number of load-time relocations.
41736         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41737         (UC_PROPERTY_INDEX_*): New enumeration values.
41738         (uc_property_byname): Convert an index from the lookup table to an
41739         uc_property_t.
41740         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41741         values.
41743 2011-03-26  Bruno Haible  <bruno@clisp.org>
41745         unictype/property-byname: Allow omitted word separators and aliases.
41746         * lib/unictype/pr_byname.gperf: Add property names without word
41747         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41748         for 'space'.
41750 2011-03-26  Bruno Haible  <bruno@clisp.org>
41752         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41753         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41754         also hyphens to space.
41755         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41756         without spaces.
41757         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41759 2011-03-26  Bruno Haible  <bruno@clisp.org>
41761         unictype/joiningtype-byname: Recognize long names as well.
41762         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41763         a long name.
41764         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41765         unictype/joiningtype_byname.h.
41766         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41767         * lib/unictype/joiningtype_byname.gperf: New file.
41768         * modules/unictype/joiningtype-byname (Files): Add
41769         lib/unictype/joiningtype_byname.gperf.
41770         (Depends-on): Add gperf.
41771         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41772         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41773         long names.
41775         Tests for module 'unictype/joiningtype-longname'.
41776         * modules/unictype/joiningtype-longname-tests: New file.
41777         * tests/unictype/test-joiningtype_longname.c: New file.
41779         New module 'unictype/joiningtype-longname'.
41780         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41781         * lib/unictype/joiningtype_longname.c: New file.
41782         * modules/unictype/joiningtype-longname: New file.
41783         * modules/unictype/joiningtype-all (Depends-on): Add
41784         unictype/joiningtype-longname.
41786 2011-03-26  Bruno Haible  <bruno@clisp.org>
41788         unictype/bidiclass-byname: Recognize long names as well.
41789         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41790         name.
41791         * lib/unictype/bidi_byname.c: Include <string.h>,
41792         unictype/bidi_byname.h.
41793         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41794         * lib/unictype/bidi_byname.gperf: New file.
41795         * modules/unictype/bidiclass-byname (Files): Add
41796         lib/unictype/bidi_byname.gperf.
41797         (Depends-on): Add gperf.
41798         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41799         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41800         long names.
41802         Tests for module 'unictype/bidiclass-longname'.
41803         * modules/unictype/bidiclass-longname-tests: New file.
41804         * tests/unictype/test-bidi_longname.c: New file.
41806         New module 'unictype/bidiclass-longname'.
41807         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41808         * lib/unictype/bidi_longname.c: New file.
41809         * modules/unictype/bidiclass-longname: New file.
41810         * modules/unictype/bidiclass-all (Depends-on): Add
41811         unictype/bidiclass-longname.
41813 2011-03-26  Bruno Haible  <bruno@clisp.org>
41815         unictype/bidi*: Rename modules.
41816         * modules/unictype/bidiclass-all: Renamed from
41817         modules/unictype/bidicategory-all.
41818         * modules/unictype/bidiclass-name: Renamed from
41819         modules/unictype/bidiclass-name.
41820         (Description): Update.
41821         * modules/unictype/bidiclass-name-tests: Renamed from
41822         modules/unictype/bidicategory-name-tests.
41823         * modules/unictype/bidiclass-byname: Renamed from
41824         modules/unictype/bidicategory-byname.
41825         (Description): Update.
41826         * modules/unictype/bidiclass-byname-tests: Renamed from
41827         modules/unictype/bidicategory-byname-tests.
41828         * modules/unictype/bidiclass-of: Renamed from
41829         modules/unictype/bidicategory-of.
41830         (Description): Update.
41831         * modules/unictype/bidiclass-of-tests: Renamed from
41832         modules/unictype/bidicategory-of-tests.
41833         * modules/unictype/bidiclass-test: Renamed from
41834         modules/unictype/bidicategory-test.
41835         (Description): Update.
41836         * modules/unictype/bidiclass-test-tests: Renamed from
41837         modules/unictype/bidicategory-test-tests.
41838         * modules/unictype/bidicategory-all: New file, a simple redirection.
41839         * modules/unictype/bidicategory-name: Likewise.
41840         * modules/unictype/bidicategory-byname: Likewise.
41841         * modules/unictype/bidicategory-of: Likewise.
41842         * modules/unictype/bidicategory-test: Likewise.
41843         * modules/unictype/property-bidi-* (Dependencies): Update.
41844         * lib/unictype/bidi_*.c: Update comment.
41846 2011-03-26  Bruno Haible  <bruno@clisp.org>
41848         unictype/bidi*: Rename functions, part 2.
41849         * modules/unictype/bidicategory-name (configure.ac): Update required
41850         libunistring version.
41851         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41853 2011-03-25  Bruno Haible  <bruno@clisp.org>
41855         New module 'unictype/combining-class-all'.
41856         * modules/unictype/combining-class-all: New file.
41858         Tests for module 'unictype/combining-class-byname'.
41859         * modules/unictype/combining-class-byname-tests: New file.
41860         * tests/unictype/test-combiningclass_byname.c: New file.
41862         New module 'unictype/combining-class-byname'.
41863         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41864         * lib/unictype/combiningclass_byname.c: New file.
41865         * lib/unictype/combiningclass_byname.gperf: New file.
41866         * modules/unictype/combining-class-byname: New file.
41868         Tests for module 'unictype/combining-class-longname'.
41869         * modules/unictype/combining-class-longname-tests: New file.
41870         * tests/unictype/test-combiningclass_longname.c: New file.
41872         New module 'unictype/combining-class-longname'.
41873         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41874         * lib/unictype/combiningclass_longname.c: New file.
41875         * modules/unictype/combining-class-longname: New file.
41877         Tests for module 'unictype/combining-class-name'.
41878         * modules/unictype/combining-class-name-tests: New file.
41879         * tests/unictype/test-combiningclass_name.c: New file.
41881         New module 'unictype/combining-class-name'.
41882         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41883         * lib/unictype/combiningclass_name.c: New file.
41884         * modules/unictype/combining-class-name: New file.
41886 2011-03-25  Bruno Haible  <bruno@clisp.org>
41888         unictype/combining-class: Rename source files.
41889         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41890         of unictype/combining.h.
41891         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41892         Update.
41893         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41894         * modules/unictype/combining-class (Description): Fix.
41895         (Files, Makefile.am): Update.
41896         * tests/unictype/test-combiningclass.c: Renamed from
41897         tests/unictype/test-combining.c.
41898         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41900 2011-03-25  Bruno Haible  <bruno@clisp.org>
41902         unictype: Update list of canonical combining classes.
41903         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41905 2011-03-25  Bruno Haible  <bruno@clisp.org>
41907         unictype/category-byname: Recognize long names as well.
41908         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41909         a long name.
41910         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41911         unictype/categ_byname.h.
41912         (UC_CATEGORY_INDEX_*): New enumeration values.
41913         (uc_general_category_byname): Use uc_general_category_lookup and
41914         convert from index to value.
41915         * lib/unictype/categ_byname.gperf: New file.
41916         * modules/unictype/category-byname (Files): Add
41917         lib/unictype/categ_byname.gperf.
41918         (Depends-on): Add gperf.
41919         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41920         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41921         long names.
41923         Tests for module 'unictype/category-longname'.
41924         * modules/unictype/category-longname-tests: New file.
41925         * tests/unictype/test-categ_longname.c: New file.
41927         New module 'unictype/category-longname'.
41928         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41929         * lib/unictype/categ_longname.c: New file.
41930         * modules/unictype/category-longname: New file.
41931         * modules/unictype/category-all (Depends-on): Add it.
41933 2011-03-25  Bruno Haible  <bruno@clisp.org>
41935         Tests for module 'unictype/category-LC'.
41936         * modules/unictype/category-LC-tests: New file.
41937         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41939         New module 'unictype/category-LC'.
41940         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41941         (UC_CATEGORY_LC): New declaration.
41942         (UC_CASED_LETTER): New macro.
41943         * lib/gen-uni-tables.c (is_category_LC): New function.
41944         (output_categories): Also handle category LC.
41945         (UC_CATEGORY_MASK_LC): New enumeration value.
41946         (general_category_byname): Also handle category LC.
41947         * lib/unictype/categ_LC.c: New file.
41948         * lib/unictype/categ_LC.h: New file, automatically generated.
41949         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41950         category LC.
41951         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41952         * modules/unictype/category-LC: New file.
41953         * modules/unictype/category-byname (Depends-on): Add
41954         unictype/category-LC.
41955         * modules/unictype/category-all (Depends-on): Likewise.
41957 2011-03-25  Eric Blake  <eblake@redhat.com>
41959         xmalloc: revert yesterday's regression
41960         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41961         realloc's underlying behavior (allowing allocation of zero-size
41962         objects, especially if malloc-gnu is also in use).
41964 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41966         maint.mk: add missing version to VC-tag
41967         * top/maint.mk: git tag was missing actual tag name; add it.
41969         valgrind: do leak checking, and exit with code 1 on error (not 0)
41970         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41971         to VALGRIND.
41973 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41975         posix-modules: say what it does.
41976         * posix-modules: Add a line to the --help output saying what it does.
41978 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41980         xmalloc: Do not leak if underlying realloc is C99 compatible.
41981         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41982         This avoids a leak on C99-based systems.  See
41983         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41985 2011-03-24  Eric Blake  <eblake@redhat.com>
41987         realloc: document portability problem
41988         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41989         passing 0 size to realloc.
41991 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41993         doc: update users.txt
41994         * users.txt: Add cvsps, tmpwatch
41996 2011-03-23  Matt Rice  <ratmice@gmail.com>
41998         doc: update users.txt
41999         * users.txt: Add gdb.
42001 2011-03-23  Jim Meyering  <meyering@redhat.com>
42003         doc: update users.txt
42004         Looking through matches up to the following URL (there are still
42005         several more pages), I found several projects that use gnulib:
42006         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
42007         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
42008         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
42010 2011-03-22  Bruno Haible  <bruno@clisp.org>
42012         unictype/bidi*: Rename functions.
42013         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
42014         uc_bidi_class, uc_is_bidi_class): New declarations.
42015         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
42016         uc_bidi_category_byname.
42017         (uc_bidi_category_byname): New function.
42018         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
42019         u_bidi_category_name.
42020         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
42021         (uc_bidi_category_name): New function.
42022         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
42023         uc_bidi_category.
42024         (uc_bidi_category): New function.
42025         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
42026         uc_is_bidi_category. Invoke uc_bidi_class.
42027         (uc_is_bidi_category): New function.
42028         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
42029         instead of uc_bidi_category_byname.
42030         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
42031         instead of uc_bidi_category_name.
42032         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
42033         uc_bidi_category.
42034         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
42035         instead of uc_is_bidi_category.
42037 2011-03-21  Bruno Haible  <bruno@clisp.org>
42039         New module 'unictype/joininggroup-all'.
42040         * modules/unictype/joininggroup-all: New file.
42042         Tests for module 'unictype/joininggroup-of'.
42043         * modules/unictype/joininggroup-of-tests: New file.
42044         * tests/unictype/test-joininggroup_of.c: New file.
42045         * tests/unictype/test-joininggroup_of.h: New file, automatically
42046         generated by gen-uni-tables.
42048         New module 'unictype/joininggroup-of'.
42049         * modules/unictype/joininggroup-of: New file.
42050         * lib/unictype/joininggroup_of.c: New file.
42051         * lib/unictype/joininggroup_of.h: New file, automatically generated by
42052         gen-uni-tables.
42054         Tests for module 'unictype/joininggroup-byname'.
42055         * modules/unictype/joininggroup-byname-tests: New file.
42056         * tests/unictype/test-joininggroup_byname.c: New file.
42058         New module 'unictype/joininggroup-byname'.
42059         * modules/unictype/joininggroup-byname: New file.
42060         * lib/unictype/joininggroup_byname.c: New file.
42061         * lib/unictype/joininggroup_byname.gperf: New file.
42063         Tests for module 'unictype/joininggroup-name'.
42064         * modules/unictype/joininggroup-name-tests: New file.
42065         * tests/unictype/test-joininggroup_name.c: New file.
42067         New module 'unictype/joininggroup-name'.
42068         * modules/unictype/joininggroup-name: New file.
42069         * lib/unictype/joininggroup_name.c: New file.
42070         * lib/unictype/joininggroup_name.h: New file.
42072         New module 'unictype/joiningtype-all'.
42073         * modules/unictype/joiningtype-all: New file.
42075         Tests for module 'unictype/joiningtype-of'.
42076         * modules/unictype/joiningtype-of-tests: New file.
42077         * tests/unictype/test-joiningtype_of.c: New file.
42078         * tests/unictype/test-joiningtype_of.h: New file, automatically
42079         generated by gen-uni-tables.
42081         New module 'unictype/joiningtype-of'.
42082         * modules/unictype/joiningtype-of: New file.
42083         * lib/unictype/joiningtype_of.c: New file.
42084         * lib/unictype/joiningtype_of.h: New file, automatically generated by
42085         gen-uni-tables.
42087         Tests for module 'unictype/joiningtype-byname'.
42088         * modules/unictype/joiningtype-byname-tests: New file.
42089         * tests/unictype/test-joiningtype_byname.c: New file.
42091         New module 'unictype/joiningtype-byname'.
42092         * modules/unictype/joiningtype-byname: New file.
42093         * lib/unictype/joiningtype_byname.c: New file.
42095         Tests for module 'unictype/joiningtype-name'.
42096         * modules/unictype/joiningtype-name-tests: New file.
42097         * tests/unictype/test-joiningtype_name.c: New file.
42099         New module 'unictype/joiningtype-name'.
42100         * modules/unictype/joiningtype-name: New file.
42101         * lib/unictype/joiningtype_name.c: New file.
42103         unictype: Add support for Arabic shaping properties.
42104         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
42105         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
42106         declarations.
42107         (UC_JOINING_GROUP_*): New enumeration values.
42108         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
42109         declarations.
42110         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
42111         (unicode_joining_type): New variable.
42112         (UC_JOINING_GROUP_*): New enumeration values.
42113         (unicode_joining_group): New variable.
42114         (fill_arabicshaping, joining_type_as_c_identifier,
42115         output_joining_type_test, output_joining_type,
42116         joining_group_as_c_identifier, output_joining_group_test,
42117         output_joining_group): New functions.
42118         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
42119         fill_arabicshaping and output_joining_type_test, output_joining_type,
42120         output_joining_group_test, output_joining_group.
42121         Reported by Simon Josefsson.
42123 2011-03-21  Jim Meyering  <meyering@redhat.com>
42125         strftime: fix a bug in yesterday's change
42126         * lib/strftime.c (add): Accommodate width's initial value of -1.
42127         Otherwise, nstrftime would copy uninitialized data into
42128         the result buffer.
42130 2011-03-21  Jim Meyering  <meyering@redhat.com>
42132         tests: add strftime-tests module
42133         * tests/test-strftime.c: New file.
42134         * modules/strftime-tests: New module.
42136 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42138         strftime: don't assume a byte count fits in 'int'
42139         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42140         found this problem by static analysis, using gcc -Wstrict-overflow
42141         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42142         on an integer overflow having undefined behavior, but it turns out
42143         that the argument is a size, which might not fit in 'int' anyway,
42145 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42147         stdio: don't require ignore_value around fwrite
42149         This patch works around libc bug 11959
42150         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42151         Without this patch, applications must often write
42152         ignore_value (fwrite (...)) even though the ignore_value is
42153         not helpful here.  It's common to write many objects, using
42154         fwrite/printf/etc., and then use ferror to detect output error.
42156         I considered making this patch optional, but decided against it,
42157         because libc is obviously being inconsistent here: there is no
42158         reason libc should insist that user code must inspect fwrite
42159         return's value without also insisting that it inspect printf's,
42160         putchar's, etc.  If user code wants to have a strict style where
42161         all these functions' values are checked (so that ferror need not
42162         be checked), we could add support for that style in a new gnulib
42163         module, but in the meantime it's better to be consistent and to
42164         support common usage.
42166         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42167         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42168         that we are compiling in checking mode, and if not C++, and
42169         if not already wrapping fwrite for some other reason.
42170         (fwrite): #define to rpl_fwrite if the latter is defined.
42172 2011-03-20  Bruno Haible  <bruno@clisp.org>
42174         verror: Fix compilation error introduced on 2011-02-13.
42175         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42176         instead of __attribute__.
42177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42179 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42180             Bruno Haible  <bruno@clisp.org>
42182         socklen: do not depend on sys_socket
42183         While trying to modify Emacs to use gnulib's socklen module,
42184         I discovered a circular dependency: socklen depends on sys_socket
42185         and vice versa.  Emacs can use socklen, but it does not need
42186         sys_socket because it has its own substitute for sys/socket.h.
42187         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42188         gl_TYPE_SOCKLEN_T.
42189         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42190         gl_PREREQ_SYS_H_SOCKET.
42191         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42192         gl_PREREQ_SYS_H_SOCKET.
42193         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42194         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42195         * modules/socklen (Depends-on): Do not depend on sys_socket.
42196         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42198 2011-03-20  Jim Meyering  <meyering@redhat.com>
42200         maint.mk: sort file names *after* new transformation
42201         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42202         prefix would have led to an unwarranted failure in GNU parted.
42203         Sort after that transformation.
42205 2011-03-19  Jim Meyering  <meyering@redhat.com>
42207         maint.mk: fix po-file syntax-check rule
42208         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42209         Patch by Bruno Haible.
42211 2011-03-19  Bruno Haible  <bruno@clisp.org>
42213         socklen: Update comment.
42214         * m4/socklen.m4: Update comment about platforms.
42216 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42217             Bruno Haible  <bruno@clisp.org>
42219         inet_ntop, inet_pton: Simplify.
42220         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42221         documented to provide socklen_t and we already depend on sys_socket.
42222         * modules/inet_pton (Depends-on): Likewise.
42223         * lib/arpa_inet.in.h: Adjust comment.
42225 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42226             Bruno Haible  <bruno@clisp.org>
42228         netdb: Simplify.
42229         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42230         documented to provide socklen_t and we already depend on sys_socket.
42231         * lib/netdb.in.h: Adjust comment.
42233 2011-03-19  Bruno Haible  <bruno@clisp.org>
42235         sys_socket, netdb: Document problem with socklen_t.
42236         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42237         platforms.
42238         * doc/posix-headers/netdb.texi: Likewise.
42240 2011-03-18  Eric Blake  <eblake@redhat.com>
42242         maint.mk: let po check work in VPATH build
42243         * top/maint.mk (po_file): Allow cfg.mk override.
42244         (sc_po_check): Allow VPATH use.
42245         Reported by Jiri Denemark.
42247 2011-03-16  Jim Meyering  <meyering@redhat.com>
42249         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42250         Before, you would have had to create one .x-sc_ file per rule in order
42251         to exempt offending files.  Now, you may instead use a Make variable --
42252         usually defined in cfg.mk -- whose name identifies the affected rule.
42253         * top/maint.mk (_sc_excl): Define.
42254         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42255         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42257 2011-03-13  Bruno Haible  <bruno@clisp.org>
42259         ignore-value tests: Avoid warnings.
42260         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42261         empty for gcc < 3.4.
42263 2011-03-13  Bruno Haible  <bruno@clisp.org>
42265         passfd: Fix link error on Solaris.
42266         * modules/passfd (Description): Correct.
42267         (Depends-on): Add socketlib.
42268         (Link): New section.
42269         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42271 2011-03-13  Bruno Haible  <bruno@clisp.org>
42273         passfd: Fix link error on AIX 5.2.
42274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42276 2011-03-13  Bruno Haible  <bruno@clisp.org>
42278         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42279         * lib/sys_socket.in.h: Include <stddef.h>.
42280         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42281         CMSG_FIRSTHDR. Remove unused variable.
42283 2011-03-13  Bruno Haible  <bruno@clisp.org>
42285         passfd: Fix compilation error on OpenBSD.
42286         * lib/passfd.c: Include <sys/uio.h>.
42288 2011-03-13  Bruno Haible  <bruno@clisp.org>
42290         passfd test: Fix warnings.
42291         * tests/test-passfd.c: Include <sys/wait.h>.
42292         (main): Fix typo.
42294 2011-03-13  Bruno Haible  <bruno@clisp.org>
42296         passfd module, part 4, tweaks.
42297         * tests/test-passfd.c: Reorder includes.
42298         (main): Fix perror and printf calls.
42300 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42302         passfd module, part 4.
42303         * modules/passfd-tests: New file.
42304         * tests/test-passfd.c: New file.
42306 2011-03-13  Jim Meyering  <meyering@redhat.com>
42308         Makefile: rely on GNU make; derive syntax-check rule names
42309         Rather than requiring that each sc_ rule be listed as a dependent
42310         of "check", use features of GNU make to derive the list.
42311         * Makefile (syntax-check-rules): Define.
42312         (check): Depend on the new variable, not the hard-coded list.
42314 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42315             Bruno Haible  <bruno@clisp.org>
42317         passfd module, part 3.
42318         * lib/passfd.h (recvfd): Add a flags argument.
42319         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42320         (recvfd): Add a flags argument.
42321         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42322         exists.
42323         * modules/passfd (Depends-on): Add cloexec.
42324         Suggested by Eric Blake.
42326 2011-03-13  Bruno Haible  <bruno@clisp.org>
42328         passfd module, part 2, tweaks.
42329         * modules/passfd (Files): Reorder.
42330         (Depends-on): Remove errno.
42331         (Include): Remove <sys/socket.h>, <sys/un.h>.
42332         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42333         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42334         specification header. Include <sys/socket.h> always. Don't include
42335         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42336         (sendfd): Clarify that it sets errno when it fails.
42337         (recvfd): Fix specification.
42339 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42341         passfd module, part 2.
42342         * modules/passfd: New file.
42343         * lib/passfd.h: New file.
42344         * lib/passfd.c: New file.
42346 2011-03-12  Bruno Haible  <bruno@clisp.org>
42348         wcswidth, mbswidth: Avoid integer overflow.
42349         * lib/wcswidth.c: Include <limits.h>.
42350         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42351         * lib/mbswidth.c: Include <limits.h>.
42352         (mbsnwidth): Avoid 'int' overflow.
42353         Reported by Jim Meyering.
42355 2011-03-12  Bruno Haible  <bruno@clisp.org>
42357         futimens, utimensat: Avoid endless recursion on Solaris 10.
42358         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42359         Solaris.
42360         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42361         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42363 2011-03-11  Jim Meyering  <meyering@redhat.com>
42365         maint.mk: relax a regexp to accommodate other formatting styles
42366         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42367         between "ngettext" and the following "(".
42369 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42371         maint.mk: suppress a false positive warning
42372         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42373         diagnostics are marked with ngettext.
42375 2011-03-10  Eric Blake  <eblake@redhat.com>
42377         wchar: add explicit dependencies, for Tru64
42378         * modules/mbmemcasecoll (Depends-on): Add wchar.
42379         * modules/mbtowc (Depends-on): Likewise.
42380         * modules/vasnprintf (Depends-on): Likewise.
42381         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42382         * modules/wctomb (Depends-on): Likewise.
42383         Reported by Peter O'Gorman.
42385 2011-03-08  Bruno Haible  <bruno@clisp.org>
42387         passfd module, part 1, tweaks.
42388         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42389         Improve indentation. Improve AC_MSG_CHECKING messages.
42390         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42391         gl_SOCKET_FAMILIES.
42393 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42395         passfd module, part 1.
42396         * m4/afunix.m4: New file.
42397         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42398         sockets.
42400 2011-03-08  Bruno Haible  <bruno@clisp.org>
42402         regex-quote: New API.
42403         * lib/regex-quote.h: Include <stdbool.h>.
42404         (struct regex_quote_spec): New type.
42405         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42406         New declarations.
42407         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42408         'const struct regex_quote_spec *' argument.
42409         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42410         (pcre_special): New constant.
42411         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42412         New functions.
42413         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42414         'const struct regex_quote_spec *' argument.
42415         * modules/regex-quote (Depends-on): Add stdbool.
42416         * tests/test-regex-quote.c (check): Update for new API. Add test for
42417         anchored results.
42418         * NEWS: Mention the API change.
42419         Reported by Reuben Thomas and Eric Blake.
42421 2011-03-06  Bruno Haible  <bruno@clisp.org>
42423         regex-quote: Fix creation of POSIX extended regular expressions.
42424         * lib/regex-quote.c (ere_special): Add grouping and alternation
42425         operators.
42427 2011-03-05  Bruno Haible  <bruno@clisp.org>
42429         doc: Improve doc regarding autopoint vs. gnulib.
42430         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42431         disable autopoint while running autoreconf.
42432         Suggested by Ralf Wildenhues.
42434 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42436         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42437         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42439 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42441         parse-duration: remove xalloc.h dependency
42442         * lib/parse-duration.c (parse_period): handle NULL return from
42443         strdup instead of calling xstrdup().
42444         * modules/parse-duration: remove "xalloc" dependency
42446 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42448         bootstrap: honor m4_base when running aclocal
42449         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42451 2011-03-02  Jim Meyering  <meyering@redhat.com>
42453         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42454         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42455         on request from Matt Booth.
42457 2011-03-01  Eric Blake  <eblake@redhat.com>
42459         test-link: work on Hurd
42460         * tests/test-link.h (test_link): Hurd rejects linking directories
42461         with EISDIR instead of the POSIX-mandated EPERM.
42463 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42465         stdio: simplify by moving files to printf-posix, sigpipe
42466         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42467         since this symbol is needed only if printf is replaced.
42468         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42469         Require gl_ASM_SYMBOL_PREFIX.
42470         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42471         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42472         (Depends-on): Add 'raise'.
42473         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42474         * modules/stdio (Files): Remove lib/stdio-write.c,
42475         m4/asm-underscore.m4.
42476         (Depends-on): Remove 'raise'.
42478         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42479         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42480         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42481         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42483 2011-02-28  Bruno Haible  <bruno@clisp.org>
42485         localcharset: Assume ANSI C behaviour of free().
42486         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42487         calling free().
42488         Suggested by Simon Josefsson <simon@josefsson.org>.
42490 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42491             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42492             Bruno Haible  <bruno@clisp.org>  (tiny change)
42494         On Cygwin, use /proc file system instead of win32 API.
42495         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42496         Win32 file names.
42497         (DllMain): Simplify by removing Cygwin specific code.
42498         (find_shared_library_fullname): Use Linux specific implementation also
42499         for Cygwin.
42500         (get_shared_library_fullname): Update accordingly.
42501         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42502         Win32 file names.
42503         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42504         Cygwin specific code.
42506 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42507             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42509         Fix OpenMP flag detection for various Fortran compilers.
42510         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42511         OpenMP-conditional compilation construct, to force compile
42512         failure with missing OpenMP flag.
42513         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42515 2011-02-25  Eric Blake  <eblake@redhat.com>
42517         strstr: expand test coverage
42518         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42519         compilation.
42520         * tests/test-memmem.c (main): Duplicate tests.
42521         * tests/test-strcasestr.c (main): Likewise.
42522         * tests/test-c-strcasestr.c (main): Likewise.
42524 2011-02-25  Jim Meyering  <meyering@redhat.com>
42526         maint.mk: detect missing-NL-at-EOF, too
42527         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42528         it also detects when a file lacks a newline at EOF.
42529         (require_exactly_one_NL_at_EOF_): Renamed from
42530         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42531         since people may well have .x-sc_... file names tied to the
42532         existing name.  Suggested by Eric Blake.
42534 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42536         dirname: move m4/dos.m4 functionality into lib/dosname.h
42538         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42539         extracts symbols from it, puts them into config.h; but it's much
42540         easier to use the symbols directly.  filename.h already does this,
42541         but it disagrees with dos.m4 in some respects.  This patch
42542         introduces a different include file dosname.h that packages up
42543         dos.m4, and then later we can work on merging filename.h and
42544         dosname.h.  Applications that need only the easy-to-configure
42545         symbols should consider including dosname.h rather than dirname.h.
42546         * NEWS: Mention incompatible changes.
42547         * m4/dos.m4: Remove.
42548         * lib/dosname.h, modules/dosname: New files.
42549         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42550         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42551         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42552         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42553         Include dosname.h, not dirname.h.
42554         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42555         Include dosname.h, for definitions of symbols like ISSLASH
42556         that used to be in config.h.
42557         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42559         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42560         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42561         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42562         * modules/rmdir (Files): Likewise.
42563         * modules/stat (Files): Likewise.
42564         * modules/unlink (Files): Likewise.
42565         * modules/dirname-lgpl (Depends-on): Add dosname.
42566         * modules/lstat (Depends-on): Likewise.
42567         * modules/openat (Depends-on): Likewise.
42568         * modules/rmdir (Depends-on): Likewise.
42569         * modules/savewd (Depends-on): Likewise.
42570         * modules/stat (Depends-on): Likewise.
42571         * modules/unlink (Depends-on): Likewise.
42572         * modules/openat (Depends-on): Remove dirname-lgpl.
42573         * modules/savewd (Depends-on): Likewise.
42574         * tests/test-dirname.c: Do not use removed symbols like
42575         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42576         the remaining symbols, e.g., ISSLASH ('\\').
42578 2011-02-25  Eric Blake  <eblake@redhat.com>
42580         strstr: revert patches that introduced bug and pessimization
42581         * lib/str-two-way.h: Add another reference.
42582         (two_way_short_needle, two_way_long_needle): Revert changes from
42583         2011-02-24; they pessimize search speed.
42584         (critical_factorization): Partially revert changes from
42585         2010-06-22; they violate the requirement that the left half of the
42586         needle be smaller than the period of the needle.
42588 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42590         filenamecat: remove unnecessary dependency on dirname-lgpl
42591         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42592         is no direct dependency, just an indirect one via filenamecat-lgpl.
42594         remove: remove unnecessary use of m4/dos.m4
42595         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42596         * modules/remove (FILES): Remove m4/dos.m4.
42598         * lib/openat-proc.c: Don't include dirname.h; not needed.
42600         backupfile: remove unnecessary use of m4/dos.m4
42601         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42602         of its symbols are used by the backupfile code.  backupfile.c does
42603         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42604         for the rare case of programs that want all their backup file
42605         names to live within 8+3 limits, and dos.m4 doesn't address that.
42606         * modules/backupfile (Files): Remove m4/dos.m4.
42608 2011-02-24  Jim Meyering  <meyering@redhat.com>
42610         strstr: fix a bug whereby strstr would mistakenly return NULL
42611         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42612         in period calculation.
42613         (two_way_long_needle): Likewise.
42614         The original problem was reported by Mike Stump in
42615         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42616         Ralf Wildenhues provided the short needle and haystack.
42617         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42618         Add a more involved test to trigger the bug in two_way_long_needle.
42620 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42622         gnulib-tool: remove use of bold display in help screen
42623         * gnulib-tool (func_usage): Do not use bold display anymore in the
42624         help screen.  That was just meant to be a temporary emphasis for a
42625         backward-incompatible change.
42627 2011-02-23  Bruno Haible  <bruno@clisp.org>
42629         Fix misindentation of preprocessor directives.
42630         * lib/argp-namefrob.h: Reindent preprocessor directives.
42631         * lib/getopt_int.h (struct _getopt_data): Likewise.
42632         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42633         * lib/vasnprintf.c (decode_long_double): Likewise.
42634         * tests/test-argmatch.c: Insert blank lines, for clarity.
42635         * tests/test-exclude.c: Likewise.
42637 2011-02-22  Bruno Haible  <bruno@clisp.org>
42639         ioctl: Fix for MacOS X in 64-bit mode.
42640         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42641         value.
42642         Suggested by Eric Blake.
42643         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42645 2011-02-22  Jim Meyering  <meyering@redhat.com>
42647         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42648         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42649         in lib/.
42651 2011-02-22  Eric Blake  <eblake@redhat.com>
42653         maint: avoid any CDPATH issue
42654         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42656         maint: adjust cpp indentation for my modules, as well
42657         * Makefile (sc_cpp_indent_check): Add my name.
42658         * lib/fbufmode.c: Filter through cppi.
42659         * lib/fpurge.c: Likewise.
42660         * lib/freadable.c: Likewise.
42661         * lib/freading.c: Likewise.
42662         * lib/fwritable.c: Likewise.
42663         * lib/fwriting.c: Likewise.
42664         * lib/sigaction.c: Likewise.
42666 2011-02-22  Jim Meyering  <meyering@redhat.com>
42668         maint: adjust cpp indentation to reflect nesting depth
42669         I.e., in a block of code that begins with an unnested "#if",
42670         put one space between the "#" in column 1 and following token.
42671         For example,
42672         -#include <sys/vfs.h>
42673         +# include <sys/vfs.h>
42674         Do this only in .c files that are part of a module I maintain.
42675         * lib/linkat.c: Filter through cppi.
42676         * lib/nanosleep.c: Likewise.
42677         * lib/openat.c: Likewise.
42678         * lib/openat-die.c: Likewise.
42679         * lib/dup3.c: Likewise.
42680         * lib/fchownat.c: Likewise.
42681         * lib/flock.c: Likewise.
42682         * lib/fsync.c: Likewise.
42683         * lib/fts.c: Likewise.
42684         * lib/getpass.c: Likewise.
42685         * lib/gettimeofday.c: Likewise.
42686         * lib/userspec.c: Likewise.
42687         * Makefile (sc_cpp_indent_check): New rule, to check this.
42689 2011-02-22  Bruno Haible  <bruno@clisp.org>
42691         New module 'wctomb'.
42692         * lib/stdlib.in.h (wctomb): New declaration.
42693         * lib/wctomb.c: New file.
42694         * lib/wctomb-impl.h: New file.
42695         * m4/wctomb.m4: New file.
42696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42697         REPLACE_WCTOMB.
42698         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42699         REPLACE_WCTOMB.
42700         * modules/wctomb: New file.
42701         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42702         * doc/posix-functions/wctomb.texi: Mention the new module.
42703         * modules/wctob (Depends-on): Add wctomb.
42705 2011-02-22  Bruno Haible  <bruno@clisp.org>
42707         New module 'mbtowc'.
42708         * lib/stdlib.in.h (mbtowc): New declaration.
42709         * lib/mbtowc.c: New file.
42710         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42711         * m4/mbtowc.m4: New file.
42712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42713         REPLACE_MBTOWC.
42714         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42715         REPLACE_MBTOWC.
42716         * modules/mbtowc: New file.
42717         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42718         * doc/posix-functions/mbtowc.texi: Mention the new module.
42719         * modules/btowc (Depends-on): Add mbtowc.
42721 2011-02-22  Bruno Haible  <bruno@clisp.org>
42723         wcrtomb: Add more tests for native Windows platforms.
42724         * tests/test-wcrtomb-w32-1.sh: New file.
42725         * tests/test-wcrtomb-w32-2.sh: New file.
42726         * tests/test-wcrtomb-w32-3.sh: New file.
42727         * tests/test-wcrtomb-w32-4.sh: New file.
42728         * tests/test-wcrtomb-w32-5.sh: New file.
42729         * tests/test-wcrtomb-w32.c: New file.
42730         * modules/wcrtomb-tests (Files): Add them.
42731         (Makefile.am): Arrange to run these tests.
42732         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42733         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42735 2011-02-20  Bruno Haible  <bruno@clisp.org>
42737         wcrtomb: Enhance test.
42738         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42740 2011-02-20  Bruno Haible  <bruno@clisp.org>
42742         mbrtowc: Tiny optimization.
42743         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42745 2011-02-20  Jim Meyering  <meyering@redhat.com>
42747         test-exclude.c: remove unmatched #endif
42748         * tests/test-exclude.c: Remove stray #endif, left over from
42749         the change of a week ago.
42751 2011-02-19  Jim Meyering  <meyering@redhat.com>
42753         git-version-gen: skip "-dirty" check when appropriate
42754         * build-aux/git-version-gen: Don't run any git commands when the
42755         version string comes from .tarball-version.  Prior to this, we
42756         would run git update-index --refresh even from a just-unpacked
42757         tarball directory, and that could affect a .git/ directory in a
42758         parent of the build directory.  Reported by Mike Frysinger.
42760 2011-02-19  Bruno Haible  <bruno@clisp.org>
42762         unictype/property-byname: Reduce the size of the 'data' segment.
42763         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42765 2011-02-19  Bruno Haible  <bruno@clisp.org>
42767         unictype/scripts: Reduce the size of the 'data' segment.
42768         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42769         '%pic'.
42770         * lib/unictype/scripts_byname.gperf: Regenerated.
42772 2011-02-19  Bruno Haible  <bruno@clisp.org>
42774         stdint: Update documentation.
42775         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42777 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42779         stdint: omit redundant check for wchar.h
42780         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42781         always tests whether wchar.h exists, so remove the now-redundant test.
42783 2011-02-18  Bruno Haible  <bruno@clisp.org>
42785         stdint: Cut dependency to module 'wchar'.
42786         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42787         include the necessary prerequisites.
42788         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42789         * modules/stdint (Depends-on): Remove wchar.
42790         (Makefile.am): Substitute HAVE_WCHAR_H.
42791         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42793 2011-02-18  Eric Blake  <eblake@redhat.com>
42795         longlong: skip, rather than fail, on cross-compilation
42796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42797         when cross-compiling; regression from 2011-02-16.
42799 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42801         * NEWS: Mention 2011-02-08 change to stdlib.
42803 2011-02-17  Bruno Haible  <bruno@clisp.org>
42805         getloadavg: Add comments about platforms.
42806         * m4/getloadavg.m4: Add comment.
42807         * lib/getloadavg.c: Likewise.
42809 2011-02-17  Bruno Haible  <bruno@clisp.org>
42811         getloadavg: Fix link error on Solaris 2.6.
42812         * modules/getloadavg (Link): New section.
42813         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42814         linking test-getloadavg.
42815         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42816         getloadavg.
42818 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42820         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42821         It was 'int', but this doesn't match the IRIX 6.5 manual.
42822         Suggested by Bruno Haible in
42823         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42825 2011-02-17  Bruno Haible  <bruno@clisp.org>
42827         havelib: Fix comments.
42828         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42829         change.
42831 2011-02-17  Bruno Haible  <bruno@clisp.org>
42833         havelib: Update config.rpath.
42834         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42836 2011-02-17  Bruno Haible  <bruno@clisp.org>
42838         getloadavg test: Add some plausibility checks.
42839         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42840         is improbable.
42842 2011-02-16  Eric Blake  <eblake@redhat.com>
42844         maintainer-makefile: make syntax-check a no-op from tarballs
42845         * top/maint.mk (no-vc-detected): New rule.
42846         (local-checks-available): Use it to avoid hanging if someone tries
42847         'make syntax-check' from a tarball.  Also append to any non-syntax
42848         checks already defined in cfg.mk.
42850 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42852         longlong: tune, particularly for common case of c99
42854         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42855         or running anything if c99, or if unsigned long long int does not
42856         work.  In either case, we know the answer without further tests.
42857         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42858         it at most once, and use its results for both long long int and
42859         unsigned long long int.  This is more likely to be efficient in
42860         the common case where the program wants to check for both long
42861         long int and unsigned long long int.
42862         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42863         since the answer is already known.
42865 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42867         getloadavg: set errno
42868         * lib/getloadavg.c: Set errno when returning -1.  If no other
42869         error number looks appropriate, set it to ENOSYS if the getloadavg
42870         looks like it can't possibly ever work, ENOTSUP otherwise.
42871         Suggested by Bruno Haible in
42872         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42874         getloadavg: trim unused parts and speed up 'configure'
42875         * NEWS: Document this.
42876         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42877         always compiled if getloadavg is absent.
42878         Move test code to ...
42879         * tests/test-getloadavg.c: New file, containing previous
42880         contents of test from lib/getloadavg.c.  It also contains
42881         suggestions by Bruno Haible in
42882         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42883         * modules/getloadavg-tests: New file.
42884         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42885         Do tests in the same order as they're needed for getloadavg.c.
42886         Omit setgid-related tests that generate symbols KMEM_GROUP,
42887         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42888         Do only the tests that are needed to see whether the system has
42889         getloadavg, moving the other tests into ...
42890         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42891         NLIST_NAME_UNION; nobody should be using it.  Do not define
42892         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42893         relevant, as the user of this module shouldn't care how getloadavg
42894         is implemented.
42896         getloadavg: omit unused var
42897         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42899 2011-02-15  Jim Meyering  <meyering@redhat.com>
42901         doc: update users.txt
42902         * users.txt: Update iwhd's URL.
42904 2011-02-13  Bruno Haible  <bruno@clisp.org>
42906         Consistent macro naming for macros that use GCC __attribute__.
42907         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42908         _ATTRIBUTE_NONNULL_.
42909         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42910         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42911         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42912         ATTRIBUTE_DEPRECATED.
42913         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42914         ATTRIBUTE_NORETURN.
42915         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42916         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42917         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42918         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42919         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42920         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42921         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42922         ATTRIBUTE_SENTINEL.
42923         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42924         ATTRIBUTE_RETURN_CHECK.
42925         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42926         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42927         ATTRIBUTE_NORETURN.
42928         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42929         Reported by Paul Eggert.
42931 2011-02-13  Bruno Haible  <bruno@clisp.org>
42933         Don't interfere with a program's definition of __attribute__.
42934         * lib/argp.h (__attribute__): Remove definition.
42935         (_GL_ATTRIBUTE_FORMAT): New macro.
42936         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42937         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42938         (_GL_ATTRIBUTE_FORMAT): New macro.
42939         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42940         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42941         GCC 3 or newer.
42942         * lib/error.h (__attribute__): Remove definition.
42943         (_GL_ATTRIBUTE_FORMAT): New macro.
42944         (error, error_at_line): Use it.
42945         * lib/hash.h (__attribute__): Remove definition.
42946         (ATTRIBUTE_WUR): Update definition. Define always.
42947         * lib/openat.h (__attribute__): Remove definition.
42948         (ATTRIBUTE_NORETURN): Update definition. Define always.
42949         * lib/sigpipe-die.h (__attribute__): Remove definition.
42950         (ATTRIBUTE_NORETURN): Update definition. Define always.
42951         * lib/vasnprintf.h (__attribute__): Remove definition.
42952         (_GL_ATTRIBUTE_FORMAT): New macro.
42953         (asnprintf, vasnprintf): Use it.
42954         * lib/xalloc.h (__attribute__): Remove definition.
42955         (ATTRIBUTE_NORETURN): Update definition. Define always.
42956         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42957         * lib/xmemdup0.h (__attribute__): Remove definition.
42958         (ATTRIBUTE_NORETURN): Update definition. Define always.
42959         * lib/xprintf.h (__attribute__): Remove definition.
42960         (_GL_ATTRIBUTE_FORMAT): New macro.
42961         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42962         * lib/xstrtol.h (__attribute__): Remove definition.
42963         (ATTRIBUTE_NORETURN): Update definition. Define always.
42964         * lib/xvasprintf.h (__attribute__): Remove definition.
42965         (_GL_ATTRIBUTE_FORMAT): New macro.
42966         (xasprintf, xvasprintf): Use it.
42967         * tests/test-argmatch.c (__attribute__): Remove definition.
42968         (ATTRIBUTE_NORETURN): Update definition. Define always.
42969         * tests/test-exclude.c (__attribute__): Remove definition.
42970         (ATTRIBUTE_NORETURN): Update definition. Define always.
42971         Reported by Paul Eggert.
42973 2011-02-13  Bruno Haible  <bruno@clisp.org>
42975         mbrtowc: Add more tests for native Windows platforms.
42976         * tests/test-mbrtowc-w32-1.sh: New file.
42977         * tests/test-mbrtowc-w32-2.sh: New file.
42978         * tests/test-mbrtowc-w32-3.sh: New file.
42979         * tests/test-mbrtowc-w32-4.sh: New file.
42980         * tests/test-mbrtowc-w32-5.sh: New file.
42981         * tests/test-mbrtowc-w32.c: New file.
42982         * modules/mbrtowc-tests (Files): Add them.
42983         (Makefile.am): Arrange to run these tests.
42984         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42985         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42987 2011-02-13  Bruno Haible  <bruno@clisp.org>
42989         mbrtowc: Work around native Windows bug.
42990         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42991         guess when no suitable locale for testing was found.
42992         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42994 2011-02-13  Bruno Haible  <bruno@clisp.org>
42996         mbsinit: Work around mingw bug.
42997         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42998         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42999         Windows.
43000         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
43002 2011-02-13  Bruno Haible  <bruno@clisp.org>
43004         mbsinit: Don't crash for a NULL argument.
43005         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
43006         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
43008 2011-02-13  Bruno Haible  <bruno@clisp.org>
43010         Don't interfere with a program's definition of __attribute__.
43011         * lib/stdio.in.h (__attribute__): Remove definition.
43012         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
43013         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
43014         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
43015         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
43016         * lib/string.in.h (__attribute__): Remove definition.
43017         Reported by Paul Eggert.
43019 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43021         stdlib: don't get in the way of non-GCC __attribute__
43022         See thread starting at
43023         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
43024         Revert previous stdlib change, installing the following instead:
43025         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
43026         to get in the way of a non-GCC compiler that supports __attribute__.
43027         (_GL_ATTRIBUTE_RETURN): New macro.
43028         (_Exit): Use it instead of __attribute__.
43030 2011-02-12  Bruno Haible  <bruno@clisp.org>
43032         quotearg test: Avoid test failure on mingw.
43033         * tests/test-quotearg.sh: Convert the locale identifier from native
43034         Windows syntax to Unix syntax.
43036 2011-02-12  Bruno Haible  <bruno@clisp.org>
43038         setlocale: Prefer gnulib's override over libintl's override.
43039         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
43040         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
43041         GNULIB_defined_setlocale is set.
43043 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43045         stdlib: support non-GCC __attribute__
43047         Fix a serious and tricky problem encountered when attempting to
43048         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
43049         5.5, but it crashed due to memory corruption on Solaris 10 with
43050         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
43051         bits that are otherwise zero.  This tagging is optional inside
43052         Emacs but is preferred and is used when __attribute__ ((__aligned
43053         (8))) works, as it does with both recent-enough GCC and with Sun C
43054         5.11.  However, Sun C 5.11 is not GCC and does not #define
43055         __GNUC__ and __GNUC_MINOR__.
43057         When I added the getloadavg module to Emacs, it brought in
43058         stdlib.in.h, which contained this fragment:
43060            #ifndef __attribute__
43061            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
43062            #  define __attribute__(Spec)   /* empty */
43063            # endif
43064            #endif
43066         When files that include <stdlib.h> were compiled with Sun C 5.11,
43067         the above code disabled __attribute__ ((__aligned (8))), which
43068         caused variables to not be properly aligned, which eventually led
43069         to the pointer corruption mentioned above.  (This was a bit hard
43070         to diagnose, unfortunately.)
43072         Several "#define __attribute__(X) /* empty */" code snippets need
43073         to be eradicated from Gnulib to work with non-GCC compilers that
43074         support __attribute__.  The Autoconf way to do this is to test for
43075         each kind of attribute that we want support for, and selectively
43076         enable that in source code.
43078         Fix this problem just for stdlib.h, by adding a test for the
43079         __noreturn__ attribute, and change stdlib.in.h to use that test
43080         when needed.  This technique can be easily generalized to the
43081         other *.in.h files and attributes, and a similar technique can be
43082         used for *.h and *.c files.  This patch is enough to solve the
43083         problem for Emacs + getloadavg, and I thought I'd publish it for
43084         feedback before undertaking further, similar fixes in other
43085         modules.
43087         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
43088         because it's not needed for stdlib.h.  It merely substitutes the
43089         value directly into stdlib.h.  We may well need to #define it, or
43090         similar symbols, for other modules, but it's nice to also have an
43091         option to not #define it for applications like Emacs that do not
43092         need it.
43094         * lib/stdlib.in.h (__attribute__): Do not #define.
43095         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
43096         be defined only if the _Exit module is also used.
43097         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
43098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
43099         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
43100         platforms.
43101         * modules/_Exit (Files): Add m4/attribute.m4.
43102         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
43103         * m4/attribute.m4: New file.
43105 2011-02-12  Bruno Haible  <bruno@clisp.org>
43107         wcsrtombs: Work around bug on native Windows.
43108         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
43109         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
43110         instead of len.
43111         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
43113 2011-02-12  Bruno Haible  <bruno@clisp.org>
43115         mbsrtowcs: Work around bug on native Windows.
43116         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
43117         against mingw bug.
43118         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
43120 2011-02-12  Bruno Haible  <bruno@clisp.org>
43122         Avoid setlocale bugs in tests.
43123         * modules/btowc (Dependencies): Add setlocale.
43124         * modules/c-strcase (Dependencies): Likewise.
43125         * modules/mbmemcasecmp (Dependencies): Likewise.
43126         * modules/mbmemcasecoll (Dependencies): Likewise.
43127         * modules/mbrtowc (Dependencies): Likewise.
43128         * modules/mbscasecmp (Dependencies): Likewise.
43129         * modules/mbscasestr (Dependencies): Likewise.
43130         * modules/mbschr (Dependencies): Likewise.
43131         * modules/mbscspn (Dependencies): Likewise.
43132         * modules/mbsinit (Dependencies): Likewise.
43133         * modules/mbsncasecmp (Dependencies): Likewise.
43134         * modules/mbsnrtowcs (Dependencies): Likewise.
43135         * modules/mbspbrk (Dependencies): Likewise.
43136         * modules/mbspcasecmp (Dependencies): Likewise.
43137         * modules/mbsrchr (Dependencies): Likewise.
43138         * modules/mbsrtowcs (Dependencies): Likewise.
43139         * modules/mbsspn (Dependencies): Likewise.
43140         * modules/mbsstr (Dependencies): Likewise.
43141         * modules/nl_langinfo (Dependencies): Likewise.
43142         * modules/quotearg (Dependencies): Likewise.
43143         * modules/unicase/locale-language (Dependencies): Likewise.
43144         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43145         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43146         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43147         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43148         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43149         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43150         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43151         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43152         * modules/vasnprintf-posix (Dependencies): Likewise.
43153         * modules/wcrtomb (Dependencies): Likewise.
43154         * modules/wcsnrtombs (Dependencies): Likewise.
43155         * modules/wcsrtombs (Dependencies): Likewise.
43157 2011-02-12  Bruno Haible  <bruno@clisp.org>
43159         setlocale: Workaround native Windows bug.
43160         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43161         succeeds but sets LC_CTYPE to "C", report a failure.
43162         * tests/test-setlocale2.sh: New file.
43163         * tests/test-setlocale2.c: New file.
43164         * modules/setlocale-tests (Files): Add the new files.
43165         (Makefile.am): Enable test-setlocale2.sh test.
43166         * doc/posix-functions/setlocale.texi: Mention workaround.
43168 2011-02-11  Bruno Haible  <bruno@clisp.org>
43170         Tests for module 'setlocale'.
43171         * modules/setlocale-tests: New file.
43172         * tests/test-setlocale1.sh: New file.
43173         * tests/test-setlocale1.c: New file.
43175         New module 'setlocale'.
43176         * lib/locale.in.h (setlocale): New declaration.
43177         * lib/setlocale.c: New file, based on
43178         gettext/gettext-runtime/intl/setlocale.c.
43179         * m4/setlocale.m4: New file.
43180         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43181         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43182         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43183         REPLACE_SETLOCALE.
43184         * modules/setlocale: New file.
43185         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43186         * doc/posix-functions/setlocale.texi: Mention the new module.
43188 2011-02-11  Bruno Haible  <bruno@clisp.org>
43190         Prepare for locale dependent tests on mingw.
43191         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43192         because it has the wrong locale encoding.
43193         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43194         French_France.1252 instead of "fr".
43195         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43196         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43197         because it has the wrong locale encoding.
43198         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43199         native Windows, try Turkish_Turkey.65001.
43200         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43201         Chinese_China.54936.
43203         Prepare for locale dependent tests on mingw.
43204         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43205         differently.
43206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43207         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43211 2011-02-11  Eric Blake  <eblake@redhat.com>
43213         strptime: avoid compiler warnings
43214         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43215         compiler warnings about dead code.
43216         Reported by Daniel P. Berrange.
43218 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43220         doc: update users.txt
43221         * users.txt: Add rcs.
43223 2011-02-10  John W. Eaton  <jwe@gnu.org>
43225         doc: update users.txt
43226         * users.txt: Add octave.
43228 2011-02-10  Jim Meyering  <meyering@redhat.com>
43230         doc: update users.txt
43231         * users.txt: Add iwhd.
43233 2011-02-09  Bruno Haible  <bruno@clisp.org>
43235         gnulib-tool: Make copyright notice adjustment more robust.
43236         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43237         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43238         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43239         License".
43240         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43242 2011-02-06  Bruno Haible  <bruno@clisp.org>
43244         New module 'towctrans'.
43245         * modules/towctrans: New file.
43246         * lib/wctype.in.h (towctrans): New declaration.
43247         * lib/towctrans.c: New file.
43248         * lib/towctrans-impl.h: New file.
43249         * m4/towctrans.m4: New file.
43250         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43251         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43252         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43253         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43254         * doc/posix-functions/towctrans.texi: Mention the new module.
43256 2011-02-06  Bruno Haible  <bruno@clisp.org>
43258         New module 'wctrans'.
43259         * modules/wctrans: New file.
43260         * lib/wctype.in.h (wctrans): New declaration.
43261         * lib/wctrans.c: New file.
43262         * lib/wctrans-impl.h: New file.
43263         * m4/wctrans.m4: New file.
43264         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43265         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43266         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43267         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43268         * doc/posix-functions/wctrans.texi: Mention the new module.
43270 2011-02-06  Bruno Haible  <bruno@clisp.org>
43272         New module 'iswctype'.
43273         * modules/iswctype: New file.
43274         * lib/wctype.in.h (iswctype): New declaration.
43275         * lib/iswctype.c: New file.
43276         * lib/iswctype-impl.h: New file.
43277         * m4/iswctype.m4: New file.
43278         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43279         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43280         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43281         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43282         * doc/posix-functions/iswctype.texi: Mention the new module and the
43283         HP-UX 11.00 problem.
43285 2011-02-06  Bruno Haible  <bruno@clisp.org>
43287         New module 'wctype'.
43288         * modules/wctype: Change to represent the wctype() substitute.
43289         * lib/wctype.in.h (wctype): New declaration.
43290         * lib/wctype.c: New file.
43291         * lib/wctype-impl.h: New file.
43292         * m4/wctype.m4: New file.
43293         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43294         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43295         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43296         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43297         * doc/posix-functions/wctype.texi: Mention the new module and the
43298         HP-UX 11.00 problem.
43300 2011-02-06  Bruno Haible  <bruno@clisp.org>
43302         wctype-h: Ensure wctype_t and wctrans_t are defined.
43303         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43304         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43305         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43306         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43307         HAVE_WCTRANS_T.
43308         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43310 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43312         flock: fix license typo
43314         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43315         omitted.
43317 2011-02-08  Bruno Haible  <bruno@clisp.org>
43319         Split large sed scripts, for HP-UX sed.
43320         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43321         to avoid HP-UX limit of 99 commands, in the near future.
43322         * modules/stdlib (Makefile.am): Likewise.
43323         * modules/unistd (Makefile.am): Likewise.
43324         * modules/wchar (Makefile.am): Likewise.
43325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43326         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43327         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43329 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43330             Bruno Haible  <bruno@clisp.org>
43332         stdlib: improve random_r modularization
43333         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43334         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43335         you also need the random_r module to get this material right.
43336         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43337         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43338         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43340 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43342         stdlib: don't depend on stdint
43343         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43344         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43345         be independent of whether stdint.h is needed.
43346         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43347         here, instead of ...
43348         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43349         struct random_data should be using the random_r module, not just
43350         the stdlib module (which wouldn't make sense: what package needs
43351         just struct random_data without also needing random_r?).
43352         * modules/stdlib (Depends-on): Remove stdint.
43354         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43355         See the thread rooted at
43356         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43357         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43358         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43359         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43360         __VMS)); previously it was always included (via fcntl--.h).
43361         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43362         hand; this is good enough for load averages.  Also, do not use
43363         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43364         flags directly if available and don't bother otherwise.  (Packages
43365         that need the extra reliability should use the modules that define
43366         these flags on older platforms that lack them.)
43367         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43368         fcntl-safer.
43370 2011-02-08  Jim Meyering  <meyering@redhat.com>
43372         di-set.h, ino-map.h: add multiple-inclusion guard
43373         Technically, the guard is required only for ino-map.h, due to its
43374         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43375         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43376         * lib/ino-map.h: Likewise.
43378 2011-02-06  Bruno Haible  <bruno@clisp.org>
43380         iswblank: Ensure declaration on glibc systems.
43381         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43382         * modules/iswblank (Dependencies): Add 'extensions'.
43383         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43385 2011-02-06  Bruno Haible  <bruno@clisp.org>
43387         New module 'iswblank'.
43388         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43389         * modules/iswblank: New file.
43390         * modules/wctype-h (Files): Remove lib/iswblank.c.
43391         (Makefile.am): Substitute GNULIB_ISWBLANK.
43392         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43393         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43394         (gl_WCTYPE_H_DEFAULTS): New macro.
43395         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43396         * modules/iswblank-tests: New file.
43397         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43398         * tests/test-wctype-h.c (main): Remove iswblank tests.
43399         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43400         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43401         of 'wctype-h'.
43402         * NEWS: Mention the change.
43403         * modules/mbchar (Depends-on): Add iswblank.
43405 2011-02-08  Bruno Haible  <bruno@clisp.org>
43407         di-set tests: Refactor.
43408         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43409         unnecessary includes.
43410         (ASSERT): Remove macro.
43411         (main): Make C90 compliant by avoiding variable declaration after
43412         statement.
43413         * modules/di-set-tests (Files): Add tests/macros.h.
43415 2011-02-08  Bruno Haible  <bruno@clisp.org>
43417         ino-map tests: Refactor.
43418         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43419         unnecessary includes.
43420         (ASSERT): Remove macro.
43421         (main): Make C90 compliant by avoiding variable declaration after
43422         statement.
43423         * modules/ino-map-tests (Files): Add tests/macros.h.
43425 2011-02-08  Jim Meyering  <meyering@redhat.com>
43427         di-set: add "const" to a cast
43428         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43429         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43431 2011-02-06  Bruno Haible  <bruno@clisp.org>
43433         Rename module 'wctype' to 'wctype-h'.
43434         * modules/wctype-h: Renamed from modules/wctype.
43435         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43436         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43437         (Files, Depends-on, Makefile.am): Update.
43438         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43439         (Files, Makefile.am): Update.
43440         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43441         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43442         * doc/posix-headers/wctype.texi: Update.
43443         * doc/posix-functions/iswalnum.texi: Update.
43444         * doc/posix-functions/iswalpha.texi: Update.
43445         * doc/posix-functions/iswblank.texi: Update.
43446         * doc/posix-functions/iswcntrl.texi: Update.
43447         * doc/posix-functions/iswdigit.texi: Update.
43448         * doc/posix-functions/iswgraph.texi: Update.
43449         * doc/posix-functions/iswlower.texi: Update.
43450         * doc/posix-functions/iswprint.texi: Update.
43451         * doc/posix-functions/iswpunct.texi: Update.
43452         * doc/posix-functions/iswspace.texi: Update.
43453         * doc/posix-functions/iswupper.texi: Update.
43454         * doc/posix-functions/iswxdigit.texi: Update.
43455         * doc/posix-functions/towlower.texi: Update.
43456         * doc/posix-functions/towupper.texi: Update.
43457         * NEWS: Mention the change.
43458         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43459         * modules/mbchar (Dependencies): Likewise.
43460         * modules/mbswidth (Dependencies): Likewise.
43461         * modules/quotearg (Dependencies): Likewise.
43462         * modules/regex (Dependencies): Likewise.
43463         * modules/wcscasecmp (Dependencies): Likewise.
43464         * modules/wcsncasecmp (Dependencies): Likewise.
43465         * modules/wcwidth (Dependencies): Likewise.
43467 2011-02-06  Bruno Haible  <bruno@clisp.org>
43469         New module 'wcswidth'.
43470         * modules/wcswidth: New file.
43471         * lib/wchar.in.h (wcswidth): New declaration.
43472         * lib/wcswidth.c: New file.
43473         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43474         * m4/wcswidth.m4: New file.
43475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43477         REPLACE_WCSWIDTH.
43478         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43479         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43480         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43481         * doc/posix-functions/wcswidth.texi: Mention the new module.
43483 2011-02-06  Bruno Haible  <bruno@clisp.org>
43485         New module 'wcstok'.
43486         * modules/wcstok: New file.
43487         * lib/wchar.in.h (wcstok): New declaration.
43488         * lib/wcstok.c: New file.
43489         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43490         * m4/wcstok.m4: New file.
43491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43494         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43495         * doc/posix-functions/wcstok.texi: Mention the new module.
43497 2011-02-06  Bruno Haible  <bruno@clisp.org>
43499         New module 'wcsstr'.
43500         * modules/wcsstr: New file.
43501         * lib/wchar.in.h (wcsstr): New declaration.
43502         * lib/wcsstr.c: New file.
43503         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43504         * m4/wcsstr.m4: New file.
43505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43508         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43509         * doc/posix-functions/wcsstr.texi: Mention the new module.
43511 2011-02-06  Bruno Haible  <bruno@clisp.org>
43513         New module 'wcspbrk'.
43514         * modules/wcspbrk: New file.
43515         * lib/wchar.in.h (wcspbrk): New declaration.
43516         * lib/wcspbrk.c: New file.
43517         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43518         * m4/wcspbrk.m4: New file.
43519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43522         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43523         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43525 2011-02-06  Bruno Haible  <bruno@clisp.org>
43527         New module 'wcsspn'.
43528         * modules/wcsspn: New file.
43529         * lib/wchar.in.h (wcsspn): New declaration.
43530         * lib/wcsspn.c: New file.
43531         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43532         * m4/wcsspn.m4: New file.
43533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43536         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43537         * doc/posix-functions/wcsspn.texi: Mention the new module.
43539 2011-02-06  Bruno Haible  <bruno@clisp.org>
43541         New module 'wcscspn'.
43542         * modules/wcscspn: New file.
43543         * lib/wchar.in.h (wcscspn): New declaration.
43544         * lib/wcscspn.c: New file.
43545         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43546         * m4/wcscspn.m4: New file.
43547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43550         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43551         * doc/posix-functions/wcscspn.texi: Mention the new module.
43553 2011-02-06  Bruno Haible  <bruno@clisp.org>
43555         New module 'wcsrchr'.
43556         * modules/wcsrchr: New file.
43557         * lib/wchar.in.h (wcsrchr): New declaration.
43558         * lib/wcsrchr.c: New file.
43559         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43560         * m4/wcsrchr.m4: New file.
43561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43564         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43565         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43567 2011-02-06  Bruno Haible  <bruno@clisp.org>
43569         New module 'wcschr'.
43570         * modules/wcschr: New file.
43571         * lib/wchar.in.h (wcschr): New declaration.
43572         * lib/wcschr.c: New file.
43573         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43574         * m4/wcschr.m4: New file.
43575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43578         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43579         * doc/posix-functions/wcschr.texi: Mention the new module.
43581 2011-02-06  Bruno Haible  <bruno@clisp.org>
43583         New module 'wcsdup'.
43584         * modules/wcsdup: New file.
43585         * lib/wchar.in.h (wcsdup): New declaration.
43586         * lib/wcsdup.c: New file.
43587         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43588         * m4/wcsdup.m4: New file.
43589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43592         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43593         * doc/posix-functions/wcsdup.texi: Mention the new module.
43595 2011-02-06  Bruno Haible  <bruno@clisp.org>
43597         New module 'wcsxfrm'.
43598         * modules/wcsxfrm: New file.
43599         * lib/wchar.in.h (wcsxfrm): New declaration.
43600         * lib/wcsxfrm.c: New file.
43601         * lib/wcsxfrm-impl.h: New file.
43602         * m4/wcsxfrm.m4: New file.
43603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43606         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43607         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43609 2011-02-06  Bruno Haible  <bruno@clisp.org>
43611         New module 'wcscoll'.
43612         * modules/wcscoll: New file.
43613         * lib/wchar.in.h (wcscoll): New declaration.
43614         * lib/wcscoll.c: New file.
43615         * lib/wcscoll-impl.h: New file.
43616         * m4/wcscoll.m4: New file.
43617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43620         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43621         * doc/posix-functions/wcscoll.texi: Mention the new module.
43623 2011-02-06  Bruno Haible  <bruno@clisp.org>
43625         New module 'wcsncasecmp'.
43626         * modules/wcsncasecmp: New file.
43627         * lib/wchar.in.h (wcsncasecmp): New declaration.
43628         * lib/wcsncasecmp.c: New file.
43629         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43630         * m4/wcsncasecmp.m4: New file.
43631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43634         HAVE_WCSNCASECMP.
43635         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43636         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43638 2011-02-06  Bruno Haible  <bruno@clisp.org>
43640         New module 'wcscasecmp'.
43641         * modules/wcscasecmp: New file.
43642         * lib/wchar.in.h (wcscasecmp): New declaration.
43643         * lib/wcscasecmp.c: New file.
43644         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43645         * m4/wcscasecmp.m4: New file.
43646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43649         HAVE_WCSCASECMP.
43650         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43651         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43653 2011-02-05  Bruno Haible  <bruno@clisp.org>
43655         New module 'wcsncmp'.
43656         * modules/wcsncmp: New file.
43657         * lib/wchar.in.h (wcsncmp): New declaration.
43658         * lib/wcsncmp.c: New file.
43659         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43660         * m4/wcsncmp.m4: New file.
43661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43664         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43665         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43667 2011-02-05  Bruno Haible  <bruno@clisp.org>
43669         New module 'wcscmp'.
43670         * modules/wcscmp: New file.
43671         * lib/wchar.in.h (wcscmp): New declaration.
43672         * lib/wcscmp.c: New file.
43673         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43674         * m4/wcscmp.m4: New file.
43675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43678         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43679         * doc/posix-functions/wcscmp.texi: Mention the new module.
43681 2011-02-05  Bruno Haible  <bruno@clisp.org>
43683         New module 'wcsncat'.
43684         * modules/wcsncat: New file.
43685         * lib/wchar.in.h (wcsncat): New declaration.
43686         * lib/wcsncat.c: New file.
43687         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43688         * m4/wcsncat.m4: New file.
43689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43692         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43693         * doc/posix-functions/wcsncat.texi: Mention the new module.
43695 2011-02-05  Bruno Haible  <bruno@clisp.org>
43697         New module 'wcscat'.
43698         * modules/wcscat: New file.
43699         * lib/wchar.in.h (wcscat): New declaration.
43700         * lib/wcscat.c: New file.
43701         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43702         * m4/wcscat.m4: New file.
43703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43706         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43707         * doc/posix-functions/wcscat.texi: Mention the new module.
43709 2011-02-05  Bruno Haible  <bruno@clisp.org>
43711         New module 'wcpncpy'.
43712         * modules/wcpncpy: New file.
43713         * lib/wchar.in.h (wcpncpy): New declaration.
43714         * lib/wcpncpy.c: New file.
43715         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43716         * m4/wcpncpy.m4: New file.
43717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43719         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43720         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43721         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43723 2011-02-05  Bruno Haible  <bruno@clisp.org>
43725         New module 'wcsncpy'.
43726         * modules/wcsncpy: New file.
43727         * lib/wchar.in.h (wcsncpy): New declaration.
43728         * lib/wcsncpy.c: New file.
43729         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43730         * m4/wcsncpy.m4: New file.
43731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43734         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43735         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43737 2011-02-05  Bruno Haible  <bruno@clisp.org>
43739         New module 'wcpcpy'.
43740         * modules/wcpcpy: New file.
43741         * lib/wchar.in.h (wcpcpy): New declaration.
43742         * lib/wcpcpy.c: New file.
43743         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43744         * m4/wcpcpy.m4: New file.
43745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43747         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43748         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43749         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43751 2011-02-05  Bruno Haible  <bruno@clisp.org>
43753         New module 'wcscpy'.
43754         * modules/wcscpy: New file.
43755         * lib/wchar.in.h (wcscpy): New declaration.
43756         * lib/wcscpy.c: New file.
43757         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43758         * m4/wcscpy.m4: New file.
43759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43762         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43763         * doc/posix-functions/wcscpy.texi: Mention the new module.
43765 2011-02-05  Bruno Haible  <bruno@clisp.org>
43767         New module 'wcsnlen'.
43768         * modules/wcsnlen: New file.
43769         * lib/wchar.in.h (wcsnlen): New declaration.
43770         * lib/wcsnlen.c: New file.
43771         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43772         * m4/wcsnlen.m4: New file.
43773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43776         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43777         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43779 2011-02-05  Bruno Haible  <bruno@clisp.org>
43781         New module 'wcslen'.
43782         * modules/wcslen: New file.
43783         * lib/wchar.in.h (wcslen): New declaration.
43784         * lib/wcslen.c: New file.
43785         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43786         * m4/wcslen.m4: New file.
43787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43790         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43791         * doc/posix-functions/wcslen.texi: Mention the new module.
43793 2011-02-05  Bruno Haible  <bruno@clisp.org>
43795         New module 'wmemset'.
43796         * modules/wmemset: New file.
43797         * lib/wchar.in.h (wmemset): New declaration.
43798         * lib/wmemset.c: New file.
43799         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43800         * m4/wmemset.m4: New file.
43801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43803         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43804         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43805         * doc/posix-functions/wmemset.texi: Mention the new module.
43807 2011-02-05  Bruno Haible  <bruno@clisp.org>
43809         New module 'wmemmove'.
43810         * modules/wmemmove: New file.
43811         * lib/wchar.in.h (wmemmove): New declaration.
43812         * lib/wmemmove.c: New file.
43813         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43814         * m4/wmemmove.m4: New file.
43815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43817         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43818         HAVE_WMEMMOVE.
43819         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43820         * doc/posix-functions/wmemmove.texi: Mention the new module.
43822 2011-02-05  Bruno Haible  <bruno@clisp.org>
43824         New module 'wmemcpy'.
43825         * modules/wmemcpy: New file.
43826         * lib/wchar.in.h (wmemcpy): New declaration.
43827         * lib/wmemcpy.c: New file.
43828         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43829         * m4/wmemcpy.m4: New file.
43830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43832         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43833         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43834         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43836 2011-02-05  Bruno Haible  <bruno@clisp.org>
43838         New module 'wmemcmp'.
43839         * modules/wmemcmp: New file.
43840         * lib/wchar.in.h (wmemcmp): New declaration.
43841         * lib/wmemcmp.c: New file.
43842         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43843         * m4/wmemcmp.m4: New file.
43844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43846         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43847         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43848         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43850 2011-02-07  Jim Meyering  <meyering@redhat.com>
43852         di-set, ino-map: new modules, from coreutils
43853         * lib/di-set.c: New file.
43854         * lib/di-set.h: Likewise.
43855         * lib/ino-map.c: Likewise.
43856         * lib/ino-map.h: Likewise.
43857         * modules/di-set: Likewise.
43858         * modules/di-set-tests: Likewise.
43859         * modules/ino-map: Likewise.
43860         * modules/ino-map-tests: Likewise.
43861         * tests/test-di-set.c: Likewise.
43862         * tests/test-ino-map.c: Likewise.
43864 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43866         getloadavg: merge minor changes from Emacs
43868         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43869         (getloadavg): Use memset, not bzero.
43871         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43872         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43873         clash (bug#86).
43875 2010-11-14  Bruno Haible  <bruno@clisp.org>
43877         Allow multiple gnulib generated replacements to coexist.
43878         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43879         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43880         * lib/langinfo.in.h (nl_item): Likewise.
43881         * lib/math.in.h (_NaN, NAN): Likewise.
43882         * lib/netdb.in.h (struct addrinfo): Likewise.
43883         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43884         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43885         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43886         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43887         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43888         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43889         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43890         pthread_mutexattr_init, pthread_mutexattr_settype,
43891         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43892         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43893         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43894         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43895         * lib/sched.in.h (struct sched_param): Likewise.
43896         * lib/se-selinux.in.h (security_class_t, security_context_t,
43897         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43898         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43899         lsetfilecon, fsetfilecon, security_check_context,
43900         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43901         Likewise.
43902         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43903         Likewise.
43904         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43905         _gl_function_taking_int_returning_void_t, union sigval,
43906         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43907         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43908         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43909         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43910         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43911         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43912         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43913         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43914         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43915         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43916         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43917         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43918         socklen_t, rpl_fd_isset): Likewise.
43919         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43920         * lib/sys_time.in.h (struct timeval): Likewise.
43921         * lib/sys_times.in.h (struct tms): Likewise.
43922         * lib/sys_utsname.in.h (struct utsname):
43923         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43924         * lib/unistd.in.h (getpagesize): Likewise.
43925         * lib/wchar.in.h (mbstate_t): Likewise.
43926         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43927         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43928         towlower, towupper): Likewise.
43929         Reported by Sam Steingold <sds@gnu.org>.
43931 2011-02-05  Eric Blake  <eblake@redhat.com>
43933         unsetenv: work around Haiku issues
43934         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43935         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43937 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43939         libposix: avoid calling error() within libposix
43940         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43941         is defined.
43943 2011-02-05  Eric Blake  <eblake@redhat.com>
43945         strerror_r-posix: port to cygwin
43946         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43947         implementation.
43948         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43949         * tests/test-strerror_r.c (main): Fix test.
43950         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43951         issue.
43953 2011-02-05  Bruno Haible  <bruno@clisp.org>
43955         New module 'wmemchr'.
43956         * modules/wmemchr: New file.
43957         * lib/wchar.in.h (wmemchr): New declaration.
43958         * lib/wmemchr.c: New file.
43959         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43960         * m4/wmemchr.m4: New file.
43961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43963         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43964         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43965         * doc/posix-functions/wmemchr.texi: Mention the new module.
43967 2011-02-04  Eric Blake  <eblake@redhat.com>
43969         fdopendir: detect FreeBSD bug
43970         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43971         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43973 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43975         stdbool: do not define HAVE_STDBOOL_H
43976         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43977         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43978         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43979         imported from the latest Autoconf git.  It was motivated by Emacs,
43980         which uses gnulib but does not need HAVE_STDBOOL_H.
43982 2011-02-04  Bruno Haible  <bruno@clisp.org>
43984         wcsnrtombs: Prepare for new module wwcsnrtombs.
43985         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43986         * lib/wcsnrtombs.c: Include it.
43987         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43989         wcsrtombs: Prepare for new module wwcsrtombs.
43990         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43991         * lib/wcsrtombs.c: Include it.
43992         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43994         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43995         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43996         * lib/mbsnrtowcs.c: Include it.
43997         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43999         mbsrtowcs: Prepare for new module mbsrtowwcs.
44000         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
44001         * lib/mbsrtowcs.c: Include it.
44002         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
44004 2011-02-04  Bruno Haible  <bruno@clisp.org>
44006         vasnprintf: Reduce use of malloc for small format strings.
44007         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
44008         (arguments): Add room for the first 7 arguments.
44009         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
44010         (char_directives, u8_directives, u16_directives, u32_directives): Add
44011         room for the first 7 directives.
44012         * lib/printf-parse.c: Include <string.h>.
44013         (PRINTF_PARSE): Change memory handling code so that it uses the first
44014         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
44015         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
44016         Reported by Pádraig Brady <P@draigbrady.com>.
44018 2011-01-31  Eric Blake  <eblake@redhat.com>
44020         dup2: work around Haiku bug
44021         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
44022         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
44023         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44024         * tests/test-dup2.c (main): Enhance test.
44026 2011-01-31  Simon Josefsson  <simon@josefsson.org>
44028         doc: off_t is not available in eglibc 2.11.2 stdio.h.
44029         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
44030         declared by eglibc 2.11.2.
44031         * lib/stdio.in.h: Likewise.
44033 2011-01-31  Eric Blake  <eblake@redhat.com>
44035         ignore-value: add missing test dependency
44036         * tests/test-ignore-value.c: Revert previous change; stdio.h
44037         provides off_t.
44038         * modules/ignore-value-tests (Depends-on): Add missing dependency.
44040 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
44042         mktime: clarify long_int width checking
44043         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
44044         the top level, to make it clearer that the assumption about
44045         long_int width is being checked.  See
44046         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
44048 2011-01-30  Simon Josefsson  <simon@josefsson.org>
44050         ignore-value: Fix self-test.
44051         * tests/test-ignore-value.c: Include sys/types.h for off_t.
44053 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44055         TYPE_MAXIMUM: avoid theoretically undefined behavior
44056         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
44057         negative number, which the C Standard says has undefined behavior.
44058         In practice this is not a problem, but might as well do it by the book.
44059         Reported by Rich Felker and Eric Blake; see
44060         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
44061         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
44062         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44064         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
44065         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44066         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
44068         mktime: #undef mktime before #defining it
44069         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
44071         mktime: systematically normalize tm_isdst comparisons
44072         * lib/mktime.c (isdst_differ): New function.
44073         (__mktime_internal): Use it systematically for all isdst comparisons.
44074         This completes the fix for libc BZ #6723, and removes the need for
44075         normalizing tm_isdst.  See
44076         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
44077         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
44079         mktime: fix some integer overflow issues and sidestep the rest
44081         This was prompted by a bug report by Benjamin Lindner for MinGW
44082         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
44083         His bug is due to signed integer overflow (0 - INT_MIN), and I
44084         I scanned through mktime.c looking for other integer overflow
44085         problems, fixing all the bugs I found.
44087         Although the C Standard says the resulting code is still not safe
44088         in the presence of integer overflow, in practice it should be good
44089         enough for all real-world two's-complement implementations, except
44090         for debugging environments that deliberately trap on integer
44091         overflow (e.g., gcc -ftrapv).
44093         * lib/mktime.c (WRAPV): New macro.
44094         (SHR): Also check that long_int and time_t shift right in the
44095         usual way, before using the fast-but-unportable method.
44096         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
44097         used.  The code already assumed two's complement, so there's
44098         no need to test for alternatives.  All uses removed.
44099         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
44100         the C standard.  Problem reported by Rich Felker in
44101         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
44102         (twos_complement_arithmetic): Also check long_int and time_t.
44103         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
44104         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
44105         (__mktime_internal): Avoid integer overflow with unary subtraction
44106         in two instances where -1 - X is an adequate replacement for -X,
44107         since the calculations are approximate.
44109 2011-01-29  Eric Blake  <eblake@redhat.com>
44111         mktime: avoid infinite loop
44112         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
44113         type; behavior is still undefined but portable to all known targets.
44114         Reported by Rich Felker.
44116 2011-01-29  Simon Josefsson  <simon@josefsson.org>
44118         rename, unlink, same-inode: Relicense.
44119         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
44120         * modules/unlink (License): Likewise.
44121         * modules/same-inode (License): Likewise.
44123 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44125         mktime: avoid problems on NetBSD 5 / i386
44126         * lib/mktime.c (long_int): New type.  This works around a problem
44127         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44128         but time_t is 64 bits, and where I expect the existing code is
44129         wrong in some cases.
44130         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44131         (ydhms_diff): Bring back the compile-time check for wide-enough
44132         year and yday.
44134         mktime: fix misspelling in comment
44135         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44136         This merges all recent glibc changes of importance.
44138 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44140         move-if-change: cope with concurrent mv of identical file.
44141         * build-aux/move-if-change (CMPPROG): Accept environment
44142         variable as an override for `cmp'.
44143         (usage): Document CMPPROG.
44144         Adjust comparison to drop stdout.  Cope with failure of mv if
44145         the target file exists and is identical to the source, for
44146         parallel builds.
44147         Report from H.J. Lu against binutils in PR binutils/12283.
44149 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44151         * users.txt: Mention sharutils.
44153 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44155         * users.txt: Mention OATH Toolkit.
44157 2011-01-27  Bruno Haible  <bruno@clisp.org>
44159         Prepare for supporting FreeBSD 10.
44160         * build-aux/config.libpath: Remove handling of freebsd1*.
44162 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44164         Prepare for supporting FreeBSD 10.
44165         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44166         match FreeBSD 10.0.
44168 2011-01-27  Bruno Haible  <bruno@clisp.org>
44170         vma-iter, get-rusage-as: Add OpenBSD support.
44171         * modules/vma-iter (configure.ac): Test for mquery.
44172         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44173         * lib/vma-iter.c: Include <sys/mman.h>.
44174         (vma_iterate): Add an implementation based on mquery().
44175         * lib/resource-ext.h (get_rusage_as): Update comments.
44176         * lib/get-rusage-as.c: Likewise.
44177         * lib/get-rusage-data.c: Likewise.
44179 2011-01-26  Karl Berry  <karl@gnu.org>
44181         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44182         variables to make it easier to override the makeinfo program used.
44184 2011-01-26  Eric Blake  <eblake@redhat.com>
44186         fcntl: work around Haiku F_DUPFD bugs
44187         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44188         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44189         cloexec bit on duplication.
44190         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44192 2011-01-26  Bruno Haible  <bruno@clisp.org>
44194         Enable memory leak tests on AIX.
44195         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44196         * tests/test-fprintf-posix3.c (main): Likewise.
44198 2011-01-26  Bruno Haible  <bruno@clisp.org>
44200         Tests for module 'get-rusage-data'.
44201         * modules/get-rusage-data-tests: New file.
44202         * tests/test-get-rusage-data.c: New file.
44204         New module 'get-rusage-data'.
44205         * lib/resource-ext.h (get_rusage_data): New declaration.
44206         * lib/get-rusage-data.c: New file.
44207         * modules/get-rusage-data: New file.
44209 2011-01-25  Bruno Haible  <bruno@clisp.org>
44211         get-rusage-as: Allow for easier testing.
44212         * lib/resource-ext.h (get_rusage_as): Add comment.
44213         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44214         (main): New function for interactive testing.
44216 2011-01-25  Bruno Haible  <bruno@clisp.org>
44218         vma-iter: Treat Haiku like BeOS.
44219         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44220         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44222 2011-01-25  Eric Blake  <eblake@redhat.com>
44224         c-stack: fix regression on cygwin when libsigsegv is present
44225         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44227 2011-01-24  Bruno Haible  <bruno@clisp.org>
44229         vma-iter: Avoid empty intervals.
44230         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44231         on an empty interval.
44233 2011-01-24  Jim Meyering  <meyering@redhat.com>
44235         u64: remove unnecessary #include
44236         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44238 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44240         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44241         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44243 2011-01-23  Bruno Haible  <bruno@clisp.org>
44245         New module 'vma-iter'.
44246         * lib/vma-iter.h: New file.
44247         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44248         * modules/vma-iter: New file.
44249         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44250         for get_rusage_as_via_iterator.
44251         (vma_iterate_callback): New function.
44252         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44253         * modules/get-rusage-as (Depends-on): Add vma-iter.
44255 2011-01-23  Bruno Haible  <bruno@clisp.org>
44257         uninorm: Tweak includes.
44258         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44259         Reported by Jim Meyering.
44261 2011-01-23  Bruno Haible  <bruno@clisp.org>
44263         get-rusage-as: Improve on NetBSD.
44264         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44265         /proc, like on FreeBSD.
44267 2011-01-23  Jim Meyering  <meyering@redhat.com>
44269         xreadlink.h: remove unnecessary #include
44270         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44272         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44273         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44275 2011-01-23  Bruno Haible  <bruno@clisp.org>
44277         get-rusage-as: Fix bug.
44278         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44279         original limit when aborting the first loop.
44281 2011-01-23  Bruno Haible  <bruno@clisp.org>
44283         wctype: Ensure valid C syntax.
44284         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44285         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44287 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44289         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44291         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44292         as they are needed only for configure's test case.
44293         This removes two unnecessary symbols from config.h.
44295         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44296         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44298         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44299         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44300         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44301         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44302         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44303         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44304         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44305         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44307         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44308         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44309         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44310         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44311         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44312         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44314 2011-01-21  Eric Blake  <eblake@redhat.com>
44316         maintainer-makefile: work with older git for submodule check
44317         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44318         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44319         Reported by Matthias Bolte.
44321         bootstrap: minor portability fixes
44322         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44323         (usage): Omit leading capital and trailing . on help phrases, per
44324         GNU Coding Standards.
44325         (check_versions, top level): Prefix messages with script name.
44327 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44329         bootstrap: support --no-git option
44330         * build-aux/bootstrap: Add --no-git option, to be used when
44331         --gnulib-srcdir points to the exact desired checkout.
44333 2011-01-21  Eric Blake  <eblake@redhat.com>
44335         strerror_r-posix: work with glibc 2.13
44336         * lib/strerror_r.c (strerror_r): Fix return type.
44338 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44339             Bruno Haible  <bruno@clisp.org>
44341         uN_strstr: New unit tests.
44342         * modules/unistr/u8-strstr-tests: New file.
44343         * modules/unistr/u16-strstr-tests: New file.
44344         * modules/unistr/u32-strstr-tests: New file.
44345         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44346         * tests/unistr/test-u8-strstr.c: New file.
44347         * tests/unistr/test-u16-strstr.c: New file.
44348         * tests/unistr/test-u32-strstr.c: New file.
44350 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44351             Bruno Haible  <bruno@clisp.org>
44353         Make uN_strstr functions O(n) worst-case.
44354         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44355         16-bit and 32-bit unit cases, use the unibyte algorithm from
44356         lib/mbsstr.c.
44357         * lib/unistr/u8-strstr.c: Include <string.h>.
44358         (UNIT_IS_UINT8_T): New macro.
44359         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44360         (U_STRLEN, U_STRNLEN): New macros.
44361         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44362         (U_STRLEN, U_STRNLEN): New macros.
44363         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44364         (configure.ac): Update required libunistring version.
44365         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44366         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44367         malloca.
44368         (configure.ac): Update required libunistring version.
44369         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44370         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44371         malloca.
44372         (configure.ac): Update required libunistring version.
44374 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44375             Bruno Haible  <bruno@clisp.org>
44377         Prepare for faster uN_strstr functions.
44378         * lib/str-kmp.h: Support definable UNITs.
44379         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44380         needle_len argument.
44381         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44382         * lib/mbscasestr.c (mbscasestr): Likewise.
44384 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44386         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44387         * tests/test-malloca.c (main): Unset the environment variable
44388         to greatly speed up the test.
44389         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44390         * modules/malloca-tests: Depend on unsetenv.
44392 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44394         ignore-value: remove stdint dependency
44395         * lib/ignore-value.h: Remove <stdint.h>
44396         * modules/ignore-value: Remove stdint dependency.
44398 2011-01-21  Jim Meyering  <meyering@redhat.com>
44400         maint.mk: adjust variable name to be consistent with other gl_ vars
44401         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44402         to be lower case.
44404 2011-01-20  Jim Meyering  <meyering@redhat.com>
44406         maint.mk: make "check" depend on public-submodule-commit by default
44407         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44409 2011-01-20  Bruno Haible  <bruno@clisp.org>
44411         mbfile, mbiter: Complete change from 2008-12-21.
44412         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44413         * m4/mbiter.m4 (gl_MBITER): Likewise.
44415 2011-01-20  Jim Meyering  <meyering@redhat.com>
44417         init.sh: insert space between each function name and "()"
44418         * tests/init.sh: Make it a little easier to see that a function's
44419         name is "warn_", and not "warn" when looking at the first part of
44420         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44422 2011-01-20  Jim Meyering  <meyering@redhat.com>
44424         mountlist: clean up code formatting
44425         * lib/mountlist.c (read_file_system_list): Split a long line,
44426         correct bracing style, use NULL in place of "(struct statfs *)0",
44427         don't parenthesize return value, add spaces around "=" and after
44428         ";-in-for-stmt".
44430 2011-01-14  Markus Duft  <mduft@gentoo.org>
44432         mountlist: add support for Interix
44433         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44434         Apply statvfs to all entries of /dev/fs.
44435         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44436         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44438 2011-01-20  Jim Meyering  <meyering@redhat.com>
44440         maint.mk: improve the public-submodule-commit rule
44441         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44442         to suppress printing of its commands... unless V=1.
44443         Add git submodule's --quiet option to suppress printing of e.g.,
44444         "Entering gnulib" output.
44445         "cd" into $(srcdir) before running git submodule.
44447 2011-01-20  Bruno Haible  <bruno@clisp.org>
44449         include_next: Fix bug introduced on 2011-01-18.
44450         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44451         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44452         ac_cv_header_... variable if the second argument is not 'check'.
44453         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44454         gl_NEXT_HEADERS_INTERNAL.
44456 2011-01-20  Bruno Haible  <bruno@clisp.org>
44458         Allow the user to avoid the GNULIB_TEST_* macros.
44459         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44460         Suggested by Paul Eggert.
44462 2011-01-14  Jim Meyering  <meyering@redhat.com>
44464         bootstrap: avoid failure when there is no .gitmodules file
44465         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44466         has been assigned to, even when its value is the empty string.
44467         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44468         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44469         Reported by John W. Eaton <jwe@gnu.org>.
44471 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44473         assume <ctype.h>, ..., <time.h> exist
44474         For years gnulib has been assuming the existence of the headers
44475         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44476         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44477         them, since they don't appear to be needed.
44478         * README (Portability guidelines): Document this.
44479         * lib/flock.c: Assume <fcntl.h> exists.
44480         * lib/regex_internal.h: Assume <locale.h> exists.
44481         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44482         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44483         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44484         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44485         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44486         * m4/regex.m4 (gl_REGEX): Likewise.
44487         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44488         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44489         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44490         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44491         * tests/test-argp.c: Likewise.
44492         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44494         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44495         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44496         AA_APPLE_UNIVERSAL_BUILD.  See
44497         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44498         * NEWS: Document this.
44500 2011-01-19  Eric Blake  <eblake@redhat.com>
44502         c-stack: assume stack overflow if SA_SIGINFO unsupported
44503         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44504         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44505         sigaction will work.
44506         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44507         behavior match Linux.
44508         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44510         stdbool-tests: accommodate Haiku
44511         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44513         binary-io: fix O_TEXT on Haiku
44514         * modules/binary-io (Depends-on): Add fcntl-h.
44515         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44516         than blindly undefining O_TEXT.
44517         Reported by Scott McCreary.
44519 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44521         include_next: do not check for standard headers like stddef.h
44523         I found this problem when modifying Emacs to use gnulib.
44524         I noticed that it added HAVE_STDDEF_H to config.h, even though
44525         gnulib always assumes <stddef.h> exists as per README and this
44526         symbol is unnecessary.
44527         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44528         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44529         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44530         faster for headers like stddef.h that are known to exist.
44531         (gl_CHECK_NEXT_HEADERS): Use it.
44532         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44533         rather than gl_CHECK_NEXT_HEADERS.
44534         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44535         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44537 2011-01-18  Eric Blake  <eblake@redhat.com>
44539         ansi-c++-opt: skip C++ dependency style if C++ is unused
44540         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44541         tests when we know C++ compilation is not desired.
44542         Reported by Scott McCreary.
44544 2011-01-18  Bruno Haible  <bruno@clisp.org>
44546         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44547         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44548         (main): Perform test also when getrlimit and setrlimit don't exist or
44549         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44550         limiting the address space size using setrlimit, compare the address
44551         space size before and after the test.
44552         * tests/test-dprintf-posix2.c: Likewise.
44553         * tests/test-fprintf-posix3.sh: Update skip messages.
44554         * tests/test-dprintf-posix2.sh: Likewise.
44555         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44556         * modules/dprintf-posix-tests (Depends-on): Likewise.
44557         Reported by Bruce Korb <bkorb@gnu.org> and
44558         Gary V. Vaughan <gary@gnu.org>.
44560 2011-01-18  Bruno Haible  <bruno@clisp.org>
44562         get-rusage-as: Improvement for Cygwin.
44563         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44564         areas that are merely reserved.
44566 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44568         strftime: remove dependencies on multibyte modules
44570         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44571         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44572         only if __osf__ is defined, and I suspect OSF doesn't need these
44573         other modules.  If my guess is wrong, we'll need to come up with a
44574         variant of strftime that doesn't need the multibyte modules.
44576         I discovered this problem when attempting modify Emacs to use the
44577         strftime module.  With the previous gnulib, this caused Emacs to
44578         need 31 new files, ranging from lib/config.charset to
44579         m4/wint_t.m4.  This was overkill and I expect would be offputting
44580         to the Emacs maintainers.  After this change, only 6 new files are
44581         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44582         stdbool.m4, and tm_gmtoff.m4.
44584         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44585         Suggested by Bruno Haible in
44586         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44587         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44588         and do not check for wchar.h.
44589         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44590         (Depends-on): Remove mbrlen, mbsinit, wchar.
44592 2011-01-18  Bruno Haible  <bruno@clisp.org>
44594         Tests for module 'get-rusage-as'.
44595         * modules/get-rusage-as-tests: New file.
44596         * tests/test-get-rusage-as.c: New file.
44598         New module 'get-rusage-as'.
44599         * modules/get-rusage-as: New file.
44600         * lib/resource-ext.h: New file.
44601         * lib/get-rusage-as.c: New file.
44603 2011-01-17  Eric Blake  <eblake@redhat.com>
44605         sigaction: relax license from LGPLv3+ to LGPLv2+
44606         * modules/sigaction (License): Relax to LGPLv2+.
44608 2011-01-14  Bruno Haible  <bruno@clisp.org>
44610         filemode: Make function declarations usable in C++ mode.
44611         * lib/filemode.h: Enclose function declarations in extern "C" block.
44612         Reported by John W. Eaton <jwe@gnu.org>.
44614 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44616         save-cwd: no longer include "xgetcwd.h"
44617         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44618         This avoids a compilation failure in projects that use save-cwd
44619         without also using the xgetcwd module.
44621 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44623         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44624         This is so that a program like Emacs, which needs only dtoastr,
44625         does not have to bother with distributing and compiling ftoastr
44626         and ldtoastr.
44627         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44628         * modules/dtoastr, modules/ldtoastr: New files.
44629         * modules/ftoastr: Now works just for 'float'.
44630         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44631         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44632         dtoastr.c, ldtoastr.c.
44634 2011-01-11  Jim Meyering  <meyering@redhat.com>
44636         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44637         There is no need to work around the lack of the fchdir function,
44638         since gnulib can now provide a replacement when required.
44639         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44640         * modules/save-cwd (Depends-on): Add fchdir.
44642 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44644         openat, save-cwd: avoid xmalloc
44646         This removes a direct (but undocumented) dependency of openat on
44647         xalloc, along with an indirect dependency via save-cwd.  It also
44648         removes a dependency of save-cwd on xgetcwd, and thereby
44649         indirectly on xalloc.  This change causes the openat substitute
44650         to fall back on save_cwd when memory is tight, and for save_cwd to
44651         fail instead of dying when memory is tight, but that's good enough.
44652         Problem and initial idea for fix reported by Bastien Roucaries in
44653         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44655         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44656         xalloc.h (for xmalloc).
44657         (openat_proc_name): Use malloc, not xmalloc.
44658         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44659         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44661         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44662         This avoids heap allocation for file names whose lengths are in
44663         the range 512..1023, with the upper bound increasing to at most
44664         4031 depending on the platform's PATH_MAX.  (We do not want
44665         pathmax.h here as it might supply a non-constant PATH_MAX.)
44666         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44667         Perhaps they should be moved to malloca.h?
44668         (OPENAT_BUFFER_SIZE): Use them.
44670 2011-01-10  Bruno Haible  <bruno@clisp.org>
44672         doc: Update users.txt.
44673         * users.txt: Add recutils.
44675 2011-01-09  Karl Berry  <karl@gnu.org>
44677         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44679         * doc/configmake.texi: New file.
44680         * doc/gnulib.texi: Include it.
44681         * modules/configmake: Move documentation from here.
44683 2011-01-09  Bruno Haible  <bruno@clisp.org>
44685         Update to Unicode 6.0.0.
44686         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44687         (get_lbp): Update for Unicode 6.0.0.
44688         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44689         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44690         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44691         U+11001, U+11038..U+11046. Remove U+06DE.
44692         (uc_width): Fix bounds of planes.
44693         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44694         lib/uniwidth/width.c.
44695         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44696         trailing whitespace removed.
44697         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44698         without comments, but with the original copyright notice.
44699         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44700         * lib/unicase/ignorable.h: Likewise.
44701         * lib/unicase/tocasefold.h: Likewise.
44702         * lib/unicase/tolower.h: Likewise.
44703         * lib/unicase/totitle.h: Likewise.
44704         * lib/unicase/toupper.h: Likewise.
44705         * lib/unictype/bidi_of.h: Likewise.
44706         * lib/unictype/blocks.h: Likewise.
44707         * lib/unictype/categ_C.h: Likewise.
44708         * lib/unictype/categ_Cn.h: Likewise.
44709         * lib/unictype/categ_L.h: Likewise.
44710         * lib/unictype/categ_Ll.h: Likewise.
44711         * lib/unictype/categ_Lm.h: Likewise.
44712         * lib/unictype/categ_Lo.h: Likewise.
44713         * lib/unictype/categ_Lu.h: Likewise.
44714         * lib/unictype/categ_M.h: Likewise.
44715         * lib/unictype/categ_Mc.h: Likewise.
44716         * lib/unictype/categ_Me.h: Likewise.
44717         * lib/unictype/categ_Mn.h: Likewise.
44718         * lib/unictype/categ_N.h: Likewise.
44719         * lib/unictype/categ_Nd.h: Likewise.
44720         * lib/unictype/categ_No.h: Likewise.
44721         * lib/unictype/categ_P.h: Likewise.
44722         * lib/unictype/categ_Po.h: Likewise.
44723         * lib/unictype/categ_S.h: Likewise.
44724         * lib/unictype/categ_Sc.h: Likewise.
44725         * lib/unictype/categ_Sk.h: Likewise.
44726         * lib/unictype/categ_Sm.h: Likewise.
44727         * lib/unictype/categ_So.h: Likewise.
44728         * lib/unictype/categ_of.h: Likewise.
44729         * lib/unictype/combining.h: Likewise.
44730         * lib/unictype/ctype_alnum.h: Likewise.
44731         * lib/unictype/ctype_alpha.h: Likewise.
44732         * lib/unictype/ctype_graph.h: Likewise.
44733         * lib/unictype/ctype_lower.h: Likewise.
44734         * lib/unictype/ctype_print.h: Likewise.
44735         * lib/unictype/ctype_punct.h: Likewise.
44736         * lib/unictype/ctype_upper.h: Likewise.
44737         * lib/unictype/decdigit.h: Likewise.
44738         * lib/unictype/digit.h: Likewise.
44739         * lib/unictype/numeric.h: Likewise.
44740         * lib/unictype/pr_alphabetic.h: Likewise.
44741         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44742         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44743         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44744         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44745         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44746         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44747         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44748         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44749         * lib/unictype/pr_case_ignorable.h: Likewise.
44750         * lib/unictype/pr_cased.h: Likewise.
44751         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44752         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44753         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44754         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44755         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44756         * lib/unictype/pr_combining.h: Likewise.
44757         * lib/unictype/pr_composite.h: Likewise.
44758         * lib/unictype/pr_currency_symbol.h: Likewise.
44759         * lib/unictype/pr_decimal_digit.h: Likewise.
44760         * lib/unictype/pr_deprecated.h: Likewise.
44761         * lib/unictype/pr_format_control.h: Likewise.
44762         * lib/unictype/pr_grapheme_base.h: Likewise.
44763         * lib/unictype/pr_grapheme_extend.h: Likewise.
44764         * lib/unictype/pr_grapheme_link.h: Likewise.
44765         * lib/unictype/pr_id_continue.h: Likewise.
44766         * lib/unictype/pr_id_start.h: Likewise.
44767         * lib/unictype/pr_ideographic.h: Likewise.
44768         * lib/unictype/pr_lowercase.h: Likewise.
44769         * lib/unictype/pr_math.h: Likewise.
44770         * lib/unictype/pr_numeric.h: Likewise.
44771         * lib/unictype/pr_other_alphabetic.h: Likewise.
44772         * lib/unictype/pr_other_id_continue.h: Likewise.
44773         * lib/unictype/pr_other_math.h: Likewise.
44774         * lib/unictype/pr_punctuation.h: Likewise.
44775         * lib/unictype/pr_sentence_terminal.h: Likewise.
44776         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44777         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44778         * lib/unictype/pr_unified_ideograph.h: Likewise.
44779         * lib/unictype/pr_uppercase.h: Likewise.
44780         * lib/unictype/pr_xid_continue.h: Likewise.
44781         * lib/unictype/pr_xid_start.h: Likewise.
44782         * lib/unictype/scripts.h: Likewise.
44783         * lib/unictype/scripts_byname.gperf: Likewise.
44784         * lib/unictype/sy_java_ident.h: Likewise.
44785         * lib/unigbrk/gbrkprop.h: Likewise.
44786         * lib/unilbrk/lbrkprop1.h: Likewise.
44787         * lib/unilbrk/lbrkprop2.h: Likewise.
44788         * lib/uninorm/decomposition-table2.h: Likewise.
44789         * lib/uniwbrk/wbrkprop.h: Likewise.
44790         * tests/unicase/test-cased.c: Likewise.
44791         * tests/unicase/test-ignorable.c: Likewise.
44792         * tests/unicase/test-uc_tolower.c: Likewise.
44793         * tests/unicase/test-uc_totitle.c: Likewise.
44794         * tests/unicase/test-uc_toupper.c: Likewise.
44795         * tests/unictype/test-categ_C.c: Likewise.
44796         * tests/unictype/test-categ_Cn.c: Likewise.
44797         * tests/unictype/test-categ_L.c: Likewise.
44798         * tests/unictype/test-categ_Ll.c: Likewise.
44799         * tests/unictype/test-categ_Lm.c: Likewise.
44800         * tests/unictype/test-categ_Lo.c: Likewise.
44801         * tests/unictype/test-categ_Lu.c: Likewise.
44802         * tests/unictype/test-categ_M.c: Likewise.
44803         * tests/unictype/test-categ_Mc.c: Likewise.
44804         * tests/unictype/test-categ_Me.c: Likewise.
44805         * tests/unictype/test-categ_Mn.c: Likewise.
44806         * tests/unictype/test-categ_N.c: Likewise.
44807         * tests/unictype/test-categ_Nd.c: Likewise.
44808         * tests/unictype/test-categ_No.c: Likewise.
44809         * tests/unictype/test-categ_P.c: Likewise.
44810         * tests/unictype/test-categ_Po.c: Likewise.
44811         * tests/unictype/test-categ_S.c: Likewise.
44812         * tests/unictype/test-categ_Sc.c: Likewise.
44813         * tests/unictype/test-categ_Sk.c: Likewise.
44814         * tests/unictype/test-categ_Sm.c: Likewise.
44815         * tests/unictype/test-categ_So.c: Likewise.
44816         * tests/unictype/test-ctype_alnum.c: Likewise.
44817         * tests/unictype/test-ctype_alpha.c: Likewise.
44818         * tests/unictype/test-ctype_graph.c: Likewise.
44819         * tests/unictype/test-ctype_lower.c: Likewise.
44820         * tests/unictype/test-ctype_print.c: Likewise.
44821         * tests/unictype/test-ctype_punct.c: Likewise.
44822         * tests/unictype/test-ctype_upper.c: Likewise.
44823         * tests/unictype/test-decdigit.h: Likewise.
44824         * tests/unictype/test-digit.h: Likewise.
44825         * tests/unictype/test-numeric.h: Likewise.
44826         * tests/unictype/test-pr_alphabetic.c: Likewise.
44827         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44828         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44829         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44830         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44831         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44832         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44833         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44834         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44835         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44836         * tests/unictype/test-pr_cased.c: Likewise.
44837         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44838         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44839         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44840         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44841         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44842         * tests/unictype/test-pr_combining.c: Likewise.
44843         * tests/unictype/test-pr_composite.c: Likewise.
44844         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44845         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44846         * tests/unictype/test-pr_deprecated.c: Likewise.
44847         * tests/unictype/test-pr_format_control.c: Likewise.
44848         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44849         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44850         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44851         * tests/unictype/test-pr_id_continue.c: Likewise.
44852         * tests/unictype/test-pr_id_start.c: Likewise.
44853         * tests/unictype/test-pr_ideographic.c: Likewise.
44854         * tests/unictype/test-pr_lowercase.c: Likewise.
44855         * tests/unictype/test-pr_math.c: Likewise.
44856         * tests/unictype/test-pr_numeric.c: Likewise.
44857         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44858         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44859         * tests/unictype/test-pr_other_math.c: Likewise.
44860         * tests/unictype/test-pr_punctuation.c: Likewise.
44861         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44862         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44863         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44864         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44865         * tests/unictype/test-pr_uppercase.c: Likewise.
44866         * tests/unictype/test-pr_xid_continue.c: Likewise.
44867         * tests/unictype/test-pr_xid_start.c: Likewise.
44868         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44869         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44870         changes.
44871         * lib/unictype/categ_Cc.h: Likewise.
44872         * lib/unictype/categ_Cf.h: Likewise.
44873         * lib/unictype/categ_Co.h: Likewise.
44874         * lib/unictype/categ_Cs.h: Likewise.
44875         * lib/unictype/categ_Lt.h: Likewise.
44876         * lib/unictype/categ_Nl.h: Likewise.
44877         * lib/unictype/categ_Pc.h: Likewise.
44878         * lib/unictype/categ_Pd.h: Likewise.
44879         * lib/unictype/categ_Pe.h: Likewise.
44880         * lib/unictype/categ_Pf.h: Likewise.
44881         * lib/unictype/categ_Pi.h: Likewise.
44882         * lib/unictype/categ_Ps.h: Likewise.
44883         * lib/unictype/categ_Z.h: Likewise.
44884         * lib/unictype/categ_Zl.h: Likewise.
44885         * lib/unictype/categ_Zp.h: Likewise.
44886         * lib/unictype/categ_Zs.h: Likewise.
44887         * lib/unictype/ctype_blank.h: Likewise.
44888         * lib/unictype/ctype_cntrl.h: Likewise.
44889         * lib/unictype/ctype_digit.h: Likewise.
44890         * lib/unictype/ctype_space.h: Likewise.
44891         * lib/unictype/ctype_xdigit.h: Likewise.
44892         * lib/unictype/mirror.h: Likewise.
44893         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44894         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44895         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44896         * lib/unictype/pr_bidi_control.h: Likewise.
44897         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44898         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44899         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44900         * lib/unictype/pr_bidi_pdf.h: Likewise.
44901         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44902         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44903         * lib/unictype/pr_dash.h: Likewise.
44904         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44905         * lib/unictype/pr_diacritic.h: Likewise.
44906         * lib/unictype/pr_extender.h: Likewise.
44907         * lib/unictype/pr_hex_digit.h: Likewise.
44908         * lib/unictype/pr_hyphen.h: Likewise.
44909         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44910         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44911         * lib/unictype/pr_ignorable_control.h: Likewise.
44912         * lib/unictype/pr_iso_control.h: Likewise.
44913         * lib/unictype/pr_join_control.h: Likewise.
44914         * lib/unictype/pr_left_of_pair.h: Likewise.
44915         * lib/unictype/pr_line_separator.h: Likewise.
44916         * lib/unictype/pr_logical_order_exception.h: Likewise.
44917         * lib/unictype/pr_non_break.h: Likewise.
44918         * lib/unictype/pr_not_a_character.h: Likewise.
44919         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44920         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44921         * lib/unictype/pr_other_id_start.h: Likewise.
44922         * lib/unictype/pr_other_lowercase.h: Likewise.
44923         * lib/unictype/pr_other_uppercase.h: Likewise.
44924         * lib/unictype/pr_paired_punctuation.h: Likewise.
44925         * lib/unictype/pr_paragraph_separator.h: Likewise.
44926         * lib/unictype/pr_pattern_syntax.h: Likewise.
44927         * lib/unictype/pr_pattern_white_space.h: Likewise.
44928         * lib/unictype/pr_private_use.h: Likewise.
44929         * lib/unictype/pr_quotation_mark.h: Likewise.
44930         * lib/unictype/pr_radical.h: Likewise.
44931         * lib/unictype/pr_soft_dotted.h: Likewise.
44932         * lib/unictype/pr_space.h: Likewise.
44933         * lib/unictype/pr_titlecase.h: Likewise.
44934         * lib/unictype/pr_variation_selector.h: Likewise.
44935         * lib/unictype/pr_white_space.h: Likewise.
44936         * lib/unictype/pr_zero_width.h: Likewise.
44937         * lib/unictype/sy_c_ident.h: Likewise.
44938         * lib/unictype/sy_c_whitespace.h: Likewise.
44939         * lib/unictype/sy_java_whitespace.h: Likewise.
44940         * lib/uninorm/composition-table.gperf: Likewise.
44941         * lib/uninorm/decomposition-table1.h: Likewise.
44942         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44943         LB8.
44944         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44945         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44946         * modules/unictype/*: Bump version number of expected libunistring
44947         version.
44949 2011-01-09  Bruno Haible  <bruno@clisp.org>
44951         Update to Unicode 5.2.0.
44952         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44953         trailing whitespace removed.
44955 2011-01-09  Bruno Haible  <bruno@clisp.org>
44957         New Unicode character properties, from Unicode 5.2.0.
44958         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44959         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44960         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44961         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44962         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44963         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44964         uc_is_property_cased, uc_is_property_case_ignorable,
44965         uc_is_property_changes_when_lowercased,
44966         uc_is_property_changes_when_uppercased,
44967         uc_is_property_changes_when_titlecased,
44968         uc_is_property_changes_when_casefolded,
44969         uc_is_property_changes_when_casemapped): New declarations.
44970         * lib/unictype/pr_byname.gperf: Add the new properties.
44971         * modules/unictype/property-byname (Depends-on): Depend on the new
44972         properties modules.
44973         * modules/unictype/property-all (Depends-on): Likewise.
44974         * MODULES.html.sh (Unicode string functions): Add
44975         unictype/property-case-ignorable, unictype/property-cased,
44976         unictype/property-changes-when-casefolded,
44977         unictype/property-changes-when-casemapped,
44978         unictype/property-changes-when-lowercased,
44979         unictype/property-changes-when-titlecased,
44980         unictype/property-changes-when-uppercased.
44982         New module 'unictype/property-changes-when-casemapped'.
44983         * modules/unictype/property-changes-when-casemapped: New file.
44984         * lib/unictype/pr_changes_when_casemapped.c: New file.
44985         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44986         generated by gen-uni-tables.
44987         * modules/unictype/property-changes-when-casemapped-tests: New file.
44988         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44989         automatically generated by gen-uni-tables.
44991         New module 'unictype/property-changes-when-casefolded'.
44992         * modules/unictype/property-changes-when-casefolded: New file.
44993         * lib/unictype/pr_changes_when_casefolded.c: New file.
44994         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44995         generated by gen-uni-tables.
44996         * modules/unictype/property-changes-when-casefolded-tests: New file.
44997         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44998         automatically generated by gen-uni-tables.
45000         New module 'unictype/property-changes-when-titlecased'.
45001         * modules/unictype/property-changes-when-titlecased: New file.
45002         * lib/unictype/pr_changes_when_titlecased.c: New file.
45003         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
45004         generated by gen-uni-tables.
45005         * modules/unictype/property-changes-when-titlecased-tests: New file.
45006         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
45007         automatically generated by gen-uni-tables.
45009         New module 'unictype/property-changes-when-uppercased'.
45010         * modules/unictype/property-changes-when-uppercased: New file.
45011         * lib/unictype/pr_changes_when_uppercased.c: New file.
45012         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
45013         generated by gen-uni-tables.
45014         * modules/unictype/property-changes-when-uppercased-tests: New file.
45015         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
45016         automatically generated by gen-uni-tables.
45018         New module 'unictype/property-changes-when-lowercased'.
45019         * modules/unictype/property-changes-when-lowercased: New file.
45020         * lib/unictype/pr_changes_when_lowercased.c: New file.
45021         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
45022         generated by gen-uni-tables.
45023         * modules/unictype/property-changes-when-lowercased-tests: New file.
45024         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
45025         automatically generated by gen-uni-tables.
45027         New module 'unictype/property-case-ignorable'.
45028         * modules/unictype/property-case-ignorable: New file.
45029         * lib/unictype/pr_case_ignorable.c: New file.
45030         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
45031         by gen-uni-tables.
45032         * modules/unictype/property-case-ignorable-tests: New file.
45033         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
45034         generated by gen-uni-tables.
45036         New module 'unictype/property-cased'.
45037         * modules/unictype/property-cased: New file.
45038         * lib/unictype/pr_cased.c: New file.
45039         * lib/unictype/pr_cased.h: New file, automatically generated by
45040         gen-uni-tables.
45041         * modules/unictype/property-cased-tests: New file.
45042         * tests/unictype/test-pr_cased.c: New file, automatically generated by
45043         gen-uni-tables.
45045 2011-01-09  Bruno Haible  <bruno@clisp.org>
45047         Update to Unicode 5.2.0.
45048         * lib/gen-uni-tables.c (output_predicate, output_category,
45049         output_combclass, output_bidi_category, output_decimal_digit_test,
45050         output_decimal_digit, output_digit_test, output_digit,
45051         output_numeric_test, output_numeric, output_mirror, output_scripts,
45052         output_scripts_byname, output_blocks, output_ident_category): Fix
45053         comment header.
45054         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
45055         get_wbp.
45056         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
45057         items.
45058         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
45059         Changes_When_Lowercased, Changes_When_Uppercased,
45060         Changes_When_Titlecased, Changes_When_Casefolded,
45061         Changes_When_Casemapped.
45062         (is_property_alphabetic, is_property_default_ignorable_code_point):
45063         Update for Unicode 5.2.0.
45064         (is_property_cased, is_property_case_ignorable,
45065         is_property_changes_when_lowercased,
45066         is_property_changes_when_uppercased,
45067         is_property_changes_when_titlecased,
45068         is_property_changes_when_casefolded,
45069         is_property_changes_when_casemapped): New functions.
45070         (output_properties): Output also the properties cased, case_ignorable,
45071         changes_when_lowercased, changes_when_uppercased,
45072         changes_when_titlecased, changes_when_casefolded,
45073         changes_when_casemapped.
45074         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
45075         Unicode TR#11 revision 17 -> 19.
45076         (LBP_CP): New enumeration value.
45077         (LBP_*): Adjust values accordingly.
45078         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45079         TR#14 revision 22 -> 24.
45080         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
45081         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
45082         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45083         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
45084         is_WBP_MIDLETTER.
45085         (output_composition_tables): Allow for 24 bits instead of 16 bits in
45086         the code1 and code2 of each composition rule.
45087         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
45088         * lib/unicase/ignorable.h: Likewise.
45089         * lib/unicase/tocasefold.h: Likewise.
45090         * lib/unicase/tolower.h: Likewise.
45091         * lib/unicase/totitle.h: Likewise.
45092         * lib/unicase/toupper.h: Likewise.
45093         * lib/unictype/bidi_of.h: Likewise.
45094         * lib/unictype/blocks.h: Likewise.
45095         * lib/unictype/categ_C.h: Likewise.
45096         * lib/unictype/categ_Cf.h: Likewise.
45097         * lib/unictype/categ_Cn.h: Likewise.
45098         * lib/unictype/categ_L.h: Likewise.
45099         * lib/unictype/categ_Ll.h: Likewise.
45100         * lib/unictype/categ_Lm.h: Likewise.
45101         * lib/unictype/categ_Lo.h: Likewise.
45102         * lib/unictype/categ_Lu.h: Likewise.
45103         * lib/unictype/categ_M.h: Likewise.
45104         * lib/unictype/categ_Mc.h: Likewise.
45105         * lib/unictype/categ_Mn.h: Likewise.
45106         * lib/unictype/categ_N.h: Likewise.
45107         * lib/unictype/categ_Nd.h: Likewise.
45108         * lib/unictype/categ_Nl.h: Likewise.
45109         * lib/unictype/categ_No.h: Likewise.
45110         * lib/unictype/categ_P.h: Likewise.
45111         * lib/unictype/categ_Pd.h: Likewise.
45112         * lib/unictype/categ_Po.h: Likewise.
45113         * lib/unictype/categ_S.h: Likewise.
45114         * lib/unictype/categ_Sc.h: Likewise.
45115         * lib/unictype/categ_So.h: Likewise.
45116         * lib/unictype/categ_of.h: Likewise.
45117         * lib/unictype/combining.h: Likewise.
45118         * lib/unictype/ctype_alnum.h: Likewise.
45119         * lib/unictype/ctype_alpha.h: Likewise.
45120         * lib/unictype/ctype_graph.h: Likewise.
45121         * lib/unictype/ctype_lower.h: Likewise.
45122         * lib/unictype/ctype_print.h: Likewise.
45123         * lib/unictype/ctype_punct.h: Likewise.
45124         * lib/unictype/ctype_upper.h: Likewise.
45125         * lib/unictype/decdigit.h: Likewise.
45126         * lib/unictype/digit.h: Likewise.
45127         * lib/unictype/numeric.h: Likewise.
45128         * lib/unictype/pr_alphabetic.h: Likewise.
45129         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45130         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45131         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45132         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45133         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45134         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45135         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45136         * lib/unictype/pr_combining.h: Likewise.
45137         * lib/unictype/pr_composite.h: Likewise.
45138         * lib/unictype/pr_currency_symbol.h: Likewise.
45139         * lib/unictype/pr_dash.h: Likewise.
45140         * lib/unictype/pr_decimal_digit.h: Likewise.
45141         * lib/unictype/pr_deprecated.h: Likewise.
45142         * lib/unictype/pr_diacritic.h: Likewise.
45143         * lib/unictype/pr_extender.h: Likewise.
45144         * lib/unictype/pr_grapheme_base.h: Likewise.
45145         * lib/unictype/pr_grapheme_extend.h: Likewise.
45146         * lib/unictype/pr_grapheme_link.h: Likewise.
45147         * lib/unictype/pr_id_continue.h: Likewise.
45148         * lib/unictype/pr_id_start.h: Likewise.
45149         * lib/unictype/pr_ideographic.h: Likewise.
45150         * lib/unictype/pr_ignorable_control.h: Likewise.
45151         * lib/unictype/pr_logical_order_exception.h: Likewise.
45152         * lib/unictype/pr_lowercase.h: Likewise.
45153         * lib/unictype/pr_numeric.h: Likewise.
45154         * lib/unictype/pr_other_alphabetic.h: Likewise.
45155         * lib/unictype/pr_punctuation.h: Likewise.
45156         * lib/unictype/pr_sentence_terminal.h: Likewise.
45157         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45158         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45159         * lib/unictype/pr_unified_ideograph.h: Likewise.
45160         * lib/unictype/pr_uppercase.h: Likewise.
45161         * lib/unictype/pr_xid_continue.h: Likewise.
45162         * lib/unictype/pr_xid_start.h: Likewise.
45163         * lib/unictype/pr_zero_width.h: Likewise.
45164         * lib/unictype/scripts.h: Likewise.
45165         * lib/unictype/scripts_byname.gperf: Likewise.
45166         * lib/unictype/sy_java_ident.h: Likewise.
45167         * lib/unigbrk/gbrkprop.h: Likewise.
45168         * lib/unilbrk/lbrkprop1.h: Likewise.
45169         * lib/unilbrk/lbrkprop2.h: Likewise.
45170         * lib/unilbrk/lbrktables.h: Likewise.
45171         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45172         LBP_CP. Implement rule LB30.
45173         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45174         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45175         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45176         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45177         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45178         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45179         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45180         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45181         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45182         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45183         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45184         bits instead of 16 bits in the code1 and code2 of each composition
45185         rule.
45186         (uc_composition): Update for Unicode 5.2.0.
45187         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45188         * lib/uninorm/decomposition-table2.h: Likewise.
45189         * lib/uniwbrk/wbrkprop.h: Likewise.
45190         * tests/unicase/test-cased.c: Likewise.
45191         * tests/unicase/test-ignorable.c: Likewise.
45192         * tests/unicase/test-uc_tolower.c: Likewise.
45193         * tests/unicase/test-uc_totitle.c: Likewise.
45194         * tests/unicase/test-uc_toupper.c: Likewise.
45195         * tests/unictype/test-categ_C.c: Likewise.
45196         * tests/unictype/test-categ_Cf.c: Likewise.
45197         * tests/unictype/test-categ_Cn.c: Likewise.
45198         * tests/unictype/test-categ_L.c: Likewise.
45199         * tests/unictype/test-categ_Ll.c: Likewise.
45200         * tests/unictype/test-categ_Lm.c: Likewise.
45201         * tests/unictype/test-categ_Lo.c: Likewise.
45202         * tests/unictype/test-categ_Lu.c: Likewise.
45203         * tests/unictype/test-categ_M.c: Likewise.
45204         * tests/unictype/test-categ_Mc.c: Likewise.
45205         * tests/unictype/test-categ_Mn.c: Likewise.
45206         * tests/unictype/test-categ_N.c: Likewise.
45207         * tests/unictype/test-categ_Nd.c: Likewise.
45208         * tests/unictype/test-categ_Nl.c: Likewise.
45209         * tests/unictype/test-categ_No.c: Likewise.
45210         * tests/unictype/test-categ_P.c: Likewise.
45211         * tests/unictype/test-categ_Pd.c: Likewise.
45212         * tests/unictype/test-categ_Po.c: Likewise.
45213         * tests/unictype/test-categ_S.c: Likewise.
45214         * tests/unictype/test-categ_Sc.c: Likewise.
45215         * tests/unictype/test-categ_So.c: Likewise.
45216         * tests/unictype/test-ctype_alnum.c: Likewise.
45217         * tests/unictype/test-ctype_alpha.c: Likewise.
45218         * tests/unictype/test-ctype_graph.c: Likewise.
45219         * tests/unictype/test-ctype_lower.c: Likewise.
45220         * tests/unictype/test-ctype_print.c: Likewise.
45221         * tests/unictype/test-ctype_punct.c: Likewise.
45222         * tests/unictype/test-ctype_upper.c: Likewise.
45223         * tests/unictype/test-decdigit.h: Likewise.
45224         * tests/unictype/test-digit.h: Likewise.
45225         * tests/unictype/test-numeric.h: Likewise.
45226         * tests/unictype/test-pr_alphabetic.c: Likewise.
45227         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45228         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45229         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45230         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45231         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45232         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45233         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45234         * tests/unictype/test-pr_combining.c: Likewise.
45235         * tests/unictype/test-pr_composite.c: Likewise.
45236         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45237         * tests/unictype/test-pr_dash.c: Likewise.
45238         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45239         * tests/unictype/test-pr_deprecated.c: Likewise.
45240         * tests/unictype/test-pr_diacritic.c: Likewise.
45241         * tests/unictype/test-pr_extender.c: Likewise.
45242         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45243         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45244         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45245         * tests/unictype/test-pr_id_continue.c: Likewise.
45246         * tests/unictype/test-pr_id_start.c: Likewise.
45247         * tests/unictype/test-pr_ideographic.c: Likewise.
45248         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45249         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45250         * tests/unictype/test-pr_lowercase.c: Likewise.
45251         * tests/unictype/test-pr_numeric.c: Likewise.
45252         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45253         * tests/unictype/test-pr_punctuation.c: Likewise.
45254         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45255         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45256         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45257         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45258         * tests/unictype/test-pr_uppercase.c: Likewise.
45259         * tests/unictype/test-pr_xid_continue.c: Likewise.
45260         * tests/unictype/test-pr_xid_start.c: Likewise.
45261         * tests/unictype/test-pr_zero_width.c: Likewise.
45262         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45263         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45264         changed behaviour: line breaking is now disallowed between a letter
45265         or '=' and '('.
45266         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45267         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45268         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45269         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45270         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45271         lib/uniwidth/width.c.
45272         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45273         without comments, but with the original copyright notice.
45274         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45275         changes.
45276         * lib/unictype/categ_Cc.h: Likewise.
45277         * lib/unictype/categ_Co.h: Likewise.
45278         * lib/unictype/categ_Cs.h: Likewise.
45279         * lib/unictype/categ_Lt.h: Likewise.
45280         * lib/unictype/categ_Me.h: Likewise.
45281         * lib/unictype/categ_Pc.h: Likewise.
45282         * lib/unictype/categ_Pe.h: Likewise.
45283         * lib/unictype/categ_Pf.h: Likewise.
45284         * lib/unictype/categ_Pi.h: Likewise.
45285         * lib/unictype/categ_Ps.h: Likewise.
45286         * lib/unictype/categ_Sk.h: Likewise.
45287         * lib/unictype/categ_Sm.h: Likewise.
45288         * lib/unictype/categ_Z.h: Likewise.
45289         * lib/unictype/categ_Zl.h: Likewise.
45290         * lib/unictype/categ_Zp.h: Likewise.
45291         * lib/unictype/categ_Zs.h: Likewise.
45292         * lib/unictype/ctype_blank.h: Likewise.
45293         * lib/unictype/ctype_cntrl.h: Likewise.
45294         * lib/unictype/ctype_digit.h: Likewise.
45295         * lib/unictype/ctype_space.h: Likewise.
45296         * lib/unictype/ctype_xdigit.h: Likewise.
45297         * lib/unictype/mirror.h: Likewise.
45298         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45299         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45300         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45301         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45302         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45303         * lib/unictype/pr_bidi_control.h: Likewise.
45304         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45305         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45306         * lib/unictype/pr_bidi_pdf.h: Likewise.
45307         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45308         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45309         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45310         * lib/unictype/pr_format_control.h: Likewise.
45311         * lib/unictype/pr_hex_digit.h: Likewise.
45312         * lib/unictype/pr_hyphen.h: Likewise.
45313         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45314         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45315         * lib/unictype/pr_iso_control.h: Likewise.
45316         * lib/unictype/pr_join_control.h: Likewise.
45317         * lib/unictype/pr_left_of_pair.h: Likewise.
45318         * lib/unictype/pr_line_separator.h: Likewise.
45319         * lib/unictype/pr_math.h: Likewise.
45320         * lib/unictype/pr_non_break.h: Likewise.
45321         * lib/unictype/pr_not_a_character.h: Likewise.
45322         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45323         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45324         * lib/unictype/pr_other_id_continue.h: Likewise.
45325         * lib/unictype/pr_other_id_start.h: Likewise.
45326         * lib/unictype/pr_other_lowercase.h: Likewise.
45327         * lib/unictype/pr_other_math.h: Likewise.
45328         * lib/unictype/pr_other_uppercase.h: Likewise.
45329         * lib/unictype/pr_paired_punctuation.h: Likewise.
45330         * lib/unictype/pr_paragraph_separator.h: Likewise.
45331         * lib/unictype/pr_pattern_syntax.h: Likewise.
45332         * lib/unictype/pr_pattern_white_space.h: Likewise.
45333         * lib/unictype/pr_private_use.h: Likewise.
45334         * lib/unictype/pr_quotation_mark.h: Likewise.
45335         * lib/unictype/pr_radical.h: Likewise.
45336         * lib/unictype/pr_soft_dotted.h: Likewise.
45337         * lib/unictype/pr_space.h: Likewise.
45338         * lib/unictype/pr_titlecase.h: Likewise.
45339         * lib/unictype/pr_variation_selector.h: Likewise.
45340         * lib/unictype/pr_white_space.h: Likewise.
45341         * lib/unictype/sy_c_ident.h: Likewise.
45342         * lib/unictype/sy_c_whitespace.h: Likewise.
45343         * lib/unictype/sy_java_whitespace.h: Likewise.
45344         * modules/uni*/*: Bump version number of expected libunistring version.
45345         Reported by Simon Josefsson.
45347 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45349         useless-if-before-free: fix typo in --help and make the internal,
45350         automatic version date update process work once again.
45351         --help output contained a NUL character instead of the
45352         backslash-zero that was intended.  Also, the "must lie within
45353         the first 8 lines" line is on line 9, and hence not getting
45354         automatically updated.
45355         * build-aux/useless-if-before-free: Fix the former by adding a
45356         backslash, and the latter by condensing the three lines of what-it-does
45357         to a single line, leaving one line of slack for the future.
45359 2011-01-09  Bruno Haible  <bruno@clisp.org>
45361         uniwidth/width: Fix width of U+1D173..U+1D17A.
45362         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45363         symbolic_width, output_width_property_test): New functions.
45364         (main): Invoke output_nonspacing_property, output_width_property_test.
45365         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45366         U+1D173..U+1D17A.
45367         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45368         1.
45369         * modules/uniwidth/*: Bump version number of expected libunistring
45370         version.
45371         * modules/unilbrk/*: Likewise.
45373 2011-01-08  Bruno Haible  <bruno@clisp.org>
45375         uninorm tests: Preserve copyright of Unicode data file.
45376         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45377         Mention modifications.
45379 2011-01-08  Bruno Haible  <bruno@clisp.org>
45381         gen-uni-tables: Prepare for Unicode 5.2.0.
45382         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45383         (debug_output_lbp, output_lbp): Update.
45385 2011-01-08  Bruno Haible  <bruno@clisp.org>
45387         unilbrk: Clarify gen-uni-tables.c code.
45388         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45389         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45390         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45392 2011-01-07  Bruno Haible  <bruno@clisp.org>
45394         strtod: Restore errno when successfully parsing Infinity or NaN.
45395         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45396         restore the original errno.
45398 2011-01-07  Bruno Haible  <bruno@clisp.org>
45400         remove test: Avoid failure on HP-UX 11.
45401         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45403 2011-01-07  Bruno Haible  <bruno@clisp.org>
45405         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45406         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45407         error code.
45409 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45411         ignore-value: fixup comments, and add Eric Blake
45412         as an author since he rewrote the macros.
45413         * lib/ignore-value.h (ignore_value):  State that
45414         we now support aggregates.  Also specify exactly
45415         when the GCC warn_unused_result feature was added.
45417 2011-01-06  Eric Blake  <eblake@redhat.com>
45419         ignore-value: support aggregate types
45420         * lib/ignore-value.h (ignore_value): Provide separate gcc
45421         definition.
45422         * modules/ignore-value-tests: New test module.
45423         * tests/test-ignore-value.c: New test.
45425         maint.mk: improve sc_prohibit_strcmp regex
45426         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45427         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45428         definition of STRNEQ.
45430         signal: work around Haiku issue with SIGBUS
45431         * lib/siglist.h: Add comment.
45432         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45433         strsignal's favoring of SIGSEGV.
45434         * tests/test-signal.c (main): Avoid test failure.
45435         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45436         Reported by Scott McCreary.
45438         maint.mk: add pre-release check to ensure submodule commits are public
45439         * top/maint.mk (public-submodule-commit): New rule.
45440         (submodule-checks): New variable.
45441         (alpha beta stable): Depend on the variable.
45443 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45444         and Jim Meyering  <meyering@redhat.com>
45446         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45447         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45448         (ATTRIBUTE_DEPRECATED): Define.
45449         (_ignore_case): New function.
45450         (ignore_value): New macro, to replace the old function.
45451         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45452         * modules/ignore-value (Depends-on): Add stdint.
45454 2011-01-04  Eric Blake  <eblake@redhat.com>
45456         doc: regenerate INSTALL
45457         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45458         @firstparagraphindent support, now that autoconf dropped it.
45459         (INSTALL_PRELUDE): Reinstate old macro.
45460         * doc/install.texi: Resync from autoconf.
45461         * doc/INSTALL: Reflect recent autoconf update.
45462         * doc/INSTALL.ISO: Likewise.
45463         * doc/INSTALL.UTF-8: Likewise.
45464         Reported by Karl Berry.
45466 2011-01-04  Bruce Korb  <address@hidden>
45468         git-version-gen: avoid a sub-shell
45469         * build-aux/git-version-gen: Redirect stderr in `...` via
45470         "exec 2>...", rather than via an added sub-shell.
45472 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45474         git-version-gen: use (...) rather than sh -c '...'
45475         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45476         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45478 2011-01-03  Jim Meyering  <meyering@redhat.com>
45480         git-version-gen: convert leading TABs to spaces
45481         * build-aux/git-version-gen: Expand leading TABs.
45483         git-version-gen: handle failed "git rev-list"
45484         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45485         from git and proceeding as if it had succeeded but printed no SHA1
45486         checksums, suppress the diagnostic and handle the failure.
45487         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45489         git-version-gen: include command name in one more diagnostic
45490         * build-aux/git-version-gen: When the required .tarball-version file
45491         was missing or unreadable, you might see the diagnostic from "cat",
45492         but no trace of the name of the invoking script.  Now, you still see
45493         the diagnostic from cat, but also get one from "git-version-gen: ".
45494         Inspired by a patch from Bruce Korb.
45496         update-copyright: adjust test to match changed code
45497         * tests/test-update-copyright.sh: Change test's expected output
45498         to match new actual output.
45500 2011-01-02  Bruno Haible  <bruno@clisp.org>
45502         getlogin_r: Avoid test failure on HP-UX 11.
45503         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45504         ERANGE when the second argument is zero.
45505         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45506         portability problem.
45508 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45510         * build-aux/update-copyright: doc Simon's changes
45512 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45514         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45515         environment variable.
45517 2011-01-02  Bruno Haible  <bruno@clisp.org>
45519         unigbrk: Avoid gcc warnings.
45520         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45521         unused variable.
45522         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45523         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45524         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45525         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45526         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45527         Change type of first argument to 'const char *'.
45528         (main): Remove unused variable.
45529         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45530         type of first argument to 'const char *'.
45531         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45532         Likewise.
45533         (main): Change type of variable 's'.
45534         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45535         to 'int'.
45537 2011-01-02  Bruno Haible  <bruno@clisp.org>
45539         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45540         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45541         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45542         bug.
45543         * lib/pwrite.c: Undo 2010-12-31 patch.
45544         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45546 2011-01-02  Bruno Haible  <bruno@clisp.org>
45548         pread: Fix test whether it works.
45549         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45551 2011-01-02  Bruno Haible  <bruno@clisp.org>
45553         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45554         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45555         ends in "6". Don't require a specific month name. Try also the locale
45556         names found on HP-UX 11 and Solaris 7.
45558 2011-01-02  Bruno Haible  <bruno@clisp.org>
45560         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45561         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45562         C linkage.
45563         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45565 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45567         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45568         for consistency, since the "cluster" term is not used elsewhere.
45569         * lib/unigbrk.in.h: Update name.
45570         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45571         * lib/unigbrk/u16-grapheme-next.c: Update name.
45572         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45573         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45574         * lib/unigbrk/u32-grapheme-next.c: Update name.
45575         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45576         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45577         * lib/unigbrk/u8-grapheme-next.c: Update name.
45578         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45579         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45580         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45581         Suggested by Bruno Haible.
45583 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45585         Remove module 'u8-grapheme-len' as too redundant with
45586         'u8-grapheme-next'.
45587         * modules/unigbrk/u8-grapheme-len: Delete file.
45588         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45589         * lib/unigbrk.in.h: Remove prototype for deleted function.
45590         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45591         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45593         Remove module 'u16-grapheme-len' as too redundant with
45594         'u16-grapheme-next'.
45595         * modules/unigbrk/u16-grapheme-len: Delete file.
45596         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45597         * lib/unigbrk.in.h: Remove prototype for deleted function.
45598         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45599         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45601         Remove module 'u32-grapheme-len' as too redundant with
45602         'u32-grapheme-next'.
45603         * modules/unigbrk/u32-grapheme-len: Delete file.
45604         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45605         * lib/unigbrk.in.h: Remove prototype for deleted function.
45606         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45607         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45609         Suggested by Bruno Haible.
45611 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45613         * unigbrk.in.h: Fix typo: "ben" => "been".
45614         Reported by Bruno Haible.
45616 2011-01-01  Jim Meyering  <meyering@redhat.com>
45618         maint: update almost all copyright ranges to include 2011
45619         Run the new "make update-copyright" rule.
45621 2011-01-01  Jim Meyering  <meyering@redhat.com>
45623         maint: update-copyright: exempt doc/INSTALL*
45624         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45625         since they are generated.  Suggested by Bruno Haible.
45627 2011-01-01  Jim Meyering  <meyering@redhat.com>
45629         maint: refine the update-copyright rule
45630         * Makefile (update-copyright): Also exclude any file that includes
45631         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45632         code that merely generates the comment.
45634 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45636         New module 'u8-grapheme-len'.
45637         * modules/unigbrk/u8-grapheme-len: New file.
45638         * modules/unigbrk/u8-grapheme-len-tests: New file.
45639         * lib/unigbrk.in.h: Add prototype for new function.
45640         * lib/unigbrk/u8-grapheme-len.c: New file.
45641         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45643         New module 'u16-grapheme-len'.
45644         * modules/unigbrk/u16-grapheme-len: New file.
45645         * modules/unigbrk/u16-grapheme-len-tests: New file.
45646         * lib/unigbrk.in.h: Add prototype for new function.
45647         * lib/unigbrk/u16-grapheme-len.c: New file.
45648         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45650         New module 'u32-grapheme-len'.
45651         * modules/unigbrk/u32-grapheme-len: New file.
45652         * modules/unigbrk/u32-grapheme-len-tests: New file.
45653         * lib/unigbrk.in.h: Add prototype for new function.
45654         * lib/unigbrk/u32-grapheme-len.c: New file.
45655         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45657         New module 'u8-grapheme-next'.
45658         * modules/unigbrk/u8-grapheme-next: New file.
45659         * modules/unigbrk/u8-grapheme-next-tests: New file.
45660         * lib/unigbrk.in.h: Add prototype for new function.
45661         * lib/unigbrk/u8-grapheme-next.c: New file.
45662         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45664         New module 'u16-grapheme-next'.
45665         * modules/unigbrk/u16-grapheme-next: New file.
45666         * modules/unigbrk/u16-grapheme-next-tests: New file.
45667         * lib/unigbrk.in.h: Add prototype for new function.
45668         * lib/unigbrk/u16-grapheme-next.c: New file.
45669         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45671         New module 'u32-grapheme-next'.
45672         * modules/unigbrk/u32-grapheme-next: New file.
45673         * modules/unigbrk/u32-grapheme-next-tests: New file.
45674         * lib/unigbrk.in.h: Add prototype for new function.
45675         * lib/unigbrk/u32-grapheme-next.c: New file.
45676         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45678         New module 'u8-grapheme-prev'.
45679         * modules/unigbrk/u8-grapheme-prev: New file.
45680         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45681         * lib/unigbrk.in.h: Add prototype for new function.
45682         * lib/unigbrk/u8-grapheme-prev.c: New file.
45683         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45685         New module 'u16-grapheme-prev'.
45686         * modules/unigbrk/u16-grapheme-prev: New file.
45687         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45688         * lib/unigbrk.in.h: Add prototype for new function.
45689         * lib/unigbrk/u16-grapheme-prev.c: New file.
45690         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45692         New module 'u32-grapheme-prev'.
45693         * modules/unigbrk/u32-grapheme-prev: New file.
45694         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45695         * lib/unigbrk.in.h: Add prototype for new function.
45696         * lib/unigbrk/u32-grapheme-prev.c: New file.
45697         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45699         New module 'u8-grapheme-breaks'.
45700         * modules/unigbrk/u8-grapheme-breaks: New file.
45701         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45702         * lib/unigbrk.in.h: Add prototype for new function.
45703         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45704         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45706         New module 'u16-grapheme-breaks'.
45707         * modules/unigbrk/u16-grapheme-breaks: New file.
45708         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45709         * lib/unigbrk.in.h: Add prototype for new function.
45710         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45711         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45713         New module 'u32-grapheme-breaks'.
45714         * modules/unigbrk/u32-grapheme-breaks: New file.
45715         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45716         * lib/unigbrk.in.h: Add prototype for new function.
45717         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45718         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45720         New module 'ulc-grapheme-breaks'.
45721         * modules/unigbrk/ulc-grapheme-breaks: New file.
45722         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45723         * m4/locale-ar.m4: New file.
45724         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45725         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45726         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45728 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45730         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45731         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45732         modified how this file was generated before I initially submitted
45733         the module, but failed to regenerate it.  This meant that several
45734         of the level2 entries were wrong.
45735         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45736         Remove the division-by-2 that is folded into the table now that
45737         gbrkprop.h has been regenerated properly.  Now -1 entries are
45738         handled correctly.
45740         New module 'unigbrk/uc-gbrk-prop-tests'.
45741         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45742         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45743         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45744         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45746 2011-01-01  Bruno Haible  <bruno@clisp.org>
45748         Avoid use of hexadecimal escapes.
45749         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45750         instead of hexadecimal escapes.
45752 2011-01-01  Jim Meyering  <meyering@redhat.com>
45754         maint: new rule to update copyright year ranges
45755         * Makefile (update-copyright): New rule.
45757         maint: indent with TABs in Makefile
45758         * Makefile: Expand leading sequences of spaces to TABs
45760         version-etc: update the copyright year it reports
45761         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45763 2010-12-31  Bruno Haible  <bruno@clisp.org>
45765         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45766         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45767         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45768         zero.
45770 2010-12-31  Bruno Haible  <bruno@clisp.org>
45772         pwrite: Work around HP-UX 11.11 bug.
45773         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45774         works and set REPLACE_PWRITE if not.
45775         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45776         function.
45777         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45779 2010-12-31  Bruno Haible  <bruno@clisp.org>
45781         pread: Work around HP-UX 11 bugs.
45782         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45783         and set REPLACE_PREAD if not.
45784         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45786 2010-12-31  Eric Blake  <eblake@redhat.com>
45788         nl_langinfo: fix YESEXPR on Irix 6.5
45789         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45790         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45791         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45792         it.
45794 2010-12-31  Bruno Haible  <bruno@clisp.org>
45796         iconv: Document HP-UX 11 bug.
45797         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45799 2010-12-31  Bruno Haible  <bruno@clisp.org>
45801         ldexpl: Fix link error on HP-UX 11.
45802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45803         LDEXPL_LIBM, using $ISNANL_LIBM.
45805 2010-12-31  Eric Blake  <eblake@redhat.com>
45807         ftello: avoid compilation failure with SunStudio c89
45808         * lib/ftello.c (ftello): Use lseek, not llseek.
45810         tests: avoid failing coreutils tests on cygwin
45811         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45812         (create_exe_shims_): Return 0 when skipping.
45814 2010-12-31  Bruno Haible  <bruno@clisp.org>
45816         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45817         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45819 2010-12-31  Bruno Haible  <bruno@clisp.org>
45821         waitpid: Fix link error in C++ mode.
45822         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45824 2010-12-31  Bruno Haible  <bruno@clisp.org>
45826         isnan: Use GCC built-ins when possible.
45827         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45828         __builtin_isnan.
45829         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45830         (isnan): Define using GCC built-ins for GCC >= 4.0.
45832 2010-12-31  Bruno Haible  <bruno@clisp.org>
45834         isnand: Fix mistake.
45835         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45836         __builtin_isnand.
45838 2010-12-31  Bruno Haible  <bruno@clisp.org>
45840         open: Avoid C++ error on HP-UX 11.
45841         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45843 2010-12-31  Bruno Haible  <bruno@clisp.org>
45845         time_r: Add missing declarations on HP-UX 11.
45846         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45847         instead of HAVE_LOCALTIME_R.
45848         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45849         HAVE_LOCALTIME_R always.
45850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45851         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45852         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45853         HAVE_LOCALTIME_R.
45854         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45855         * doc/posix-functions/localtime_r.texi: Likewise.
45857 2010-12-29  Eric Blake  <eblake@redhat.com>
45859         mountlist: tweak previous commit
45860         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45861         Reported by Paul Eggert.
45863         mountlist: fix local drive detection on cygwin
45864         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45865         that works for cygwin.
45867 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45869         ftoastr, snprintf: ftoastr + snprintf module
45870         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45871         since the snprintf module now should be good enough here.
45872         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45873         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45874         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45875         GNULIB_SNPRINTF only for the test directory, and the latter
45876         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45877         seems to suffice by itself.
45879 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45881         alloca: one step towards thread-safety
45882         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45883         need for a static variable.  All callers changed.  This does not
45884         make the alloca replacement thread-safe, but it's one step.
45886         tests: minor indenting change
45887         * tests/init.sh: Sync from coreutils housekeeping patch
45888         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45889         to keep lines within 80 columns.
45891 2010-12-28  Jim Meyering  <meyering@redhat.com>
45893         regex: don't infloop on persistent failing calloc
45894         * lib/regexec.c (build_trtable): Return failure indication upon
45895         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45896         In glibc, this was fixed for version 2.13:
45897         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45899 2010-12-28  Bruno Haible  <bruno@clisp.org>
45900             Paul Eggert <eggert@cs.ucla.edu>
45902         linkat: Make implementation robust against system behaviour variations.
45903         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45904         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45905         way, and to -2 if it needs a generic runtime test.
45906         * lib/linkat.c (solaris_optimized_link_immediate,
45907         solaris_optimized_link_follow): New functions.
45908         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45909         (check_same_link): Use it.
45911 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45913         New module 'unigbrk/base'.
45914         * modules/unigbrk/base: New file.
45915         * lib/unigbrk.in.h: New file.
45917         New module 'unigbrk/uc-gbrk-prop'.
45918         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45919         * modules/unigbrk/uc-gbrk-prop: New file.
45920         * lib/unigbrk/gbrkprop.h: New file.
45921         * lib/unigbrk/uc-gbrk-prop.c: New file.
45923         New module 'unigbrk/uc-is-grapheme-break'.
45924         * modules/unigbrk/uc-is-grapheme-break: New file.
45925         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45926         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45927         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45928         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45929         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45931         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45933 2010-12-27  Bruno Haible  <bruno@clisp.org>
45935         linkat test: Avoid failure on Solaris 11 2010-11.
45936         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45938 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45940         utimens: work around glibc rounding bug on more platforms
45941         * lib/utimens.c (fdutimens): Work around rounding bug even if
45942         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45943         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45945 2010-12-27  Bruno Haible  <bruno@clisp.org>
45947         select tests: Improve comments.
45948         * tests/test-select.c (do_select): Add comments.
45950 2010-12-27  Bruno Haible  <bruno@clisp.org>
45952         select tests: Safer way of handling timeout.
45953         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45954         at every invocation.
45956 2010-12-27  Bruno Haible  <bruno@clisp.org>
45958         select tests: Use 'bool' where appropriate.
45959         * tests/test-select.c (connect_to_socket): Change argument type to
45960         'bool'.
45962 2010-12-27  Bruno Haible  <bruno@clisp.org>
45964         select tests: Use existing modules.
45965         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45966         (configure.ac): Don't test for unistd.h.
45967         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45968         declared in <unistd.h>.
45970 2010-12-27  Bruno Haible  <bruno@clisp.org>
45972         mbrtowc: Work around a Solaris 7 bug.
45973         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45974         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45975         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45976         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45977         MBRTOWC_NULL_ARG1_BUG.
45978         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45979         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45980         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45981         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45983 2010-12-27  Jim Meyering  <meyering@redhat.com>
45985         read-file.c: tweak syntax
45986         * lib/read-file.c (fread_file): Remove space after "*" in function
45987         definitions.
45989 2010-12-27  Bruno Haible  <bruno@clisp.org>
45991         times test: Avoid gcc warnings on OSF/1.
45992         * tests/test-times.c (main): Cast printf arguments from clock_t to
45993         'long int'.
45995 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45997         utimens: work around glibc rounding bug on older Linux kernels
45998         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45999         on Linux with a glibc whose utimes might not work, then work
46000         around a longstanding glibc bug involving rounding rather than
46001         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
46002         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46004 2010-12-26  Bruno Haible  <bruno@clisp.org>
46006         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
46007         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
46008         _GL_CXXALIAS_SYS.
46009         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46011 2010-12-26  Bruno Haible  <bruno@clisp.org>
46013         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
46014         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
46015         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46016         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
46017         looking for the declaration.
46018         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46019         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
46020         problem.
46021         * doc/posix-functions/inet_pton.texi: Likewise.
46023 2010-12-26  Bruno Haible  <bruno@clisp.org>
46025         arpa_inet: Use the common idioms with C++ support.
46026         * lib/arpa_inet.in.h: Include c++defs.h.
46027         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
46028         support.
46029         * modules/arpa_inet (Depends-on): Add c++defs.
46030         (Makefile.am): Substitute the contents of c++defs.h.
46031         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
46032         * modules/arpa_inet-c++-tests: New file.
46033         * tests/test-arpa_inet-c++.cc: New file.
46035 2010-12-25  Bruno Haible  <bruno@clisp.org>
46037         Fix more C++ link errors on Solaris 8.
46038         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
46039         $(LIB_EACCESS).
46040         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
46041         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
46042         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
46043         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
46044         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
46046 2010-12-25  Bruno Haible  <bruno@clisp.org>
46048         printf-posix: Fix link error when a non-GCC compiler is used.
46049         * lib/stdio.in.h (printf): When not using GCC, override printf
46050         correctly.
46051         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46053 2010-12-25  Bruno Haible  <bruno@clisp.org>
46055         strerror_r-posix: Update doc.
46056         * doc/posix-functions/strerror_r.texi: Update doc about the return
46057         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
46059 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46061         utimens: simplify the logic of the previous change
46062         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
46063         This should not affect whether the test succeeds or fails.
46065         utimens: configure better on hosts with NFS clock skew
46066         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
46067         uses the clock of the local host.  It might use the clock of the
46068         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
46069         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46071 2010-12-25  Bruno Haible  <bruno@clisp.org>
46073         ptsname test: Avoid failure on Solaris.
46074         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
46075         open a pseudo-terminal; don't use BSD-style ptys.
46076         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
46078 2010-12-25  Bruno Haible  <bruno@clisp.org>
46080         ptsname: Avoid ERANGE failure on some systems.
46081         * lib/ptsname.c (buffer): Increase size.
46083 2010-12-25  Bruno Haible  <bruno@clisp.org>
46085         rename, renameat: Avoid test failures at NFS mounted locations.
46086         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
46087         so that subsequent mkdir calls succeed.
46089 2010-12-25  Bruno Haible  <bruno@clisp.org>
46091         iswblank: Fix C++ link error on Solaris 8.
46092         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
46093         _GL_FUNCDECL_SYS.
46095 2010-12-25  Bruno Haible  <bruno@clisp.org>
46097         unistd: Fix C++ link error on Solaris 8.
46098         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
46100 2010-12-25  Bruno Haible  <bruno@clisp.org>
46102         readlink doc: Mention an old glibc bug.
46103         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
46105 2010-12-25  Bruno Haible  <bruno@clisp.org>
46107         fcntl-h: Fix for use of C++ on glibc systems.
46108         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46109         also on glibc systems in C++ mode.
46110         Reported by Gary V. Vaughan <gary@gnu.org>.
46112 2010-12-25  Bruno Haible  <bruno@clisp.org>
46114         roundl-ieee: Make it work on OSF/1 5.1 with cc.
46115         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
46117 2010-12-25  Bruno Haible  <bruno@clisp.org>
46119         truncl-ieee: Make it work on OSF/1 5.1 with cc.
46120         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
46121         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
46122         test whether truncl works according to ISO C 99 with IEC 60559.
46123         * m4/truncl-ieee.m4: New file.
46124         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46125         m4/signbit.m4.
46126         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46128 2010-12-25  Bruno Haible  <bruno@clisp.org>
46130         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46131         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46132         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46133         test whether ceill works according to ISO C 99 with IEC 60559.
46134         * m4/ceill-ieee.m4: New file.
46135         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46136         m4/signbit.m4.
46137         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46139 2010-12-25  Bruno Haible  <bruno@clisp.org>
46141         Ensure all prerequisites of <wchar.h> are included.
46142         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46143         before <wchar.h>.
46144         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46145         gl_MBRLEN_NUL_RETVAL): Likewise.
46146         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46147         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46148         AC_FUNC_MBRTOWC): Likewise.
46149         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46150         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46153         Likewise.
46154         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46155         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46156         (gl_WCHAR_H): Improve comments.
46157         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46159 2010-12-25  Bruno Haible  <bruno@clisp.org>
46161         strtok_r: Fix C syntax error in autoconf macro.
46162         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46163         characters in test program.
46165 2010-12-24  Bruno Haible  <bruno@clisp.org>
46167         ceil, trunc, round: Fix gcc warnings.
46168         * lib/ceil.c (MIN): Undefine before redefining.
46169         * lib/trunc.c (MIN): Likewise.
46170         * lib/round.c (MIN): Likewise.
46171         Include <math.h> first.
46173 2010-12-24  Bruno Haible  <bruno@clisp.org>
46175         select tests: Avoid failures on OSF/1 5.1.
46176         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46177         failure of closing the last socket; it may fail with ECONNRESET.
46179 2010-12-24  Eric Blake  <eblake@redhat.com>
46181         stdint: avoid HP-UX 10.20 preprocessor bug
46182         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46183         than #if.
46184         * tests/test-floor2.c (main): Likewise.
46185         Reported by Peter O'Gorman.
46187         pipe: make obsoletion transition easier
46188         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46189         * modules/pipe (Files): Include revived file.
46190         (Include): Drop reference, to mirror getdate's behavior.
46192 2010-12-24  Bruno Haible  <bruno@clisp.org>
46194         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46195         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46196         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46199 2010-12-24  Bruno Haible  <bruno@clisp.org>
46201         gethostname: Ensure declaration on NonStop Kernel.
46202         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46205 2010-12-24  Bruno Haible  <bruno@clisp.org>
46207         sys_select: Ensure all necessary types on NonStop Kernel.
46208         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46209         include <sys/time.h>.
46210         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46211         NonStop Kernel.
46212         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46214 2010-12-24  Bruno Haible  <bruno@clisp.org>
46216         sys_select: Remove unneeded include.
46217         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46218         have <sys/select.h>.
46220 2010-12-24  Bruno Haible  <bruno@clisp.org>
46222         gethostname: Provide a fallback for HOST_NAME_MAX.
46223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46224         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46225         instead.
46226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46228 2010-12-24  Bruno Haible  <bruno@clisp.org>
46230         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46231         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46232         (SA_RESTART): Likewise.
46233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46235 2010-12-24  Bruno Haible  <bruno@clisp.org>
46237         signal: Define NSIG.
46238         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46239         * tests/test-signal.c (nsig): New variable.
46240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46242 2010-12-24  Bruno Haible  <bruno@clisp.org>
46244         rename, renameat: Avoid test failures on OSF/1 5.1.
46245         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46246         alternative error codes.
46247         * tests/test-renameat.c (main): Likewise.
46249 2010-12-24  Bruno Haible  <bruno@clisp.org>
46251         *printf: Detect large precisions bug on Solaris 10/SPARC.
46252         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46253         by Paul Eggert.
46254         * tests/test-snprintf-posix.h (test_function): Add this test code here
46255         too.
46256         * tests/test-sprintf-posix.h (test_function): Likewise.
46257         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46258         * tests/test-vasprintf-posix.c (test_function): Likewise.
46259         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46260         around by gnulib.
46261         * doc/posix-functions/printf.texi: Likewise.
46262         * doc/posix-functions/snprintf.texi: Likewise.
46263         * doc/posix-functions/sprintf.texi: Likewise.
46264         * doc/posix-functions/vfprintf.texi: Likewise.
46265         * doc/posix-functions/vprintf.texi: Likewise.
46266         * doc/posix-functions/vsnprintf.texi: Likewise.
46267         * doc/posix-functions/vsprintf.texi: Likewise.
46268         * doc/posix-functions/dprintf.texi: Undo last commit.
46269         * doc/posix-functions/vdprintf.texi: Likewise.
46271 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46273         tests: port test-fdutimensat.c to Solaris 8
46274         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46275         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46276         On Solaris 8, it fails with errno == ENOSYS, because there is no
46277         futimens (so it can't use the fd), and there is no lutimens (so it
46278         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46280         vsnprintf: make more consistent with snprintf; doc fixes
46282         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46283         the byte count return problem was promoted from the snprintf-posix
46284         to the snprintf module.
46285         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46286         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46287         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46288         * tests/test-snprintf.c (main): Check the byte count returned.
46289         * tests/test-vsnprintf.c (main): Likewise.
46291 2010-12-23  Eric Blake  <eblake@redhat.com>
46293         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46294         * modules/sigpipe (License): Relax license.
46296 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46298         doc: document Solaris printf bug with large float precisions
46299         * doc/posix-functions/dprintf.texi (dprintf):
46300         * doc/posix-functions/fprintf.texi (fprintf):
46301         * doc/posix-functions/printf.texi (printf):
46302         * doc/posix-functions/snprintf.texi (snprintf):
46303         * doc/posix-functions/sprintf.texi (sprintf):
46304         * doc/posix-functions/vdprintf.texi (vdprintf):
46305         * doc/posix-functions/vfprintf.texi (vfprintf):
46306         * doc/posix-functions/vprintf.texi (vprintf):
46307         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46308         * doc/posix-functions/vsprintf.texi (vsprintf):
46309         Mention that these functions mishandle large floating point
46310         precisions on Solaris 10.  The same bug is also present in Solaris
46311         8, and I assume earlier.  This causes "cd gnulib-tests; make
46312         check" to fail on Solaris 8 (and I assume, later) when building
46313         the latest coreutils, in test-vasprintf-posix's call to
46314         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46315         the wide flavors (e.g., wprintf) so this patch just updates the
46316         documentation for the narrow ones.
46318         test-posixtm.c: add two tests
46319         * tests/test-posixtm.c: Add two tests, to highlight the
46320         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46321         around this bug; this is merely to document it.
46323 2010-12-22  Bruno Haible  <bruno@clisp.org>
46325         getlogin_r: Work around portability problem on OSF/1.
46326         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46327         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46328         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46329         test for a truncated result.
46330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46331         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46332         * modules/getlogin_r (Depends-on): Add memchr.
46333         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46335 2010-12-22  Bruno Haible  <bruno@clisp.org>
46337         ptsname: Avoid test failure on OSF/1 5.1.
46338         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46339         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46340         (same_slave): New function.
46341         (main): Use it to compare ptsname's result with the expected file name.
46343 2010-12-22  Bruno Haible  <bruno@clisp.org>
46345         Port extended stdio modules to HP NonStop Kernel.
46346         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46347         macros.
46348         * lib/fbufmode.c: Update comments.
46349         * lib/fflush.c: Likewise.
46350         * lib/fpurge.c: Likewise.
46351         * lib/freadable.c: Likewise.
46352         * lib/freadahead.c: Likewise.
46353         * lib/freading.c: Likewise.
46354         * lib/freadptr.c: Likewise.
46355         * lib/freadseek.c: Likewise.
46356         * lib/fseeko.c: Likewise.
46357         * lib/fseterr.c: Likewise.
46358         * lib/fwritable.c: Likewise.
46359         * lib/fwriting.c: Likewise.
46360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46362 2010-12-22  Bruno Haible  <bruno@clisp.org>
46364         ttyname_r: Work around bug on OSF/1 5.1.
46365         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46367         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46368         present.
46369         * lib/ttyname_r.c (ttyname_r): Update comments.
46371 2010-12-22  Bruno Haible  <bruno@clisp.org>
46373         round: Implement result sign according to IEEE 754.
46374         * lib/round.c (MIN, MINUS_ZERO): New macros.
46375         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46376         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46377         * tests/test-round-ieee.c (main): Likewise.
46378         * tests/test-roundl-ieee.c (main): Likewise.
46380         trunc: Implement result sign according to IEEE 754.
46381         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46382         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46383         * tests/test-trunc2.c: Include minus-zero.h.
46384         (MINUS_ZERO): New macro.
46385         (trunc_reference): Keep in sync with lib/trunc.c.
46386         * tests/test-truncf2.c: Include minus-zero.h.
46387         (MINUS_ZERO): New macro.
46388         (truncf_reference): Keep in sync with lib/trunc.c.
46389         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46390         * tests/test-trunc-ieee.c (main): Likewise.
46391         * tests/test-truncl-ieee.c (main): Likewise.
46393         ceil: Implement result sign according to IEEE 754.
46394         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46395         (FUNC): Return -0.0 for -1 < x < 0.
46396         * tests/test-ceil2.c: Include minus-zero.h.
46397         (MINUS_ZERO): New macro.
46398         (ceil_reference): Keep in sync with lib/ceil.c.
46399         * tests/test-ceilf2.c: Include minus-zero.h.
46400         (MINUS_ZERO): New macro.
46401         (ceilf_reference): Keep in sync with lib/ceil.c.
46402         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46403         * tests/test-ceil-ieee.c (main): Likewise.
46404         * tests/test-ceill-ieee.c (main): Likewise.
46406         floor: Implement result sign according to IEEE 754.
46407         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46408         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46409         * tests/test-floorf2.c (floorf_reference): Likewise.
46410         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46411         * tests/test-floor-ieee.c (main): Likewise.
46412         * tests/test-floorl-ieee.c (main): Likewise.
46414 2010-12-22  Bruno Haible  <bruno@clisp.org>
46416         getaddrinfo: Update doc.
46417         * doc/posix-functions/gai_strerror.texi: Return type is also different
46418         on AIX and HP-UX.
46420 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46422         getaddrinfo, inet_ntop: Update doc for Solaris.
46423         * doc/posix-functions/gai_strerror.texi: Return type is also an
46424         issue on Solaris 9 and earlier.
46425         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46426         on Solaris 10 and earlier.
46428 2010-12-21  Bruno Haible  <bruno@clisp.org>
46430         New module 'roundl-ieee'.
46431         * modules/roundl-ieee: New file.
46432         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46433         test whether roundl works according to ISO C 99 with IEC 60559.
46434         * m4/roundl-ieee.m4: New file.
46435         * modules/roundl-ieee-tests: New file.
46436         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46437         * tests/test-roundl.c (main): Remove signbit tests.
46438         * modules/roundl-tests (Depends-on): Remove signbit.
46439         * doc/posix-functions/roundl.texi: Mention the new module.
46441 2010-12-21  Bruno Haible  <bruno@clisp.org>
46443         New module 'truncl-ieee'.
46444         * modules/truncl-ieee: New file.
46445         * modules/truncl-ieee-tests: New file.
46446         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46447         * tests/test-truncl.c (main): Remove signbit tests.
46448         * modules/truncl-tests (Depends-on): Remove signbit.
46449         * doc/posix-functions/truncl.texi: Mention the new module.
46451 2010-12-21  Bruno Haible  <bruno@clisp.org>
46453         New module 'ceill-ieee'.
46454         * modules/ceill-ieee: New file.
46455         * modules/ceill-ieee-tests: New file.
46456         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46457         * tests/test-ceill.c (main): Remove signbit tests.
46458         * modules/ceill-tests (Depends-on): Remove signbit.
46459         * doc/posix-functions/ceill.texi: Mention the new module.
46461 2010-12-21  Bruno Haible  <bruno@clisp.org>
46463         New module 'floorl-ieee'.
46464         * modules/floorl-ieee: New file.
46465         * modules/floorl-ieee-tests: New file.
46466         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46467         * tests/test-floorl.c (main): Remove signbit tests.
46468         * modules/floorl-tests (Depends-on): Remove signbit.
46469         * doc/posix-functions/floorl.texi: Mention the new module.
46471 2010-12-21  Bruno Haible  <bruno@clisp.org>
46473         New module 'round-ieee'.
46474         * modules/round-ieee: New file.
46475         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46476         whether round works according to ISO C 99 with IEC 60559.
46477         * m4/round-ieee.m4: New file.
46478         * modules/round-ieee-tests: New file.
46479         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46480         * tests/test-round1.c (main): Remove signbit tests.
46481         * modules/round-tests (Depends-on): Remove 'signbit'.
46482         * doc/posix-functions/round.texi: Mention the new module.
46484 2010-12-21  Bruno Haible  <bruno@clisp.org>
46486         New module 'trunc-ieee'.
46487         * modules/trunc-ieee: New file.
46488         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46489         whether trunc works according to ISO C 99 with IEC 60559.
46490         * m4/trunc-ieee.m4: New file.
46491         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46493         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46494         * modules/trunc-ieee-tests: New file.
46495         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46496         * tests/test-trunc1.c (main): Remove signbit tests.
46497         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46498         * doc/posix-functions/trunc.texi: Mention the new module.
46500 2010-12-21  Bruno Haible  <bruno@clisp.org>
46502         New module 'ceil-ieee'.
46503         * modules/ceil-ieee: New file.
46504         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46505         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46506         ISO C 99 with IEC 60559.
46507         * m4/ceil-ieee.m4: New file.
46508         * modules/ceil (Files): Add lib/ceil.c.
46509         (Depends-on): Add 'float'.
46510         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46511         * lib/math.in.h (ceil): New declaration.
46512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46513         REPLACE_CEIL.
46514         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46515         * modules/ceil-ieee-tests: New file.
46516         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46517         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46518         * doc/posix-functions/ceil.texi: Mention the new module.
46520 2010-12-21  Bruno Haible  <bruno@clisp.org>
46522         New module 'floor-ieee'.
46523         * modules/floor-ieee: New file.
46524         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46525         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46526         ISO C 99 with IEC 60559.
46527         * m4/floor-ieee.m4: New file.
46528         * modules/floor (Files): Add lib/floor.c.
46529         (Depends-on): Add 'float'.
46530         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46531         * lib/math.in.h (floor): New declaration.
46532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46533         REPLACE_FLOOR.
46534         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46535         * modules/floor-ieee-tests: New file.
46536         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46537         * tests/test-math-c++.cc: Check the signature of 'floor'.
46538         * doc/posix-functions/floor.texi: Mention the new module.
46540 2010-12-21  Bruno Haible  <bruno@clisp.org>
46542         New module 'roundf-ieee'.
46543         * modules/roundf-ieee: New file.
46544         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46545         test whether roundf works according to ISO C 99 with IEC 60559.
46546         * m4/roundf-ieee.m4: New file.
46547         * modules/roundf-ieee-tests: New file.
46548         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46549         * tests/test-roundf1.c (main): Remove signbit tests.
46550         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46551         * doc/posix-functions/roundf.texi: Mention the new module.
46553 2010-12-21  Bruno Haible  <bruno@clisp.org>
46555         New module 'truncf-ieee'.
46556         * modules/truncf-ieee: New file.
46557         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46558         test whether truncf works according to ISO C 99 with IEC 60559.
46559         * m4/truncf-ieee.m4: New file.
46560         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46562         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46563         * modules/truncf-ieee-tests: New file.
46564         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46565         * tests/test-truncf1.c (main): Remove signbit tests.
46566         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46567         * doc/posix-functions/truncf.texi: Mention the new module.
46569 2010-12-21  Bruno Haible  <bruno@clisp.org>
46571         New module 'ceilf-ieee'.
46572         * modules/ceilf-ieee: New file.
46573         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46574         test whether ceilf works according to ISO C 99 with IEC 60559.
46575         * m4/ceilf-ieee.m4: New file.
46576         * modules/ceilf-ieee-tests: New file.
46577         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46578         * tests/test-ceilf1.c (main): Remove signbit tests.
46579         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46580         * doc/posix-functions/ceilf.texi: Mention the new module.
46582 2010-12-21  Bruno Haible  <bruno@clisp.org>
46584         New module 'floorf-ieee'.
46585         * modules/floorf-ieee: New file.
46586         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46587         test whether floorf works according to ISO C 99 with IEC 60559.
46588         * m4/floorf-ieee.m4: New file.
46589         * modules/floorf-ieee-tests: New file.
46590         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46591         * tests/test-floorf1.c (main): Remove signbit tests.
46592         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46593         * doc/posix-functions/floorf.texi: Mention the new module.
46595 2010-12-21  Bruno Haible  <bruno@clisp.org>
46597         Support for minus zero in autoconf macros.
46598         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46599         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46600         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46601         * tests/minus-zero.h: Update comments.
46603 2010-12-21  Bruno Haible  <bruno@clisp.org>
46605         Tests for module 'ceil'.
46606         * modules/ceil-tests: New file.
46607         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46608         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46610 2010-12-21  Bruno Haible  <bruno@clisp.org>
46612         Tests for module 'floor'.
46613         * modules/floor-tests: New file.
46614         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46615         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46617 2010-12-21  Bruno Haible  <bruno@clisp.org>
46619         math: Fix indentation.
46620         * lib/math.in.h (floorf): Fix indentation.
46622 2010-12-21  Bruno Haible  <bruno@clisp.org>
46624         Fix cross-compilation guesses on Solaris.
46625         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46626         not match "solaris2.10".
46627         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46628         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46629         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46631 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46633         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46634         This fixes a problem observed with the latest coreutils snapshot
46635         that caused a test to fail on Solaris 8.  src/csplit.c's call
46636         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46637         earlier, instead of returning the number of bytes that would have
46638         been generated; this causes csplit to incorrectly report memory
46639         exhaustion.
46640         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46641         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46642         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46643         comments to match.
46644         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46645         Fix typo in matching older versions of Solaris: "solaris2.10"
46646         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46647         only for guessing while cross-compiling.
46648         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46650 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46652         ftoastr: fix comment again
46653         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46654         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46655         Also, simplify example a bit by using flags = 0.
46657 2010-12-20  Bruno Haible  <bruno@clisp.org>
46659         round*, trunc*: Update documentation regarding glibc.
46660         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46661         * doc/posix-functions/round.texi: Likewise.
46662         * doc/posix-functions/roundl.texi: Likewise.
46663         * doc/posix-functions/truncf.texi: Likewise.
46664         * doc/posix-functions/trunc.texi: Likewise.
46665         * doc/posix-functions/truncl.texi: Likewise.
46667 2010-12-20  Bruno Haible  <bruno@clisp.org>
46669         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46670         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46671         * doc/posix-functions/round.texi: Likewise.
46672         * doc/posix-functions/roundl.texi: Likewise.
46674 2010-12-20  Bruno Haible  <bruno@clisp.org>
46676         ttyname_r: Add missing declaration on HP-UX 11.
46677         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46678         HAVE_TTYNAME_R.
46679         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46680         declared. Set HAVE_TTYNAME_R always.
46681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46682         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46684         HAVE_TTYNAME_R.
46685         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46687 2010-12-20  Bruno Haible  <bruno@clisp.org>
46689         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46690         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46691         * doc/posix-functions/getlogin_r.texi: Likewise.
46692         * tests/test-getlogin.c: Include <errno.h>.
46693         (main): Avoid test failure on HP-UX 11.11.
46694         * tests/test-getlogin_r.c (main): Likewise.
46696 2010-12-20  Bruno Haible  <bruno@clisp.org>
46698         getlogin_r: Add missing declaration on HP-UX 11.
46699         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46700         declared also when it exists as a function.
46701         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46703 2010-12-20  Bruno Haible  <bruno@clisp.org>
46705         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46706         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46707         through wcrtomb.
46709 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46711         ftoastr: fix comment
46712         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46713         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46715 2010-12-19  Bruno Haible  <bruno@clisp.org>
46717         isnan: Ensure it is a macro.
46718         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46719         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46720         Solaris.
46722 2010-12-19  Bruno Haible  <bruno@clisp.org>
46724         ldexpl test: Fix link error on OSF/1 5.1.
46725         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46727 2010-12-19  Bruno Haible  <bruno@clisp.org>
46729         wctype: Make it work in C++ mode on OSF/1 5.1.
46730         * lib/wctype.in.h (iswblank): Declare but not define here.
46731         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46732         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46733         * modules/wctype (Files): Add lib/iswblank.c.
46735 2010-12-19  Bruno Haible  <bruno@clisp.org>
46737         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46738         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46739         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46741 2010-12-19  Bruno Haible  <bruno@clisp.org>
46743         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46745         _POSIX_PII_SOCKET.
46746         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46747         * doc/posix-functions/recvfrom.texi: Likewise.
46748         * doc/posix-functions/send.texi: Likewise.
46749         * doc/posix-functions/sendto.texi: Likewise.
46751 2010-12-19  Bruno Haible  <bruno@clisp.org>
46753         tcgetsid: Add missing declaration on OSF/1 5.1.
46754         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46755         HAVE_TCGETSID.
46756         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46757         Don't set HAVE_TCGETSID.
46758         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46759         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46760         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46761         HAVE_TCGETSID.
46762         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46764 2010-12-19  Bruno Haible  <bruno@clisp.org>
46766         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46767         * lib/stdio.in.h: During the include_next statement, let recursive
46768         includes of this file include only the system header file.
46770 2010-12-19  Bruno Haible  <bruno@clisp.org>
46772         iconv_open: Fix regression from 2010-12-04.
46773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46774         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46776 2010-12-19  Bruno Haible  <bruno@clisp.org>
46778         stdbool test: Avoid a gcc warning.
46779         * tests/test-stdbool.c (main): Fail if e1 is false.
46780         Reported by Jim Meyering.
46782 2010-12-19  Jim Meyering  <meyering@redhat.com>
46784         setenv: restore to working order
46785         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46786         mistakenly removed.
46787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46788         HAVE_SETENV.
46789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46790         HAVE_SETENV.
46792 2010-12-19  Bruno Haible  <bruno@clisp.org>
46794         Document some different function declarations on OSF/1 5.1.
46795         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46796         * doc/posix-functions/inet_ntop.texi: Likewise.
46797         * doc/posix-functions/gethostname.texi: Likewise.
46798         * lib/unistd.in.h (gethostname): Update comment.
46800 2010-12-19  Bruno Haible  <bruno@clisp.org>
46802         doc: Mention vasprintf-posix module.
46803         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46804         the 'vasprintf-posix' module.
46805         * doc/glibc-functions/vasprintf.texi: Likewise.
46807 2010-12-19  Bruno Haible  <bruno@clisp.org>
46809         unsetenv: Add missing declaration on OSF/1 5.1.
46810         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46811         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46812         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46814         not HAVE_UNSETENV.
46815         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46816         HAVE_UNSETENV.
46817         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46819 2010-12-19  Bruno Haible  <bruno@clisp.org>
46821         setenv: Add missing declaration on OSF/1 5.1.
46822         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46823         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46824         declared. Don't set HAVE_SETENV.
46825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46826         not HAVE_SETENV.
46827         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46828         HAVE_SETENV.
46829         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46831 2010-12-19  Bruno Haible  <bruno@clisp.org>
46833         nl_langinfo tests: Avoid gcc warning.
46834         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46836 2010-12-19  Bruno Haible  <bruno@clisp.org>
46838         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46839         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46840         _GL_CXXALIAS_SYS.
46842 2010-12-19  Bruno Haible  <bruno@clisp.org>
46844         stdbool: Relax test.
46845         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46846         address to 'bool' work in static initializer, for compilers other than
46847         GCC.
46849 2010-12-19  Bruno Haible  <bruno@clisp.org>
46851         ftello: Add missing declaration on OSF/1 5.1.
46852         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46853         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46855         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46856         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46858 2010-12-19  Bruno Haible  <bruno@clisp.org>
46860         fseeko: Add missing declaration on OSF/1 5.1.
46861         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46862         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46864         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46865         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46867 2010-12-19  Bruno Haible  <bruno@clisp.org>
46869         fchdir: Add missing declaration on OSF/1 5.1.
46870         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46873         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46874         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46876 2010-12-19  Bruno Haible  <bruno@clisp.org>
46878         relocatable-prog-wrapper: Separate from relocatable-prog.
46879         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46880         uninstall-relocwrapper rule here.
46881         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46882         Reported by Ian Beckwith <ianb@erislabs.net>.
46884 2010-12-19  Bruno Haible  <bruno@clisp.org>
46886         unistr/u8-mbsnlen: Add missing dependency.
46887         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46888         Reported by Ian Beckwith <ianb@erislabs.net>.
46890 2010-12-19  Bruno Haible  <bruno@clisp.org>
46892         iconv: Make it possible again to use this module without 'iconv-h'.
46893         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46894         if it is not defined.
46895         Reported by Ian Beckwith <ianb@erislabs.net>.
46897 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46899         acl: port to Solaris 8 when copying from tmpfs to ufs
46900         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46901         error number.  Problem observed on Solaris 8 with latest
46902         coreutils, with "mv A B", where A is on a tmpfs file system and B
46903         is on a ufs file system.  This caused coreutils' mv/part-symlink
46904         test to fail.
46906         tests: set fail=0 at start
46907         * tests/init.sh (setup_): Move fail=0 initialization here ...
46908         (mktempd_): ... from here, so that tests can rely on fail being
46909         set to 0 initially.  This fixes a problem in coreutils; see:
46910         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46912 2010-12-18  Bruno Haible  <bruno@clisp.org>
46914         memmem-simple: Stylistic changes.
46915         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46916         Fix preprocessor directive indentation.
46918 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46920         memmem, memmem-simple: reorganize and expand empty needle check
46921         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46922         functional checks to memmem-simple so that one has a fully functional
46923         memmem by using just this module.
46924         Restrict the performance only check to the memmem module.
46925         Also expand the empty needle check to ensure the correct
46926         pointer is returned, not just a non NULL pointer.
46927         * doc/glibc-functions/memmem.texi: Rearrange the portability
46928         documentation to correlate with the rearranged checks.
46929         Clarify exactly how the memmem and memmem-simple modules
46930         relate to each other.
46932 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46933             Bruno Haible  <bruno@clisp.org>
46935         Improve cross-compilation guesses for uClibc.
46936         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46937         that uClibc does not have the glibc bug.
46938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46939         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46941 2010-12-14  Eric Blake  <eblake@redhat.com>
46943         configmake: provide fallbacks for oldest supported autotools
46944         * m4/configmake.m4: New file.
46945         * modules/configmake (Files): Ship it.
46946         (configure.ac): Use it to guarantee fallbacks.
46948 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46950         read-file: Improve handling of large files
46951         * lib/read-file.c (fread_file): Minimize realloc()s
46952         for regular files, and better manage sizes around SIZE_MAX.
46954 2010-12-13  Eric Blake  <eblake@redhat.com>
46956         cloexec, fcntl: relax license
46957         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46958         consent from all contributors.
46959         * modules/fcntl (License): Likewise.
46961 2010-12-10  Bruno Haible  <bruno@clisp.org>
46963         Tests for module 'pipe-posix'.
46964         * modules/pipe-posix-tests: New file.
46965         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46967 2010-12-10  Bruno Haible  <bruno@clisp.org>
46969         pipe-posix: Make it work in C++ mode.
46970         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46971         (pipe): Use common idiom, not a macro definition.
46972         * lib/pipe.c: New file.
46973         * m4/pipe.m4: New file.
46974         * modules/pipe-posix (Description): Enhance.
46975         (Files): Add lib/pipe.c, m4/pipe.m4.
46976         (configure.ac): Invoke gl_FUNC_PIPE.
46977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46978         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46979         * tests/test-unistd-c++.cc: Check the signature of pipe.
46981 2010-12-10  Bruno Haible  <bruno@clisp.org>
46983         Rename module 'pipe' to 'spawn-pipe'.
46984         * modules/spawn-pipe: New file, renamed from modules/pipe.
46985         (Files, configure.ac, Makefile.am): Update.
46986         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46987         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46988         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46989         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46990         "spawn-pipe.h" instead of "pipe.h".
46991         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46992         to gl_SPAWN_PIPE.
46993         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46994         (Files, Makefile.am): Update.
46995         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46996         Update.
46997         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46998         Include "spawn-pipe.h" instead of "pipe.h".
46999         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
47000         * lib/javacomp.c: Likewise.
47001         * lib/javaversion.c: Likewise.
47002         * lib/pipe-filter-gi.c: Likewise.
47003         * lib/pipe-filter-ii.c: Likewise.
47004         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
47005         * modules/javacomp (Depends-on): Likewise.
47006         * modules/javaversion (Depends-on): Likewise.
47007         * modules/pipe-filter-gi (Depends-on): Likewise.
47008         * modules/pipe-filter-ii (Depends-on): Likewise.
47009         * MODULES.html.sh (Executing programs): Update.
47010         * NEWS: Mention the change.
47012 2010-12-10  Eric Blake  <eblake@redhat.com>
47014         pipe-posix: new module
47015         * modules/pipe-posix: New file.
47016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
47017         (gl_UNISTD_H): Check for declaration.
47018         * modules/unistd (Makefile.am): Substitute it.
47019         * lib/unistd.in.h (pipe): Provide it for mingw.
47020         * doc/posix-functions/pipe.texi (pipe): Update documentation.
47021         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
47023 2010-12-07  Bruno Haible  <bruno@clisp.org>
47025         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
47026         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
47027         u8_strcmp_gnu.
47028         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
47030 2010-12-06  Bruno Haible  <bruno@clisp.org>
47032         Update internal documentation.
47033         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
47035 2010-12-04  Bruno Haible  <bruno@clisp.org>
47037         Put more information about failed tests into the test return codes.
47038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
47039         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
47040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47042         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
47043         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47044         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47045         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47046         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
47047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47048         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
47049         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47050         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47051         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47052         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
47053         returns a bit mask.
47054         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
47055         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
47056         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
47057         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
47058         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47062         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47064         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47065         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47066         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47068         * m4/link.m4 (gl_FUNC_LINK): Likewise.
47069         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
47070         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
47071         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
47072         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47073         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
47074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47075         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
47076         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
47077         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47078         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47079         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
47080         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
47081         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47082         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47083         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
47084         gl_PRINTF_PRECISION): Likewise.
47085         * m4/regex.m4 (gl_REGEX): Likewise.
47086         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47087         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
47089         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47093         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
47094         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47095         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47096         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
47097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
47098         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47099         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47100         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47101         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
47102         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
47103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47105         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
47106         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
47107         enumerated value.
47108         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
47110 2010-12-04  Bruno Haible  <bruno@clisp.org>
47112         Update for Solaris 11 2010-11.
47113         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
47114         Express, released in November 2010.
47116 2010-12-04  Bruno Haible  <bruno@clisp.org>
47118         nproc: Relax license.
47119         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
47120         and Paul Eggert.
47121         Requested by Ludovic Courtès <ludo@gnu.org>.
47123 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47125         utimecmp: fine-grained src to nearby coarse-grained dest
47127         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47128         and the source is on a file system with higher-resolution time
47129         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47130         not work, and the time stamps are close together, the algorithm to
47131         determine the exact resolution from the read-back mtime was buggy:
47132         it had a "!=" where it should have had an "==".  This bug has been
47133         in the code ever since it was introduced to gnulib.
47134         Problem reported by Dan Jacobson in
47135         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47137 2010-11-30  Bruno Haible  <bruno@clisp.org>
47139         strerror_r-posix: Fix autoconf test.
47140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47142 2010-11-28  Bruno Haible  <bruno@clisp.org>
47143             Paul Eggert  <eggert@cs.ucla.edu>
47145         Tests for module 'getdomainname'.
47146         * modules/getdomainname-tests: New file.
47147         * tests/test-getdomainname.c: New file, based on
47148         tests/test-gethostname.c.
47150 2010-11-28  Bruno Haible  <bruno@clisp.org>
47151             Paul Eggert  <eggert@cs.ucla.edu>
47153         getdomainname: Use the system function when possible.
47154         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47155         (getdomainname): Replace if needed. Provide the declaration if it is
47156         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47157         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47158         (getdomainname): When the system has getdomainname, call the system
47159         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47160         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47161         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47162         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47163         the function if its second argument is of type 'int' or if it is found
47164         in libnsl.
47165         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47166         <sys/systeminfo.h> and sysinfo().
47167         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47169         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47170         HAVE_GETDOMAINNAME.
47171         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47172         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47173         * doc/glibc-functions/getdomainname.texi: Document the problems with
47174         the getdomainname declaration.
47176 2010-11-28  Bruno Haible  <bruno@clisp.org>
47178         sys_socket: Ensure ss_family field on AIX.
47179         * lib/sys_socket.in.h (ss_family): New macro definition.
47180         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47181         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47182         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47183         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47184         * modules/sys_socket (Makefile.am): Substitute
47185         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47186         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47188 2010-11-27  Bruno Haible  <bruno@clisp.org>
47190         readline: Improve configure output.
47191         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47192         "checking for readline..." result understandable.
47194 2010-11-27  Bruno Haible  <bruno@clisp.org>
47196         *printf-posix: Detect a bug on Solaris 10/x86.
47197         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47198         for floating-point output.
47199         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47200         directive.
47201         * tests/test-snprintf-posix.h (test_function): Likewise.
47202         * tests/test-sprintf-posix.h (test_function): Likewise.
47203         * tests/test-vasprintf-posix.c (test_function): Likewise.
47204         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47205         * doc/posix-functions/printf.texi: Likewise.
47206         * doc/posix-functions/snprintf.texi: Likewise.
47207         * doc/posix-functions/sprintf.texi: Likewise.
47208         * doc/posix-functions/vfprintf.texi: Likewise.
47209         * doc/posix-functions/vprintf.texi: Likewise.
47210         * doc/posix-functions/vsnprintf.texi: Likewise.
47211         * doc/posix-functions/vsprintf.texi: Likewise.
47212         * doc/glibc-functions/obstack_printf.texi: Likewise.
47213         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47215 2010-11-27  Bruno Haible  <bruno@clisp.org>
47217         Fix link error when module libunistring-optional is in use.
47218         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47219         * modules/striconveha-tests (Makefile.am): Likewise.
47221 2010-11-27  Bruno Haible  <bruno@clisp.org>
47223         regex: Mention link dependencies.
47224         * modules/regex (Link): New section.
47225         * modules/rpmatch (Link): Likewise.
47226         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47228 2010-11-27  Bruno Haible  <bruno@clisp.org>
47230         ftoastr: Fix compilation error on Solaris.
47231         * lib/ftoastr.c: Include <config.h>.
47233 2010-11-27  Bruno Haible  <bruno@clisp.org>
47235         getloadavg: Update documentation.
47236         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47238 2010-11-27  Bruno Haible  <bruno@clisp.org>
47240         sys_socket: Fix test whether the functions are declared.
47241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47242         not <sys/select.h>.
47244 2010-11-27  Bruno Haible  <bruno@clisp.org>
47246         getpass: Make sure to get system declaration on some platforms.
47247         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47248         gl_USE_SYSTEM_EXTENSIONS.
47249         * modules/getpass (Depends-on): Add extensions.
47251 2010-11-26  Bruno Haible  <bruno@clisp.org>
47253         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47254         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47255         'iconv' module is present.
47256         (ICONV_CONST): New macro.
47257         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47258         ICONV_CONST.
47259         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47260         set ICONV_CONST.
47261         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47262         here.
47263         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47264         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47265         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47266         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47267         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47268         present.
47270 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47272         ftoastr: comment fix
47273         * lib/ftoastr.c: "little" -> "little or no" in comment
47275 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47277         stdint: port to GCC 4.3 + OSX + Octave
47278         On this platform, stdint.h is buggy and defines int64_t to long
47279         long int.  The replacement defined it to long int, causing
47280         problems with C++ style name mangling.  Instead, trust the system
47281         definition if INT64_MAX is defined, and likewise for the unsigned
47282         variant.   Problem reported by Jarno Rajahalme in
47283         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47284         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47285         and don't mess with int64_t and INT64_MAX in this case.
47286         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47288 2010-11-24  Bruno Haible  <bruno@clisp.org>
47290         doc: Corrections regarding MacOS X 10.4 and 10.5.
47291         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47292         MacOS X.
47293         Reported by Simon Josefsson.
47295 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47297         Uninstall ".bin" files installed by relocwrapper.
47298         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47299         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47300         unless it is already there.
47302 2010-11-21  Bruno Haible  <bruno@clisp.org>
47304         Update for NetBSD 5.0.
47305         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47306         NetBSD; the test fails on NetBSD 5.0.
47307         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47308         about NetBSD.
47310 2010-11-21  Bruno Haible  <bruno@clisp.org>
47312         Update for HP-UX 11.23 and HP-UX 11.31.
47313         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47314         HP-UX.
47316 2010-11-21  Bruno Haible  <bruno@clisp.org>
47318         Update for MacOS X 10.5.
47319         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47320         MacOS X; the test fails on MacOS X 10.5.8.
47321         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47322         about MacOS X.
47324 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47326         bootstrap: add bootstrap_sync option.
47327         See discussion at
47328         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47329         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47330         * build-aux/bootstrap: Accept --bootstrap-sync to update
47331         bootstrap if it is not identical to the local gnulib's
47332         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47333         enable this by default.  Accept --no-bootstrap-sync to disable
47334         it.
47336 2010-11-20  Bruno Haible  <bruno@clisp.org>
47338         Ensure that <features.h> is included before __GLIBC__ is tested.
47339         * lib/printf-parse.h: Include <features.h>.
47340         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47341         Reported by Mike Frysinger <vapier@gentoo.org>.
47343         Ensure that <features.h> is included before __GLIBC__ is tested.
47344         * lib/wchar.in.h: Include <features.h>.
47345         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47346         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47347         Reported by Mike Frysinger <vapier@gentoo.org>.
47349         Ensure that <features.h> is included before __GLIBC__ is tested.
47350         * lib/arpa_inet.in.h: Include <features.h>.
47351         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47352         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47353         Reported by Mike Frysinger <vapier@gentoo.org>.
47355         Ensure that <features.h> is included before __GLIBC__ is tested.
47356         * build-aux/link-warning.h: Include <features.h>.
47357         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47358         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47359         Reported by Mike Frysinger <vapier@gentoo.org>.
47361         Ensure that <features.h> is included before __GLIBC__ is tested.
47362         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47363         Reported by Mike Frysinger <vapier@gentoo.org>.
47365 2010-11-20  Bruno Haible  <bruno@clisp.org>
47367         memmem: Fix autoconf test.
47368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47370 2010-11-20  Bruno Haible  <bruno@clisp.org>
47372         Port to uClibc.
47373         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47374         * lib/fcntl.in.h: Likewise.
47375         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47376         * lib/mbrtowc.c (mbrtowc): Likewise.
47377         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47378         * lib/strerror_r.c: Likewise.
47379         * lib/unistr/u8-strnlen.c: Likewise.
47380         * lib/vasnprintf.c (decimal_point_char): Likewise.
47381         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47382         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47384         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47385         * tests/test-sigaction.c (handler, main): Likewise.
47386         * lib/freading.h: Treat uClibc like a non-glibc platform.
47387         * lib/freading.c: Likewise.
47388         * lib/gettext.h: Likewise.
47389         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47390         Likewise.
47391         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47392         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47393         * lib/propername.c (proper_name_utf8): Likewise.
47394         * lib/spawn.in.h: Likewise.
47395         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47396         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47397         mem_cd_iconveh_internal): Likewise.
47398         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47399         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47400         strstr, strcasestr): Likewise.
47401         * lib/unicodeio.c (unicode_to_mb): Likewise.
47402         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47403         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47404         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47405         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47406         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47407         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47408         * lib/unistr/u8-stpncpy.c: Likewise.
47409         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47410         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47411         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47412         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47413         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47415         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47418         Likewise.
47419         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47420         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47425         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47426         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47427         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47428         * tests/test-striconveha.c (main): Likewise.
47429         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47430         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47431         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47432         * doc/posix-functions/getline.texi: Likewise.
47433         Reported by Mike Frysinger <vapier@gentoo.org>.
47435 2010-11-20  Bruno Haible  <bruno@clisp.org>
47437         nproc: Fix condition.
47438         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47439         HAVE_PTHREAD_AFFINITY_NP.
47441 2010-11-20  Bruno Haible  <bruno@clisp.org>
47443         Fix a comment.
47444         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47446 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47448         ftoastr: don't assume snprintf
47449         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47450         Implement a subset of snprintf here, by using sprintf safely.
47451         * modules/ftoastr (Depends-on): Remove snprintf.
47453 2010-11-19  Jim Meyering  <meyering@redhat.com>
47455         test-rename.h: fix compilation failure
47456         * tests/test-rename.h (test_rename): Add omitted "}".
47458 2010-11-17  Jim Meyering  <meyering@redhat.com>
47460         maint.mk: add a URL discussing the no-@acronym policy
47461         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47463 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47465         ftoastr: depend on snprintf, improve comments
47466         * lib/ftoastr.c: Also mention Loitsch's draft.
47467         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47468         needed in the current implementation, but it might simplify
47469         speeding up the code later.
47470         * modules/ftoastr: Depend on snprintf; this improves portability.
47471         Suggested by Bruno Haible in the same email.
47473         ftoastr: port to hosts lacking strtof and strtold
47474         Problem reported by Bruno Haible in
47475         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47476         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47477         environment and strtold (and presumably strtof) are not available.
47478         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47479         (configure.ac): Require gl_C99_STRTOLD.
47481 2010-11-18  Bruno Haible  <bruno@clisp.org>
47483         c-strtold: Avoid link error on AIX 7.
47484         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47485         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47486         (gl_C_STRTOLD): Test whether strtold_l exists.
47487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47489 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47491         intprops: new macro INT_BITS_STRLEN_BOUND
47492         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47493         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47494         not exposed.  Also, it uses a slightly tighter bound than before;
47495         though this makes no practical difference, we might as well be as
47496         tight as we easily can.
47498         ftoastr: new module, for lossless conversion of floats to short strings
47499         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47500         * modules/ftoastr: New files.
47502 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47504         bootstrap: port to Solaris sed
47505         * build-aux/bootstrap (get_version): Port to Solaris sed.
47506         See Ralf Wildenhues's note in
47507         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47509 2010-11-14  Jim Meyering  <meyering@redhat.com>
47511         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47512         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47513         and move definition closer to sole use.
47515 2010-11-13  Jim Meyering  <meyering@redhat.com>
47517         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47518         Now we require at least autoconf-2.59, which means the work-around
47519         is no longer needed.
47520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47522         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47523         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47524         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47526 2010-11-13  Bruno Haible  <bruno@clisp.org>
47528         rename, renameat: Avoid test failures at NFS mounted locations.
47529         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47530         functions.
47531         (test_rename): Use assert_nonexistent.
47532         * tests/test-rename.c: Include <dirent.h>.
47533         * tests/test-renameat.c: Likewise.
47534         Reported by Gary V. Vaughan <gary@gnu.org>.
47536         rename, renameat: Document Linux bug with NFS
47537         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47538         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47539         * doc/posix-functions/renameat.texi: Likewise.
47540         Suggested by Eric Blake.
47542 2010-11-13  Bruno Haible  <bruno@clisp.org>
47544         rename test: Add comments.
47545         * tests/test-rename.h (test_rename): Add structure and comments.
47547 2010-11-13  Eric Blake  <eblake@redhat.com>
47549         maintainer-makefile: cover a few more files
47550         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47551         scripts generated within C files, for libvirt.
47553 2010-11-13  Bruno Haible  <bruno@clisp.org>
47555         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47556         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47557         character, return the number of bytes that belong together, not always
47558         1.
47559         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47560         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47561         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47562         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47563         number of bytes of an invalid character.
47564         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47565         (main): Invoke it.
47566         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47567         results.
47568         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47569         malformed byte sequences.
47570         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47571         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47572         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47573         Reported by Ben Pfaff and Paolo Bonzini.
47575 2010-11-13  Bruno Haible  <bruno@clisp.org>
47577         openat: Work around glibc bug with fchownat() and empty file names.
47578         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47579         (gl_FUNC_FCHOWNAT): Invoke it.
47580         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47581         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47582         Reported by Gary V. Vaughan <gary@gnu.org>.
47584 2010-11-13  Bruno Haible  <bruno@clisp.org>
47586         openat: Ensure autoconf macro ordering.
47587         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47588         gl_USE_SYSTEM_EXTENSIONS.
47589         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47591 2010-11-13  Bruno Haible  <bruno@clisp.org>
47593         Update comments.
47594         * lib/unistr/u8-check.c: Update file name in comments.
47595         * lib/unistr/u8-mblen.c: Likewise.
47596         * lib/unistr/u8-prev.c: Likewise.
47597         * lib/unistr/u8-strmblen.c: Likewise.
47598         * lib/unistr/u8-strmbtouc.c: Likewise.
47600 2010-11-13  Jim Meyering  <meyering@redhat.com>
47602         tests: avoid test failure on Solaris 10 due to lack of PATH export
47603         * tests/test-update-copyright.sh: Don't forget to export PATH.
47605         init.sh: ensure that IFS is defined, just in case...
47606         * tests/init.sh (setup_): Ensure that IFS is defined,
47607         so that saving and restoring it works as expected.  This
47608         appears to be useful at least for an old version of dash
47609         from a long time ago (RH 6).  See here for details:
47610         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47612         maint.mk: tighten "test a == b" check
47613         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47614         test to files that contain something like #!/bin/sh.
47615         Without this, coreutils would get two false positives in
47616         the comments of C source files.
47618 2010-11-12  Eric Blake  <eblake@redhat.com>
47620         bootstrap: fix typo in previous attempt
47621         * build-aux/bootstrap (buildreq): Correct the grouping.
47622         Reported by Paul Eggert.
47624         maintainer-makefile: prohibit test x == x
47625         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47626         Based on a report by Matthias Bolte.
47628         bootstrap: allow FreeBSD gzip
47629         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47630         which has no '.' and goes to stderr.
47631         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47632         Reported by Matthias Bolte.
47634         maintainer-makefile: check for i18n setup
47635         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47636         will likely work.
47638 2010-11-12  Bruno Haible  <bruno@clisp.org>
47640         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47641         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47642         * lib/nanosleep.c (nanosleep): Likewise.
47644 2010-11-11  Bruno Haible  <bruno@clisp.org>
47646         fcntl-h: Fix for use of C++ on glibc systems.
47647         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47648         also on glibc systems in C++ mode.
47649         Reported by Gary V. Vaughan <gary@gnu.org>.
47651 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47653         mknod: avoid false failure with dash
47654         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47656 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47658         unlink: Fix "is it should" typo in diagnostic.
47659         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47660         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47662 2010-11-11  Bruno Haible  <bruno@clisp.org>
47664         Tests for module 'strerror_r-posix'.
47665         * modules/strerror_r-posix-tests: New file.
47666         * tests/test-strerror_r.c: New file.
47667         * tests/test-string-c++.cc: Check the signature of strerror_r.
47669         New module 'strerror_r-posix'.
47670         * lib/string.in.h (strerror_r): New declaration.
47671         * lib/strerror_r.c: New file.
47672         * m4/strerror_r.m4: New file.
47673         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47674         of strerror_r.
47675         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47676         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47677         * modules/strerror_r-posix: New file.
47678         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47679         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47680         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47681         portability problems.
47683 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47685         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47686         line is also considered for output. Quoted function name in shell
47687         command, so temporary files for functions like MyClass::operator()
47688         are removed correctly without errors.
47690 2010-11-09  Bruno Haible  <bruno@clisp.org>
47692         * doc/posix-functions/strerror.texi: List more failing platforms.
47694         * doc/posix-functions/strerror.texi: Add a comment.
47696 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47698         fdopendir: fix bug on MacOS X when low on file descriptors
47700         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47701         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47702         All callers changed.
47703         (fdopendir): Invoke save_cwd at the top level, not after using
47704         multiple dup() calls to use up file descriptors.  Then retry
47705         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47706         less than the maximum number of open file descriptors, because
47707         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47708         on Mac OS X 10.6.4 for tar 1.24
47709         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47710         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47711         and for tar 1.25
47712         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47714 2010-11-07  Bruno Haible  <bruno@clisp.org>
47716         vasnprintf: Support I flag on glibc systems.
47717         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47718         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47719         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47720         snprintf function.
47721         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47722         glibc systems.
47723         * tests/test-vasnprintf-posix3.c: New file.
47724         * modules/vasnprintf-posix-tests (Files): Add it.
47725         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47727 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47729         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47730         * MODULES.html.sh: For compiler warnings, use name
47731         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47733 2010-11-05  Eric Blake  <eblake@redhat.com>
47735         ceil, floor: avoid spurious failure with icc
47736         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47737         [denormals-as-zero] when optimizing without -mieee-fp option.
47738         * tests/test-floorf2.c (floorf_reference): Likewise.
47739         * tests/test-ceilf1.c (dummy): New function.
47740         (main): Use it to outsmart icc's optimization.
47741         * tests/test-floorf1.c (dummy, main): Likewise.
47743         tests: require working signbit
47744         * modules/ceilf-tests (Depends-on): Add signbit.
47745         * modules/ceill-tests (Depends-on): Likewise.
47746         * modules/floorf-tests (Depends-on): Likewise.
47747         * modules/floorl-tests (Depends-on): Likewise.
47748         * modules/round-tests (Depends-on): Likewise.
47749         * modules/roundf-tests (Depends-on): Likewise.
47750         * modules/roundl-tests (Depends-on): Likewise.
47751         * modules/trunc-tests (Depends-on): Likewise.
47752         * modules/truncf-tests (Depends-on): Likewise.
47753         * modules/truncl-tests (Depends-on): Likewise.
47755         strtod: work around icc bug
47756         * lib/strtod.c (minus_zero): Define to working value.
47757         (strtod): Use it to avoid icc bug.
47759         copysign: enhance tests
47760         * modules/copysign-tests (Files): Add minus-zero.h.
47761         * tests/test-copysign.c (main): Also test zeros.
47763 2010-11-04  Eric Blake  <eblake@redhat.com>
47765         ceil, floor, round, trunc: enhance tests of -0
47766         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47767         * tests/test-ceill.c (main): Likewise.
47768         * tests/test-floorf1.c (main): Likewise.
47769         * tests/test-floorl.c (main): Likewise.
47770         * tests/test-round1.c (main): Likewise.
47771         * tests/test-roundf1.c (main): Likewise.
47772         * tests/test-roundl.c (main): Likewise.
47773         * tests/test-trunc1.c (main): Likewise.
47774         * tests/test-truncf1.c (main): Likewise.
47775         * tests/test-truncl.c (main): Likewise.
47777 2010-11-04  Eric Blake  <eblake@redhat.com>
47779         frexp, tests: work around ICC bug with -zero
47780         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47781         works with more compilers.
47782         * tests/minus-zero.h: New file.
47783         * modules/ceilf-tests (Files): Include it.
47784         * modules/ceill-tests (Files): Likewise.
47785         * modules/floorf-tests (Files): Likewise.
47786         * modules/floorl-tests (Files): Likewise.
47787         * modules/frexp-nolibm-tests (Files): Likewise.
47788         * modules/frexp-tests (Files): Likewise.
47789         * modules/frexpl-nolibm-tests (Files): Likewise.
47790         * modules/frexpl-tests (Files): Likewise.
47791         * modules/isnan-tests (Files): Likewise.
47792         * modules/isnand-nolibm-tests (Files): Likewise.
47793         * modules/isnand-tests (Files): Likewise.
47794         * modules/isnanf-nolibm-tests (Files): Likewise.
47795         * modules/isnanf-tests (Files): Likewise.
47796         * modules/isnanl-nolibm-tests (Files): Likewise.
47797         * modules/isnanl-tests (Files): Likewise.
47798         * modules/round-tests (Files): Likewise.
47799         * modules/roundf-tests (Files): Likewise.
47800         * modules/roundl-tests (Files): Likewise.
47801         * modules/ldexpl-tests (Files): Likewise.
47802         * modules/signbit-tests (Files): Likewise.
47803         * modules/snprintf-posix-tests (Files): Likewise.
47804         * modules/sprintf-posix-tests (Files): Likewise.
47805         * modules/strtod-tests (Files): Likewise.
47806         * modules/trunc-tests (Files): Likewise.
47807         * modules/truncf-tests (Files): Likewise.
47808         * modules/truncl-tests (Files): Likewise.
47809         * modules/vsnprintf-posix-tests (Files): Likewise.
47810         * modules/vsprintf-posix-tests (Files): Likewise.
47811         * modules/vasnprintf-posix-tests (Files): Likewise.
47812         * modules/vasprintf-posix-tests (Files): Likewise.
47813         * tests/test-ceilf1.c (main): Use it.
47814         * tests/test-ceill.c (main): Likewise.
47815         * tests/test-floorf1.c (main): Likewise.
47816         * tests/test-floorl.c (main): Likewise.
47817         * tests/test-frexp.c (main): Likewise.
47818         * tests/test-frexpl.c (main): Likewise.
47819         * tests/test-isnan.c (main): Likewise.
47820         * tests/test-isnand.h (main): Likewise.
47821         * tests/test-isnanf.h (main): Likewise.
47822         * tests/test-isnanl.h (main): Likewise.
47823         * tests/test-ldexpl.c (main): Likewise.
47824         * tests/test-round.c (main): Likewise.
47825         * tests/test-roundf.c (main): Likewise.
47826         * tests/test-roundl.c (main): Likewise.
47827         * tests/test-signbit.c (test_signbitf, test_signbitd)
47828         (test_signbitl): Likewise.
47829         * tests/test-snprintf-posix.h (test_function): Likewise.
47830         * tests/test-sprintf-posix.h (test_function): Likewise.
47831         * tests/test-strtod.c (main): Likewise.
47832         * tests/test-trunc1.c (main): Likewise.
47833         * tests/test-truncf1.c (main): Likewise.
47834         * tests/test-truncl.c (main): Likewise.
47836         isnanl: work around icc bug
47837         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47839 2010-11-03  Eric Blake  <eblake@redhat.com>
47841         tests: fix compiler warnings
47842         * tests/test-getopt.h (test_getopt): Fix condition.
47843         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47844         * tests/test-pipe2.c (main): Likewise.
47845         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47847         utimens: fix broken m4 test
47848         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47850 2010-10-28  Bruno Haible  <bruno@clisp.org>
47852         posix_spawn*, getdtablesize: Relax license.
47853         * modules/posix_spawn (License): Change to LGPLv2+.
47854         * modules/posix_spawnp (License): Likewise.
47855         * modules/posix_spawn-internal (License): Likewise.
47856         * modules/posix_spawnattr_init (License): Likewise.
47857         * modules/posix_spawnattr_getflags (License): Likewise.
47858         * modules/posix_spawnattr_setflags (License): Likewise.
47859         * modules/posix_spawnattr_getpgroup (License): Likewise.
47860         * modules/posix_spawnattr_setpgroup (License): Likewise.
47861         * modules/posix_spawnattr_getschedparam (License): Likewise.
47862         * modules/posix_spawnattr_setschedparam (License): Likewise.
47863         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47864         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47865         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47866         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47867         * modules/posix_spawnattr_getsigmask (License): Likewise.
47868         * modules/posix_spawnattr_setsigmask (License): Likewise.
47869         * modules/posix_spawnattr_destroy (License): Likewise.
47870         * modules/posix_spawn_file_actions_init (License): Likewise.
47871         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47872         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47873         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47874         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47875         * modules/getdtablesize (License): Likewise.
47876         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47878 2010-10-26  Bruno Haible  <bruno@clisp.org>
47880         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47881         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47882         Cygwin and mingw.
47883         Suggested by Eric Blake.
47885 2010-10-26  Bruno Haible  <bruno@clisp.org>
47887         stdio: Work around compilation error due to renameat() on Solaris 10.
47888         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47889         * lib/renameat.c: Don't include <unistd.h> here.
47890         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47891         Reported by Paul Eggert and Eric Blake.
47893 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47895         renameat: port to Solaris 10, which declares renameat in unistd.h
47897         * lib/renameat.c: Include unistd.h before stdio.h, because
47898         Solaris 10 declares renameat in unistd.h.  Problem encountered
47899         when building GNU tar 1.24 on Solaris 10.
47901 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47903         fdopendir: fix C89 compilation
47904         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47905         compilers.
47907 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47909         inttostr: simplify by removing unnecessary redundancy
47910         * lib/anytostr.c: Don't include verify.h.
47911         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47912         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47913         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47914         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47915         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47916         Likewise.
47917         * modules/inttostr (Depends-on): Remove 'verify'.
47919 2010-10-23  Bruno Haible  <bruno@clisp.org>
47921         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47922         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47923         Reported by Eric Blake.
47925 2010-10-23  Bruno Haible  <bruno@clisp.org>
47927         Tests: Fix LOCALE_JA on MirBSD 10.
47928         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47929         to an UTF-8 locale.
47930         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47931         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47932         Reported by Eric Blake.
47934 2010-10-21  Bruno Haible  <bruno@clisp.org>
47936         nl_langinfo test: Avoid test failure on NetBSD 5.
47937         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47938         Reported by Eric Blake.
47940 2010-10-21  Eric Blake  <eblake@redhat.com>
47942         c-stack: work around libsigsegv 2.8 bug
47943         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47944         overflow on at least PowerPC64.
47946 2010-10-17  Bruno Haible  <bruno@clisp.org>
47948         userspec: Drop redundant file.
47949         * modules/userspec (Files): Remove lib/inttostr.h.
47951 2010-10-17  Bruno Haible  <bruno@clisp.org>
47953         nl_langinfo tests: Silence some warnings.
47954         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47955         Reported by Jim Meyering.
47957 2010-10-17  Bruno Haible  <bruno@clisp.org>
47959         Make use of GCC's attribute __alloc_size__.
47960         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47961         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47962         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47963         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47964         __alloc_size__.
47965         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47966         Suggested by Jim Meyering.
47968 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47970         bootstrap: anchor .gitignore entries.
47971         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47972         with...
47973         (insert_vc_ignore): ... this new function, which prepends `/' to
47974         all .gitignore entries before passing them to
47975         insert_sorted_if_absent.
47977 2010-10-16  Bruno Haible  <bruno@clisp.org>
47979         nextafter: Fix configure check.
47980         * modules/nextafter (configure.ac): Correct expected prototype.
47982 2010-10-16  Bruno Haible  <bruno@clisp.org>
47984         termios: Update documentation.
47985         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47987 2010-10-16  Bruno Haible  <bruno@clisp.org>
47989         tests: Make them compile with TinyCC.
47990         * tests/test-strstr.c (main): Remove parentheses around array
47991         initializer.
47993 2010-10-15  Eric Blake  <eblake@redhat.com>
47995         ignore-value: make header idempotent
47996         * lib/ignore-value.h: Add double-inclusion guards.
47997         Reported by Stefan Berger.
47999 2010-10-15  Jim Meyering  <meyering@redhat.com>
48001         GNUmakefile: handle "stable" target, not "major"
48002         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
48003         lists in maint.mk and announce-gen.  Without this, "make stable"
48004         would fail to ensure that $(VERSION) is up to date.
48006 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
48008         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
48009         & co.
48011 2010-10-14  Bruno Haible  <bruno@clisp.org>
48013         vasnprintf: Don't set errno to 0.
48014         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
48015         block that sets it to 0.
48016         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
48018 2010-10-14  Bruno Haible  <bruno@clisp.org>
48020         socketlib: Fix.
48021         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
48022         gl_PREREQ_SYS_H_WINSOCK2.
48023         Reported by Ian Beckwith <ianb@erislabs.net>.
48025 2010-10-13  Jim Meyering  <meyering@redhat.com>
48027         test-select-stdin.c: avoid warn_unused_result warnings
48028         * tests/test-select-stdin.c: Include "macros.h".
48029         ASSERT that read and fflush succeed.
48031 2010-10-13  Jim Meyering  <meyering@redhat.com>
48033         git-version-gen: do require git-VC'd files in cwd
48034         * build-aux/git-version-gen: Reject a git version string
48035         if there are no commits associated with the current directory.
48036         This avoids an unlikely false-positive (unrelated dir whose parent
48037         repository also contains a tag matching v*), as pointed out
48038         by Giuseppe Scrivano in
48039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
48041 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48043         argv-iter: omit nonconforming declaration
48044         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
48045         enum arg_iter_err declaration, which doesn't conform to C99.
48046         Solaris 10 cc warns about this.
48048 2010-10-13  Eric Blake  <eblake@redhat.com>
48050         termios: fix compilation on mingw
48051         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
48052         (gl_TERMIOS_H): Adjust it on mingw.
48053         * modules/termios (Makefile.am): Substitute new key.
48054         * lib/termios.in.h (includes): Make include_next conditional.
48055         * doc/posix-headers/termios.texi (termios.h): Update
48056         documentation.
48057         Reported by Daniel P. Berrange.
48059 2010-10-13  Jim Meyering  <meyering@redhat.com>
48061         git-version-gen: don't require that .git/ be in the current dir
48062         * build-aux/git-version-gen: Adjust this script so that it works
48063         when run from any working directory beneath the top-level .git/-
48064         containing directory.  Inspired by a patch from Giuseppe Scrivano,
48065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
48067         test-select: avoid warn_unused_result warnings
48068         * tests/test-select.c: Include "macros.h".
48069         ASSERT that each call to read, write, and pipe succeeds.
48070         While not technically required, also check each "close".
48071         * modules/select-tests (Files): Add tests/macros.h.
48073         test-symlinkat: remove declaration of unused local
48074         * tests/test-symlinkat.c (main): Remove unused local, "buf".
48076         test-inttostr: avoid shadowing warnings
48077         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
48078         and use malloc rather than the stack for the same reason as
48079         mentioned in the comment justifying the other allocation.
48081 2010-10-11  Bruno Haible  <bruno@clisp.org>
48083         stdlib: Allow multiple gnulib generated replacements to coexist.
48084         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
48085         Reported by Sam Steingold <sds@gnu.org>.
48087 2010-10-11  Jim Meyering  <meyering@redhat.com>
48089         fix a documentation typo
48090         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
48092 2010-10-11  Eric Blake  <eblake@redhat.com>
48094         futimens: work around Solaris 11 bug
48095         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
48096         * tests/test-futimens.h (test_futimens): Enhance, rather than
48097         weaken test.
48098         * doc/posix-functions/futimens.texi (futimens): Document the bug.
48100 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48102         Indentation.
48103         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
48104         higher-level operators more to the left.
48106 2010-10-11  Jim Meyering  <meyering@redhat.com>
48108         test-futimens: avoid unwarranted test failure on Solaris 5.11
48109         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
48110         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
48111         because it tries to dereference the NULL name argument.
48113 2010-10-11  Bruno Haible  <bruno@clisp.org>
48115         Indentation.
48116         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
48117         indentation.
48119 2010-10-11  Jim Meyering  <meyering@redhat.com>
48121         spawn.in.h: make indentation consistent with parentheses
48122         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
48123         Make indentation consistent with parentheses.
48125 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48127         Fix mismatched parens in previous commit
48128         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48129         parens.
48131 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48133         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48135         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48136         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48137         * lib/malloca.c: Include "verify.h".
48138         (verify1): Remove, replacing with a verify call.
48139         * lib/relocwrapper.c (verify1): Likewise.
48140         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48141         Likewise.
48142         * modules/malloca (Depends-on): Add 'verify'.
48143         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48144         * modules/vasnprintf (Depends-on): Add 'verify'.
48145         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48146         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48147         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48148         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48149         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48150         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48151         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48153         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48155         Formerly the style was sometimes 2*X - 1, because the C standard
48156         was wrongly thought to disallow ?: in integral constant expressions.
48157         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48158         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48159         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48160         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48161         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48162         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48163         verify that time_t cannot be floating.
48165 2010-10-08  Eric Blake  <eblake@redhat.com>
48167         time: enforce recent POSIX ruling that time_t is integral
48168         * lib/time.in.h (__time_t_must_be_integral): Detect any
48169         problematic systems, allowing the rest of gnulib to assume POSIX.
48171 2010-10-08  Jim Meyering  <meyering@redhat.com>
48173         fdopendir: fix a bug on systems lacking openat and /proc support
48174         OpenBSD 4.7 is one such system.  The most noticeable effect was
48175         failure of any application making nontrivial use of fts: rm, du,
48176         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48177           ./rm: traversal failed: `a': Bad file descriptor
48178         Debugging that, you see that even though FD 6 was closed just
48179         prior to the opendir call in fd_clone_opendir, its resulting
48180         dir->dd_fd was 8, rather than the expected value of 6:
48182         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48183         93                close (fd);
48184         (gdb) n
48185         94                dir = fd_clone_opendir (dupfd);
48186         (gdb) n
48187         95                saved_errno = errno;
48188         (gdb) p dir->dd_fd
48189         $11 = 8
48191         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48192         The problem is that on OpenBSD, fd_clone_opendir has to resort
48193         to using the old-style save/restore CWD mechanism, due to its
48194         lack of openat/proc support, and *that* would steal the FD (6)
48195         that opendir was supposed to use.
48197         The fix is to squirrel away the desired FD so that save_cwd uses a
48198         different one, and then free the dest FD right before calling opendir.
48199         That guarantees opendir will use the required file descriptor.
48201         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48203 2010-10-08  Bruno Haible  <bruno@clisp.org>
48205         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48206         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48208 2010-10-08  Bruno Haible  <bruno@clisp.org>
48210         nanosleep: Make replacement POSIX compliant.
48211         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48212         is out of range.
48213         Reported by Jim Meyering.
48215 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48217         bootstrap: add hook for altering gnulib.mk, for Bison
48218         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48219         the Bison bootstrapping process can rewrite file names and variables
48220         in this file before later parts of 'bootstrap' use the file.
48221         Bison wants to include lib/gnulib.mk from the top-level makefile,
48222         so it needs the file names in this file to be relative to the top
48223         level, not relative to lib; plus it needs variable names to be
48224         rewritten.
48225         (slurp): Use the new function.
48227         bootstrap: reformat for readability
48228         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48230 2010-10-08  Eric Blake  <eblake@redhat.com>
48232         docs: update cygwin progress
48233         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48234         1.7.7.
48235         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48236         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48237         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48238         * doc/posix-functions/carg.texi (carg): Likewise.
48239         * doc/posix-functions/cargf.texi (cargf): Likewise.
48240         * doc/posix-functions/casin.texi (casin): Likewise.
48241         * doc/posix-functions/casinf.texi (casinf): Likewise.
48242         * doc/posix-functions/casinh.texi (casinh): Likewise.
48243         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48244         * doc/posix-functions/catan.texi (catan): Likewise.
48245         * doc/posix-functions/catanf.texi (catanf): Likewise.
48246         * doc/posix-functions/catanh.texi (catanh): Likewise.
48247         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48248         * doc/posix-functions/ccos.texi (ccos): Likewise.
48249         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48250         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48251         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48252         * doc/posix-functions/cexp.texi (cexp): Likewise.
48253         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48254         * doc/posix-functions/cimag.texi (cimag): Likewise.
48255         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48256         * doc/posix-functions/clog.texi (clog): Likewise.
48257         * doc/posix-functions/clogf.texi (clogf): Likewise.
48258         * doc/posix-functions/conj.texi (conj): Likewise.
48259         * doc/posix-functions/conjf.texi (conjf): Likewise.
48260         * doc/posix-functions/cpow.texi (cpow): Likewise.
48261         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48262         * doc/posix-functions/cproj.texi (cproj): Likewise.
48263         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48264         * doc/posix-functions/creal.texi (creal): Likewise.
48265         * doc/posix-functions/crealf.texi (crealf): Likewise.
48266         * doc/posix-functions/csin.texi (csin): Likewise.
48267         * doc/posix-functions/csinf.texi (csinf): Likewise.
48268         * doc/posix-functions/csinh.texi (csinh): Likewise.
48269         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48270         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48271         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48272         * doc/posix-functions/ctan.texi (ctan): Likewise.
48273         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48274         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48275         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48276         * doc/posix-headers/complex.texi (complex.h): Likewise.
48278 2010-10-07  Jim Meyering  <meyering@redhat.com>
48280         parse-datetime: avoid compilation failure on OpenBSD 4.7
48281         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48282         This works around a compilation failure on OpenBSD 4.7:
48283         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48285 2010-10-07  Eric Blake  <eblake@redhat.com>
48287         docs: update cygwin progress
48288         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48289         1.7.6.
48290         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48291         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48292         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48293         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48294         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48295         Likewise.
48296         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48297         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48298         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48299         Likewise.
48300         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48301         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48302         Likewise.
48303         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48304         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48305         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48306         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48307         Likewise.
48308         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48309         Likewise.
48310         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48312         docs: update parse-datetime history
48313         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48314         documentation of this function's history and alternatives.
48316         cygwin: use more robust version check
48317         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48318         exclude an eventual cygwin 1.9.1.
48319         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48321         (gl_FUNC_STRCASESTR): Likewise.
48322         Reported by Bruno Haible.
48324 2010-10-06  Bruno Haible  <bruno@clisp.org>
48326         string, sys_select: Avoid #including large headers unless necessary.
48327         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48328         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48329         OSF/1, BeOS, Haiku.
48330         Reported by Jim Meyering.
48332 2010-10-05  Eric Blake  <eblake@redhat.com>
48334         memmem, strstr, strcasestr: fix bug with long periodic needle
48335         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48336         periodic needle having false positive.
48337         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48338         and cygwin 1.7.7.
48339         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48341         (gl_FUNC_STRCASESTR): Likewise.
48342         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48343         * tests/test-memmem.c (main): Expose the bug.
48344         * tests/test-strcasestr.c (main): Likewise.
48345         * tests/test-strstr.c (main): Likewise.
48346         * tests/test-c-strcasestr.c (main): Likewise.
48347         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48348         * doc/posix-functions/strstr.texi (strstr): Likewise.
48349         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48350         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48352 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48354         parse-datetime: do some more renaming
48355         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48356         parse_datetime, not get_date.  Mention the renaming.
48357         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48358         in comments.
48359         * m4/bison.m4: Likewise.
48361 2010-10-05  Eric Blake  <eblake@redhat.com>
48363         parse-datetime: better name than get_date
48364         * NEWS: Reword the deprecation notice.
48365         * modules/get_date: Rename to modules/parse-datetime.
48366         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48367         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48368         * lib/get_date.y: Rename to lib/parse-datetime.y.
48369         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48370         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48371         * doc/getdate.texi: Provide fallback wrapper.
48372         * lib/getdate.h: Move guts, and wrap...
48373         * lib/parse-datetime.h: ...new file.
48374         * lib/parse-datetime.y (get_date): Rename...
48375         (parse_datetime): ...to this.
48376         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48377         (gl_PARSE_DATETIME): ...to this.
48378         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48379         documentation.
48380         * modules/getdate (Files): Provide fallback docs and header.
48381         (Notice, Depends-on): Update references.
48382         * tests/test-parse-datetime.c: Likewise.
48383         * DEPENDENCIES: Likewise.
48384         * MODULES.html.sh (Date and time <time.h>): Likewise.
48385         * doc/parse-datetime.texi (Date input formats)
48386         (Authors of parse_datetime): Likewise.
48387         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48388         (Include): Likewise.
48389         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48390         * gnulib-tool: Likewise.
48391         * m4/bison.m4 (gl_BISON): Likewise.
48392         Suggested by Bruno Haible.
48394 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48396         more ports to Solaris tr, which needs [] around ranges
48397         * gnulib-tool: Solaris tr needs [] around ranges.
48398         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48399         * tests/test-pipe-filter-gi1.c (main): Likewise.
48400         * tests/test-pipe-filter-ii1.c (main): Likewise.
48402 2010-10-05  Eric Blake  <eblake@redhat.com>
48404         bootstrap: fix Solaris regression
48405         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48406         around ranges.
48407         Reported by Pádraig Brady.
48409         bootstrap: work with pkg-config
48410         * build-aux/bootstrap (check_versions): Also transliterate - in
48411         prerequisite name.
48412         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48413         prerequisites that were already found, to avoid confusion.
48414         Reported by Justin Clift.
48416         faccessat: remove unused wrappers
48417         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48418         presence of these wrappers dragged in -lgen on Solaris.
48419         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48421 2010-10-05  Jim Meyering  <meyering@redhat.com>
48423         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48424         * Makefile (sc_pragma_columns): New syntax-check rule.
48426 2010-10-04  Bruno Haible  <bruno@clisp.org>
48428         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48429         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48430         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48431         Reported by Bruce Korb and Eric Blake.
48433 2010-10-04  Bruno Haible  <bruno@clisp.org>
48435         threadlib: Make option --with-libpth-prefix work.
48436         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48437         use $LIBPTH, not just -lpth.
48439 2010-10-04  Bruno Haible  <bruno@clisp.org>
48441         Avoid line length limitation from HP NonStop system header files.
48442         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48443         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48444         * lib/ctype.in.h: Likewise.
48445         * lib/dirent.in.h: Likewise.
48446         * lib/errno.in.h: Likewise.
48447         * lib/fcntl.in.h: Likewise.
48448         * lib/float.in.h: Likewise.
48449         * lib/getopt.in.h: Likewise.
48450         * lib/iconv.in.h: Likewise.
48451         * lib/inttypes.in.h: Likewise.
48452         * lib/langinfo.in.h: Likewise.
48453         * lib/locale.in.h: Likewise.
48454         * lib/math.in.h: Likewise.
48455         * lib/netdb.in.h: Likewise.
48456         * lib/netinet_in.in.h: Likewise.
48457         * lib/poll.in.h: Likewise.
48458         * lib/pthread.in.h: Likewise.
48459         * lib/pty.in.h: Likewise.
48460         * lib/sched.in.h: Likewise.
48461         * lib/se-selinux.in.h: Likewise.
48462         * lib/search.in.h: Likewise.
48463         * lib/signal.in.h: Likewise.
48464         * lib/spawn.in.h: Likewise.
48465         * lib/stdarg.in.h: Likewise.
48466         * lib/stddef.in.h: Likewise.
48467         * lib/stdint.in.h: Likewise.
48468         * lib/stdio.in.h: Likewise.
48469         * lib/stdlib.in.h: Likewise.
48470         * lib/string.in.h: Likewise.
48471         * lib/strings.in.h: Likewise.
48472         * lib/sys_file.in.h: Likewise.
48473         * lib/sys_ioctl.in.h: Likewise.
48474         * lib/sys_select.in.h: Likewise.
48475         * lib/sys_socket.in.h: Likewise.
48476         * lib/sys_stat.in.h: Likewise.
48477         * lib/sys_time.in.h: Likewise.
48478         * lib/sys_times.in.h: Likewise.
48479         * lib/sys_utsname.in.h: Likewise.
48480         * lib/sys_wait.in.h: Likewise.
48481         * lib/sysexits.in.h: Likewise.
48482         * lib/termios.in.h: Likewise.
48483         * lib/time.in.h: Likewise.
48484         * lib/unistd.in.h: Likewise.
48485         * lib/wchar.in.h: Likewise.
48486         * lib/wctype.in.h: Likewise.
48487         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48488         * modules/ctype (Makefile.am): Likewise.
48489         * modules/dirent (Makefile.am): Likewise.
48490         * modules/errno (Makefile.am): Likewise.
48491         * modules/fcntl-h (Makefile.am): Likewise.
48492         * modules/float (Makefile.am): Likewise.
48493         * modules/getopt-posix (Makefile.am): Likewise.
48494         * modules/iconv-h (Makefile.am): Likewise.
48495         * modules/inttypes (Makefile.am): Likewise.
48496         * modules/langinfo (Makefile.am): Likewise.
48497         * modules/locale (Makefile.am): Likewise.
48498         * modules/math (Makefile.am): Likewise.
48499         * modules/netdb (Makefile.am): Likewise.
48500         * modules/netinet_in (Makefile.am): Likewise.
48501         * modules/poll-h (Makefile.am): Likewise.
48502         * modules/pthread (Makefile.am): Likewise.
48503         * modules/pty (Makefile.am): Likewise.
48504         * modules/sched (Makefile.am): Likewise.
48505         * modules/search (Makefile.am): Likewise.
48506         * modules/selinux-h (Makefile.am): Likewise.
48507         * modules/signal (Makefile.am): Likewise.
48508         * modules/spawn (Makefile.am): Likewise.
48509         * modules/stdarg (Makefile.am): Likewise.
48510         * modules/stddef (Makefile.am): Likewise.
48511         * modules/stdint (Makefile.am): Likewise.
48512         * modules/stdio (Makefile.am): Likewise.
48513         * modules/stdlib (Makefile.am): Likewise.
48514         * modules/string (Makefile.am): Likewise.
48515         * modules/strings (Makefile.am): Likewise.
48516         * modules/sys_file (Makefile.am): Likewise.
48517         * modules/sys_ioctl (Makefile.am): Likewise.
48518         * modules/sys_select (Makefile.am): Likewise.
48519         * modules/sys_socket (Makefile.am): Likewise.
48520         * modules/sys_stat (Makefile.am): Likewise.
48521         * modules/sys_time (Makefile.am): Likewise.
48522         * modules/sys_times (Makefile.am): Likewise.
48523         * modules/sys_utsname (Makefile.am): Likewise.
48524         * modules/sys_wait (Makefile.am): Likewise.
48525         * modules/sysexits (Makefile.am): Likewise.
48526         * modules/termios (Makefile.am): Likewise.
48527         * modules/time (Makefile.am): Likewise.
48528         * modules/unistd (Makefile.am): Likewise.
48529         * modules/wchar (Makefile.am): Likewise.
48530         * modules/wctype (Makefile.am): Likewise.
48532 2010-10-04  Bruno Haible  <bruno@clisp.org>
48534         read-file tests: Avoid a test failure on NonStop Kernel.
48535         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48536         a regular file.
48537         Reported by Joachim Schmitz <schmitz@hp.com>.
48539 2010-10-03  Bruno Haible  <bruno@clisp.org>
48541         gnulib-tool: Fixes for --create-testdir with --libtool.
48542         * gnulib-tool (func_get_automake_snippet): Don't augment
48543         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48544         an executable.
48545         (func_create_testdir): Handle module 'alloca' like func_import.
48546         Reported by Bruce Korb <bruce.korb@gmail.com>.
48548 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48550         Avoid some lines longer than 80 characters.
48551         * lib/stdint.in.h: Break long comment lines.
48552         * lib/math.in.h: Likewise.
48553         (_GL_NUM_UINT_WORDS): New macro, for readability.
48554         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48555         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48556         * lib/stdlib.in.h: Likewise.
48557         * lib/spawn.in.h: Likewise.
48558         * lib/sys_socket.in.h: Update an URL.
48559         * lib/sys_stat.in.h: Break long line.
48561 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48563         Improve pmccabe2html.
48564         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48565         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48566         when the sources change. Remove the line in the HTML about "Used
48567         ranges" (which implied that there might be other unused ranges),
48568         rename "Resume" to "Summary" (easier to understand for more users).
48569         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48570         styles, and some unnecessary blank lines.
48572 2010-10-03  Bruno Haible  <bruno@clisp.org>
48573             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48575         acl: Add support for ACLs on NonStop Kernel.
48576         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48577         Check whether the function aclsort() exists.
48578         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48579         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48580         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48581         (acl_nontrivial [HAVE_ACLSORT]: New function.
48582         (file_has_acl): Implement for NonStop Kernel.
48583         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48584         (qset_acl): Implement for NonStop Kernel.
48585         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48586         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48587         (main): Implement for NonStop Kernel.
48588         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48589         Kernel. Handle this flavor.
48590         * tests/test-set-mode-acl.sh: Likewise.
48591         * tests/test-copy-acl.sh: Likewise.
48592         * tests/test-copy-file.sh: Likewise.
48594 2010-10-03  Bruno Haible  <bruno@clisp.org>
48596         Info about ACLs on NonStop Kernel.
48597         * doc/acl-resources.txt: Add info about NonStop Kernel.
48598         References by Joachim Schmitz <schmitz@hp.com>.
48600 2010-10-02  Bruno Haible  <bruno@clisp.org>
48602         Define missing EDQUOT on NonStop Kernel.
48603         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48604         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48605         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48606         missing.
48607         * doc/posix-headers/errno.texi: Mention the NSK bug.
48608         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48609         Reported by Joachim Schmitz <schmitz@hp.com>.
48611 2010-10-02  Bruno Haible  <bruno@clisp.org>
48613         Update doc for POSIX:2008.
48614         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48615         Update URL of POSIX specification.
48617 2010-10-02  Bruno Haible  <bruno@clisp.org>
48619         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48620         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48621         from gnulib, not from Automake.
48623 2010-10-02  Bruno Haible  <bruno@clisp.org>
48625         New module 'system-posix'.
48626         * modules/system-posix: New file.
48627         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48628         module is present.
48629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48630         GNULIB_SYSTEM_POSIX.
48631         * modules/stdlib (Depends-on): Remove sys_wait.
48632         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48633         * doc/posix-functions/system.texi: Mention the new module.
48634         * doc/posix-headers/stdlib.texi: Likewise.
48635         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48636         define test_sys_wait_macros to a no-op.
48637         Reported by Sam Steingold <sds@gnu.org>.
48639 2010-09-30  Bruno Haible  <bruno@clisp.org>
48641         More renaming from 'getdate' to 'get_date'.
48642         * doc/get_date.texi: Renamed from doc/getdate.texi.
48643         * modules/get_date (Files): Update.
48644         * MODULES.html.sh (Date and time <time.h>): Update.
48645         * DEPENDENCIES: Update.
48646         * gnulib-tool: Update comment.
48647         * m4/bison.m4 (gl_BISON): Likewise.
48648         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48650 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48652         bootstrap: support ACLOCAL_FLAGS during aclocal
48653         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48654         can add additional -I dir for third-party .m4 files.
48656 2010-09-30  Eric Blake  <eblake@redhat.com>
48658         bootstrap: use glibtoolize on MacOS
48659         * build-aux/bootstrap (check_versions): Convert libtool into
48660         libtoolize.
48661         (tool search): Move libtool check earlier, and look for
48662         glibtoolize for MacOS.
48663         (gnulib_tool_options): Auto-add --libtool when appropriate.
48664         Reported by Justin Clift.
48666         poll: fix typo that broke test on MacOS
48667         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48668         Reported by Justin Clift.
48670         getdate: rename to get_date
48671         Note: getdate.h is not renamed, to minimize client impact.
48672         * modules/getdate: Mark obsolete.  Move old contents...
48673         * modules/get_date: ...to new module name.
48674         * modules/getdate-tests: Move...
48675         * modules/get_date-tests: ...here.
48676         * m4/getdate.m4: Move...
48677         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48678         * lib/getdate.y: Move...
48679         * lib/get_date.y: ...here.
48680         * tests/test-getdate.c: Move...
48681         * tests/test-get_date.c: ...here.
48682         * doc/posix-functions/getdate.texi (getdate): Update name.
48683         * NEWS: Mention the change.
48685 2010-09-29  Bruno Haible  <bruno@clisp.org>
48687         Separate the module 'waitpid' from the module 'sys_wait'.
48688         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48689         present.
48690         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48691         gl_MODULE_INDICATOR_FOR_TESTS.
48692         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48693         * modules/sys_wait (Depends-on): Remove waitpid.
48694         (Makefile.am): Substitute GNULIB_WAITPID.
48695         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48696         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48697         signature only if the 'waitpid' module is present.
48698         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48699         * NEWS: Mention the change.
48700         * modules/grantpt (Depends-on): Add waitpid.
48701         * modules/wait-process (Depends-on): Likewise.
48703 2010-09-29  Bruno Haible  <bruno@clisp.org>
48705         More tests for module 'sys_wait'.
48706         * modules/sys_wait-c++-tests: New file.
48707         * tests/test-sys_wait-c++.cc: New file.
48708         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48709         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48711 2010-09-29  Bruno Haible  <bruno@clisp.org>
48713         New module 'waitpid'.
48714         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48715         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48716         Don't include <process.h>.
48717         (waitpid): Declare only, using modern idiom.
48718         * m4/waitpid.m4: New file.
48719         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48720         * modules/waitpid: New file.
48721         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48722         (Makefile.am): Update.
48723         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48725 2010-09-28  Bruno Haible  <bruno@clisp.org>
48727         poll: Assume ANSI C.
48728         * lib/poll.c (poll): Use an ANSI C declaration.
48730 2010-09-28  Bruno Haible  <bruno@clisp.org>
48732         poll-h: Create poll.h on all platforms.
48733         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48734         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48735         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48736         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48737         (gl_REPLACE_POLL_H): Don't set POLL_H.
48738         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48739         * modules/poll-h (Depends-on): Add include_next.
48740         (Makefile.am): Create poll.h unconditionally. Substitute also
48741         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48743 2010-09-28  Bruno Haible  <bruno@clisp.org>
48745         Tests for module 'poll-h'.
48746         * modules/poll-h-c++-tests: New file.
48747         * tests/test-poll-h-c++.cc: New file.
48749         Tests for module 'poll-h'.
48750         * modules/poll-h-tests: New file.
48751         * tests/test-poll-h.c: New file.
48753 2010-09-28  Bruno Haible  <bruno@clisp.org>
48755         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48756         * modules/poll-h (Depends-on): Add 'extensions'.
48758 2010-09-28  Bruno Haible  <bruno@clisp.org>
48760         New module 'poll-h'.
48761         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48762         (poll): Use modern idiom.
48763         * modules/poll-h: New file.
48764         * modules/poll (Files): Remove lib/poll.in.h.
48765         (Depends-on): Add poll-h.
48766         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48767         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48768         * m4/poll_h.m4: New file.
48769         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48770         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48771         and invoke gl_REPLACE_POLL_H.
48772         * lib/poll.c: Use common idiom.
48773         * tests/test-poll.c: Likewise.
48774         * doc/posix-headers/poll.texi: Mention the poll-h module.
48775         Suggested by Eric Blake.
48777 2010-09-26  Bruno Haible  <bruno@clisp.org>
48779         sys_wait: Implement WSTOPSIG.
48780         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48781         Reported by Simon Josefsson.
48783 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48785         stdlib, sys_wait: Avoid compilation error on mingw.
48786         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48788 2010-09-26  Bruno Haible  <bruno@clisp.org>
48790         stdlib tests: Avoid code duplication.
48791         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48792         * modules/sys_wait-tests (Files): Likewise.
48793         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48794         * tests/test-stdlib.c: Include test-sys_wait.h.
48795         (main): Invoke test_sys_wait_macros.
48796         * tests/test-sys_wait.c: Include test-sys_wait.h.
48797         (main): Invoke test_sys_wait_macros.
48799 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48801         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48802         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48803         sure Windows sockets are working before calling getaddrinfo.
48804         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48805         * doc/gnulib.texi (Windows sockets): Fix typo.
48807 2010-09-25  Bruno Haible  <bruno@clisp.org>
48809         Tests for module 'regex-quote'.
48810         * modules/regex-quote-tests: New file.
48811         * tests/test-regex-quote.c: New file.
48813         New module 'regex-quote'.
48814         * lib/regex-quote.h: New file.
48815         * lib/regex-quote.c: New file.
48816         * modules/regex-quote: New file.
48817         Suggested by Reuben Thomas <rrt@sc3d.org>.
48819 2010-09-24  Bruno Haible  <bruno@clisp.org>
48821         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48822         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48824 2010-09-23  Bruno Haible  <bruno@clisp.org>
48826         setenv: Relax license.
48827         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48828         Blake.
48829         Requested by Eric Blake.
48831 2010-09-22  Bruno Haible  <bruno@clisp.org>
48833         termios: Relax license.
48834         * modules/termios (License): Change to LGPLv2+.
48835         Requested by Eric Blake.
48837 2010-09-22  Bruno Haible  <bruno@clisp.org>
48839         threadlib: Allow the package to change the default to 'no'.
48840         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48841         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48842         Reported by Paul Eggert.
48844 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48845             Bruno Haible  <bruno@clisp.org>
48847         Fix endless loop in mbmemcasecoll.
48848         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48849         byte.
48850         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48852 2010-09-22  Bruno Haible  <bruno@clisp.org>
48854         Tests for module 'memcoll'.
48855         * modules/memcoll-tests: New file.
48856         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48858         memcoll, xmemcoll: Clarify size vs. length.
48859         * modules/memcoll.c (memcoll0): Clarify specification.
48860         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48861         passed to collate_error.
48863 2010-09-22  Bruno Haible  <bruno@clisp.org>
48865         Tests for module 'memcasecmp'.
48866         * modules/memcasecmp-tests: New file.
48867         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48869 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48871         * lib/pthread.in.h: Add split double-inclusion guard, and include
48872         system <pthread.h> if there is one.  Use @@-style as in other
48873         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48874         pthread.h doesn't.
48875         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48876         (pthread_mutexattr_settype, pthread_mutex_trylock):
48877         New static inline functions, if there's no system <pthread.h>.
48878         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48879         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48880         Approximate with mutexes if the system lacks spinlocks, as in
48881         MacOS.
48882         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48883         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48884         @@-style.  Check for spinlocks separately.
48885         (gl_PTHREAD_DEFAULTS): New macro.
48886         * modules/pthread: Redo to use a more typical style for in.h files.
48888 2010-09-21  Eric Blake  <eblake@redhat.com>
48890         net_if: enhance tests
48891         * tests/test-net_if.c (main): Move signature checks earlier.
48892         Print failures to stderr.
48893         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48894         Document the bug that we do not yet fix.
48896 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48898         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48899         about gnulib, not GSS.
48901 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48903         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48904         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48905         for Emacs.
48906         * build-aux/pmccabe2html: Make Makefile.am example code more
48907         cut-and-paste friendly.
48909 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48911         * tests/test-net_if.c: New file.
48912         * modules/net_if-tests: New file.
48914 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48916         pthread: add pthread_spin_destroy
48917         * lib/pthread.in.h (pthread_spin_destroy): New function.
48919 2010-09-19  Bruno Haible  <bruno@clisp.org>
48921         gnulib-tool: Fix --help output.
48922         * gnulib-tool (func_usage): Fix help message.
48923         Reported by Reuben Thomas <rrt@sc3d.org>.
48925 2010-09-18  Jim Meyering  <meyering@redhat.com>
48927         maint.mk: avoid unexpanded \n in two diagnostics
48928         * top/maint.mk (sc_prohibit_always_true_header_tests):
48929         Don't use a literal \n in a halt=... assignment.  It would not be
48930         expanded, and the two \n bytes would appear in the diagnostic output
48931         rather than the desired newline.  Use halt=$$(printf ... instead.
48932         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48934 2010-09-18  Bruno Haible  <bruno@clisp.org>
48936         netinet_in: Doc tweak.
48937         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48938         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48940 2010-09-18  Jim Meyering  <meyering@redhat.com>
48942         init.sh: correct an outdated comment
48943         * tests/init.sh (create_exe_shims_):  s/function/alias/
48945         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48946         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48947         a file named "*.exe" is removed between the glob expansion and the
48948         processing of that oddly named file.
48950 2010-09-17  Eric Blake  <eblake@redhat.com>
48952         mirbsd: add some more support
48953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48954         in BSD family.
48955         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48956         devices as OpenBSD.
48957         * m4/host-os.m4 (mirbsd): Add MirBSD.
48959         tests: fix unportable assumption on sys/wait.h
48960         * tests/test-sys_wait.c (main): Relax test.
48961         * tests/test-stdlib.c (main): Likewise.
48963         init.sh: accommodate directory with no .exes
48964         * tests/init.sh: Accomodate directory containing only scripts.
48966         tests: avoid compiler warning
48967         * tests/test-stdlib.c (main): Use the variable.
48969         fdutimens, fdutimensat: update signature, again
48970         * lib/utimens.h (gl_futimens): Delete, and move signature...
48971         (fdutimens): ...here.
48972         (fdutimensat): Rearrange signature.
48973         (lutimensat): Rename variable for clarity.
48974         * lib/fdutimensat.c (fdutimensat): Update signature.
48975         * lib/utimens.c (fdutimens): Likewise.
48976         (gl_futimens): Delete.
48977         (utimens, lutimens): Update callers.
48978         * lib/futimens.c (futimens): Likewise.
48979         * tests/test-fdutimensat.c: Likewise.
48980         * tests/test-utimens.c: Likewise.
48981         * tests/test-futimens.h: Update comment.
48982         * NEWS: Mention this.
48983         Suggested by Paul Eggert.
48985 2010-09-17  Bruno Haible  <bruno@clisp.org>
48987         Take over the maintenance of some older macros from Autoconf.
48988         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48989         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48990         GNU Autoconf.
48991         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48992         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48994 2010-09-17  Eric Blake  <eblake@redhat.com>
48996         fdutimensat: drop atflag validation
48997         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48998         with valid fd, to close a race scenario where futimens is
48999         unsupported and FILE was replaced by a symlink.
49000         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
49001         accordingly.
49002         Suggested by Paul Eggert.
49004 2010-09-16  Bruno Haible  <bruno@clisp.org>
49006         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
49007         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
49009 2010-09-16  Bruno Haible  <bruno@clisp.org>
49011         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
49012         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
49013         login_tty exists.
49014         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49016 2010-09-16  Bruno Haible  <bruno@clisp.org>
49018         login_tty: Make the replacement code work on BSD systems.
49019         * lib/login_tty.c: Include <sys/ioctl.h>.
49020         (login_tty): Use ioctl TIOCSCTTY when available.
49021         * modules/login_tty (Depends-on): Add sys_ioctl.
49022         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49024 2010-09-16  Bruno Haible  <bruno@clisp.org>
49026         login_tty: Stricter unit test.
49027         * modules/login_tty-tests (Depends-on): Add tcgetsid.
49028         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
49029         and tcgetsid() after login_tty.
49030         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49032 2010-09-16  Bruno Haible  <bruno@clisp.org>
49034         New module 'tcgetsid'.
49035         * lib/tcgetsid.c: New file.
49036         * m4/tcgetsid.m4: New file.
49037         * modules/tcgetsid: New file.
49038         * modules/termios (Depends-on): Add c++defs, warn-on-use.
49039         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
49040         GNULIB_TCGETSID, HAVE_TCGETSID.
49041         * lib/termios.in.h: Include <sys/types.h>.
49042         (tcgetsid): New declaration.
49043         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
49044         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
49045         * doc/posix-functions/tcgetsid.texi: Mention the new module.
49046         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
49048 2010-09-16  Bruno Haible  <bruno@clisp.org>
49050         Tests for module 'termios'.
49051         * modules/termios-c++-tests: New file.
49052         * modules/termios-tests: New file.
49053         * tests/test-termios-c++.cc: New file.
49054         * tests/test-termios.c: New file.
49056         New module 'termios'.
49057         * modules/termios: New file.
49058         * lib/termios.in.h: New file.
49059         * m4/termios_h.m4: New file.
49060         * doc/posix-headers/termios.texi: Mention the new module.
49062 2010-09-16  Eric Blake  <eblake@redhat.com>
49064         fdutimensat: add an atflag parameter
49065         * lib/fdutimensat.c (fdutimensat): Add new parameter.
49066         * lib/utimens.h (fdutimensat): Update prototype.
49067         * tests/test-fdutimensat.c: Adjust test to match.
49068         * NEWS: Document the change.
49069         Suggested by Paul Eggert.
49071 2010-09-16  Bruno Haible  <bruno@clisp.org>
49073         Fix typos in comments.
49074         * lib/striconveh.h: Fix typo in comment.
49075         * lib/login_tty.c (login_tty): Likewise.
49077 2010-09-15  Bruno Haible  <bruno@clisp.org>
49079         stdlib: clarify MirBSD WEXITSTATUS bug
49080         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
49081         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49083 2010-09-15  Eric Blake  <eblake@redhat.com>
49085         stdlib: work around MirBSD WEXITSTATUS bug
49086         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
49087         * modules/stdlib (Depends-on): Add sys_wait.
49088         * tests/test-sys_wait.c (main): Enhance test.
49089         * tests/test-stdlib.c (main): Likewise.
49090         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
49092         docs: mention MacOS issue with WEXITSTATUS(constant)
49093         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
49094         issue.
49095         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49097         strnlen: add tests
49098         * modules/strnlen-tests: New file.
49099         * tests/test-strnlen.c: Likewise.
49101 2010-09-14  Bruno Haible  <bruno@clisp.org>
49103         unistr/base: Avoid link errors when module 'libunistring' is also used.
49104         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
49105         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
49106         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
49107         Declare also when HAVE_LIBUNISTRING is set.
49108         Reported by Pádraig Brady <P@draigbrady.com>.
49110 2010-09-14  Eric Blake  <eblake@redhat.com>
49112         test-rawmemchr: make more robust
49113         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
49114         (Depends-on, configure.ac): Add needed prerequisites to use it.
49115         * modules/memchr-tests (Files, Depends-on, configure.ac):
49116         Likewise, to avoid implicit reliance on memchr module prereqs.
49117         * tests/test-memchr.c (main): Ensure proper masking.
49118         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
49119         reads.
49121         memchr: detect glibc Alpha bug
49122         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
49123         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49124         Alpha.
49125         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49126         * tests/test-memchr.c (main): Enhance test.
49127         Reported by Nelson H. F. Beebe.
49129 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49131         fts, getcwd, glob: audit for dirfd returning -1
49132         * lib/fts.c (opendir): Remove #define; no longer used.
49133         (opendirat): New arg PDIR_FD.  All callers changed.
49134         (fts_build, _opendir2): Use new opendirat to avoid the need for
49135         dirfd, or for checking whether dirfd returns a negative value.
49136         Don't use opendir; always use openat followed by fdopendir.
49137         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49138         it.
49139         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49140         returns -1 here.
49141         * modules/fts (Depends-on): Remove dirfd.
49142         * modules/getcwd (Depends-on): Likewise.
49144 2010-09-13  Eric Blake  <eblake@redhat.com>
49146         float: fix broken MirBSD header
49147         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49148         * doc/posix-headers/float.texi (float.h): Document it.
49150 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49152         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49153         * lib/fts.c (opendirat): New arg extra_flags.
49154         (__opendir2): Use it to avoid following symlinks when opening
49155         a directory, if symlinks are not supposed to be followed.  See
49156         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49158         fdopendir: preserve argument fd before returning
49159         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49160         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49161         (fdopendir): Use them, arranging for FD to be open to the same
49162         directory that it was when it started.  (It might be temporarily
49163         closed while fdopendir is running, so this not thread- or
49164         signal-safe.)  Be careful to do the right thing even when file
49165         descriptors are scarce and dup fails with errno == EMFILE.  See
49166         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49168 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49170         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49171         * NEWS: Document change.
49172         * m4/regex.m4: Disable test for regoff_t size.
49174 2010-09-13  Jim Meyering  <meyering@redhat.com>
49176         fts: don't operate on an invalid file descriptor after failed dup
49177         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49178         negative file descriptor.
49180 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49182         savedir: add streamsavedir, deprecate fdsavedir
49183         * NEWS: Mention deprecation of fdsavedir.
49184         * lib/savedir.c (streamsavedir): New extern function, whose name
49185         ends in "savedir" to be consistent with the others.  This differs
49186         from savedirstream in that it doesn't close its argument.  The
49187         next version of GNU tar will use this instead of fdsavedir, to
49188         avoid some race conditions and conserve file descriptors.
49189         (savedirstream): Reimplement as a wrapper around streamsavedir.
49190         (fdsavedir): Add a comment deprecating this function.  As far as
49191         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49192         * lib/savedir.h (streamsavedir): New decl.
49193         (fdsavedir): Add a comment deprecating this.
49195 2010-09-10  Bruno Haible  <bruno@clisp.org>
49197         langinfo: Fix last commit.
49198         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49199         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49202 2010-09-10  Bruno Haible  <bruno@clisp.org>
49204         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49205         * lib/progreloc.c (O_EXEC): Define fallback.
49207 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49209         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49210         * NEWS: Document recent changes to fcntl-h.
49211         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49212         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49213         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49214         Similarly for O_SEARCH; this last was already true, but not documented.
49215         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49216         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49217         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49218         Likewise.
49219         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49220         is zero, not whether it is defined.
49221         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49222         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49223         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49225 2010-09-10  Bruno Haible  <bruno@clisp.org>
49227         langinfo, nl_langinfo: Fix for IRIX 5.3.
49228         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49229         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49230         HAVE_LANGINFO_YESEXPR.
49231         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49232         HAVE_LANGINFO_YESEXPR.
49233         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49234         HAVE_LANGINFO_T_FMT_AMPM is 0.
49235         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49236         HAVE_LANGINFO_YESEXPR is 0.
49237         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49238         NOEXPR.
49239         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49240         * doc/posix-functions/nl_langinfo.texi: Likewise.
49241         Reported by Eric Blake.
49243 2010-09-10  Bruno Haible  <bruno@clisp.org>
49245         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49246         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49247         on FreeBSD 8.0 and OpenBSD 4.6.
49248         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49249         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49250         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49251         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49252         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49253         ac_includes_default.
49254         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49256 2010-09-09  Eric Blake  <eblake@redhat.com>
49258         strsignal: work around NetBSD bug
49259         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49260         * lib/string.in.h (includes): Likewise.
49261         * doc/posix-functions/strsignal.texi (strsignal): Document the
49262         bug.
49263         Reported by Nelson H. F. Beebe.
49265         gnulib-tool: work with NetBSD /bin/sh
49266         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49267         (func_get_description, func_get_comment, func_get_status)
49268         (func_get_notice, func_get_applicability, func_get_filelist)
49269         (func_get_dependencies, func_get_autoconf_early_snippet)
49270         (func_get_autoconf_snippet, func_get_automake_snippet)
49271         (func_get_include_directive, func_get_link_directive)
49272         (func_get_license, func_get_maintainer, func_import): Avoid
49273         shell syntax errors from parsing syntax extensions.
49275 2010-09-09  Bruno Haible  <bruno@clisp.org>
49277         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49278         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49279         a reliable way to determine whether the 'alias' command works.
49281 2010-09-08  Jim Meyering  <meyering@redhat.com>
49283         init.sh: penalize a set-x-impaired shell; don't disqualify it
49284         * tests/init.sh: Too many shells corrupt application stderr when
49285         you set -x, so we can't afford to disqualify them, since at least
49286         on Irix-6.5, that would disqualify all bourne shells.
49287         Instead, use a two-pass approach.
49288         On the first pass, try to find a shell that meets the stricter
49289         condition that set -x does not corrupt stderr.
49290         If no shell meets the stricter condition, retest each candidate
49291         shell, but without that extra condition.  Finally, when
49292         VERBOSE=yes is requested and set -x might cause trouble, simply
49293         issue a warning and refrain from enabling debug output.
49295 2010-09-08  Eric Blake  <eblake@redhat.com>
49297         unsetenv: fix OpenBSD bug
49298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49299         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49300         documentation.
49301         Reported by Jim Meyering.
49303         strtod: work around IRIX 6.5 bug
49304         * lib/strtod.c (strtod): Reparse number on shorter string if
49305         exponent parse was invalid.
49306         * tests/test-strtod.c (main): Add check for "0x1p 2".
49307         Reported by Tom G. Christensen.
49309         getopt: optimize previous patch
49310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49311         empty variable.  Speed up awk script.
49312         Reported by Paolo Bonzini.
49314 2010-09-08  Jim Meyering  <meyering@redhat.com>
49316         test.sh: disqualify shells for which set -x corrupts stderr
49317         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49318         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49319         appear in stderr output.  For example, this command:
49320             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49321         prints "P=1" on those two systems:
49323 2010-09-08  Bruno Haible  <bruno@clisp.org>
49325         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49326         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49327         commands, because some shells ignore redirections when there is an
49328         error in the command lookup.
49329         Reported by Eric Blake.
49331 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49333         * lib/regex.h: Fix a mention of `regex_compile' (should be
49334         `re_compile_pattern').
49335         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49336         (re_set_registers): Correct name of parameter in comment.
49338         * doc/regex.texi: Add documentation for missing syntax flags.
49339         Remove commented-out documentation of defunct syntax option
49340         RE_NO_EMPTY_ALTS.
49341         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49342         Add documentation of re_set_registers.
49343         Document trick to re-use a pattern buffer by setting fastmap manually.
49344         Update documentation of struct re_pattern_buffer per public members.
49345         Uncomment documentation of equivalence class operators and
49346         collating symbol operators, since they are now implemented,
49347         Explain leftmost-longest matching in relation to alternatives.
49348         Tidy documentation of substring matching.
49349         Remove POSIX documentation, which is done better in
49350         glibc, and refer the reader there. Keep BSD API documentation, as
49351         that is not readily available elsewhere.
49353 2010-09-07  Eric Blake  <eblake@redhat.com>
49355         getopt: handle POSIXLY_CORRECT set but not exported
49356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49357         export state of POSIXLY_CORRECT, due to bash set -o posix.
49358         Reported by Dustin J. Mitchell.
49360 2010-09-05  Bruno Haible  <bruno@clisp.org>
49362         gnulib-tool: Highlight the changed options.
49363         * gnulib-tool (func_usage): Display the --import, --add-import,
49364         --remove-import explanations in bold font.
49366 2010-09-06  Karl Berry  <karl@gnu.org>
49368         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49370 2010-09-05  Bruno Haible  <bruno@clisp.org>
49372         uniwidth/width: Update comment.
49373         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49374         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49376 2010-09-05  Bruno Haible  <bruno@clisp.org>
49378         isinf, isnan: Relax license.
49379         * modules/isinf (License): Change from GPL to LGPL, with consent from
49380         Ben Pfaff.
49381         * modules/isnan (License): Likewise.
49382         Requested by Ludovic Courtès.
49384 2010-09-04  Bruno Haible  <bruno@clisp.org>
49386         gnulib-tool: Help migration from --import to --add-import or --update.
49387         * gnulib-tool: Emit a verbose error message when --import is used
49388         without any module name.
49390 2010-09-04  Bruno Haible  <bruno@clisp.org>
49392         Update doc about gnulib-tool.
49393         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49394         'gnulib-tool --update' in more detail.
49395         Reported by Eric Blake.
49397 2010-09-04  Bruno Haible  <bruno@clisp.org>
49399         gnulib-tool: Change --import. New options --add/remove-import.
49400         * gnulib-tool: New options --add-import, --remove-import.
49401         (func_usage): Document them.
49402         (have_associative): Define always.
49403         (func_import): In import mode, don't merge the specified settings with
49404         the cached settings. Implement remove-import mode.
49405         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49406         Explain when to use them versus --import.
49407         (Simple update): Use --add-import instead of --import.
49408         * NEWS: Mention the change.
49410 2010-09-04  Bruno Haible  <bruno@clisp.org>
49412         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49413         separate gnulib.mk.
49415 2010-09-04  Bruno Haible  <bruno@clisp.org>
49417         gnulib-tool: Don't talk about CVS any more.
49418         * gnulib-tool (func_usage, func_import): Write "version control"
49419         instead of CVS.
49421 2010-09-04  Jim Meyering  <meyering@redhat.com>
49423         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49424         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49425         false positives (whose names may be ill-chosen) when searching
49426         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49427         would cause a false-positive.
49429         avoid coreutils "make distcheck" failure
49430         Coreutils tests with an absolute build directory name that contains
49431         a space.  Not quoting this directory name caused a failure.
49432         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49433         * tests/test-vc-list-files-cvs.sh: Likewise.
49435 2010-09-04  Bruno Haible  <bruno@clisp.org>
49437         gnulib-tool: Avoid error when run in a package without Makefile.am.
49438         * gnulib-tool: When collecting the m4dirs in a package that does not
49439         have a Makefile.am, eliminate those directories that contain no
49440         gnulib-cache.m4. Fix expression that counts these directories.
49442 2010-09-04  Bruno Haible  <bruno@clisp.org>
49444         update-copyright test: Improve output when perl is missing or too old.
49445         * tests/test-update-copyright.sh: Move test of Perl version down after
49446         the test whether Perl exists. Provide an explanation relating Perl's
49447         error message to Automake's SKIP: message.
49449 2010-09-04  Bruno Haible  <bruno@clisp.org>
49451         Don't augment PATH in TESTS_ENVIRONMENT.
49452         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49453         set abs_aux_dir instead of augmenting PATH.
49454         * modules/vc-list-files-tests (Makefile.am): Likewise.
49455         * tests/test-update-copyright.sh: Augment PATH here.
49456         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49457         path_prepend_.
49458         * tests/test-vc-list-files-git.sh: Likewise.
49460 2010-09-04  Jim Meyering  <meyering@redhat.com>
49462         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49463         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49465 2010-09-04  Bruno Haible  <bruno@clisp.org>
49467         strdup: Fix compilation error in C++ mode.
49468         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49469         the macro.
49471 2010-09-04  Bruno Haible  <bruno@clisp.org>
49473         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49474         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49475         macro into a function.
49476         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49478 2010-09-04  Bruno Haible  <bruno@clisp.org>
49480         Set PATH_SEPARATOR the same way autoconf does.
49481         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49482         the value of PATH_SEPARATOR the same way autoconf-generated configure
49483         scripts do.
49484         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49485         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49487 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49489         Set PATH_SEPARATOR the same way autoconf does.
49490         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49491         the same way autoconf-generated configure scripts do.
49492         * posix-modules: Likewise.
49494 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49496         hash: fix safe_hasher const typo
49497         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49498         const; otherwise, there is a type error later.
49500 2010-09-02  Jim Meyering  <meyering@redhat.com>
49502         test-update-copyright.sh: require perl 5.8.0
49503         * tests/test-update-copyright.sh: Require 5.8.0,
49504         which Tom G. Christensen has confirmed is adequate,
49505         while 5.6.1 is not.
49507 2010-09-02  Eric Blake  <eblake@redhat.com>
49509         tests: init.sh improvements for re-exec'ing with zsh
49510         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49511         -vx through shell re-exec.
49512         Reported by Tom G. Christensen.
49514         wctype: fix typo in previous commit
49515         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49516         Reported by Ludovic Courtès.
49518 2010-09-02  Jim Meyering  <meyering@redhat.com>
49520         test-update-copyright.sh: skip test if Perl is too old
49521         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49522         Reported by Tom G. Christensen.
49524 2010-09-02  Bruno Haible  <bruno@clisp.org>
49526         wctype: Avoid compilation error on IRIX 6.5.30.
49527         * lib/wctype.in.h (iswblank): Declare with a replacement if
49528         REPLACE_ISWBLANK is set.
49529         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49530         declared. Set REPLACE_ISWBLANK.
49531         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49532         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49533         * doc/posix-headers/wctype.texi: Likewise.
49534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49536 2010-09-01  Bruno Haible  <bruno@clisp.org>
49538         New module 'socketlib'.
49539         * modules/socketlib: New file.
49540         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49541         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49542         * modules/sockets (Depends-on): Add socketlib.
49543         Suggested by Sam Steingold <sds@gnu.org>.
49545 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49547         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49549         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49550         when one needs search access to a directory but not read access.
49551         On systems where it is available, it works in some cases where
49552         O_RDONLY does not, namely on directories that are searchable but
49553         not readable, and which need only to be searchable.  If O_SEARCH
49554         is not available, fall back to the traditional method of using
49555         O_RDONLY.
49557         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49558         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49559         when opening a directory that needs only to be searchable.
49560         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49561         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49562         * lib/openat-proc.c (openat_proc_name): Likewise.
49563         * lib/openat.c (openat_needs_fchdir): Likewise.
49564         * lib/save-cwd.c (save_cwd): Likewise.
49565         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49567 2010-08-28  Bruno Haible  <bruno@clisp.org>
49569         New module 'host-cpu-c-abi'.
49570         * modules/host-cpu-c-abi: New file.
49571         * m4/host-cpu-c-abi.m4: New file, based on part of
49572         clisp/src/m4/general.m4.
49573         Requested by Sam Steingold <sds@gnu.org>.
49575 2010-08-31  Eric Blake  <eblake@redhat.com>
49576         and Jim Meyering  <meyering@redhat.com>
49578         hash: factor, and guard against misbehaving hasher function
49579         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49580         of table->hasher's return value.  Also protect against a hash value
49581         so large that adding it to table->bucket results in a NULL pointer.
49582         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49583         Use it in place of open-coded check-and-abort.
49585 2010-08-30  Bruno Haible  <bruno@clisp.org>
49587         hash: silence spurious clang warning
49588         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49589         Reported by Eric Blake.
49591 2010-08-30  Eric Blake  <eblake@redhat.com>
49593         strstr, memmem, strcasestr: avoid leaked shell message
49594         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49595         FreeBSD.
49596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49599         tests: silence clang warning
49600         * tests/test-malloca.c (do_allocation): Avoid dead store.
49602 2010-08-29  Bruno Haible  <bruno@clisp.org>
49604         gettext: Fix recent mistake.
49605         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49607 2010-08-29  Bruno Haible  <bruno@clisp.org>
49609         selinux-h: Offer a --without-selinux option.
49610         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49611         --without-selinux was specified, skip all tests and define
49612         HAVE_SELINUX_SELINUX_H to 0.
49613         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49614         set LIB_SELINUX to empty.
49615         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49616         gl_LIBSELINUX. If --without-selinux was specified, replace
49617         selinux/context.h.
49618         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49620 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49621             Bruno Haible  <bruno@clisp.org>
49623         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49624         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49625         of HAVE_REALLOC.
49626         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49627         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49628         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49629         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49631 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49632             Bruno Haible  <bruno@clisp.org>
49634         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49635         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49636         HAVE_CALLOC.
49637         * lib/xmalloc.c: Update accordingly.
49638         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49639         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49640         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49642 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49643             Bruno Haible  <bruno@clisp.org>
49645         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49646         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49647         HAVE_MALLOC.
49648         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49649         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49650         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49652 2010-08-29  Bruno Haible  <bruno@clisp.org>
49654         Update modules list.
49655         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49656         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49657         (String handling <string.h>): Add astrxfrm.
49658         (File system functions): Add readlinkat.
49660 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49662         Tests for module 'realloc-gnu'.
49663         * modules/realloc-gnu-tests: New file.
49664         * tests/test-realloc-gnu.c: New file.
49666         Tests for module 'calloc-gnu'.
49667         * modules/calloc-gnu-tests: New file.
49668         * tests/test-calloc-gnu.c: New file.
49670         Tests for module 'malloc-gnu'.
49671         * modules/malloc-gnu-tests: New file.
49672         * tests/test-malloc-gnu.c: New file.
49674 2010-08-28  Bruno Haible  <bruno@clisp.org>
49676         Rename module 'realloc' -> 'realloc-gnu'.
49677         * modules/realloc-gnu: New file, copied from modules/realloc.
49678         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49679         obsolete.
49680         * modules/mgetgroups (Depends-on): Update.
49681         * doc/posix-functions/realloc.texi: Update.
49682         * NEWS: Mention the change.
49684         Rename module 'calloc' -> 'calloc-gnu'.
49685         * modules/calloc-gnu: New file, copied from modules/calloc.
49686         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49687         obsolete.
49688         * doc/posix-functions/calloc.texi: Update.
49689         * NEWS: Mention the change.
49691         Rename module 'malloc' -> 'malloc-gnu'.
49692         * modules/malloc-gnu: New file, copied from modules/malloc.
49693         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49694         obsolete.
49695         * modules/argp (Depends-on): Update.
49696         * modules/regex (Depends-on): Update.
49697         * doc/posix-functions/malloc.texi: Update.
49698         * NEWS: Mention the change.
49700 2010-08-28  Eric Blake  <eblake@redhat.com>
49702         pread, pwrite: add missing dependency
49703         * modules/pread (Depends-on): Add extensions.
49704         * modules/pwrite (Depends-on): Likewise.
49706 2010-08-28  Bruno Haible  <bruno@clisp.org>
49708         unistr/u*-strchr: Fix tests dependencies.
49709         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49710         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49711         Reported by Ian Beckwith <ianb@erislabs.net>.
49713 2010-08-28  Bruno Haible  <bruno@clisp.org>
49715         read-file: Don't occupy too much unused memory.
49716         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49718 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49719             Eric Blake  <eblake@redhat.com>
49720             Bruno Haible  <bruno@clisp.org>
49722         read-file: Avoid memory reallocations with regular files.
49723         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49724         (fread_file): With regular files, use the remaining length as the
49725         initial buffer size.  Check against overflow.
49726         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49727         sys_stat.
49729 2010-08-28  Bruno Haible  <bruno@clisp.org>
49731         ftello: Relax license.
49732         * modules/ftello (License): Relax to LGPLv2+.
49733         Reported by Eric Blake.
49735 2010-08-28  Bruno Haible  <bruno@clisp.org>
49737         Avoid relocwrapper link errors due to gnulib replacement functions.
49738         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49739         function.
49740         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49742 2010-08-28  Bruno Haible  <bruno@clisp.org>
49744         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49745         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49746         defined.
49747         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49748         Suggested by Eric Blake.
49750 2010-08-28  Bruno Haible  <bruno@clisp.org>
49752         sys_socket, netdb: Ensure socklen_t gets defined.
49753         * modules/sys_socket (Depends-on): Add socklen.
49754         * modules/netdb (Depends-on): Likewise.
49755         * modules/getaddrinfo (Depends-on): Remove socklen.
49756         * modules/getsockopt (Depends-on): Likewise.
49757         * modules/setsockopt (Depends-on): Likewise.
49758         * tests/test-sys_socket.c: Check that socklen_t is defined.
49759         * tests/test-netdb.c: Likewise.
49760         * m4/socklen.m4: Update comments.
49761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49763 2010-08-27  Eric Blake  <eblake@redhat.com>
49765         login_tty: add missing dependency
49766         * modules/login_tty (Depends-on): Add pty.
49768 2010-08-26  Eric Blake  <eblake@redhat.com>
49770         lib-symbol-versions: fix m4 quoting
49771         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49772         format for AC_LINK_IFELSE.
49774         glob: fix compile test
49775         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49777         btowc: fix missing file
49778         * modules/btowc (Files): Also ship locale-fr.m4.
49780         lseek: fix link test
49781         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49782         AC_LINK_IFELSE.
49784         include_next: silence autoconf 2.68 warning
49785         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49786         AC_COMPILE_IFELSE as special.
49787         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49788         autoconf < 2.68.
49790         acl: fix compilation test
49791         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49792         AC_COMPILE_IFELSE.
49794 2010-08-26  Bruno Haible  <bruno@clisp.org>
49796         Modernize AC_TRY_RUN invocations.
49797         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49798         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49799         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49800         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49801         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49802         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49803         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49805         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49806         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49807         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49808         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49809         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49810         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49812         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49813         gl_MBRLEN_NUL_RETVAL): Likewise.
49814         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49815         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49816         Likewise.
49817         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49818         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49819         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49820         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49821         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49822         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49823         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49824         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49825         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49826         Likewise.
49827         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49828         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49830         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49831         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49833         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49834         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49835         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49838 2010-08-26  Bruno Haible  <bruno@clisp.org>
49840         Modernize AC_TRY_LINK invocations.
49841         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49842         AC_TRY_LINK.
49843         * m4/argp.m4 (gl_ARGP): Likewise.
49844         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49845         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49846         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49847         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49848         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49849         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49850         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49851         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49852         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49853         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49854         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49855         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49856         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49857         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49858         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49859         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49860         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49861         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49862         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49863         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49864         Likewise.
49865         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49866         Likewise.
49867         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49868         Likewise.
49869         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49871         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49872         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49873         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49874         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49875         * m4/servent.m4 (gl_SERVENT): Likewise.
49876         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49877         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49878         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49879         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49880         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49881         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49882         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49883         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49884         * modules/tsearch-tests (configure.ac): Likewise.
49886 2010-08-26  Bruno Haible  <bruno@clisp.org>
49888         Modernize AC_TRY_COMPILE invocations.
49889         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49890         AC_TRY_COMPILE.
49891         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49892         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49893         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49894         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49895         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49896         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49897         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49898         * m4/lock.m4 (gl_LOCK): Likewise.
49899         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49900         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49901         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49902         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49903         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49904         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49905         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49907         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49908         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49909         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49910         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49911         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49912         extraneous semicolon.
49914 2010-08-26  Jim Meyering  <meyering@redhat.com>
49916         stat-time: relax license LGPL
49917         * modules/stat-time (License): Change from GPL to LGPL,
49918         with consent from all contributors, for use in libguile.
49919         Requested by Ludovic Courtès.
49921 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49923         poll: return immediately on POLLHUP.
49924         * lib/poll.c (poll): Always set timeout before wait_timeout is
49925         computed.
49927 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49929         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49930         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49931         rmdir ("dir/.//"), unlinkat.
49933 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49935         stdbool: avoid spurious failure with modern xlc
49936         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49938 2010-08-24  Bruno Haible  <bruno@clisp.org>
49940         getloadavg: simplify code
49941         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49942         gl_have_func. Update comments.
49944 2010-08-24  Eric Blake  <eblake@redhat.com>
49946         getloadavg: don't define SVR4 on cygwin
49947         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49948         only define SVR4 when -lkvm is required.
49949         Reported by Yaakov Selkowitz.
49951 2010-08-24  Bruno Haible  <bruno@clisp.org>
49953         priv-set: fix comment
49954         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49956 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49958         priv-set: fix comments
49959         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49960         to match code, as suggested by David Bartley in:
49961         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49963 2010-08-23  Eric Blake  <eblake@redhat.com>
49965         stdbool: avoid rejecting clang
49966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49967         * tests/test-stdbool.c: Enable more tests if using the system
49968         <stdbool.h> instead of the gnulib replacement.
49969         (main): Move xlc bug test to a runtime test for all compilers.
49970         Reported by Anders Kaseorg.
49972         argz: fix shell quoting issue
49973         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49974         Reported by Charles Wilson.
49976 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49977             Erik Faye-Lund <kusmabite@gmail.com>
49979         poll, select: handle ERROR_BROKEN_PIPE.
49980         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49981         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49982         * lib/select.c (win32_compute_revents): Do not mark a pipe
49983         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49985 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49987         fts: allow compilation with C++
49988         * lib/fts_.h: Specify extern "C" linkage with C++.
49990 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49992         Fix gnulib-tool sed script de-commentation for AIX sed.
49993         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49994         sed.
49996 2010-08-17  Eric Blake  <eblake@redhat.com>
49998         test-stddef: test for (some) offsetof bugs
49999         * tests/test-stddef.c: Enhance test to ensure correct type of
50000         offsetof.
50001         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
50002         that we are not fixing at this time.
50004 2010-08-15  Bruno Haible  <bruno@clisp.org>
50006         stpncpy: Allow stpncpy to be defined as a macro.
50007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
50008         if it's already correctly declared.
50009         * lib/string.in.h (stpncpy): Undefine before redefining.
50010         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
50012 2010-08-14  Bruno Haible  <bruno@clisp.org>
50014         Rename module 'memxfrm' to 'amemxfrm'.
50015         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
50016         (amemxfrm): Renamed from memxfrm.
50017         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
50018         (amemxfrm): Renamed from memxfrm.
50019         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
50020         * NEWS: Mention the change.
50021         * MODULES.html.sh (String handling <string.h>): Update.
50022         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
50023         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
50024         * lib/unicase/u16-casexfrm.c: Likewise.
50025         * lib/unicase/u32-casexfrm.c: Likewise.
50026         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
50027         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
50028         * lib/uninorm/u16-normxfrm.c: Likewise.
50029         * lib/uninorm/u32-normxfrm.c: Likewise.
50030         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
50031         memxfrm.
50032         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
50033         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
50034         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
50035         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
50036         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
50037         Suggested by Paul Eggert.
50039 2010-08-14  Bruno Haible  <bruno@clisp.org>
50041         Tests for module 'astrxfrm'.
50042         * modules/astrxfrm-tests: New file.
50043         * tests/test-astrxfrm.c: New file.
50045         New module 'astrxfrm'.
50046         * lib/astrxfrm.h: New file.
50047         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
50048         * modules/astrxfrm: New file.
50050 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
50052         regex: Tweak doc.
50053         * doc/regex.texi (Overview): Don't mention regex.c.
50054         (GNU Regular Expression Compiling): Likewise.
50055         (Match-end-of-line Operator): Mention 'not_eol'.
50057 2010-08-14  Brian Gough  <bjg@gnu.org>
50058             Bruno Haible  <bruno@clisp.org>
50060         git-merge-changelog: add doc relating to use with bzr and hg.
50061         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
50063 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
50065         pthread: fix pthread.h creation for srcdir != builddir
50066         * modules/pthread (Makefile.am): Fix the rule to work also in a
50067         non-srcdir build.
50069 2010-08-13  Karl Berry  <karl@gnu.org>
50071         * doc/regex.texi (Predefined Syntaxes): @smallexample.
50072         * doc/posix-*/*: force line break before @url of POSIX
50073         specifications.
50074         Suggested by Werner Lemberg.
50076 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50078         strtod: fix const diagnostic
50079         * lib/strtod.c (strtod): Don't assign const char * to char *,
50080         as this elicits a warning from GCC when warnings are enabled.
50082 2010-08-10  Pádraig Brady  <P@draigbrady.com>
50083         and Eric Blake  <eblake@redhat.com>
50085         copy-acl: ignore ENOTSUP on HP-UX
50086         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
50087         so that it is available for HP-UX.
50088         * lib/copy-acl.c (qcopy_acl): Use it.
50089         Reported by Patrick M. Callahan.
50091 2010-08-10  Eric Blake  <eblake@redhat.com>
50093         open, chown: relax license
50094         * modules/open (License): Change to LGPLv2+, with consent by all
50095         authors, for use in augeas.
50096         * modules/chown (License): Likewise.
50097         * modules/lchown (Likewise): Likewise.
50098         Requested by Adam Stokes.
50100 2010-08-09  Karl Berry  <karl@gnu.org>
50102         * build-aux/ar-lib: new file, import from Automake.
50103         * config/srclist.txt: autocheck for updates.
50105 2010-08-09  Eric Blake  <eblake@redhat.com>
50107         readlinkat: adjust client modules
50108         * modules/areadlinkat (Depends-on): Use readlinkat, not
50109         symlinkat.
50110         * modules/areadlinkat-with-size (Depends-on): Likewise.
50112         mknod: be more vocal about danger of running tests as root
50113         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
50114         root, since that is just asking for problems.
50115         Suggested by Bruno Haible, based on a report by Rainer Tammer.
50117         readlinkat: split into its own module
50118         * modules/symlinkat: Split readlinkat...
50119         * modules/readlinkat: ...into separate module.
50120         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
50121         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
50122         * lib/symlinkat.c (readlinkat): Move...
50123         * lib/readlinkat.c: ...into new file.
50124         * modules/symlinkat-tests: Split readlinkat test...
50125         * modules/readlinkat-tests: ...into separate module.
50126         * tests/test-symlinkat.c: Split...
50127         * tests/test-readlinkat.c: ...into new file.
50128         * NEWS: Document the split.
50129         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50130         * lib/unistd.in.h (readlinkat): Likewise.
50131         Suggested by Bruno Haible.
50133 2010-08-08  Bruno Haible  <bruno@clisp.org>
50135         memxfrm: Speed up.
50136         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50137         that usually only one call to strxfrm is necessary for each string
50138         part.
50139         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50141 2010-08-07  Karl Berry  <karl@gnu.org>
50143         * doc/posix-headers/limits.texi,
50144         * doc/posix-functions/malloc.texi,
50145         * doc/posix-functions/strsignal.texi: missing @item.
50146         * doc/ld-version-script.texi: spurious leading i.
50147         * doc/regex.texi (Interval Operators): no commas inside @var.
50149 2010-08-01  Bruno Haible  <bruno@clisp.org>
50151         Integrate the regex documentation.
50152         * doc/gnulib.texi: Define 'cn' index.
50153         (Regular expressions): New a chapter that includes regex.texi and
50154         regexprops-generic.texi.
50155         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50156         syntax.
50158         Whitespace cleanup.
50159         * doc/regex.texi: Remove trailing spaces.
50161         Add regex documentation.
50162         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50163         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50164         Written by Kathy A. Hargreaves and Karl Berry.
50166 2010-08-01  Bruno Haible  <bruno@clisp.org>
50168         link: Update documentation.
50169         * doc/posix-functions/link.texi: Update regarding Solaris.
50171 2010-07-31  Bruno Haible  <bruno@clisp.org>
50173         Update modules list.
50174         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50175         (String handling <string.h>): Add memcmp2, memxfrm.
50176         (Container data structures): Add xlist, xsublist, xoset.
50177         (Core language properties): Add alignof, unused-parameter.
50178         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50179         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50180         (Unibyte characters <ctype.h>): New section.
50181         (String handling <string.h>): New section.
50182         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50183         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50184         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50185         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50186         tan, tanh, tanl, y0, y1, yn.
50187         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50188         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50189         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50190         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50191         unlockpt, vdprintf, vdprintf-posix.
50192         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50193         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50194         xconcat-filename.
50195         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50196         getdtablesize, pipe2, pipe2-safer.
50197         (Security): New section.
50198         (Networking functions): Add accept4.
50199         (Signal handling): Add sigpipe.
50200         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50201         mbmemcasecoll.
50202         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50203         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50204         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50205         pipe-filter-ii.
50206         (Misc): Add argp-version-etc, login_tty, parse-duration.
50208 2010-07-31  Bruno Haible  <bruno@clisp.org>
50210         Improve doc in MODULES.html.
50211         * modules/linkat (Description): Add the word "function".
50212         * modules/mkfifo (Description): Likewise.
50213         * modules/mknod (Description): Likewise.
50214         * modules/remove (Description): Likewise.
50215         * modules/renameat (Description): Likewise.
50216         * modules/stat (Description): Likewise.
50217         * modules/symlink (Description): Likewise.
50218         * modules/unlink (Description): Likewise.
50220 2010-07-31  Bruno Haible  <bruno@clisp.org>
50222         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50223         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50224         option --enable/disable-c++ instead of --enable/disable-cxx.
50225         * NEWS: Mention the change.
50227 2010-07-31  Bruno Haible  <bruno@clisp.org>
50229         readlink, areadlink: Relax test a bit.
50230         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50231         alternative to ENOTDIR.
50232         * tests/test-areadlink.h (test_areadlink): Likewise.
50233         Reported by Rainer Tammer.
50235 2010-07-31  Bruno Haible  <bruno@clisp.org>
50237         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50238         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50239         character, perform the search using U_STRCHR.
50240         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50241         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50242         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50243         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50244         Suggested by Paolo Bonzini.
50246 2010-07-31  Bruno Haible  <bruno@clisp.org>
50248         unistr/u*-strstr: Fix dependencies.
50249         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50250         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50251         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50253 2010-07-31  Bruno Haible  <bruno@clisp.org>
50255         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50256         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50257         the beginning of the loop.
50258         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50259         cases in 'switch' statement.
50261         unistr/u8-strchr: Fix several bugs.
50262         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50263         the string. When not found, return NULL, not a pointer near the end.
50265         More tests for unistr/u8-strchr.
50266         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50267         that the function does not read past the first occurrence of the byte
50268         being searched.
50269         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50270         * tests/unistr/test-u16-strchr.c (main): New function.
50271         * tests/unistr/test-u32-strchr.c (main): New function.
50273 2010-07-31  Bruno Haible  <bruno@clisp.org>
50275         posix-modules: Ignore backup files of documentation files.
50276         * posix-modules: grep only through files named *.texi.
50278 2010-07-31  Bruno Haible  <bruno@clisp.org>
50280         symlinkat: Fix documentation.
50281         * doc/posix-functions/readlinkat.texi: Fix module name.
50283 2010-07-31  Bruno Haible  <bruno@clisp.org>
50285         fchownat: Replace also when chown has the trailing slash bug.
50286         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50287         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50288         introduced on 2010-04-10.
50289         Reported by Rainer Tammer.
50291 2010-07-31  Bruno Haible  <bruno@clisp.org>
50293         linkat: Work around AIX 7.1 bug.
50294         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50295         whether linkat handles trailing slash correctly. If not, replace linkat
50296         and define LINKAT_TRAILING_SLASH_BUG.
50297         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50298         check whether (fd1,file1) points to a directory if file1 or file2 ends
50299         in a slash. Code taken from lib/link.c.
50300         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50301         Reported by Rainer Tammer.
50303 2010-07-31  Bruno Haible  <bruno@clisp.org>
50305         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50306         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50307         This disables an xlc optimization that was causing wrong test results.
50308         Reported by Rainer Tammer.
50310 2010-07-31  Bruno Haible  <bruno@clisp.org>
50312         iconv: Work around AIX 6.1..7.1 bug.
50313         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50314         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50315         cross-compiling, guess no on all versions of AIX.
50316         Reported by Rainer Tammer.
50318 2010-07-31  Bruno Haible  <bruno@clisp.org>
50320         readlink: Relax test a bit.
50321         * tests/test-readlink.h (test_readlink): Allow different errno value
50322         when readlink is called with a file name that ends in / and refers to
50323         a file.
50324         Suggested by Eric Blake.
50325         Reported by Rainer Tammer.
50327 2010-07-31  Bruno Haible  <bruno@clisp.org>
50329         copysign: Does not require -lm on glibc systems.
50330         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50331         gl_COMMON_DOUBLE_MATHFUNC.
50332         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50334 2010-07-31  Bruno Haible  <bruno@clisp.org>
50336         duplocale: Work around AIX 7.1 bug.
50337         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50338         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50339         * lib/duplocale.c (rpl_duplocale): Update comment.
50340         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50341         Reported by Rainer Tammer.
50343 2010-07-30  Bruno Haible  <bruno@clisp.org>
50345         dirfd: Avoid link error on AIX 7.1.
50346         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50347         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50348         exist, set REPLACE_DIRFD.
50349         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50350         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50351         * doc/posix-functions/dirfd.texi: Update.
50352         Reported by Rainer Tammer.
50354 2010-07-30  Eric Blake  <eblake@redhat.com>
50356         strtod: next round of AIX fixes
50357         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50358         exponent.
50359         * tests/test-strtod.c (main): Enhance tests.
50360         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50361         Reported by Rainer Tammer.
50363         futimens: fix configure check
50364         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50365         Reported by Bruno Haible.
50367 2010-07-30  Bruno Haible  <bruno@clisp.org>
50369         getline: Update regarding AIX.
50370         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50371         Reported by Rainer Tammer.
50373 2010-07-30  Bruno Haible  <bruno@clisp.org>
50375         wcwidth: Drop replacement on AIX 7.
50376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50377         AIX 7.
50378         Reported by Rainer Tammer.
50380 2010-07-30  Bruno Haible  <bruno@clisp.org>
50382         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50384         a 'char *'.
50385         Reported by Rainer Tammer.
50387 2010-07-30  Bruno Haible  <bruno@clisp.org>
50389         unlink: Update regarding AIX.
50390         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50391         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50392         Reported by Rainer Tammer.
50394 2010-07-30  Bruno Haible  <bruno@clisp.org>
50396         symlink: Update regarding AIX.
50397         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50398         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50399         Reported by Rainer Tammer.
50401 2010-07-30  Bruno Haible  <bruno@clisp.org>
50403         strndup: Update regarding AIX.
50404         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50405         AIX 7.
50406         Reported by Rainer Tammer.
50408 2010-07-30  Bruno Haible  <bruno@clisp.org>
50410         stat: Update regarding AIX.
50411         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50412         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50413         Reported by Rainer Tammer.
50415 2010-07-30  Bruno Haible  <bruno@clisp.org>
50417         truncl: Fix autoconf test.
50418         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50419         whether truncl works.
50420         Reported by Rainer Tammer.
50422 2010-07-30  Bruno Haible  <bruno@clisp.org>
50424         round: Update regarding AIX.
50425         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50426         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50427         Reported by Rainer Tammer.
50429 2010-07-30  Bruno Haible  <bruno@clisp.org>
50431         rename: Update regarding AIX.
50432         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50433         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50434         Reported by Rainer Tammer.
50436 2010-07-30  Bruno Haible  <bruno@clisp.org>
50438         printf.m4: Update regarding AIX.
50439         * m4/printf.m4: Update comments regarding AIX.
50440         Reported by Rainer Tammer.
50442 2010-07-30  Bruno Haible  <bruno@clisp.org>
50444         iconv: Update regarding AIX.
50445         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50446         AIX 7.
50447         Reported by Rainer Tammer.
50449 2010-07-30  Bruno Haible  <bruno@clisp.org>
50451         getopt: Update regarding AIX.
50452         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50453         no on AIX.
50454         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50455         Reported by Rainer Tammer.
50457 2010-07-30  Bruno Haible  <bruno@clisp.org>
50459         ldexpl; Update regarding AIX.
50460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50461         on AIX 7.
50462         Reported by Rainer Tammer.
50464 2010-07-30  Bruno Haible  <bruno@clisp.org>
50466         frexpl: Update regarding AIX.
50467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50468         on AIX 7.
50469         Reported by Rainer Tammer.
50471 2010-07-30  Bruno Haible  <bruno@clisp.org>
50473         open, fopen: Update regarding AIX.
50474         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50475         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50476         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50477         * doc/posix-functions/fopen.texi: Likewise.
50478         Reported by Rainer Tammer.
50480 2010-07-30  Bruno Haible  <bruno@clisp.org>
50482         chown: Update doc regarding AIX.
50483         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50484         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50485         Reported by Rainer Tammer.
50487 2010-07-30  Eric Blake  <eblake@redhat.com>
50489         strtod: fix bug in replacement function on AIX
50490         * lib/strtod.c (strtod): Special case broken "0x" parse in
50491         underlying strtod.
50492         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50493         * doc/posix-functions/strtod.texi (strtod): Likewise.
50494         Reported by Rainer Tammer.
50496 2010-07-30  Bruno Haible  <bruno@clisp.org>
50498         mbrlen: Fix cross-compilation guess for AIX.
50499         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50500         guess. Leftover from 2008-12-22.
50502 2010-07-30  Bruno Haible  <bruno@clisp.org>
50504         mbrtowc: Fix cross-compilation guess for AIX.
50505         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50506         guess. Leftover from 2008-12-21.
50508 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50510         init.sh: work around trap limitation of some shells
50511         * tests/init.sh (setup_): Move exit trap outside of shell function.
50513 2010-07-29  Eric Blake  <eblake@redhat.com>
50515         strtod: aid debugging
50516         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50517         understanding why strtod is rejected.
50519 2010-07-28  Bruno Haible  <bruno@clisp.org>
50521         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50522         * lib/unistr/u8-chr.c: Include <string.h>.
50523         * tests/unistr/test-u8-chr.c: Likewise.
50524         * tests/unistr/test-u16-chr.c: Likewise.
50525         * tests/unistr/test-u32-chr.c: Likewise.
50526         * tests/unistr/test-u8-strchr.c: Likewise.
50527         * tests/unistr/test-u16-strchr.c: Likewise.
50528         * tests/unistr/test-u32-strchr.c: Likewise.
50529         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50530         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50531         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50532         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50534 2010-07-28  Bruno Haible  <bruno@clisp.org>
50536         Use spaces for indentation, not tabs.
50537         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50539 2010-07-27  Bruno Haible  <bruno@clisp.org>
50541         mbspcasecmp: Fix function specification.
50542         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50543         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50544         Reported by Eric Blake <eblake@redhat.com>.
50546 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50548         timespec: use cast and not conditional, as truncation isn't possible
50549         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50550         instead of a conditional.  Comment about the situation in more detail.
50551         This undoes most of the 2009-10-29 patch.
50553 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50555         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50556         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50557         * lib/unistr/u8-strchr.c: Likewise.
50558         * modules/unistr/u8-chr: Depend on memchr.
50560         unistr/u*-strchr: add tests
50561         * modules/unistr/u8-strchr-tests: New file.
50562         * modules/unistr/u16-strchr-tests: New file.
50563         * modules/unistr/u32-strchr-tests: New file.
50564         * tests/unistr/test-strchr.h: New file.
50565         * tests/unistr/test-u8-strchr.c: New file.
50566         * tests/unistr/test-u16-strchr.c: New file.
50567         * tests/unistr/test-u32-strchr.c: New file.
50569         unistr/u*-chr: test multibyte sequences more
50570         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50571         test vector.
50572         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50573         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50574         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50576         unistr/u*-chr: test multibyte sequences
50577         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50579         unistr/u*-chr: prepare for multibyte tests
50580         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50581         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50582         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50583         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50584         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50585         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50587 2010-07-18  Bruno Haible  <bruno@clisp.org>
50589         unistr/u8-strchr: Optimize non-ASCII argument case.
50590         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50591         because the first byte often matches anyway.
50592         Reported by Pádraig Brady <P@draigbrady.com>.
50594 2010-07-15  Karl Berry  <karl@gnu.org>
50596         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50598 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50600         getcwd: on Solaris, work better if ancestors are inaccessible
50601         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50602         buffer and size, try again with a large buffer.  This works better
50603         on Solaris, since its getcwd succeeds even if the path to the root
50604         is inaccessible, and this is helpful in common cases such as .zfs
50605         hidden directories.  Problem reported by J Chapman Flack in
50606         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50607         Use system getcwd if it's declared, not merely if it's partly
50608         working; use the partly-working test only to avoid needless effort
50609         if the system getcwd fails.
50610         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50611         comment that was already obsolete and is now even more obsolete.
50612         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50613         now might call strdup.
50615 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50617         pthread: Add enough so that coreutils/src/sort.c compiles.
50618         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50619         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50620         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50621         Include <sys/types.h>, in case it defines pthread_t.
50622         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50623         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50624         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50625         (pthread_rwlockattr_t, pthread_spinlock_t):
50626         New typedefs, if HAVE_PTHREAD_T is not defined.
50627         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50628         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50629         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50630         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50631         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50632         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50633         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50634         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50635         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50636         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50637         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50638         New macros.
50639         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50640         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50641         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50642         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50643         (pthread_spin_unlock): New dummy functions.
50644         (pthread_create): Return EAGAIN; don't set errno.
50645         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50646         require AC_C_INLINE.
50647         * modules/pthread (Depends-on): Add sched, time.
50648         (pthread.h): Use AM_V_GEN.
50650 2010-07-13  Bruno Haible  <bruno@clisp.org>
50652         striconveh: Don't malloc memory if the result buffer is sufficient.
50653         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50654         buffer if its size is sufficient.
50655         Reported by Ludovic Courtès <ludo@gnu.org>.
50657 2010-07-13  Bruno Haible  <bruno@clisp.org>
50659         strtod: Add safety check.
50660         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50662 2010-07-12  Bruno Haible  <bruno@clisp.org>
50664         Unify tests that set gl_cv_func_ldexpl_no_libm.
50665         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50666         gl_FUNC_LDEXPL.
50667         (gl_FUNC_LDEXPL): Invoke it.
50668         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50670 2010-07-12  Bruno Haible  <bruno@clisp.org>
50672         Unify tests that set gl_cv_func_ldexp_no_libm.
50673         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50674         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50675         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50676         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50677         * modules/strtod (Files): Add m4/ldexp.m4.
50679 2010-07-12  Bruno Haible  <bruno@clisp.org>
50681         Unify tests that set gl_cv_func_frexpl_no_libm.
50682         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50683         gl_FUNC_FREXPL_NO_LIBM.
50684         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50687 2010-07-12  Bruno Haible  <bruno@clisp.org>
50689         Unify tests that set gl_cv_func_frexp_no_libm.
50690         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50691         gl_FUNC_FREXP_NO_LIBM.
50692         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50693         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50695 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50697         memcoll: clarify sizes versus lengths, document better, and tweak perf
50698         * lib/memcoll.c (strcoll_loop, memcoll0):
50699         Improve quality of descriptive comments.  Name variables
50700         consistently as to whether they are lengths (which do not include
50701         terminating null) versus sizes (which do).
50702         * lib/xmemcoll.c (xmemcoll0): Likewise.
50703         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50704         returned when s1size == 0; this is easier to compile and saves
50705         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50707 2010-07-12  Bruno Haible  <bruno@clisp.org>
50709         Tests for module '_Exit'.
50710         * modules/_Exit-tests: New file.
50711         * tests/test-_Exit.sh: New file.
50712         * tests/test-_Exit.c: New file.
50714         New module '_Exit'.
50715         * lib/stdlib.in.h (__attribute__): New macro.
50716         (_Exit): New declaration.
50717         * lib/_Exit.c: New file.
50718         * m4/_Exit.m4: New file.
50719         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50720         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50721         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50722         * modules/_Exit: New file.
50723         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50724         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50726 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50728         strtod: make it more-accurate typically, and don't require libm
50729         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50730         Include limits.h.  Don't include string.h.
50731         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50732         (locale_isspace): New function, so that no casts are needed to
50733         check whether *s is a space.
50734         (ldexp): Provide an unused dummy if not available.
50735         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50736         (strtod): Use them.  This implementation prefers to use the
50737         underlying strtod if available, falling back on our own code
50738         only to fix known bugs.  This is more likely to produce an
50739         accurate result.  Also, it avoids the use of libm functions.
50740         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50741         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50742         was absent, but it caused a test failure with coreutils.
50743         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50744         with libm.
50745         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50746         * modules/strtod-tests (Makefile.am): Likewise.
50748 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50749             Bruno Haible  <bruno@clisp.org>
50751         unistr/u8-strchr: Optimize ASCII argument case.
50752         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50754 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50756         (x)memcoll: minor tweaks
50757         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50758         is after the type that it qualifies.
50759         (memcoll0): Likewise.
50760         * lib/memcoll.h (memcoll0): Likewise.
50761         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50762         * lib/xmemcoll.h (xmemcoll0): Likewise.
50763         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50764         differs from memcoll in that the NUL byte is part of the argument.
50765         Omit the abort-checks, as performance is a real issue here.  Plus,
50766         the checks were wrong anyway (an off-by-one error).  Omit local
50767         variable 'diff', as it's a bit clearer that way.
50768         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50769         no longer needed.
50771 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50773         (x)memcoll: speedup when input is known to be NUL delimited
50774         * lib/memcoll.c: Include stdlib.
50775         (memcoll0): New function.
50776         (strcoll_loop): New function, refactored for use in both memcoll
50777         and memcoll0.
50778         * lib/memcoll.h (memcoll0): Add prototype.
50779         * lib/xmemcoll.c (xmemcoll0): New function.
50780         (collate_error): New function, refactored for use in both xmemcoll
50781         and xmemcoll0.
50782         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50783         * m4/memcoll.m4: add inline invocation.
50785 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50787         * build-aux/bootstrap: Remove any local translations
50788         from the translation project synchronization directory,
50789         so that local only translations are not distributed.
50791 2010-07-04  Bruno Haible  <bruno@clisp.org>
50793         fsusage: Clarify which code applies to which platforms.
50794         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50795         platform.
50796         * lib/fsusage.c (get_fs_usage): Likewise.
50798 2010-07-04  Bruno Haible  <bruno@clisp.org>
50800         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50801         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50802         Reported by Martin Lambers <marlam@marlam.de>.
50804 2010-07-04  Jim Meyering  <meyering@redhat.com>
50806         hash: once again explicitly disallow insertion of NULL
50807         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50808         inserting a NULL pointer cannot work with these functions.
50809         Add a comment with details.
50810         This reverts part of the 2010-07-01 commit, 5bef1a35
50811         "hash: extend module to deal with non-pointer keys".
50813 2010-07-01  Bruno Haible  <bruno@clisp.org>
50815         stdbool: Update doc.
50816         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50817         Info from Christian Weisgerber <naddy@mips.inka.de>.
50819 2010-07-01  Jim Meyering  <meyering@redhat.com>
50821         hash: extend module to deal with non-pointer keys
50822         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50823         but that allows insertion of non-pointer entries.
50824         Do not disallow an ENTRY value of NULL.
50825         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50826         * lib/hash.h (hash_insert0): Declare.
50828 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50830         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50831         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50832         not present (i.e. with autoconf 2.59 and when using gettextize, not
50833         gnulib), require AC_GNU_SOURCE instead.
50835 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50837         idpriv-drop: Fix tests.
50838         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50839         not to the test-idpriv-droptemp program.
50841 2010-06-29  Bruno Haible  <bruno@clisp.org>
50843         string: Fix syntax error with g++ 2.96.
50844         * lib/string.in.h (__pure__): Remove definition.
50845         (_GL_ATTRIBUTE_PURE): New macro.
50846         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50847         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50848         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50850 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50852         unitypes: Fix bug introduced on 2010-05-18.
50853         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50855 2010-06-22  Eric Blake  <eblake@redhat.com>
50857         memmem: slight optimization
50858         * lib/str-two-way.h (critical_factorization): Update comments.
50859         Reduce work during factorization phase.
50860         Reported by Carlos Bueno <carlos@bueno.org>.
50862 2010-06-21  Bruno Haible  <bruno@clisp.org>
50864         Fix HAVE_CALLOC_POSIX misnomer.
50865         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50866         !HAVE_CALLOC_POSIX.
50867         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50868         HAVE_CALLOC_POSIX.
50869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50870         instead of HAVE_CALLOC_POSIX.
50871         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50872         HAVE_CALLOC_POSIX.
50874         Use modern idiom for calloc() replacement.
50875         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50876         AC_FUNC_CALLOC.
50877         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50878         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50879         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50880         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50881         (gl_REPLACE_CALLOC): New macro.
50883 2010-06-21  Bruno Haible  <bruno@clisp.org>
50885         Fix HAVE_REALLOC_POSIX misnomer.
50886         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50887         !HAVE_REALLOC_POSIX.
50888         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50889         HAVE_REALLOC_POSIX.
50890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50891         instead of HAVE_REALLOC_POSIX.
50892         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50893         HAVE_REALLOC_POSIX.
50895         Use modern idiom for realloc() replacement.
50896         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50897         AC_FUNC_REALLOC.
50898         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50899         Autoconf's AC_FUNC_REALLOC.
50900         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50901         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50902         (gl_REPLACE_REALLOC): New macro.
50903         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50905 2010-06-21  Bruno Haible  <bruno@clisp.org>
50907         Fix HAVE_MALLOC_POSIX misnomer.
50908         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50909         !HAVE_MALLOC_POSIX.
50910         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50911         HAVE_MALLOC_POSIX.
50912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50913         instead of HAVE_MALLOC_POSIX.
50914         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50915         HAVE_MALLOC_POSIX.
50917         Use modern idiom for malloc() replacement.
50918         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50919         AC_FUNC_MALLOC.
50920         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50921         Autoconf's AC_FUNC_MALLOC.
50922         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50923         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50924         (gl_REPLACE_MALLOC): New macro.
50925         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50927 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50929         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50930         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50931         This macro takes 3 arguments, not 4.
50933 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50935         ipv6: fix detection under mingw
50936         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50937         in6_addr.
50939 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50941         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50942         that strtod() works when cross-compiling to a glibc version known
50943         to work.
50945 2010-06-15  Bruno Haible  <bruno@clisp.org>
50947         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50949 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50951         select: Correct timeout.
50952         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50954 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50956         git-version-gen: init shell var to avoid env var influence
50957         * build-aux/git-version-gen (v): Init shell var to empty.
50959 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50961         priv-set: Don't assume that priv.h exists merely because getppriv does.
50962         See Jan Andersen's bug report about AIX 5L in
50963         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50964         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50965         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50966         * lib/priv-set.h: Likewise.
50967         * tests/test-priv-set.c: Likewise.
50969 2010-06-13  Bruno Haible  <bruno@clisp.org>
50971         relocatable: Make it easier to test whether to install wrappers.
50972         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50973         RELOCATABLE_VIA_WRAPPER.
50975 2010-06-13  Bruno Haible  <bruno@clisp.org>
50977         gnulib-tool: Display specified modules and dependencies differently.
50978         * gnulib-tool (func_show_module_list): New function.
50979         (func_import, func_create_testdir): Invoke it.
50980         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50982 2010-06-13  Bruno Haible  <bruno@clisp.org>
50984         gnulib-tool: Align code of func_import and func_create_testdir.
50985         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50986         specified_modules.
50988 2010-06-12  Jim Meyering  <meyering@redhat.com>
50990         test-inttostr: avoid spurious failure on Solaris 9
50991         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50992         to accept "%ju".  Reported by Bruno Haible.
50994 2010-06-11  Jim Meyering  <meyering@redhat.com>
50996         test-sys_socket: mark variables as used more readably
50997         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50998         as "used" explicitly via (void) statement casts.  This is more
50999         readable than using them in an artificial return expression.
51000         Suggestion from Bruno Haible.
51002 2010-06-11  Bruno Haible  <bruno@clisp.org>
51004         Avoid some more warnings from "gcc -Wwrite-strings".
51005         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
51006         to 'const char *'.
51007         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
51008         * tests/test-c-strcasestr.c (main): Likewise.
51009         * tests/test-mbscasestr1.c (main): Likewise.
51010         * tests/test-mbscasestr2.c (main): Likewise.
51011         * tests/test-memmem.c (main): Likewise.
51012         * tests/test-strstr.c (main): Likewise.
51013         * tests/test-strcasestr.c (main): Likewise.
51015 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51017         init.sh: change framework_failure_ to fail with status 99, not 1
51018         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
51019         automake's parallel-tests rule that this is an unexpected failure,
51020         even if the test is listed in XFAIL_TESTS.
51022 2010-06-11  Jim Meyering  <meyering@redhat.com>
51024         test-inttostr: avoid warnings about 4-6KB literal strings
51025         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
51026         Include "macros.h", for its definition of ASSERT.
51027         (CK): s/assert/ASSERT/
51028         * modules/inttostr-tests (Files): Add macros.h.
51030         init.sh: don't use $ME_ or skip_ before they are defined
51031         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
51032         their first uses.  Also hoist their companions: warn_, fail_,
51033         framework_failure_, $stderr_fileno.  Prompted by a patch from
51034         Stefano Lattarini.
51036         test-sys_socket: avoid set-but-not-used warnings from gcc
51037         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
51038         avoid warning about set-but-not-used variables.
51040         test-xvasprintf: avoid 'const' discard warnings
51041         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
51042         "const" when assigning from literal strings.
51043         (test_xasprintf): Add "void" in function argument list to placate
51044         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
51046         tests: avoid compilation warnings in argmatch and exclude tests...
51047         in packages that define ARGMATCH_DIE_DECL, like coreutils.
51048         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
51049         Since it always exits, declare with the "noreturn" attribute.
51050         * tests/test-argmatch.c: Likewise.
51052         tests: avoid 'const' discard warnings in mbsstr tests
51053         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
51054         * tests/test-mbsstr2.c (main): Likewise.
51056         test-verify: avoid warning from gcc's -Wmissing-declarations
51057         * tests/test-verify.c (function): Declare to be static.
51059         test-inttostr.c: include <string.h> for use of strcmp
51060         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
51062         test-linkat: avoid failed assertion on "other" architectures
51063         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
51064         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
51065         sparc: https://bugs.launchpad.net/bugs/591968
51067 2010-06-11  Jim Meyering  <meyering@redhat.com>
51069         printf.m4: avoid autoconf's "Expanded Before Required" warning
51070         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
51071         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
51072         autoconf warning.
51074 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
51076         Replacement header templates are now named with ".in", not "_".
51077         * doc/gnulib-intro.texi: Correct.
51079 2010-06-10  Jim Meyering  <meyering@redhat.com>
51081         inttostr-tests: depend on snprintf, not snprintf-posix
51082         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
51083         snprintf-posix, to avoid this aclocal failure:
51084           missing file gnulib-tests/vasnprintf.c
51085           configure.ac:45: error: expected source file, required through \
51086           AC_LIBSOURCES, not found
51088 2010-06-10  Jim Meyering  <meyering@redhat.com>
51090         inttostr: add a new function, inttostr, and tests
51091         The namesake function was not available.  The existence of the
51092         template file, inttostr.c makes its addition nontrivial.
51093         * lib/anytostr.c: Rename from inttostr.c.
51094         (anytostr): Rename from inttostr.
51095         * lib/inttostr.c: New file.
51096         * modules/inttostr (Files): Add anytostr.c.
51097         (Makefile.am): Set lib_SOURCES instead of ...
51098         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
51099         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
51100         * lib/offtostr.c: Likewise.
51101         * lib/uinttostr.c: Likewise.
51102         * lib/umaxtostr.c: Likewise.
51103         * modules/inttostr-tests: New file.
51104         * tests/test-inttostr.c: New file.  Test these functions.
51106 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
51107             Bruno Haible  <bruno@clisp.org>
51109         Add "Extending Gnulib" chapter to manual.
51110         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
51111         chapter.
51112         (Extending Gnulib): New chapter.
51113         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
51114         chapter.
51116 2010-06-09  Bruno Haible  <bruno@clisp.org>
51118         Avoid relocwrapper link errors due to gnulib replacement functions.
51119         * lib/areadlink.c: Use the system's malloc, realloc functions.
51120         (areadlink): Set errno to ENOMEM explicitly.
51121         * modules/areadlink (Depends-on): Remove malloc-posix.
51122         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51124 2010-06-09  Bruno Haible  <bruno@clisp.org>
51126         Avoid relocwrapper link errors due to gnulib replacement functions.
51127         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51128         * lib/malloca.c: Likewise.
51129         * lib/relocatable.c: Likewise.
51130         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51131         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51132         * lib/setenv.c: Use the system's malloc, realloc functions.
51133         * lib/strerror.c: Use the system's sprintf function.
51134         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51136 2010-06-04  Bruno Haible  <bruno@clisp.org>
51138         Prefer documented low-level autoconf macro names.
51139         * m4/lib-link.m4: Use m4_translit instead of translit.
51140         * m4/environ.m4: Likewise.
51141         * m4/mathfunc.m4: Likewise.
51142         * m4/onceonly.m4: Likewise.
51143         * m4/stdint.m4: Likewise.
51144         Suggested by Eric Blake.
51146 2010-06-04  Martin Lambers  <marlam@marlam.de>
51147             Bruno Haible  <bruno@clisp.org>
51149         havelib: Allow library names with '+' characters.
51150         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51151         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51153 2010-06-09  Bruno Haible  <bruno@clisp.org>
51155         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51156         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51157         realloc failed.
51159 2010-06-08  Peter Simons  <simons@cryp.to>
51161         maint.mk: make the news-check rule more configurable
51162         * top/maint.mk (news-check-lines-spec): New variable.
51163         (news-check): Use "sed -n 1,10p" in place of "head".
51165 2010-06-07  Jim Meyering  <meyering@redhat.com>
51167         do-release-commit-and-tag: fix typo in --help
51168         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51170         regex: avoid new dead-code warning with gcc-4.6.0
51171         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51172         if-block containing a while-loop.  It's been unused for at least
51173         5 years.
51175 2010-06-05  Bruno Haible  <bruno@clisp.org>
51177         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51178         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51180 2010-06-04  Bruno Haible  <bruno@clisp.org>
51182         Update to GNU gettext 0.18.1.
51183         * modules/gettext (configure.ac): Require gettext infrastructure from
51184         version 0.18.1.
51186 2010-06-03  Bruno Haible  <bruno@clisp.org>
51188         Don't use AC_LIBOBJ with file names in subdirectories.
51189         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51190         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51191         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51192         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51193         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51194         gl_LIBUNISTRING_LIBSOURCE.
51195         (Makefile.am): Augment lib_SOURCES here, conditionally.
51196         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51198 2010-06-03  Bruno Haible  <bruno@clisp.org>
51200         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51201         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51202         expansion does not end with a newline.
51203         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51204         unnecessary newline.
51206 2010-06-03  Bruno Haible  <bruno@clisp.org>
51208         Reduce dependencies.
51209         * tests/test-quotearg.h: New file, extracted from
51210         tests/test-quotearg.c.
51211         * tests/test-quotearg-simple.c: New file, extracted from
51212         tests/test-quotearg.c.
51213         * tests/test-quotearg.c: Don't include <ctype.h>.
51214         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51215         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51216         use_quote_double_quotes, use_quotearg_colon): Moved to
51217         tests/test-quotearg.h.
51218         (results_g, flag_results, custom_quotes, custom_results): Moved
51219         to tests/test-quotearg-simple.c.
51220         (main): Moved the part that does not depend on gettext to
51221         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51222         performed.
51223         * modules/quotearg-simple: New file.
51224         * modules/quotearg-simple-tests: New file.
51225         * modules/quotearg (Depends-on): Add quotearg-simple.
51226         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51227         (Files): Add tests/test-quotearg.h.
51228         Reported by Paolo Bonzini.
51230 2010-06-03  Bruno Haible  <bruno@clisp.org>
51232         Reduce dependencies.
51233         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51235 2010-06-03  Bruno Haible  <bruno@clisp.org>
51237         time: Undefine more broken macros.
51238         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51239         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51240         Reported by Eric Blake.
51242 2010-06-03  Bruno Haible  <bruno@clisp.org>
51244         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51245         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51246         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51247         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51248         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51249         Reported by Ludovic Courtès <ludo@gnu.org>.
51251 2010-06-02  Eric Blake  <eblake@redhat.com>
51253         time: work with mingw + pthreads-win32 library
51254         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51255         if timespec is defined only in pthread.h.
51256         * modules/time (Makefile.am): Substitute it.
51257         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51258         <pthread.h>, when needed.
51259         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51260         from the library.
51262 2010-05-31  Bruno Haible  <bruno@clisp.org>
51264         Avoid expanding two macros in the wrong order.
51265         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51266         gl_LIBUNISTRING if it is defined.
51267         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51268         autoconf >= 2.64.
51269         Reported by Ludovic Courtès <ludo@gnu.org>.
51271 2010-05-27  Jim Meyering  <meyering@redhat.com>
51273         maint.mk: also prohibit "#undef" of always-defined symbols
51274         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51275         Allow more than one space before the symbol name.
51276         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51277         the regexp uses alternation.
51279 2010-05-26  Eric Blake  <eblake@redhat.com>
51281         maint.mk: avoid echo -e
51282         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51283         Convert all uses of echo -* to printf.
51284         Reported by Matthias Bolte.
51286 2010-05-25  Bruno Haible  <bruno@clisp.org>
51288         Update to GNU gettext 0.18, part 2.
51289         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51290         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51292 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51294         Add missing include in test-pwrite.c.
51295         * tests/test-pwrite.c: Include string.h, for strcmp.
51297 2010-05-24  Bruno Haible  <bruno@clisp.org>
51299         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51301 2010-05-24  Bruno Haible  <bruno@clisp.org>
51303         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51304         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51305         iconveh_error argument.
51306         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51307         U_STRCONV_TO_LOCALE.
51308         * lib/unistr/u16-strcoll.c: Likewise.
51309         * lib/unistr/u32-strcoll.c: Likewise.
51310         * modules/unistr/u8-strcoll (Depends-on): Add
51311         uniconv/u8-strconv-to-enc, localcharset. Remove
51312         uniconv/u8-strconv-to-locale.
51313         (configure.ac): Bump version number.
51314         * modules/unistr/u16-strcoll (Depends-on): Add
51315         uniconv/u16-strconv-to-enc, localcharset. Remove
51316         uniconv/u16-strconv-to-locale.
51317         (configure.ac): Bump version number.
51318         * modules/unistr/u32-strcoll (Depends-on): Add
51319         uniconv/u32-strconv-to-enc, localcharset. Remove
51320         uniconv/u32-strconv-to-locale.
51321         (configure.ac): Bump version number.
51323 2010-05-24  Bruno Haible  <bruno@clisp.org>
51325         Avoid a test failure on NetBSD 5.0.
51326         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51327         an iconv() bug.
51329 2010-05-24  Bruno Haible  <bruno@clisp.org>
51331         Adjust #include directive style.
51332         * modules/regex (Includes): Recommend to write <regex.h>.
51334 2010-05-24  Bruno Haible  <bruno@clisp.org>
51336         regex: Don't require alloca.
51337         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51338         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51339         only inside if (0).
51341 2010-05-23  Jim Meyering  <meyering@redhat.com>
51343         test-renameat.c: include <sys/stat.h>
51344         * tests/test-renameat.c: Include <sys/stat.h>; required for
51345         definition of S_IS* macros.
51347 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51349         Update maintainer documentation for 'relocatable-prog' module.
51350         * doc/relocatable-maint.texi: Update.
51351         Comments by Bruno Haible.
51353 2010-05-23  Bruno Haible  <bruno@clisp.org>
51355         git-merge-changelog: Enable --split-merged-entry by default.
51356         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51357         (usage): Don't mention this option any more.
51358         Reported by Ralf Wildenhues.
51360 2010-05-23  Jim Meyering  <meyering@redhat.com>
51362         test-pwrite: do not leave behind a test file named "out"
51363         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51364         The trivial-looking use of init.sh is really necessary.
51365         It ensures that the temporary file, "out", is created in
51366         a temporary directory, and removed upon termination.
51367         * tests/test-pwrite.sh: Re-add file.
51368         * modules/pwrite-tests: Reference it.
51370 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51372         Fix output redirection buglet in init.sh.
51373         * tests/init.sh: Fix redirection of stderr.
51375 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51377         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51379 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51381         * modules/valgrind-tests: New file.
51382         * m4/valgrind-tests.m4: New file.
51383         * doc/valgrind-tests.texi: New file.
51384         * doc/gnulib.texi (Running self-tests under valgrind): New
51385         section.
51387 2010-05-19  Bruno Haible  <bruno@clisp.org>
51389         Clean up dead code in recent commit.
51390         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51391         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51392         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51393         Suggested by Paolo Bonzini.
51395 2010-05-19  Bruno Haible  <bruno@clisp.org>
51397         Avoid valgrind error reports from libunistring.
51398         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51399         * modules/libunistring (Files): Add it.
51400         * modules/libunistring-optional (Files): Likewise.
51402 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51403             Bruno Haible  <bruno@clisp.org>
51405         New module 'libunistring-optional'.
51406         * modules/libunistring-optional: New file.
51407         * m4/libunistring-base.m4: New file.
51408         * m4/libunistring-optional.m4: New file.
51409         * lib/unicase.in.h: Renamed from lib/unicase.h.
51410         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51411         * lib/unictype.in.h: Renamed from lib/unictype.h.
51412         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51413         * lib/uniname.in.h: Renamed from lib/uniname.h.
51414         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51415         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51416         * lib/unistr.in.h: Renamed from lib/unistr.h.
51417         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51418         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51419         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51420         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51421         gl_LIBUNISTRING. If the library was found, determine the installed
51422         version and set LIBUNISTRING_VERSION.
51423         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51424         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51425         handle a configuration option --with-included-libunistring.
51426         * modules/libunistring (Files): Add m4/absolute-header.m4.
51427         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51428         Add m4/libunistring-base.m4.
51429         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51430         (Makefile.am): Build unicase.h from unicase.in.h.
51431         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51432         Add m4/libunistring-base.m4.
51433         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51434         (Makefile.am): Build uniconv.h from uniconv.in.h.
51435         * modules/unictype/base (Files): Use unictype.in.h instead of
51436         unictype.h. Add m4/libunistring-base.m4.
51437         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51438         (Makefile.am): Build unictype.h from unictype.in.h.
51439         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51440         Add m4/libunistring-base.m4.
51441         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51442         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51443         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51444         Add m4/libunistring-base.m4.
51445         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51446         (Makefile.am): Build uniname.h from uniname.in.h.
51447         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51448         Add m4/libunistring-base.m4.
51449         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51450         (Makefile.am): Build uninorm.h from uninorm.in.h.
51451         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51452         unistdio.h. Add m4/libunistring-base.m4.
51453         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51454         (Makefile.am): Build unistdio.h from unistdio.in.h.
51455         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51456         Add m4/libunistring-base.m4.
51457         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51458         (Makefile.am): Build unistr.h from unistr.in.h.
51459         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51460         Add m4/libunistring-base.m4.
51461         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51462         (Makefile.am): Build unitypes.h from unitypes.in.h.
51463         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51464         Add m4/libunistring-base.m4.
51465         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51466         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51467         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51468         uniwidth.h. Add m4/libunistring-base.m4.
51469         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51470         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51471         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51472         instead of augmenting lib_SOURCES.
51473         * modules/unicase/empty-suffix-context: Likewise.
51474         * modules/unicase/locale-language: Likewise.
51475         * modules/unicase/tolower: Likewise.
51476         * modules/unicase/totitle: Likewise.
51477         * modules/unicase/toupper: Likewise.
51478         * modules/unicase/u8-casecmp: Likewise.
51479         * modules/unicase/u8-casecoll: Likewise.
51480         * modules/unicase/u8-casefold: Likewise.
51481         * modules/unicase/u8-casexfrm: Likewise.
51482         * modules/unicase/u8-ct-casefold: Likewise.
51483         * modules/unicase/u8-ct-tolower: Likewise.
51484         * modules/unicase/u8-ct-totitle: Likewise.
51485         * modules/unicase/u8-ct-toupper: Likewise.
51486         * modules/unicase/u8-is-cased: Likewise.
51487         * modules/unicase/u8-is-casefolded: Likewise.
51488         * modules/unicase/u8-is-lowercase: Likewise.
51489         * modules/unicase/u8-is-titlecase: Likewise.
51490         * modules/unicase/u8-is-uppercase: Likewise.
51491         * modules/unicase/u8-prefix-context: Likewise.
51492         * modules/unicase/u8-suffix-context: Likewise.
51493         * modules/unicase/u8-tolower: Likewise.
51494         * modules/unicase/u8-totitle: Likewise.
51495         * modules/unicase/u8-toupper: Likewise.
51496         * modules/unicase/u16-casecmp: Likewise.
51497         * modules/unicase/u16-casecoll: Likewise.
51498         * modules/unicase/u16-casefold: Likewise.
51499         * modules/unicase/u16-casexfrm: Likewise.
51500         * modules/unicase/u16-ct-casefold: Likewise.
51501         * modules/unicase/u16-ct-tolower: Likewise.
51502         * modules/unicase/u16-ct-totitle: Likewise.
51503         * modules/unicase/u16-ct-toupper: Likewise.
51504         * modules/unicase/u16-is-cased: Likewise.
51505         * modules/unicase/u16-is-casefolded: Likewise.
51506         * modules/unicase/u16-is-lowercase: Likewise.
51507         * modules/unicase/u16-is-titlecase: Likewise.
51508         * modules/unicase/u16-is-uppercase: Likewise.
51509         * modules/unicase/u16-prefix-context: Likewise.
51510         * modules/unicase/u16-suffix-context: Likewise.
51511         * modules/unicase/u16-tolower: Likewise.
51512         * modules/unicase/u16-totitle: Likewise.
51513         * modules/unicase/u16-toupper: Likewise.
51514         * modules/unicase/u32-casecmp: Likewise.
51515         * modules/unicase/u32-casecoll: Likewise.
51516         * modules/unicase/u32-casefold: Likewise.
51517         * modules/unicase/u32-casexfrm: Likewise.
51518         * modules/unicase/u32-ct-casefold: Likewise.
51519         * modules/unicase/u32-ct-tolower: Likewise.
51520         * modules/unicase/u32-ct-totitle: Likewise.
51521         * modules/unicase/u32-ct-toupper: Likewise.
51522         * modules/unicase/u32-is-cased: Likewise.
51523         * modules/unicase/u32-is-casefolded: Likewise.
51524         * modules/unicase/u32-is-lowercase: Likewise.
51525         * modules/unicase/u32-is-titlecase: Likewise.
51526         * modules/unicase/u32-is-uppercase: Likewise.
51527         * modules/unicase/u32-prefix-context: Likewise.
51528         * modules/unicase/u32-suffix-context: Likewise.
51529         * modules/unicase/u32-tolower: Likewise.
51530         * modules/unicase/u32-totitle: Likewise.
51531         * modules/unicase/u32-toupper: Likewise.
51532         * modules/unicase/ulc-casecmp: Likewise.
51533         * modules/unicase/ulc-casecoll: Likewise.
51534         * modules/unicase/ulc-casexfrm: Likewise.
51535         * modules/uniconv/u8-conv-from-enc: Likewise.
51536         * modules/uniconv/u8-conv-to-enc: Likewise.
51537         * modules/uniconv/u8-strconv-from-enc: Likewise.
51538         * modules/uniconv/u8-strconv-from-locale: Likewise.
51539         * modules/uniconv/u8-strconv-to-enc: Likewise.
51540         * modules/uniconv/u8-strconv-to-locale: Likewise.
51541         * modules/uniconv/u16-conv-from-enc: Likewise.
51542         * modules/uniconv/u16-conv-to-enc: Likewise.
51543         * modules/uniconv/u16-strconv-from-enc: Likewise.
51544         * modules/uniconv/u16-strconv-from-locale: Likewise.
51545         * modules/uniconv/u16-strconv-to-enc: Likewise.
51546         * modules/uniconv/u16-strconv-to-locale: Likewise.
51547         * modules/uniconv/u32-conv-from-enc: Likewise.
51548         * modules/uniconv/u32-conv-to-enc: Likewise.
51549         * modules/uniconv/u32-strconv-from-enc: Likewise.
51550         * modules/uniconv/u32-strconv-from-locale: Likewise.
51551         * modules/uniconv/u32-strconv-to-enc: Likewise.
51552         * modules/uniconv/u32-strconv-to-locale: Likewise.
51553         * modules/unictype/bidicategory-byname: Likewise.
51554         * modules/unictype/bidicategory-name: Likewise.
51555         * modules/unictype/bidicategory-of: Likewise.
51556         * modules/unictype/bidicategory-test: Likewise.
51557         * modules/unictype/block-list: Likewise.
51558         * modules/unictype/block-test: Likewise.
51559         * modules/unictype/category-C: Likewise.
51560         * modules/unictype/category-Cc: Likewise.
51561         * modules/unictype/category-Cf: Likewise.
51562         * modules/unictype/category-Cn: Likewise.
51563         * modules/unictype/category-Co: Likewise.
51564         * modules/unictype/category-Cs: Likewise.
51565         * modules/unictype/category-L: Likewise.
51566         * modules/unictype/category-Ll: Likewise.
51567         * modules/unictype/category-Lm: Likewise.
51568         * modules/unictype/category-Lo: Likewise.
51569         * modules/unictype/category-Lt: Likewise.
51570         * modules/unictype/category-Lu: Likewise.
51571         * modules/unictype/category-M: Likewise.
51572         * modules/unictype/category-Mc: Likewise.
51573         * modules/unictype/category-Me: Likewise.
51574         * modules/unictype/category-Mn: Likewise.
51575         * modules/unictype/category-N: Likewise.
51576         * modules/unictype/category-Nd: Likewise.
51577         * modules/unictype/category-Nl: Likewise.
51578         * modules/unictype/category-No: Likewise.
51579         * modules/unictype/category-P: Likewise.
51580         * modules/unictype/category-Pc: Likewise.
51581         * modules/unictype/category-Pd: Likewise.
51582         * modules/unictype/category-Pe: Likewise.
51583         * modules/unictype/category-Pf: Likewise.
51584         * modules/unictype/category-Pi: Likewise.
51585         * modules/unictype/category-Po: Likewise.
51586         * modules/unictype/category-Ps: Likewise.
51587         * modules/unictype/category-S: Likewise.
51588         * modules/unictype/category-Sc: Likewise.
51589         * modules/unictype/category-Sk: Likewise.
51590         * modules/unictype/category-Sm: Likewise.
51591         * modules/unictype/category-So: Likewise.
51592         * modules/unictype/category-Z: Likewise.
51593         * modules/unictype/category-Zl: Likewise.
51594         * modules/unictype/category-Zp: Likewise.
51595         * modules/unictype/category-Zs: Likewise.
51596         * modules/unictype/category-and: Likewise.
51597         * modules/unictype/category-and-not: Likewise.
51598         * modules/unictype/category-byname: Likewise.
51599         * modules/unictype/category-name: Likewise.
51600         * modules/unictype/category-none: Likewise.
51601         * modules/unictype/category-of: Likewise.
51602         * modules/unictype/category-or: Likewise.
51603         * modules/unictype/category-test: Likewise.
51604         * modules/unictype/combining-class: Likewise.
51605         * modules/unictype/ctype-alnum: Likewise.
51606         * modules/unictype/ctype-alpha: Likewise.
51607         * modules/unictype/ctype-blank: Likewise.
51608         * modules/unictype/ctype-cntrl: Likewise.
51609         * modules/unictype/ctype-digit: Likewise.
51610         * modules/unictype/ctype-graph: Likewise.
51611         * modules/unictype/ctype-lower: Likewise.
51612         * modules/unictype/ctype-print: Likewise.
51613         * modules/unictype/ctype-punct: Likewise.
51614         * modules/unictype/ctype-space: Likewise.
51615         * modules/unictype/ctype-upper: Likewise.
51616         * modules/unictype/ctype-xdigit: Likewise.
51617         * modules/unictype/decimal-digit: Likewise.
51618         * modules/unictype/digit: Likewise.
51619         * modules/unictype/mirror: Likewise.
51620         * modules/unictype/numeric: Likewise.
51621         * modules/unictype/property-alphabetic: Likewise.
51622         * modules/unictype/property-ascii-hex-digit: Likewise.
51623         * modules/unictype/property-bidi-arabic-digit: Likewise.
51624         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51625         * modules/unictype/property-bidi-block-separator: Likewise.
51626         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51627         * modules/unictype/property-bidi-common-separator: Likewise.
51628         * modules/unictype/property-bidi-control: Likewise.
51629         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51630         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51631         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51632         * modules/unictype/property-bidi-european-digit: Likewise.
51633         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51634         * modules/unictype/property-bidi-left-to-right: Likewise.
51635         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51636         * modules/unictype/property-bidi-other-neutral: Likewise.
51637         * modules/unictype/property-bidi-pdf: Likewise.
51638         * modules/unictype/property-bidi-segment-separator: Likewise.
51639         * modules/unictype/property-bidi-whitespace: Likewise.
51640         * modules/unictype/property-byname: Likewise.
51641         * modules/unictype/property-combining: Likewise.
51642         * modules/unictype/property-composite: Likewise.
51643         * modules/unictype/property-currency-symbol: Likewise.
51644         * modules/unictype/property-dash: Likewise.
51645         * modules/unictype/property-decimal-digit: Likewise.
51646         * modules/unictype/property-default-ignorable-code-point: Likewise.
51647         * modules/unictype/property-deprecated: Likewise.
51648         * modules/unictype/property-diacritic: Likewise.
51649         * modules/unictype/property-extender: Likewise.
51650         * modules/unictype/property-format-control: Likewise.
51651         * modules/unictype/property-grapheme-base: Likewise.
51652         * modules/unictype/property-grapheme-extend: Likewise.
51653         * modules/unictype/property-grapheme-link: Likewise.
51654         * modules/unictype/property-hex-digit: Likewise.
51655         * modules/unictype/property-hyphen: Likewise.
51656         * modules/unictype/property-id-continue: Likewise.
51657         * modules/unictype/property-id-start: Likewise.
51658         * modules/unictype/property-ideographic: Likewise.
51659         * modules/unictype/property-ids-binary-operator: Likewise.
51660         * modules/unictype/property-ids-trinary-operator: Likewise.
51661         * modules/unictype/property-ignorable-control: Likewise.
51662         * modules/unictype/property-iso-control: Likewise.
51663         * modules/unictype/property-join-control: Likewise.
51664         * modules/unictype/property-left-of-pair: Likewise.
51665         * modules/unictype/property-line-separator: Likewise.
51666         * modules/unictype/property-logical-order-exception: Likewise.
51667         * modules/unictype/property-lowercase: Likewise.
51668         * modules/unictype/property-math: Likewise.
51669         * modules/unictype/property-non-break: Likewise.
51670         * modules/unictype/property-not-a-character: Likewise.
51671         * modules/unictype/property-numeric: Likewise.
51672         * modules/unictype/property-other-alphabetic: Likewise.
51673         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51674         * modules/unictype/property-other-grapheme-extend: Likewise.
51675         * modules/unictype/property-other-id-continue: Likewise.
51676         * modules/unictype/property-other-id-start: Likewise.
51677         * modules/unictype/property-other-lowercase: Likewise.
51678         * modules/unictype/property-other-math: Likewise.
51679         * modules/unictype/property-other-uppercase: Likewise.
51680         * modules/unictype/property-paired-punctuation: Likewise.
51681         * modules/unictype/property-paragraph-separator: Likewise.
51682         * modules/unictype/property-pattern-syntax: Likewise.
51683         * modules/unictype/property-pattern-white-space: Likewise.
51684         * modules/unictype/property-private-use: Likewise.
51685         * modules/unictype/property-punctuation: Likewise.
51686         * modules/unictype/property-quotation-mark: Likewise.
51687         * modules/unictype/property-radical: Likewise.
51688         * modules/unictype/property-sentence-terminal: Likewise.
51689         * modules/unictype/property-soft-dotted: Likewise.
51690         * modules/unictype/property-space: Likewise.
51691         * modules/unictype/property-terminal-punctuation: Likewise.
51692         * modules/unictype/property-test: Likewise.
51693         * modules/unictype/property-titlecase: Likewise.
51694         * modules/unictype/property-unassigned-code-value: Likewise.
51695         * modules/unictype/property-unified-ideograph: Likewise.
51696         * modules/unictype/property-uppercase: Likewise.
51697         * modules/unictype/property-variation-selector: Likewise.
51698         * modules/unictype/property-white-space: Likewise.
51699         * modules/unictype/property-xid-continue: Likewise.
51700         * modules/unictype/property-xid-start: Likewise.
51701         * modules/unictype/property-zero-width: Likewise.
51702         * modules/unictype/scripts: Likewise.
51703         * modules/unictype/syntax-c-ident: Likewise.
51704         * modules/unictype/syntax-c-whitespace: Likewise.
51705         * modules/unictype/syntax-java-ident: Likewise.
51706         * modules/unictype/syntax-java-whitespace: Likewise.
51707         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51708         * modules/unilbrk/u8-width-linebreaks: Likewise.
51709         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51710         * modules/unilbrk/u16-width-linebreaks: Likewise.
51711         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51712         * modules/unilbrk/u32-width-linebreaks: Likewise.
51713         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51714         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51715         * modules/uniname/uniname: Likewise.
51716         * modules/uninorm/canonical-decomposition: Likewise.
51717         * modules/uninorm/composition: Likewise.
51718         * modules/uninorm/decomposing-form: Likewise.
51719         * modules/uninorm/decomposition: Likewise.
51720         * modules/uninorm/filter: Likewise.
51721         * modules/uninorm/nfc: Likewise.
51722         * modules/uninorm/nfd: Likewise.
51723         * modules/uninorm/nfkc: Likewise.
51724         * modules/uninorm/nfkd: Likewise.
51725         * modules/uninorm/u8-normalize: Likewise.
51726         * modules/uninorm/u8-normcmp: Likewise.
51727         * modules/uninorm/u8-normcoll: Likewise.
51728         * modules/uninorm/u8-normxfrm: Likewise.
51729         * modules/uninorm/u16-normalize: Likewise.
51730         * modules/uninorm/u16-normcmp: Likewise.
51731         * modules/uninorm/u16-normcoll: Likewise.
51732         * modules/uninorm/u16-normxfrm: Likewise.
51733         * modules/uninorm/u32-normalize: Likewise.
51734         * modules/uninorm/u32-normcmp: Likewise.
51735         * modules/uninorm/u32-normcoll: Likewise.
51736         * modules/uninorm/u32-normxfrm: Likewise.
51737         * modules/unistdio/u8-asnprintf: Likewise.
51738         * modules/unistdio/u8-asprintf: Likewise.
51739         * modules/unistdio/u8-snprintf: Likewise.
51740         * modules/unistdio/u8-sprintf: Likewise.
51741         * modules/unistdio/u8-u8-asnprintf: Likewise.
51742         * modules/unistdio/u8-u8-asprintf: Likewise.
51743         * modules/unistdio/u8-u8-snprintf: Likewise.
51744         * modules/unistdio/u8-u8-sprintf: Likewise.
51745         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51746         * modules/unistdio/u8-u8-vasprintf: Likewise.
51747         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51748         * modules/unistdio/u8-u8-vsprintf: Likewise.
51749         * modules/unistdio/u8-vasnprintf: Likewise.
51750         * modules/unistdio/u8-vasprintf: Likewise.
51751         * modules/unistdio/u8-vsnprintf: Likewise.
51752         * modules/unistdio/u8-vsprintf: Likewise.
51753         * modules/unistdio/u16-asnprintf: Likewise.
51754         * modules/unistdio/u16-asprintf: Likewise.
51755         * modules/unistdio/u16-snprintf: Likewise.
51756         * modules/unistdio/u16-sprintf: Likewise.
51757         * modules/unistdio/u16-u16-asnprintf: Likewise.
51758         * modules/unistdio/u16-u16-asprintf: Likewise.
51759         * modules/unistdio/u16-u16-snprintf: Likewise.
51760         * modules/unistdio/u16-u16-sprintf: Likewise.
51761         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51762         * modules/unistdio/u16-u16-vasprintf: Likewise.
51763         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51764         * modules/unistdio/u16-u16-vsprintf: Likewise.
51765         * modules/unistdio/u16-vasnprintf: Likewise.
51766         * modules/unistdio/u16-vasprintf: Likewise.
51767         * modules/unistdio/u16-vsnprintf: Likewise.
51768         * modules/unistdio/u16-vsprintf: Likewise.
51769         * modules/unistdio/u32-asnprintf: Likewise.
51770         * modules/unistdio/u32-asprintf: Likewise.
51771         * modules/unistdio/u32-snprintf: Likewise.
51772         * modules/unistdio/u32-sprintf: Likewise.
51773         * modules/unistdio/u32-u32-asnprintf: Likewise.
51774         * modules/unistdio/u32-u32-asprintf: Likewise.
51775         * modules/unistdio/u32-u32-snprintf: Likewise.
51776         * modules/unistdio/u32-u32-sprintf: Likewise.
51777         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51778         * modules/unistdio/u32-u32-vasprintf: Likewise.
51779         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51780         * modules/unistdio/u32-u32-vsprintf: Likewise.
51781         * modules/unistdio/u32-vasnprintf: Likewise.
51782         * modules/unistdio/u32-vasprintf: Likewise.
51783         * modules/unistdio/u32-vsnprintf: Likewise.
51784         * modules/unistdio/u32-vsprintf: Likewise.
51785         * modules/unistdio/ulc-asnprintf: Likewise.
51786         * modules/unistdio/ulc-asprintf: Likewise.
51787         * modules/unistdio/ulc-fprintf: Likewise.
51788         * modules/unistdio/ulc-snprintf: Likewise.
51789         * modules/unistdio/ulc-sprintf: Likewise.
51790         * modules/unistdio/ulc-vasnprintf: Likewise.
51791         * modules/unistdio/ulc-vasprintf: Likewise.
51792         * modules/unistdio/ulc-vfprintf: Likewise.
51793         * modules/unistdio/ulc-vsnprintf: Likewise.
51794         * modules/unistdio/ulc-vsprintf: Likewise.
51795         * modules/unistr/u8-check: Likewise.
51796         * modules/unistr/u8-chr: Likewise.
51797         * modules/unistr/u8-cmp: Likewise.
51798         * modules/unistr/u8-cmp2: Likewise.
51799         * modules/unistr/u8-cpy: Likewise.
51800         * modules/unistr/u8-cpy-alloc: Likewise.
51801         * modules/unistr/u8-endswith: Likewise.
51802         * modules/unistr/u8-mblen: Likewise.
51803         * modules/unistr/u8-mbsnlen: Likewise.
51804         * modules/unistr/u8-mbtouc: Likewise.
51805         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51806         * modules/unistr/u8-mbtoucr: Likewise.
51807         * modules/unistr/u8-move: Likewise.
51808         * modules/unistr/u8-next: Likewise.
51809         * modules/unistr/u8-prev: Likewise.
51810         * modules/unistr/u8-set: Likewise.
51811         * modules/unistr/u8-startswith: Likewise.
51812         * modules/unistr/u8-stpcpy: Likewise.
51813         * modules/unistr/u8-stpncpy: Likewise.
51814         * modules/unistr/u8-strcat: Likewise.
51815         * modules/unistr/u8-strchr: Likewise.
51816         * modules/unistr/u8-strcmp: Likewise.
51817         * modules/unistr/u8-strcoll: Likewise.
51818         * modules/unistr/u8-strcpy: Likewise.
51819         * modules/unistr/u8-strcspn: Likewise.
51820         * modules/unistr/u8-strdup: Likewise.
51821         * modules/unistr/u8-strlen: Likewise.
51822         * modules/unistr/u8-strmblen: Likewise.
51823         * modules/unistr/u8-strmbtouc: Likewise.
51824         * modules/unistr/u8-strncat: Likewise.
51825         * modules/unistr/u8-strncmp: Likewise.
51826         * modules/unistr/u8-strncpy: Likewise.
51827         * modules/unistr/u8-strnlen: Likewise.
51828         * modules/unistr/u8-strpbrk: Likewise.
51829         * modules/unistr/u8-strrchr: Likewise.
51830         * modules/unistr/u8-strspn: Likewise.
51831         * modules/unistr/u8-strstr: Likewise.
51832         * modules/unistr/u8-strtok: Likewise.
51833         * modules/unistr/u8-to-u16: Likewise.
51834         * modules/unistr/u8-to-u32: Likewise.
51835         * modules/unistr/u8-uctomb: Likewise.
51836         * modules/unistr/u16-check: Likewise.
51837         * modules/unistr/u16-chr: Likewise.
51838         * modules/unistr/u16-cmp: Likewise.
51839         * modules/unistr/u16-cmp2: Likewise.
51840         * modules/unistr/u16-cpy: Likewise.
51841         * modules/unistr/u16-cpy-alloc: Likewise.
51842         * modules/unistr/u16-endswith: Likewise.
51843         * modules/unistr/u16-mblen: Likewise.
51844         * modules/unistr/u16-mbsnlen: Likewise.
51845         * modules/unistr/u16-mbtouc: Likewise.
51846         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51847         * modules/unistr/u16-mbtoucr: Likewise.
51848         * modules/unistr/u16-move: Likewise.
51849         * modules/unistr/u16-next: Likewise.
51850         * modules/unistr/u16-prev: Likewise.
51851         * modules/unistr/u16-set: Likewise.
51852         * modules/unistr/u16-startswith: Likewise.
51853         * modules/unistr/u16-stpcpy: Likewise.
51854         * modules/unistr/u16-stpncpy: Likewise.
51855         * modules/unistr/u16-strcat: Likewise.
51856         * modules/unistr/u16-strchr: Likewise.
51857         * modules/unistr/u16-strcmp: Likewise.
51858         * modules/unistr/u16-strcoll: Likewise.
51859         * modules/unistr/u16-strcpy: Likewise.
51860         * modules/unistr/u16-strcspn: Likewise.
51861         * modules/unistr/u16-strdup: Likewise.
51862         * modules/unistr/u16-strlen: Likewise.
51863         * modules/unistr/u16-strmblen: Likewise.
51864         * modules/unistr/u16-strmbtouc: Likewise.
51865         * modules/unistr/u16-strncat: Likewise.
51866         * modules/unistr/u16-strncmp: Likewise.
51867         * modules/unistr/u16-strncpy: Likewise.
51868         * modules/unistr/u16-strnlen: Likewise.
51869         * modules/unistr/u16-strpbrk: Likewise.
51870         * modules/unistr/u16-strrchr: Likewise.
51871         * modules/unistr/u16-strspn: Likewise.
51872         * modules/unistr/u16-strstr: Likewise.
51873         * modules/unistr/u16-strtok: Likewise.
51874         * modules/unistr/u16-to-u32: Likewise.
51875         * modules/unistr/u16-to-u8: Likewise.
51876         * modules/unistr/u16-uctomb: Likewise.
51877         * modules/unistr/u32-check: Likewise.
51878         * modules/unistr/u32-chr: Likewise.
51879         * modules/unistr/u32-cmp: Likewise.
51880         * modules/unistr/u32-cmp2: Likewise.
51881         * modules/unistr/u32-cpy: Likewise.
51882         * modules/unistr/u32-cpy-alloc: Likewise.
51883         * modules/unistr/u32-endswith: Likewise.
51884         * modules/unistr/u32-mblen: Likewise.
51885         * modules/unistr/u32-mbsnlen: Likewise.
51886         * modules/unistr/u32-mbtouc: Likewise.
51887         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51888         * modules/unistr/u32-mbtoucr: Likewise.
51889         * modules/unistr/u32-move: Likewise.
51890         * modules/unistr/u32-next: Likewise.
51891         * modules/unistr/u32-prev: Likewise.
51892         * modules/unistr/u32-set: Likewise.
51893         * modules/unistr/u32-startswith: Likewise.
51894         * modules/unistr/u32-stpcpy: Likewise.
51895         * modules/unistr/u32-stpncpy: Likewise.
51896         * modules/unistr/u32-strcat: Likewise.
51897         * modules/unistr/u32-strchr: Likewise.
51898         * modules/unistr/u32-strcmp: Likewise.
51899         * modules/unistr/u32-strcoll: Likewise.
51900         * modules/unistr/u32-strcpy: Likewise.
51901         * modules/unistr/u32-strcspn: Likewise.
51902         * modules/unistr/u32-strdup: Likewise.
51903         * modules/unistr/u32-strlen: Likewise.
51904         * modules/unistr/u32-strmblen: Likewise.
51905         * modules/unistr/u32-strmbtouc: Likewise.
51906         * modules/unistr/u32-strncat: Likewise.
51907         * modules/unistr/u32-strncmp: Likewise.
51908         * modules/unistr/u32-strncpy: Likewise.
51909         * modules/unistr/u32-strnlen: Likewise.
51910         * modules/unistr/u32-strpbrk: Likewise.
51911         * modules/unistr/u32-strrchr: Likewise.
51912         * modules/unistr/u32-strspn: Likewise.
51913         * modules/unistr/u32-strstr: Likewise.
51914         * modules/unistr/u32-strtok: Likewise.
51915         * modules/unistr/u32-to-u16: Likewise.
51916         * modules/unistr/u32-to-u8: Likewise.
51917         * modules/unistr/u32-uctomb: Likewise.
51918         * modules/uniwbrk/u8-wordbreaks: Likewise.
51919         * modules/uniwbrk/u16-wordbreaks: Likewise.
51920         * modules/uniwbrk/u32-wordbreaks: Likewise.
51921         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51922         * modules/uniwbrk/wordbreak-property: Likewise.
51923         * modules/uniwidth/u8-strwidth: Likewise.
51924         * modules/uniwidth/u8-width: Likewise.
51925         * modules/uniwidth/u16-strwidth: Likewise.
51926         * modules/uniwidth/u16-width: Likewise.
51927         * modules/uniwidth/u32-strwidth: Likewise.
51928         * modules/uniwidth/u32-width: Likewise.
51929         * modules/uniwidth/width: Likewise.
51930         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51931         with $(LIBUNISTRING).
51932         * modules/unicase/ignorable-tests: Likewise.
51933         * modules/unicase/locale-language-tests: Likewise.
51934         * modules/unicase/tolower-tests: Likewise.
51935         * modules/unicase/totitle-tests: Likewise.
51936         * modules/unicase/toupper-tests: Likewise.
51937         * modules/unicase/u8-casecmp-tests: Likewise.
51938         * modules/unicase/u8-casecoll-tests: Likewise.
51939         * modules/unicase/u8-casefold-tests: Likewise.
51940         * modules/unicase/u8-is-cased-tests: Likewise.
51941         * modules/unicase/u8-is-casefolded-tests: Likewise.
51942         * modules/unicase/u8-is-lowercase-tests: Likewise.
51943         * modules/unicase/u8-is-titlecase-tests: Likewise.
51944         * modules/unicase/u8-is-uppercase-tests: Likewise.
51945         * modules/unicase/u8-tolower-tests: Likewise.
51946         * modules/unicase/u8-totitle-tests: Likewise.
51947         * modules/unicase/u8-toupper-tests: Likewise.
51948         * modules/unicase/u16-casecmp-tests: Likewise.
51949         * modules/unicase/u16-casecoll-tests: Likewise.
51950         * modules/unicase/u16-casefold-tests: Likewise.
51951         * modules/unicase/u16-is-cased-tests: Likewise.
51952         * modules/unicase/u16-is-casefolded-tests: Likewise.
51953         * modules/unicase/u16-is-lowercase-tests: Likewise.
51954         * modules/unicase/u16-is-titlecase-tests: Likewise.
51955         * modules/unicase/u16-is-uppercase-tests: Likewise.
51956         * modules/unicase/u16-tolower-tests: Likewise.
51957         * modules/unicase/u16-totitle-tests: Likewise.
51958         * modules/unicase/u16-toupper-tests: Likewise.
51959         * modules/unicase/u32-casecmp-tests: Likewise.
51960         * modules/unicase/u32-casecoll-tests: Likewise.
51961         * modules/unicase/u32-casefold-tests: Likewise.
51962         * modules/unicase/u32-is-cased-tests: Likewise.
51963         * modules/unicase/u32-is-casefolded-tests: Likewise.
51964         * modules/unicase/u32-is-lowercase-tests: Likewise.
51965         * modules/unicase/u32-is-titlecase-tests: Likewise.
51966         * modules/unicase/u32-is-uppercase-tests: Likewise.
51967         * modules/unicase/u32-tolower-tests: Likewise.
51968         * modules/unicase/u32-totitle-tests: Likewise.
51969         * modules/unicase/u32-toupper-tests: Likewise.
51970         * modules/unicase/ulc-casecmp-tests: Likewise.
51971         * modules/unicase/ulc-casecoll-tests: Likewise.
51972         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51973         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51974         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51975         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51976         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51977         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51978         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51979         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51980         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51981         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51982         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51983         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51984         * modules/unictype/bidicategory-byname-tests: Likewise.
51985         * modules/unictype/bidicategory-name-tests: Likewise.
51986         * modules/unictype/bidicategory-of-tests: Likewise.
51987         * modules/unictype/bidicategory-test-tests: Likewise.
51988         * modules/unictype/block-list-tests: Likewise.
51989         * modules/unictype/block-of-tests: Likewise.
51990         * modules/unictype/block-test-tests: Likewise.
51991         * modules/unictype/category-C-tests: Likewise.
51992         * modules/unictype/category-Cc-tests: Likewise.
51993         * modules/unictype/category-Cf-tests: Likewise.
51994         * modules/unictype/category-Cn-tests: Likewise.
51995         * modules/unictype/category-Co-tests: Likewise.
51996         * modules/unictype/category-Cs-tests: Likewise.
51997         * modules/unictype/category-L-tests: Likewise.
51998         * modules/unictype/category-Ll-tests: Likewise.
51999         * modules/unictype/category-Lm-tests: Likewise.
52000         * modules/unictype/category-Lo-tests: Likewise.
52001         * modules/unictype/category-Lt-tests: Likewise.
52002         * modules/unictype/category-Lu-tests: Likewise.
52003         * modules/unictype/category-M-tests: Likewise.
52004         * modules/unictype/category-Mc-tests: Likewise.
52005         * modules/unictype/category-Me-tests: Likewise.
52006         * modules/unictype/category-Mn-tests: Likewise.
52007         * modules/unictype/category-N-tests: Likewise.
52008         * modules/unictype/category-Nd-tests: Likewise.
52009         * modules/unictype/category-Nl-tests: Likewise.
52010         * modules/unictype/category-No-tests: Likewise.
52011         * modules/unictype/category-P-tests: Likewise.
52012         * modules/unictype/category-Pc-tests: Likewise.
52013         * modules/unictype/category-Pd-tests: Likewise.
52014         * modules/unictype/category-Pe-tests: Likewise.
52015         * modules/unictype/category-Pf-tests: Likewise.
52016         * modules/unictype/category-Pi-tests: Likewise.
52017         * modules/unictype/category-Po-tests: Likewise.
52018         * modules/unictype/category-Ps-tests: Likewise.
52019         * modules/unictype/category-S-tests: Likewise.
52020         * modules/unictype/category-Sc-tests: Likewise.
52021         * modules/unictype/category-Sk-tests: Likewise.
52022         * modules/unictype/category-Sm-tests: Likewise.
52023         * modules/unictype/category-So-tests: Likewise.
52024         * modules/unictype/category-Z-tests: Likewise.
52025         * modules/unictype/category-Zl-tests: Likewise.
52026         * modules/unictype/category-Zp-tests: Likewise.
52027         * modules/unictype/category-Zs-tests: Likewise.
52028         * modules/unictype/category-and-not-tests: Likewise.
52029         * modules/unictype/category-and-tests: Likewise.
52030         * modules/unictype/category-byname-tests: Likewise.
52031         * modules/unictype/category-name-tests: Likewise.
52032         * modules/unictype/category-none-tests: Likewise.
52033         * modules/unictype/category-of-tests: Likewise.
52034         * modules/unictype/category-or-tests: Likewise.
52035         * modules/unictype/category-test-withtable-tests: Likewise.
52036         * modules/unictype/combining-class-tests: Likewise.
52037         * modules/unictype/ctype-alnum-tests: Likewise.
52038         * modules/unictype/ctype-alpha-tests: Likewise.
52039         * modules/unictype/ctype-blank-tests: Likewise.
52040         * modules/unictype/ctype-cntrl-tests: Likewise.
52041         * modules/unictype/ctype-digit-tests: Likewise.
52042         * modules/unictype/ctype-graph-tests: Likewise.
52043         * modules/unictype/ctype-lower-tests: Likewise.
52044         * modules/unictype/ctype-print-tests: Likewise.
52045         * modules/unictype/ctype-punct-tests: Likewise.
52046         * modules/unictype/ctype-space-tests: Likewise.
52047         * modules/unictype/ctype-upper-tests: Likewise.
52048         * modules/unictype/ctype-xdigit-tests: Likewise.
52049         * modules/unictype/decimal-digit-tests: Likewise.
52050         * modules/unictype/digit-tests: Likewise.
52051         * modules/unictype/mirror-tests: Likewise.
52052         * modules/unictype/numeric-tests: Likewise.
52053         * modules/unictype/property-alphabetic-tests: Likewise.
52054         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
52055         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
52056         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
52057         * modules/unictype/property-bidi-block-separator-tests: Likewise.
52058         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
52059         * modules/unictype/property-bidi-common-separator-tests: Likewise.
52060         * modules/unictype/property-bidi-control-tests: Likewise.
52061         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
52062         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
52063         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
52064         * modules/unictype/property-bidi-european-digit-tests: Likewise.
52065         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
52066         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
52067         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
52068         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
52069         * modules/unictype/property-bidi-pdf-tests: Likewise.
52070         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
52071         * modules/unictype/property-bidi-whitespace-tests: Likewise.
52072         * modules/unictype/property-byname-tests: Likewise.
52073         * modules/unictype/property-combining-tests: Likewise.
52074         * modules/unictype/property-composite-tests: Likewise.
52075         * modules/unictype/property-currency-symbol-tests: Likewise.
52076         * modules/unictype/property-dash-tests: Likewise.
52077         * modules/unictype/property-decimal-digit-tests: Likewise.
52078         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
52079         * modules/unictype/property-deprecated-tests: Likewise.
52080         * modules/unictype/property-diacritic-tests: Likewise.
52081         * modules/unictype/property-extender-tests: Likewise.
52082         * modules/unictype/property-format-control-tests: Likewise.
52083         * modules/unictype/property-grapheme-base-tests: Likewise.
52084         * modules/unictype/property-grapheme-extend-tests: Likewise.
52085         * modules/unictype/property-grapheme-link-tests: Likewise.
52086         * modules/unictype/property-hex-digit-tests: Likewise.
52087         * modules/unictype/property-hyphen-tests: Likewise.
52088         * modules/unictype/property-id-continue-tests: Likewise.
52089         * modules/unictype/property-id-start-tests: Likewise.
52090         * modules/unictype/property-ideographic-tests: Likewise.
52091         * modules/unictype/property-ids-binary-operator-tests: Likewise.
52092         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
52093         * modules/unictype/property-ignorable-control-tests: Likewise.
52094         * modules/unictype/property-iso-control-tests: Likewise.
52095         * modules/unictype/property-join-control-tests: Likewise.
52096         * modules/unictype/property-left-of-pair-tests: Likewise.
52097         * modules/unictype/property-line-separator-tests: Likewise.
52098         * modules/unictype/property-logical-order-exception-tests: Likewise.
52099         * modules/unictype/property-lowercase-tests: Likewise.
52100         * modules/unictype/property-math-tests: Likewise.
52101         * modules/unictype/property-non-break-tests: Likewise.
52102         * modules/unictype/property-not-a-character-tests: Likewise.
52103         * modules/unictype/property-numeric-tests: Likewise.
52104         * modules/unictype/property-other-alphabetic-tests: Likewise.
52105         * modules/unictype/property-other-default-ignorable-code-point-tests:
52106         Likewise.
52107         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
52108         * modules/unictype/property-other-id-continue-tests: Likewise.
52109         * modules/unictype/property-other-id-start-tests: Likewise.
52110         * modules/unictype/property-other-lowercase-tests: Likewise.
52111         * modules/unictype/property-other-math-tests: Likewise.
52112         * modules/unictype/property-other-uppercase-tests: Likewise.
52113         * modules/unictype/property-paired-punctuation-tests: Likewise.
52114         * modules/unictype/property-paragraph-separator-tests: Likewise.
52115         * modules/unictype/property-pattern-syntax-tests: Likewise.
52116         * modules/unictype/property-pattern-white-space-tests: Likewise.
52117         * modules/unictype/property-private-use-tests: Likewise.
52118         * modules/unictype/property-punctuation-tests: Likewise.
52119         * modules/unictype/property-quotation-mark-tests: Likewise.
52120         * modules/unictype/property-radical-tests: Likewise.
52121         * modules/unictype/property-sentence-terminal-tests: Likewise.
52122         * modules/unictype/property-soft-dotted-tests: Likewise.
52123         * modules/unictype/property-space-tests: Likewise.
52124         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52125         * modules/unictype/property-test-tests: Likewise.
52126         * modules/unictype/property-titlecase-tests: Likewise.
52127         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52128         * modules/unictype/property-unified-ideograph-tests: Likewise.
52129         * modules/unictype/property-uppercase-tests: Likewise.
52130         * modules/unictype/property-variation-selector-tests: Likewise.
52131         * modules/unictype/property-white-space-tests: Likewise.
52132         * modules/unictype/property-xid-continue-tests: Likewise.
52133         * modules/unictype/property-xid-start-tests: Likewise.
52134         * modules/unictype/property-zero-width-tests: Likewise.
52135         * modules/unictype/scripts-tests: Likewise.
52136         * modules/unictype/syntax-c-ident-tests: Likewise.
52137         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52138         * modules/unictype/syntax-java-ident-tests: Likewise.
52139         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52140         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52141         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52142         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52143         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52144         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52145         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52146         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52147         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52148         * modules/uniname/uniname-tests: Likewise.
52149         * modules/uninorm/canonical-decomposition-tests: Likewise.
52150         * modules/uninorm/compat-decomposition-tests: Likewise.
52151         * modules/uninorm/composition-tests: Likewise.
52152         * modules/uninorm/decomposing-form-tests: Likewise.
52153         * modules/uninorm/decomposition-tests: Likewise.
52154         * modules/uninorm/filter-tests: Likewise.
52155         * modules/uninorm/nfc-tests: Likewise.
52156         * modules/uninorm/nfd-tests: Likewise.
52157         * modules/uninorm/nfkc-tests: Likewise.
52158         * modules/uninorm/nfkd-tests: Likewise.
52159         * modules/uninorm/u8-normcmp-tests: Likewise.
52160         * modules/uninorm/u8-normcoll-tests: Likewise.
52161         * modules/uninorm/u16-normcmp-tests: Likewise.
52162         * modules/uninorm/u16-normcoll-tests: Likewise.
52163         * modules/uninorm/u32-normcmp-tests: Likewise.
52164         * modules/uninorm/u32-normcoll-tests: Likewise.
52165         * modules/unistdio/u8-asnprintf-tests: Likewise.
52166         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52167         * modules/unistdio/u8-vasprintf-tests: Likewise.
52168         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52169         * modules/unistdio/u8-vsprintf-tests: Likewise.
52170         * modules/unistdio/u16-asnprintf-tests: Likewise.
52171         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52172         * modules/unistdio/u16-vasprintf-tests: Likewise.
52173         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52174         * modules/unistdio/u16-vsprintf-tests: Likewise.
52175         * modules/unistdio/u32-asnprintf-tests: Likewise.
52176         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52177         * modules/unistdio/u32-vasprintf-tests: Likewise.
52178         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52179         * modules/unistdio/u32-vsprintf-tests: Likewise.
52180         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52181         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52182         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52183         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52184         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52185         * modules/unistr/u8-check-tests: Likewise.
52186         * modules/unistr/u8-chr-tests: Likewise.
52187         * modules/unistr/u8-cmp-tests: Likewise.
52188         * modules/unistr/u8-cmp2-tests: Likewise.
52189         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52190         * modules/unistr/u8-cpy-tests: Likewise.
52191         * modules/unistr/u8-mblen-tests: Likewise.
52192         * modules/unistr/u8-mbsnlen-tests: Likewise.
52193         * modules/unistr/u8-mbtouc-tests: Likewise.
52194         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52195         * modules/unistr/u8-mbtoucr-tests: Likewise.
52196         * modules/unistr/u8-move-tests: Likewise.
52197         * modules/unistr/u8-next-tests: Likewise.
52198         * modules/unistr/u8-prev-tests: Likewise.
52199         * modules/unistr/u8-set-tests: Likewise.
52200         * modules/unistr/u8-stpcpy-tests: Likewise.
52201         * modules/unistr/u8-stpncpy-tests: Likewise.
52202         * modules/unistr/u8-strcat-tests: Likewise.
52203         * modules/unistr/u8-strcmp-tests: Likewise.
52204         * modules/unistr/u8-strcoll-tests: Likewise.
52205         * modules/unistr/u8-strcpy-tests: Likewise.
52206         * modules/unistr/u8-strdup-tests: Likewise.
52207         * modules/unistr/u8-strlen-tests: Likewise.
52208         * modules/unistr/u8-strmblen-tests: Likewise.
52209         * modules/unistr/u8-strmbtouc-tests: Likewise.
52210         * modules/unistr/u8-strncat-tests: Likewise.
52211         * modules/unistr/u8-strncmp-tests: Likewise.
52212         * modules/unistr/u8-strncpy-tests: Likewise.
52213         * modules/unistr/u8-strnlen-tests: Likewise.
52214         * modules/unistr/u8-to-u16-tests: Likewise.
52215         * modules/unistr/u8-to-u32-tests: Likewise.
52216         * modules/unistr/u8-uctomb-tests: Likewise.
52217         * modules/unistr/u16-check-tests: Likewise.
52218         * modules/unistr/u16-chr-tests: Likewise.
52219         * modules/unistr/u16-cmp-tests: Likewise.
52220         * modules/unistr/u16-cmp2-tests: Likewise.
52221         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52222         * modules/unistr/u16-cpy-tests: Likewise.
52223         * modules/unistr/u16-mblen-tests: Likewise.
52224         * modules/unistr/u16-mbsnlen-tests: Likewise.
52225         * modules/unistr/u16-mbtouc-tests: Likewise.
52226         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52227         * modules/unistr/u16-mbtoucr-tests: Likewise.
52228         * modules/unistr/u16-move-tests: Likewise.
52229         * modules/unistr/u16-next-tests: Likewise.
52230         * modules/unistr/u16-prev-tests: Likewise.
52231         * modules/unistr/u16-set-tests: Likewise.
52232         * modules/unistr/u16-stpcpy-tests: Likewise.
52233         * modules/unistr/u16-stpncpy-tests: Likewise.
52234         * modules/unistr/u16-strcat-tests: Likewise.
52235         * modules/unistr/u16-strcmp-tests: Likewise.
52236         * modules/unistr/u16-strcoll-tests: Likewise.
52237         * modules/unistr/u16-strcpy-tests: Likewise.
52238         * modules/unistr/u16-strdup-tests: Likewise.
52239         * modules/unistr/u16-strlen-tests: Likewise.
52240         * modules/unistr/u16-strmblen-tests: Likewise.
52241         * modules/unistr/u16-strmbtouc-tests: Likewise.
52242         * modules/unistr/u16-strncat-tests: Likewise.
52243         * modules/unistr/u16-strncmp-tests: Likewise.
52244         * modules/unistr/u16-strncpy-tests: Likewise.
52245         * modules/unistr/u16-strnlen-tests: Likewise.
52246         * modules/unistr/u16-to-u32-tests: Likewise.
52247         * modules/unistr/u16-to-u8-tests: Likewise.
52248         * modules/unistr/u16-uctomb-tests: Likewise.
52249         * modules/unistr/u32-check-tests: Likewise.
52250         * modules/unistr/u32-chr-tests: Likewise.
52251         * modules/unistr/u32-cmp-tests: Likewise.
52252         * modules/unistr/u32-cmp2-tests: Likewise.
52253         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52254         * modules/unistr/u32-cpy-tests: Likewise.
52255         * modules/unistr/u32-mblen-tests: Likewise.
52256         * modules/unistr/u32-mbsnlen-tests: Likewise.
52257         * modules/unistr/u32-mbtouc-tests: Likewise.
52258         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52259         * modules/unistr/u32-mbtoucr-tests: Likewise.
52260         * modules/unistr/u32-move-tests: Likewise.
52261         * modules/unistr/u32-next-tests: Likewise.
52262         * modules/unistr/u32-prev-tests: Likewise.
52263         * modules/unistr/u32-set-tests: Likewise.
52264         * modules/unistr/u32-stpcpy-tests: Likewise.
52265         * modules/unistr/u32-stpncpy-tests: Likewise.
52266         * modules/unistr/u32-strcat-tests: Likewise.
52267         * modules/unistr/u32-strcmp-tests: Likewise.
52268         * modules/unistr/u32-strcoll-tests: Likewise.
52269         * modules/unistr/u32-strcpy-tests: Likewise.
52270         * modules/unistr/u32-strdup-tests: Likewise.
52271         * modules/unistr/u32-strlen-tests: Likewise.
52272         * modules/unistr/u32-strmblen-tests: Likewise.
52273         * modules/unistr/u32-strmbtouc-tests: Likewise.
52274         * modules/unistr/u32-strncat-tests: Likewise.
52275         * modules/unistr/u32-strncmp-tests: Likewise.
52276         * modules/unistr/u32-strncpy-tests: Likewise.
52277         * modules/unistr/u32-strnlen-tests: Likewise.
52278         * modules/unistr/u32-to-u16-tests: Likewise.
52279         * modules/unistr/u32-to-u8-tests: Likewise.
52280         * modules/unistr/u32-uctomb-tests: Likewise.
52281         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52282         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52283         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52284         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52285         * modules/uniwidth/u8-strwidth-tests: Likewise.
52286         * modules/uniwidth/u8-width-tests: Likewise.
52287         * modules/uniwidth/u16-strwidth-tests: Likewise.
52288         * modules/uniwidth/u16-width-tests: Likewise.
52289         * modules/uniwidth/u32-strwidth-tests: Likewise.
52290         * modules/uniwidth/u32-width-tests: Likewise.
52291         * modules/uniwidth/width-tests: Likewise.
52293 2010-05-18  Richard Jones  <rjones@redhat.com>
52295         doc: users.txt: list hivex
52296         * users.txt: Add hivex.
52298 2010-05-18  Richard Jones  <rjones@redhat.com>
52300         doc: users.txt: list febootstrap
52301         * users.txt: Add febootstrap.
52303 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52305         bootstrap: fix an error when gnulib is not used as a git submodule
52306         * build-aux/bootstrap (gnulib_path): If its length is zero then
52307         assign "gnulib" to it.
52308         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52310 2010-05-16  Bruno Haible  <bruno@clisp.org>
52312         Avoid autoconf warnings about AM_ICONV.
52313         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52314         2.64.
52316 2010-05-16  Bruno Haible  <bruno@clisp.org>
52318         absolute-header: Make the macro usable in more situations.
52319         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52320         from gl_ABSOLUTE_HEADER.
52321         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52323 2010-05-16  James Youngman  <jay@gnu.org>
52325         doc: update users.txt
52326         * users.txt: Add CSSC.
52328 2010-05-16  Jim Meyering  <meyering@redhat.com>
52330         init.sh: fix an error in the previous change; add more comments
52331         * tests/init.sh: Compare exit code in loop against 9, not 2.
52332         Patch by Bruno Haible.
52333         Make the two tests more similar by adding an empty "then" clause.
52334         Add comments.
52336         init.sh: avoid unnecessary shell re-exec
52337         * tests/init.sh: Improve the re-exec-required check to first test the
52338         current shell.  If it passes the test, do not search for a shell that
52339         does pass, and do not re-exec.  This test is particularly contorted to
52340         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52341         of $(...) evokes a syntax error and causes immediate shell exit with
52342         status 2.  Bruno Haible reported that the re-exec made it impossible
52343         to single-step through any init.sh-using script.
52345 2010-05-16  Bruno Haible  <bruno@clisp.org>
52347         Fix collision between gnulib's and libintl's printf replacements.
52348         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52349         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52350         (printf): When using GNU C, map the __printf__ function to rpl_printf
52351         via __asm__. When not using GNU C, define rpl_printf instead of
52352         __printf__.
52353         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52354         commit.
52355         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52356         commit.
52357         * m4/asm-underscore.m4: New file.
52358         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52359         * modules/stdio (Files): Add m4/asm-underscore.m4.
52360         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52361         Reported by Ben Pfaff.
52363 2010-05-16  Bruno Haible  <bruno@clisp.org>
52365         verify: Avoid skipping the test on openSUSE 11.0.
52366         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52368 2010-05-13  Bruno Haible  <bruno@clisp.org>
52370         Avoid useless warnings from G++.
52371         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52372         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52375 2010-05-11  Jim Meyering  <meyering@redhat.com>
52377         maint.mk: tweak preceding change
52378         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52379         regexps tighter by anchoring at EOL, and make the new group "shy"
52380         for slightly decreased overhead.
52382 2010-05-11  Eric Blake  <eblake@redhat.com>
52384         maint.mk: gnulib doesn't guarantee NSIG
52385         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52387 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52389         test-pwrite.c: Remove unused variable declaration.
52390         * tests/test-pwrite.c (main): Remove read_buf declaration.
52392         Remove useless test-pwrite.sh file.
52393         * tests/test-pwrite.sh: Delete file.
52394         * modules/pwrite-tests: Remove references.
52395         Reported by Bruno Haible.
52397 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52399         init.sh: fix a typo
52400         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52402 2010-05-10  Jim Meyering  <meyering@redhat.com>
52404         maint.mk: avoid using a temporary file in the always-defined-macros check
52405         * top/maint.mk (.re-defmac): Remove rule.
52406         (gl_trap_): Remove definition.
52407         (sc_prohibit_always-defined_macros): Rewrite not to create and
52408         depend on a temporary file.  Instead, depend on GNU grep's ability
52409         to read a list of regular expressions from stdin when given "-f -".
52411 2010-05-09  Bruno Haible  <bruno@clisp.org>
52413         Update to GNU gettext 0.18, part 1.
52414         * m4/gettext.m4: Update to GNU gettext 0.18.
52415         * m4/intl.m4: Likewise.
52416         * m4/po.m4: Likewise.
52417         * modules/gettext (Files): Add m4/fcntl-o.m4.
52418         (configure.ac): Require gettext infrastructure from version 0.18.
52420 2010-05-09  Jim Meyering  <meyering@redhat.com>
52422         init.sh: enable MALLOC_PERTURB_
52423         * tests/init.sh: Enable glibc's malloc-perturbing option.
52425         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52426         With my recent change in init.sh from the two-line form:
52427             -#   : ${srcdir=.}
52428             -#   . "$srcdir/init.sh"; path_prepend_ .
52429             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52430         I noticed that using the one-line form would cause this test
52431         to fail with a false-positive, or to stop working altogether,
52432         depending on whether help-version changed or all the tests did.
52433         * top/maint.mk (_hv_regex): Remove this definition.
52434         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52435         (_hv_regex_strong): Use a stronger regex to check for conformance.
52436         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52437         Give a separate diagnostic for lack of conforming use.
52439         maint.mk: prohibit definition of symbols defined by gnulib
52440         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52441         definition of symbols defined by gnulib.
52443 2010-05-09  Bruno Haible  <bruno@clisp.org>
52445         acl: Avoid test failure on Cygwin-hosted mingw.
52446         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52448 2010-05-09  Bruno Haible  <bruno@clisp.org>
52450         error: Use system's fcntl function.
52451         * lib/error.c (fcntl): Undefine.
52453 2010-05-09  Jim Meyering  <meyering@redhat.com>
52455         verify: adjust formatting to be more consistent
52456         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52457         argument-list '('s, and after one comma.
52459 2010-05-09  Bruno Haible  <bruno@clisp.org>
52461         error: More reliable output on mingw.
52462         * lib/error.c: Include <windows.h>.
52463         (is_open): New function.
52464         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52465         defined.
52467 2010-05-09  Bruno Haible  <bruno@clisp.org>
52469         vasnprintf: Fix syntax errors in libintl build on mingw.
52470         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52471         pad_ourselves and prec_ourselves after use.
52473 2010-05-08  Bruno Haible  <bruno@clisp.org>
52475         * lib/config.charset: Update comments for Cygwin 1.7.
52476         * lib/localcharset.c: Likewise.
52478 2010-05-07  Jim Meyering  <meyering@redhat.com>
52480         init.sh: improve comments
52481         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52482         . "${srcdir=.}/init.sh"; path_prepend_ .
52483         Add a note about path_prepend_ and the alternative of using
52484         TESTS_ENVIRONMENT.
52486 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52488         exclude: Unescape hashed patterns in wildcard mode.
52489         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52490         to the hash list.
52491         * tests/test-exclude8.sh: New test case.
52492         * modules/exclude-tests: Add new test.
52494 2010-05-05  Eric Blake  <eblake@redhat.com>
52496         verify: automate tests
52497         * modules/verify-tests: New module.
52498         * tests/test-verify.sh: New file.
52499         * tests/test-verify.c: Guard each negative test with a unique id.
52500         Also avoid warning about unused left hand of comma expressions.
52502 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52504         Further improvements to verify.h, suggested by Eric Blake.
52505         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52506         the GL_* versions, to avoid collision with OpenGL.
52507         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52508         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52509         than testing merely whether it's defined.
52511         Modify verify.h to pacify gcc -Wredundant_decls.
52512         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52513         These use the prefix "GL_" since they're likely to be useful elsewhere.
52514         We may need to break them out into a different .h file.
52515         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52516         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52517         of verify_function__.
52519 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52521         Tests for module pwrite.
52522         * modules/pwrite-tests: New file.
52523         * tests/test-pwrite.sh: New file.
52524         * tests/test-pwrite.c: New file.
52526         New module pwrite.
52527         * lib/unistd.in.h (pwrite): New declaration.
52528         * lib/pwrite.c: New file, from glibc with modifications.
52529         * m4/pwrite.m4: New file.
52530         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52531         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52532         REPLACE_PWRITE.
52533         * modules/pwrite: New file.
52534         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52535         REPLACE_PWRITE.
52536         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52537         * doc/posix-functions/pwrite.texi: Mention the new module.
52539 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52541         pread: Update documentation.
52542         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52544 2010-05-04  Eric Blake  <eblake@redhat.com>
52546         docs: update cygwin progress
52547         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52548         this bug.
52549         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52550         Added in cygwin 1.7.2.
52551         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52552         Likewise.
52553         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52554         Likewise.
52555         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52556         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52557         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52558         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52559         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52560         Mention nproc module.
52561         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52562         bug in cygwin 1.7.5 addition.
52563         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52564         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52565         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52566         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52567         1.7.5.
52568         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52569         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52570         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52571         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52572         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52573         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52574         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52575         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52576         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52577         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52578         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52579         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52580         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52581         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52582         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52583         Likewise.
52584         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52585         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52586         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52587         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52588         Likewise.
52589         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52590         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52591         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52592         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52593         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52594         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52595         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52596         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52597         Likewise.
52598         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52599         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52600         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52601         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52602         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52603         Likewise.
52604         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52605         Likewise.
52606         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52607         Likewise.
52608         * doc/glibc-functions/xdrrec_endofrecord.texi
52609         (xdrrec_endofrecord): Likewise.
52610         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52611         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52612         Likewise.
52613         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52614         Likewise.
52616 2010-05-04  Jim Meyering  <meyering@redhat.com>
52618         gendocs.sh: make its "-s FILE" option more useful
52619         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52620         $PACKAGE to reflect the probably-different basename of "FILE".
52622 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52624         bootstrap: don't ignore download_po_files failure
52625         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52626         failure.
52628 2010-05-03  Jim Meyering  <meyering@redhat.com>
52630         maint.mk: allow to pass options to gendocs.sh
52631         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52632         (gendocs_options_): New overridable variable.
52634         gnu-web-doc-update: don't ignore configure or build failure
52635         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52637         announce-gen: backslash-escape '@'s in --help output
52638         * build-aux/announce-gen: Fix syntax errors.
52640         maint.mk, announce-gen: allow project-specific announcement mail headers
52641         * top/maint.mk (translation_project_): Define default.
52642         (announcement_Cc_, announcement_mail_headers_): Likewise.
52643         (announcement): Invoke announce-gen with new --mail-headers option.
52644         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52646         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52647         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52648         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52649         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52650         line in the "err2" output file when running "make check" in verbose
52651         mode (i.e., with set -x enabled).
52653 2010-05-03  Bruno Haible  <bruno@clisp.org>
52655         wctob: Fix for weird platforms.
52656         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52657         argument value.
52659 2010-05-03  Jim Meyering  <meyering@redhat.com>
52661         maint.mk: prohibit unwarranted use of <strings.h>
52662         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52663         strings.h in a file that does not also use strcasecmp, strncasecmp,
52664         ffs or ffsll.
52666         maint.mk: remove obsolete comments
52667         * top/maint.mk: Remove stale, commented-out rules.
52669 2010-05-02  Bruno Haible  <bruno@clisp.org>
52671         wcwidth: Declare also when it's aliased.
52672         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52673         macro.
52675 2010-05-02  Bruno Haible  <bruno@clisp.org>
52677         Fix regression from 2010-04-25.
52678         * gnulib-tool (func_modules_transitive_closure): Check the status of
52679         all modules, not only of the tests that are of the form foo-tests where
52680         foo is a module.
52682 2010-05-02  Bruno Haible  <bruno@clisp.org>
52684         wctob: Work around nasty Cygwin 1.7.2 bug.
52685         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52686         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52688 2010-05-01  Bruno Haible  <bruno@clisp.org>
52690         fpurge: Sharper test.
52691         * tests/test-fpurge.c (main): Add one more ftell check.
52692         * modules/fpurge-tests (Depends-on): Add ftell.
52693         Suggested by Eric Blake.
52695 2010-05-01  Bruno Haible  <bruno@clisp.org>
52697         ftello: Another test.
52698         * tests/test-ftello3.c: New file.
52699         * modules/ftello-tests (Files): Add it.
52700         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52701         MOSTLYCLEANFILES.
52703         ftell: Another test.
52704         * tests/test-ftell3.c: New file.
52705         * modules/ftell-tests (Files): Add it.
52706         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52707         MOSTLYCLEANFILES.
52709 2010-05-01  Bruno Haible  <bruno@clisp.org>
52711         ftell, ftello: Work around Solaris bug.
52712         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52713         * lib/ftello.c: Include stdio-impl.h.
52714         (ftello): On Solaris, when _IOWRT is set, compute the result without
52715         looking at _IOREAD.
52716         * modules/ftello (Files): Add lib/stdio-impl.h.
52717         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52718         * doc/posix-functions/ftello.texi: Likewise.
52719         Reported by Eric Blake.
52721 2010-05-01  Bruno Haible  <bruno@clisp.org>
52723         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52724         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52725         the _IOWRT flag is also set.
52727 2010-05-01  Bruno Haible  <bruno@clisp.org>
52729         Fix doc about a HP-UX stdio bug.
52730         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52731         * doc/posix-functions/ftello.texi: Likewise.
52733 2010-05-01  Bruno Haible  <bruno@clisp.org>
52735         lseek test: Fix failure on Solaris.
52736         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52737         output.
52739 2010-04-30  Jim Meyering  <meyering@redhat.com>
52741         bootstrap: don't ignore failure to generate po*/Makevars
52742         * build-aux/bootstrap (with_gettext): Don't ignore failure
52743         to create po/Makevars or runtime-po/Makevars.
52745 2010-04-29  Eric Blake  <eblake@redhat.com>
52747         headers: relax license to LGPLv2+
52748         * modules/fcntl-h (License): Relax license.
52749         * modules/getopt-posix (License): Likewise.
52750         * modules/locale (License): Likewise.
52751         * modules/math (License): Likewise.
52752         * modules/pty (License): Likewise.
52753         * modules/sched (License): Likewise.
52754         * modules/search (License): Likewise.
52755         * modules/spawn (License): Likewise.
52756         * modules/stdarg (License): Likewise.
52757         * modules/sysexits (License): Likewise.
52759 2010-04-29  Jim Meyering  <meyering@redhat.com>
52761         inttypes: relax license to LGPLv2+
52762         * modules/inttypes (License): Relax license.
52764 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52766         * top/maint.mk (indent): Run twice to produce idempotent results.
52768 2010-04-28  Bruno Haible  <bruno@clisp.org>
52770         getdate: Generate getdate.c in the source directory.
52771         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52772         MOSTLYCLEANFILES.
52773         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52775 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52777         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52778         is not declared as a const *; avoid warnings in that case.
52780 2010-04-28  Eric Blake  <eblake@redhat.com>
52782         canonicalize-lgpl: avoid compiler warning
52783         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52784         declaration' / 'extraneous semicolon' warning with some compilers.
52785         Reported by Andreas Gruenbacher.
52787 2010-04-28  Jim Meyering  <meyering@redhat.com>
52789         init.sh: ensure a more reliable exit status when exiting via trap
52790         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52791         Inspired by patches from Dmitry V. Levin.
52792         Also trap on signal 3 (SIGQUIT).
52794 2010-04-27  Bruno Haible  <bruno@clisp.org>
52796         Update doc about utimes().
52797         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52798         'utimens' module.
52799         Reported by Andreas Gruenbacher <agruen@suse.de>.
52801 2010-04-27  Eric Blake  <eblake@redhat.com>
52803         full-read, full-write: relax license
52804         * modules/full-read (License): Drop to LGPLv2+.
52805         * modules/full-write (License): Likewise.
52806         * modules/safe-read (License): Likewise.
52807         * modules/safe-write (License): Likewise.
52809         pthread: mention library for linking
52810         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52812 2010-04-27  Jim Meyering  <meyering@redhat.com>
52814         maint.mk: fix a bug introduced in last change
52815         * top/maint.mk (gl_assured_headers_): Now that all names are on
52816         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52817         is not anchored to end of word, it should be adequate.
52819         maint.mk: avoid side-effect in latest syntax-check
52820         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52821         to run commands via $(shell...), and hence to incur cost only when
52822         the new rule is actually run.
52824         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52825         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52826         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52827         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52828         (gl_assured_headers_, az_, AZ_): Define.
52829         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52831 2010-04-26  Jim Meyering  <jim@meyering.net>
52832             Bruno Haible  <bruno@clisp.org>
52834         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52835         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52836         Prompted by an exchange with Gilles Espinasse.
52838 2010-04-26  Jim Meyering  <meyering@redhat.com>
52840         git-version-gen: aesthetic tweak
52841         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52842         so that the command remains on a single line.
52844 2010-04-26  Eric Blake  <eblake@redhat.com>
52846         git-version-gen: allow use on EBCDIC hosts
52847         * build-aux/git-version-gen (dirty): Use literal rather than tying
52848         ourselves to ascii.
52849         Reported by Steve Goetze.
52851 2010-04-25  Bruno Haible  <bruno@clisp.org>
52853         netdb: Add support for GNULIB_POSIXCHECK.
52854         * lib/netdb.in.h: Include warn-on-use.h.
52855         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52856         functions are used when GNULIB_POSIXCHECK is defined and the
52857         getaddrinfo module is not in use.
52858         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52859         freeaddrinfo, gai_strerror, getnameinfo are declared.
52860         * modules/netdb (Depends-on): Add warn-on-use.
52861         (Makefile.am): Include warn-on-use.h in netdb.h.
52863 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52865         build: avoid "make check" failure without .git/ directory
52866         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52867         there is no .git/ directory.
52869 2010-04-25  Bruno Haible  <bruno@clisp.org>
52871         ptsname: Fix misuse of ttyname_r.
52872         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52873         of errno.
52875 2010-04-25  Bruno Haible  <bruno@clisp.org>
52877         ttyname_r: Make it work on Solaris 10.
52878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52879         if the system function has the POSIX declaration. Test whether the
52880         function fails if the buffer is less than 128 bytes large.
52881         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52882         system's ttyname_r function. Provide a reasonably large buffer.
52883         * modules/ttyname_r (Depends-on): Add extensions.
52884         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52886 2010-04-25  Bruno Haible  <bruno@clisp.org>
52888         Use the 'extensions' module for some more functions on Solaris.
52889         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52890         module.
52891         * doc/posix-functions/ctime_r.texi: Likewise.
52892         * doc/posix-functions/getgrgid_r.texi: Likewise.
52893         * doc/posix-functions/getgrnam_r.texi: Likewise.
52894         * doc/posix-functions/getpwnam_r.texi: Likewise.
52895         * doc/posix-functions/getpwuid_r.texi: Likewise.
52896         * doc/posix-functions/readdir_r.texi: Likewise.
52897         * doc/posix-functions/sigwait.texi: Likewise.
52898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52899         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52901 2010-04-25  Bruno Haible  <bruno@clisp.org>
52903         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52904         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52905         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52906         * lib/ttyname_r.c: Include <limits.h>.
52907         (ttyname_r): Define using the system's ttyname_r function, if it exists
52908         and not on Solaris.
52909         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52910         set.
52911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52912         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52913         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52914         Reported by Simon Josefsson.
52916 2010-04-25  Bruno Haible  <bruno@clisp.org>
52918         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52919         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52920         * doc/posix-functions/ctime_r.texi: Likewise.
52921         * doc/posix-functions/getgrgid_r.texi: Likewise.
52922         * doc/posix-functions/getgrnam_r.texi: Likewise.
52923         * doc/posix-functions/getlogin_r.texi: Likewise.
52924         * doc/posix-functions/getpwnam_r.texi: Likewise.
52925         * doc/posix-functions/getpwuid_r.texi: Likewise.
52926         * doc/posix-functions/readdir_r.texi: Likewise.
52927         * doc/posix-functions/sigwait.texi: Likewise.
52928         * doc/posix-functions/ttyname_r.texi: Likewise.
52929         Reported by Simon Josefsson.
52931 2010-04-25  Bruno Haible  <bruno@clisp.org>
52933         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52934         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52935         also to --create-testdir.
52936         (func_acceptable): Don't consider the status of *-tests modules here.
52937         (func_modules_transitive_closure): Consider it here, before including a
52938         test module.
52939         (func_import, func_create_testdir): Set inc_all_direct_tests,
52940         inc_all_indirect_tests.
52941         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52942         --create-testdir and --create-megatestdir.
52944 2010-04-25  Bruno Haible  <bruno@clisp.org>
52946         gnulib-tool: Add --without-*-tests options.
52947         * gnulib-tool (func_usage): Document the --without-*-tests options.
52948         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52949         excl_unportable_tests): New variables.
52950         Fail if they are specified with --import or --update.
52951         (func_acceptable): Respect the excl_*_tests variables.
52952         (func_import): Set the excl_*_tests variables to empty.
52954 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52955             Bruno Haible  <bruno@clisp.org>
52957         Work around a MacOS X 10.4 bug with openpty.
52958         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52959         * tests/test-openpty.c (main): Close the master side explicitly.
52961 2010-04-25  Bruno Haible  <bruno@clisp.org>
52963         strnlen: Fix a C++ test error on MacOS X and Solaris.
52964         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52965         the function is not declared.
52966         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52967         Simon Josefsson.
52969 2010-04-24  Bruno Haible  <bruno@clisp.org>
52971         Avoid a gcc warning.
52972         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52973         of correct type for %08lx directive.
52974         Reported by Eric Blake.
52976 2010-04-24  Bruno Haible  <bruno@clisp.org>
52978         vasnprintf: Correct errno value in case of out-of-memory.
52979         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52980         or sprintf. Use the errno value from SNPRINTF or sprintf.
52981         Reported by Ian Beckwith <ianb@erislabs.net>.
52983 2010-04-24  Bruno Haible  <bruno@clisp.org>
52985         ansi-c++-opt: Find correct compiler when cross-compiling.
52986         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52987         AC_CHECK_PROGS.
52988         Reported by Simon Josefsson.
52990 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52992         vc-list-files: Add support for subversion
52993         * build-aux/vc-list-files: Use "svn list" to generate the list of
52994         files controlled by subversion.
52996 2010-04-23  Jim Meyering  <meyering@redhat.com>
52998         vc-list-files tests: convert to use init.sh
52999         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
53000         path_prepend_.
53001         Use Exit, not exit.
53002         Use skip_ rather than open coding it.
53003         Remove trap set-up and compare definitions.
53004         * tests/test-vc-list-files-git.sh: Likewise.
53005         * modules/vc-list-files-tests (Files): Add tests/init.sh.
53007 2010-04-22  Simon Josefsson  <simon@josefsson.org>
53009         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
53010         backup files.
53012 2010-04-21  Simon Josefsson  <simon@josefsson.org>
53014         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
53016 2010-04-20  Eric Blake  <eblake@redhat.com>
53018         tests: be robust to ignored SIGPIPE
53019         * tests/test-select-in.sh: Consume all output.
53020         * tests/test-lseek.sh: Check correct exit status, while avoiding
53021         EPIPE.
53023 2010-04-20  Simon Josefsson  <simon@josefsson.org>
53024             Bruno Haible  <bruno@clisp.org>
53026         visibility: Don't use -fvisibility if it leads to a warning.
53027         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
53028         yes, don't pretend that visibility works if it leads to a warning.
53029         Reported by Mike Gran <spk121@yahoo.com>.
53031 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
53033         * build-aux/bootstrap: Use "git -h" for testing for supported options
53034         instead of "git --help".  The short-form option only shows a summary,
53035         and doesn't layout the full man page.  Grep for the full option name
53036         in the summary, too.
53038 2010-04-19  Bruno Haible  <bruno@clisp.org>
53040         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
53041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
53042         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
53043         mention of RELOCATABLE_STRIP.
53044         Reported by Sylvain Beucler <beuc@beuc.net>.
53046 2010-04-19  Bruno Haible  <bruno@clisp.org>
53048         * lib/diffseq.h: Fix typo in comment.
53049         Reported by Eric Blake.
53051 2010-04-19  Bruno Haible  <bruno@clisp.org>
53053         ioctl: Move autoconf macro to a .m4 file.
53054         * m4/ioctl.m4: New file, extracted from modules/ioctl.
53055         * modules/ioctl (Files): Add it.
53056         (configure.ac): Simply invoke gl_FUNC_IOCTL.
53057         Reported by Ian Beckwith <ianb@erislabs.net>.
53059 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
53060             Bruno Haible  <bruno@clisp.org>
53062         diffseq: Accommodate use-case with abstract arrays.
53063         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
53064         is not defined.
53065         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
53066         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
53068 2010-04-18  Bruno Haible  <bruno@clisp.org>
53070         * doc/posix-headers/stdbool.texi: More precise wording.
53072 2010-04-17  Jim Meyering  <meyering@redhat.com>
53074         maint.mk: use gnu-style indentation in an embedded perl script
53075         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
53076         Rename variable: s/two/last_two_bytes/
53078 2010-04-16  Eric Blake  <eblake@redhat.com>
53080         test-stdbool: skip test that fails with Solaris CC
53081         * tests/test-stdbool.c (f): Skip test that causes compilation
53082         error under buggy C++ compiler.
53083         * lib/stdbool.in.h: Document the limitation.
53084         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
53086         setenv: allow compilation with C++
53087         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
53088         register keyword.
53090         stdint: allow test to pass with C++
53091         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
53093         getopt: allow compilation with C++
53094         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
53095         struct.
53096         * lib/getopt.c (_getopt_internal_r): Use correct type.
53097         Reported by Dagobert Michelson, via Joel E. Denny.
53099 2010-04-16  Bruno Haible  <bruno@clisp.org>
53101         Override netdb.h always.
53102         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
53103         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
53104         Reported by Ludovic Courtès <ludo@gnu.org>.
53106 2010-04-15  Bruno Haible  <bruno@clisp.org>
53108         openpty: Fix mistake from 2010-03-21.
53109         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
53110         Reported by Simon Josefsson.
53112 2010-04-15  Eric Blake  <eblake@redhat.com>
53114         test-forkpty: fix expected signature
53115         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
53116         Reported by Simon Josefsson.
53118 2010-04-15  Jim Meyering  <meyering@redhat.com>
53120         maint.mk: texinfo_suffix_re_: correct the default regexp
53121         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
53123         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53124         make it configurable via texinfo_suffix_re_.
53126 2010-04-14  Eric Blake  <eblake@redhat.com>
53128         strtok_r: relax license to LGPLv2+
53129         * modules/strtok_r (License): Relax license.
53130         Reported by Matthias Bolte.
53132 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53134         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53135         version 1.4.4 by default instead of requiring the libgcrypt
53136         version used during build.  This makes it possible to use the
53137         application with older but still binary compatible libgcrypt
53138         versions.
53140 2010-04-13  Eric Blake  <eblake@redhat.com>
53142         getopt-gnu: match recent glibc fixes and posix ruling
53143         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53144         '+' handling, when requesting extensions.
53145         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53146         'W;' handling.
53147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53148         * doc/posix-functions/getopt.texi (getopt): Document this.
53149         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53150         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53151         Likewise.
53153         getopt: merge bug fixes from glibc
53154         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53155         diagnostics.  Honor '+:' correctly.  Reject ';'.
53157         getopt-posix: detect MacOS bug
53158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53159         optind when missing a required argument.
53160         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53161         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53162         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53163         Likewise.
53165         getopt-posix: avoid spurious failure on Solaris
53166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53167         an indicator that setting optind=1 is sufficient for reset.
53169         getopt-posix: avoid spurious failure on FreeBSD
53170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53171         in POSIX mode, since the m4 test uses it.
53173         gnulib-tool: silence warning on BSD sh
53174         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53176 2010-04-13  Jim Meyering  <meyering@redhat.com>
53178         doc: users.txt: GNU patch now uses gnulib
53179         * users.txt: Add patch.
53181 2010-04-12  Jim Meyering  <meyering@redhat.com>
53183         maint.mk: generate more concise timing data for syntax-check rules
53184         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53185         " done" from each line that reports a syntax-check test duration.
53187 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53189         git-version-gen: use "git update-index..." rather than "git status"
53190         * build-aux/git-version-gen: Use git update-index --refresh, not
53191         "git status".  With some versions of git, "git status" would fail
53192         to update the index and result in an unwarranted "-dirty" suffix.
53194 2010-04-11  Jim Meyering  <meyering@redhat.com>
53196         openat: correct formatting (no semantic change)
53197         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53198         Suggested by Bruno Haible.
53200 2010-04-11  Bruno Haible  <bruno@clisp.org>
53202         Stricter declaration checking in testdirs.
53203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53204         If for_tests is true, augment AM_CPPFLAGS to define
53205         GNULIB_STRICT_CHECKING.
53206         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53207         GNULIB_STRICT_CHECKING is defined, verify that the function is
53208         declared.
53210 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53211             Bruno Haible  <bruno@clisp.org>
53213         libunistring: Improve configure output.
53214         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53215         Don't say "consider installing GNU libunistring" when checking again
53216         with libiconv.
53218 2010-04-11  Bruno Haible  <bruno@clisp.org>
53220         libunistring: Correct value of $LTLIBUNISTRING.
53221         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53222         correct the value of $LTLIBUNISTRING.
53224 2010-04-11  Bruno Haible  <bruno@clisp.org>
53226         havelib: Add static libraries to LIBS in the right order.
53227         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53228         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53230 2010-04-11  Bruno Haible  <bruno@clisp.org>
53232         libunistring: Detect libunistring also when it depends on libiconv.
53233         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53234         the second AC_LIB_HAVE_LINKFLAGS invocation.
53236 2010-04-11  James Youngman  <jay@gnu.org>
53238         close-stream: declare local scalars to be "const"
53239         * lib/close-stream.c (close_stream): Make boolean variables const
53240         to document the fact that we set but do not change them.
53242 2010-04-11  Bruno Haible  <bruno@clisp.org>
53244         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53246 2010-04-11  Jim Meyering  <meyering@redhat.com>
53248         maint.mk: don't include dist-check.mk
53249         * top/maint.mk: Remove bogus include directive.
53251         maint.mk: improve empty-line-at-EOF check
53252         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53253         solution, rather than tail+Perl-based one.  The latter would read
53254         a few kilobytes from the end of each file, and did not handle empty
53255         files properly.
53257         maint.mk: print the elapsed time for each syntax-check rule
53258         * top/maint.mk (sc_m_rules_): Save start time in a file.
53259         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53260         (local-check): Interpose the .z rules
53262 2010-04-11  Jim Meyering  <meyering@redhat.com>
53264         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53265         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53266         empty file with one that ends in an empty line.
53268 2010-04-10  Bruno Haible  <bruno@clisp.org>
53270         mkdir: Make it work on mingw64.
53271         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53272         * lib/mkdir.c: Update comment.
53273         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53275 2010-04-10  Bruno Haible  <bruno@clisp.org>
53277         Don't override improved macro from newer autoconf.
53278         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53279         autoconf >= 2.62.
53280         Reported by Joel E. Denny <jdenny@clemson.edu>.
53282 2010-04-10  Jim Meyering  <meyering@redhat.com>
53284         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53285         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53287         maint.mk: correct a diagnostic
53288         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53289         in diagnostic; now use $prohibit.
53291 2010-04-10  Bruno Haible  <address@hidden>
53293         fchownat: Fix a C++ test error on Solaris 8.
53294         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53295         the function does not exist.
53297 2010-04-10  Bruno Haible  <bruno@clisp.org>
53299         vasnprintf: Add more tests.
53300         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53301         (test_function): Test converting an invalid wide string.
53303         vasnprintf: Correct handling of unconvertible wide string arguments.
53304         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53305         VASNPRINTF.
53306         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53307         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53308         smaller than the expected maximum need for the directive. Set errno to
53309         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53310         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53312         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53313         * modules/vasnprintf (Files): Add m4/printf.m4.
53314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53316 2010-04-10  Bruno Haible  <bruno@clisp.org>
53318         vasnprintf: Fix crash in %ls directive.
53319         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53320         string is passed as argument to %ls, with no precision and no width.
53321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53323 2010-04-10  Bruno Haible  <bruno@clisp.org>
53325         vasnprintf: Fix multiple test failures on mingw.
53326         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53327         _snprintf, or snwprintf, not _snwprintf.
53329 2010-04-10  Bruno Haible  <bruno@clisp.org>
53331         write: Fix a C++ test error on mingw.
53332         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53334 2010-04-10  Bruno Haible  <bruno@clisp.org>
53336         vasnprintf test: Reduce code duplication.
53337         * tests/test-vasnprintf.c (test_function): New function, extracted from
53338         test_vasnprintf.
53339         (test_vasnprintf, test_asnprintf): Invoke it.
53341 2010-04-10  Bruno Haible  <bruno@clisp.org>
53343         strnlen: Fix warning in C++ mode on MacOS X.
53344         * lib/string.in.h (strnlen): Use the modern idiom.
53345         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53346         defining strnlen as a macro already in <config.h>.
53347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53348         REPLACE_STRNLEN.
53349         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53350         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53352 2010-04-08  James Youngman  <jay@gnu.org>
53354         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53355         the example.
53357 2010-04-09  Jim Meyering  <meyering@redhat.com>
53359         maint.mk: print better diagnostic when there is no $(_hv_file)
53360         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53361         announce that when $(_hv_file) (aka help-version) does not exist.
53363         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53364         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53365         not try to interpret its random input bytes.  Jarno Rajahalme reported
53366         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53367         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53368         (mktempd_): Likewise, just in case.
53370         ftruncate: add two years to projected module removal date: 2012
53371         * m4/ftruncate.m4: Adjust comments.
53373         ftruncate: mark module as obsolete; even MinGW provides it, now
53374         * modules/ftruncate (Status): Obsolete.
53375         (Notice): Say that.
53376         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53379 2010-04-08  Bruno Haible  <bruno@clisp.org>
53381         Fix side effects from tests-related modules.
53382         * modules/dprintf-posix (Comment): New section.
53383         * modules/fprintf-posix (Comment): Likewise.
53384         * modules/obstack-printf-posix (Comment): Likewise.
53385         * modules/printf-posix (Comment): Likewise.
53386         * modules/snprintf-posix (Comment): Likewise.
53387         * modules/sprintf-posix (Comment): Likewise.
53388         * modules/vasnprintf-posix (Comment): Likewise.
53389         * modules/vasprintf-posix (Comment): Likewise.
53390         * modules/vdprintf-posix (Comment): Likewise.
53391         * modules/vfprintf-posix (Comment): Likewise.
53392         * modules/vprintf-posix (Comment): Likewise.
53393         * modules/vsnprintf-posix (Comment): Likewise.
53394         * modules/vsprintf-posix (Comment): Likewise.
53395         * modules/xprintf-posix (Comment): Likewise.
53396         * modules/xvasprintf-posix (Comment): Likewise.
53397         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53398         * modules/floorf-tests (Depends-on): Likewise.
53399         * modules/round-tests (Depends-on): Likewise.
53400         * modules/roundf-tests (Depends-on): Likewise.
53401         * modules/trunc-tests (Depends-on): Likewise.
53402         * modules/truncf-tests (Depends-on): Likewise.
53403         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53404         'fprintf-posix' module is not present.
53405         * tests/test-floorf2.c (check): Likewise.
53406         * tests/test-trunc2.c (check): Likewise.
53407         * tests/test-truncf2.c (check): Likewise.
53408         * tests/test-round2.c (equal): Likewise.
53409         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53411 2010-04-07  Karl Berry  <karl@gnu.org>
53413         * config/srclist.txt,
53414         * config/srclistvars.sh,
53415         * config/srclist-update: doc fixes.
53417 2010-04-07  Jim Meyering  <meyering@redhat.com>
53419         maint.mk: add a PATH crosschecking syntax-check rule
53420         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53421         Useful if you use a test like the one in help-version (coreutils,
53422         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53423         printed by prog --version.
53425 2010-04-06  Bruno Haible  <bruno@clisp.org>
53427         Fix link error on mingw.
53428         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53429         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53431 2010-04-06  Bruno Haible  <bruno@clisp.org>
53433         Assume rmdir exists.
53434         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53436 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53438         doc: update users.txt
53439         * users.txt: Add gcal.
53441 2010-04-06  Jim Meyering  <meyering@redhat.com>
53443         init.sh: simply unset TMPDIR rather than risking env -i
53444         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53445         although it probably works fine on all Unix-based systems, some
53446         systems (Cygwin?) cannot tolerate a totally cleared environment.
53447         Suggestion from Eric Blake.
53449 2010-04-06  Jim Meyering  <meyering@redhat.com>
53451         init.sh: portability fix: use env's POSIX-specified -i option not -u
53452         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53453         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53455 2010-04-05  Bruno Haible  <bruno@clisp.org>
53457         btowc: Work around Cygwin 1.7.2 bug.
53458         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53459         does not map NUL to 0.
53460         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53462 2010-04-05  Bruno Haible  <bruno@clisp.org>
53464         Make the multithread modules work on Cygwin 1.7.2.
53465         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53466         imported symbols can be declared weak, so that it returns "no" on
53467         Cygwin 1.7.2.
53469 2010-04-05  Bruno Haible  <bruno@clisp.org>
53471         Use the module 'strncat'.
53472         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53474         Tests for module 'strncat'.
53475         * modules/strncat-tests: New file.
53476         * tests/test-strncat.c: New file.
53478         New module 'strncat'.
53479         * lib/string.in.h (strncat): New declaration.
53480         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53481         * m4/strncat.m4: New file, based on m4/memchr.m4.
53482         * modules/strncat: New file.
53483         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53484         is declared.
53485         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53486         REPLACE_STRNCAT.
53487         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53488         REPLACE_STRNCAT.
53489         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53490         module.
53491         * tests/test-string-c++.cc: Check signature of strncat.
53493 2010-04-05  Jim Meyering  <meyering@redhat.com>
53495         xstrtoumax-tests: convert to use init.sh
53496         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53497         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53498         Use Exit, not exit.
53499         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53501         xstrtoimax-tests: convert to use init.sh
53502         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53503         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53504         Use Exit, not exit.
53505         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53507 2010-04-05  Bruno Haible  <bruno@clisp.org>
53509         sys_socket: Avoid #define replacements in C++ mode.
53510         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53511         warning to the function if possible, rather than #defining the symbol
53512         to a dysfunctional alias.
53514 2010-04-05  Bruno Haible  <bruno@clisp.org>
53516         fseeko: Fix C++ test error on mingw.
53517         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53518         gl_FUNC_FSEEKO.
53519         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53520         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53521         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53522         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53524 2010-04-05  Bruno Haible  <bruno@clisp.org>
53526         duplocale: Improve test output.
53527         * tests/test-duplocale.c (main): Print reason for skipped test.
53529 2010-04-05  Bruno Haible  <bruno@clisp.org>
53531         Assume rmdir exists.
53532         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53533         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53535 2010-04-05  Bruno Haible  <bruno@clisp.org>
53537         Fix link error on Solaris 8 with cc.
53538         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53540 2010-04-05  Bruno Haible  <bruno@clisp.org>
53542         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53543         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53545 2010-04-05  Bruno Haible  <bruno@clisp.org>
53547         vasprintf: Update documentation.
53548         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53550 2010-04-05  Bruno Haible  <bruno@clisp.org>
53552         ptsname: Improve test.
53553         * tests/test-ptsname.c (main): Also try the various master names of BSD
53554         systems.
53556 2010-04-05  Bruno Haible  <bruno@clisp.org>
53558         memchr: Avoid a possible C++ test error.
53559         * lib/string.in.h (memchr): Provide declaration if function is missing.
53560         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53561         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53563         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53565 2010-04-05  Bruno Haible  <bruno@clisp.org>
53567         strtok_r: Improve idiom.
53568         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53569         AC_LIBOBJ is used.
53571 2010-04-05  Bruno Haible  <bruno@clisp.org>
53573         strdup: Improve idiom.
53574         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53575         AC_LIBOBJ is used.
53576         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53577         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53578         when AC_LIBOBJ is used.
53580 2010-04-05  Bruno Haible  <bruno@clisp.org>
53582         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53583         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53584         don't set REPLACE_MBSINIT to 1.
53585         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53586         don't set REPLACE_MBRTOWC to 1.
53587         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53588         exist, don't set REPLACE_MBSRTOWCS to 1.
53589         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53590         exist, don't set REPLACE_MBSNRTOWCS to 1.
53591         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53592         don't set REPLACE_WCRTOMB to 1.
53593         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53594         exist, don't set REPLACE_WCSRTOMBS to 1.
53595         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53596         exist, don't set REPLACE_WCSNRTOMBS to 1.
53598 2010-04-05  Bruno Haible  <bruno@clisp.org>
53600         ldexpl: Improve idiom.
53601         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53602         make sure to set HAVE_DECL_LDEXPL to 0.
53604 2010-04-05  Jim Meyering  <meyering@redhat.com>
53606         xstrtol-tests: convert to use init.sh
53607         * modules/xstrtol-tests (Files): Add tests/init.sh.
53608         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53609         Use Exit, not exit.
53610         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53612         atexit-tests: convert to use init.sh
53613         * modules/atexit-tests (Files): Add tests/init.sh.
53614         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53615         Use Exit, not exit.
53616         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53618         init.sh: fix typo
53619         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53621         init.sh: make it easier for a test script to write to the tty, ...
53622         when using automake's parallel-tests mode.
53623         * tests/init.sh (stderr_fileno_): Define overridable variable.
53624         (warn_): New function, to use it.
53625         (fail_, skip_, framework_failure_): Use warn_.
53627 2010-04-04  Bruno Haible  <bruno@clisp.org>
53629         btowc: Avoid warning.
53630         * lib/btowc.c: Include <stdlib.h>.
53631         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53633 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53634             Bruno Haible  <bruno@clisp.org>
53636         wchar: Port to NetBSD 1.5.
53637         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53638         * lib/wctype.in.h (WEOF): Likewise.
53640 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53641             Bruno Haible  <bruno@clisp.org>
53643         Port extended stdio to NetBSD 1.5.
53644         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53645         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53646         older.
53648 2010-04-04  Bruno Haible  <bruno@clisp.org>
53650         string: Remove unused substitution.
53651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53652         HAVE_DECL_STRERROR.
53653         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53655 2010-04-04  Bruno Haible  <bruno@clisp.org>
53657         strtod: Avoid a possible C++ test error.
53658         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53659         set REPLACE_STRTOD.
53661 2010-04-04  Bruno Haible  <bruno@clisp.org>
53663         strerror: Update documentation.
53664         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53666 2010-04-04  Bruno Haible  <bruno@clisp.org>
53668         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53669         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53670         _GL_CXXALIAS_SYS_CAST.
53672 2010-04-04  Bruno Haible  <bruno@clisp.org>
53674         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53675         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53676         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53677         REPLACE_FREXPL to 1.
53678         * doc/posix-functions/frexpl.texi: Update documentation.
53680 2010-04-04  Bruno Haible  <bruno@clisp.org>
53682         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53683         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53685 2010-04-04  Bruno Haible  <bruno@clisp.org>
53687         Implement nanosleep for native Windows.
53688         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53690 2010-04-04  Bruno Haible  <bruno@clisp.org>
53692         math: Fix some C++ test errors on Solaris 8.
53693         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53695 2010-04-04  Bruno Haible  <bruno@clisp.org>
53697         math: Fix some C++ test errors on Cygwin.
53698         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53699         truncl): Provide declaration if the system does not have it.
53700         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53701         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53702         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53703         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53704         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53705         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53706         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53707         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53708         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53709         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53710         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53711         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53712         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53713         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53714         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53715         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53717         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53718         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53719         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53720         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53721         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53723 2010-04-04  Bruno Haible  <bruno@clisp.org>
53725         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53726         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53727         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53728         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53729         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53730         * m4/isinf.m4 (gl_ISINF): Likewise.
53731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53733 2010-04-04  Bruno Haible  <bruno@clisp.org>
53735         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53736         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53738 2010-04-04  Bruno Haible  <bruno@clisp.org>
53740         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53741         * modules/tmpfile (configure.ac): Update.
53743         tmpfile: Fix C++ test error on mingw.
53744         * lib/stdio.in.h (tmpfile): New declaration.
53745         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53746         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53747         * modules/tmpfile (Depends-on): Add stdio.
53748         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53749         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53750         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53751         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53752         REPLACE_TMPFILE.
53753         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53755 2010-04-04  Bruno Haible  <bruno@clisp.org>
53757         ioctl: Fix C++ test error on mingw.
53758         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53759         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53760         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53762 2010-04-03  Bruno Haible  <bruno@clisp.org>
53764         wcwidth: Fix C++ test error on mingw.
53765         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53767         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53769 2010-04-03  Bruno Haible  <bruno@clisp.org>
53771         nanosleep: Fix C++ test error on mingw.
53772         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53773         * lib/time.in.h (nanosleep): Use modern idiom.
53774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53775         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53776         REPLACE_NANOSLEEP to 1.
53777         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53778         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53780 2010-04-03  Bruno Haible  <bruno@clisp.org>
53782         strptime: Fix C++ test error on mingw.
53783         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53784         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53785         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53786         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53788         not REPLACE_STRPTIME.
53789         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53790         REPLACE_STRPTIME.
53792 2010-04-03  Bruno Haible  <bruno@clisp.org>
53794         timegm: Fix C++ test error on mingw.
53795         * lib/time.in.h (timegm): Use modern idiom.
53796         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53797         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53798         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53799         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53801 2010-04-03  Bruno Haible  <bruno@clisp.org>
53803         timegm: Assume declaration if function exists.
53804         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53805         if it exists. Don't clobber ac_cv_func_timegm.
53807 2010-04-03  Bruno Haible  <bruno@clisp.org>
53809         time_r: Fix C++ test error on mingw.
53810         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53811         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53812         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53814         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53816 2010-04-03  Bruno Haible  <bruno@clisp.org>
53818         time_r: Minor updates.
53819         * modules/time_r (Description): Mention the provided functions.
53820         * lib/time_r.c: Don't include <string.h>.
53821         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53822         * doc/posix-functions/localtime_r.texi: Likewise.
53824 2010-04-03  Bruno Haible  <bruno@clisp.org>
53826         time: Fix regression introduced on 2010-03-08.
53827         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53828         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53830 2010-04-03  Jim Meyering  <meyering@redhat.com>
53832         maint.mk: don't silently disable project-specific syntax-check rules
53833         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53834         that they need to convert their project-specific syntax-check rules
53835         to use the new _sc_search_regexp.
53837 2010-04-03  Bruno Haible  <bruno@clisp.org>
53839         fchdir: Fix regression introduced on 2010-03-08.
53840         * lib/unistd.in.h (fchdir): Fix declaration.
53841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53843         REPLACE_FCHDIR.
53844         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53845         REPLACE_FCHDIR.
53847 2010-04-03  Bruno Haible  <bruno@clisp.org>
53849         getpagesize: Fix C++ test error on mingw.
53850         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53851         system does not declare the function.
53852         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53853         declared.
53854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53855         HAVE_DECL_GETPAGESIZE.
53856         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53858 2010-04-03  Bruno Haible  <bruno@clisp.org>
53860         stdio: Make C++ tests work on mingw.
53861         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53862         does not declare the function.
53864 2010-04-03  Bruno Haible  <bruno@clisp.org>
53866         ftello: Fix C++ test error on mingw.
53867         * lib/stdio.in.h (ftello): Use modern idiom.
53868         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53869         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53870         is missing and that it needs to be replaced.
53871         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53873         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53875 2010-04-03  Bruno Haible  <bruno@clisp.org>
53877         fseeko: Fix C++ test error on mingw.
53878         * lib/stdio.in.h (fseeko): Use modern idiom.
53879         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53881         is missing and that it needs to be replaced.
53882         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53884         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53886 2010-04-03  Bruno Haible  <bruno@clisp.org>
53888         mkstemp: Fix C++ test error on mingw.
53889         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53891         function is missing and that it needs to be replaced.
53892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53893         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53895 2010-04-03  Bruno Haible  <bruno@clisp.org>
53897         stpncpy: Fix C++ test error on mingw.
53898         * lib/string.in.h (stpncpy): Use modern idiom.
53899         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53900         function is missing and that it needs to be replaced.
53901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53902         REPLACE_STPNCPY.
53903         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53905 2010-04-03  Bruno Haible  <bruno@clisp.org>
53907         sys_stat: Fix C++ test error on mingw.
53908         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53909         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53911 2010-04-03  Bruno Haible  <bruno@clisp.org>
53913         pty: Update doc.
53914         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53916 2010-04-03  Bruno Haible  <bruno@clisp.org>
53918         unistd: Fix C++ test error on mingw.
53919         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53921 2010-04-03  Bruno Haible  <bruno@clisp.org>
53923         Update doc regarding mingw.
53924         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53925         * doc/glibc-functions/login_tty.texi: Likewise.
53926         * doc/glibc-functions/forkpty.texi: Likewise.
53928 2010-04-03  Bruno Haible  <bruno@clisp.org>
53930         stdlib: Avoid compilation failure of c-strtold on mingw.
53931         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53933 2010-04-03  Bruno Haible  <bruno@clisp.org>
53935         locale: Make C++ tests work on Cygwin and mingw.
53936         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53937         cannot provide the function.
53938         Reported by Simon Josefsson.
53940 2010-04-03  Bruno Haible  <bruno@clisp.org>
53942         localename: Port to MacOS X 10.6.
53943         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53944         memory layout of the locales in MacOS X 10.6 as well.
53945         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53947 2010-04-02  Bruno Haible  <bruno@clisp.org>
53949         gnulib-tool: Ensure that long-running tests are executed last.
53950         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53951         running tests after the one for the other tests.
53953 2010-04-02  Bruno Haible  <bruno@clisp.org>
53955         gnulib-tool: Ensure the tests in the main directory are executed first.
53956         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53957         start with the current directory.
53959 2010-04-02  Bruno Haible  <bruno@clisp.org>
53961         Tests for module 'havelib', moved here from GNU gettext.
53962         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53963         modifications.
53964         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53965         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53966         with modifications.
53967         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53968         modifications.
53969         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53970         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53971         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53972         with modifications.
53973         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53974         with modifications.
53975         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53976         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53977         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53978         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53979         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53980         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53981         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53982         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53983         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53984         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53985         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53986         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53987         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53988         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53989         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53990         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53991         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53992         with modifications.
53993         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53994         with modifications.
53995         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53996         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53997         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53998         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53999         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
54000         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
54001         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
54002         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
54003         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
54004         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
54005         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
54006         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
54007         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
54008         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
54009         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
54010         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
54011         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
54012         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
54013         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
54014         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
54015         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
54016         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
54017         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
54018         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
54019         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
54020         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
54021         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
54022         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
54023         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
54024         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
54025         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
54026         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
54027         * tests/havelib/rpathx/rpathx.c: New file, from
54028         gettext/autoconf-lib-link.
54029         * tests/havelib/rpathx/Makefile.am: New file, from
54030         gettext/autoconf-lib-link.
54031         * tests/havelib/rpathx/configure.ac: New file, from
54032         gettext/autoconf-lib-link with modifications.
54033         * tests/havelib/rpathy/rpathy.c: New file, from
54034         gettext/autoconf-lib-link.
54035         * tests/havelib/rpathy/Makefile.am: New file, from
54036         gettext/autoconf-lib-link.
54037         * tests/havelib/rpathy/configure.ac: New file, from
54038         gettext/autoconf-lib-link with modifications.
54039         * tests/havelib/rpathz/rpathz.c: New file, from
54040         gettext/autoconf-lib-link.
54041         * tests/havelib/rpathz/Makefile.am: New file, from
54042         gettext/autoconf-lib-link.
54043         * tests/havelib/rpathz/configure.ac: New file, from
54044         gettext/autoconf-lib-link with modifications.
54045         * tests/havelib/rpathlx/usex.c: New file, from
54046         gettext/autoconf-lib-link.
54047         * tests/havelib/rpathlx/Makefile.am: New file, from
54048         gettext/autoconf-lib-link.
54049         * tests/havelib/rpathlx/configure.ac: New file, from
54050         gettext/autoconf-lib-link with modifications.
54051         * tests/havelib/rpathly/usey.c: New file, from
54052         gettext/autoconf-lib-link.
54053         * tests/havelib/rpathly/Makefile.am: New file, from
54054         gettext/autoconf-lib-link.
54055         * tests/havelib/rpathly/configure.ac: New file, from
54056         gettext/autoconf-lib-link with modifications.
54057         * tests/havelib/rpathlz/usez.c: New file, from
54058         gettext/autoconf-lib-link.
54059         * tests/havelib/rpathlz/Makefile.am: New file, from
54060         gettext/autoconf-lib-link.
54061         * tests/havelib/rpathlz/configure.ac: New file, from
54062         gettext/autoconf-lib-link with modifications.
54063         * tests/havelib/rpathlyx/usey.c: New file, from
54064         gettext/autoconf-lib-link.
54065         * tests/havelib/rpathlyx/Makefile.am: New file, from
54066         gettext/autoconf-lib-link.
54067         * tests/havelib/rpathlyx/configure.ac: New file, from
54068         gettext/autoconf-lib-link with modifications.
54069         * tests/havelib/rpathlzyx/usez.c: New file, from
54070         gettext/autoconf-lib-link.
54071         * tests/havelib/rpathlzyx/Makefile.am: New file, from
54072         gettext/autoconf-lib-link.
54073         * tests/havelib/rpathlzyx/configure.ac: New file, from
54074         gettext/autoconf-lib-link with modifications.
54075         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
54076         with modifications.
54078 2010-04-02  Bruno Haible  <bruno@clisp.org>
54080         gnulib-tool: Create distributed built sources also for the tests.
54081         * gnulib-tool (func_create_testdir): Also generate distributed built
54082         sources in the tests directory.
54084 2010-04-02  Bruno Haible  <bruno@clisp.org>
54086         gnulib-tool: Obey user's environment variables.
54087         * gnulib-tool (func_create_testdir): When creating built sources,
54088         respect the environment variables for autoconf, automake, etc. given by
54089         the user.
54091 2010-04-02  Bruno Haible  <bruno@clisp.org>
54093         gnulib-tool: Provide the value of --m4-base to modules.
54094         * gnulib-tool (func_import, func_create_testdir): Emit a definition
54095         of gl_m4_base.
54097 2010-04-02  Eric Blake  <eblake@redhat.com>
54099         maint.mk: fix some fallout
54100         * NEWS: Document the incompatible change, and its effect on cfg.mk.
54101         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
54103 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54105         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
54106         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
54107         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
54108         (sc_cast_of_x_alloc_return_value): Likewise.
54109         (sc_cast_of_alloca_return_value): Likewise.
54110         (sc_space_tab): Likewise.
54111         (sc_prohibit_atoi_atof): Likewise.
54112         (sc_prohibit_magic_number_exit): Likewise.
54113         (sc_error_exit_success): Likewise.
54114         (sc_file_system): Likewise.
54115         (sc_prohibit_have_config_h): Likewise.
54116         (sc_require_config_h): Likewise.
54117         (sc_prohibit_HAVE_MBRTOWC): Likewise.
54118         (sc_obsolete_symbols): Likewise.
54119         (sc_changelog): Likewise.
54120         (sc_program_name): Likewise.
54121         (sc_the_the): Likewise.
54122         (sc_trailing_blank): Likewise.
54123         (sc_two_space_separator_in_usage): Likewise.
54124         (sc_useless_cpp_parens): Likewise.
54125         (sc_GPL_version): Likewise.
54126         (sc_GFDL_version): Likewise.
54127         (sc_texinfo_acronym): Likewise.
54128         (sc_prohibit_cvs_keyword): Likewise.
54129         (sc_prohibit_stat_st_blocks): Likewise.
54130         (sc_prohibit_S_IS_definition): Likewise.
54131         (sc_redundant_const): Likewise.
54132         (sc_makefile_TAB_only_indentation): Likewise.
54133         (sc_m4_quote_check): Likewise.
54134         (sc_makefile_path_separator_check): Likewise.
54135         (sc_copyright_check): Likewise.
54136         (sc_Wundef_boolean): Likewise.
54137         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54139         maint.mk: match 0 or more whitespace-before-function-call '('
54140         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54141         that have zero or two-and-more spaces between the function name
54142         and the open parenthesis.
54143         (sc_error_message_warn_fatal): Likewise.
54144         (sc_error_message_uppercase): Likewise.
54145         (sc_error_message_period): Likewise.
54147 2010-03-31  Eric Blake  <eblake@redhat.com>
54149         maint.mk: check for [ as well as test
54150         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54151         Based on a libvirt report by Matthias Bolte.
54153         gnumakefile: don't squelch _version output
54154         * top/GNUmakefile (_version): Create one-shot dependency rather
54155         than using $(shell) when version must be regenerated.
54156         (_autoreconf): Run verbosely, by default.
54158         sys_time: avoid compiler warnings
54159         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54160         unconditional, fixing regression from 2010-03-29.
54161         Reported by Simon Josefsson.
54163 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54165         maint.mk: s/_header_without_use/_sc_header_without_use/
54166         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54167         (sc_prohibit_assert_without_use): Use the new name.
54168         (sc_prohibit_close_stream_without_use): Likewise.
54169         (sc_prohibit_getopt_without_use): Likewise.
54170         (sc_prohibit_quotearg_without_use): Likewise.
54171         (sc_prohibit_quote_without_use): Likewise.
54172         (sc_prohibit_long_options_without_use): Likewise.
54173         (sc_prohibit_inttostr_without_use): Likewise.
54174         (sc_prohibit_ignore_value_without_use): Likewise.
54175         (sc_prohibit_error_without_use): Likewise.
54176         (sc_prohibit_xalloc_without_use): Likewise.
54177         (sc_prohibit_hash_without_use): Likewise.
54178         (sc_prohibit_hash_pjw_without_use): Likewise.
54179         (sc_prohibit_safe_read_without_use): Likewise.
54180         (sc_prohibit_argmatch_without_use): Likewise.
54181         (sc_prohibit_canonicalize_without_use): Likewise.
54182         (sc_prohibit_root_dev_ino_without_use): Likewise.
54183         (sc_prohibit_openat_without_use): Likewise.
54184         (sc_prohibit_c_ctype_without_use): Likewise.
54185         (sc_prohibit_signal_without_use): Likewise.
54186         (sc_prohibit_intprops_without_use): Likewise.
54188 2010-03-30  Eric Blake  <eblake@redhat.com>
54190         maint: improve module indicators
54191         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54192         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54193         columns, and avoid extra macro expansion.
54195         fdopendir: work around FreeBSD bug
54196         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54198         * modules/dirent (Makefile.am): Substitute it.
54199         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54200         declaration.
54201         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54202         fix.
54203         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54205 2010-03-29  Bruno Haible  <bruno@clisp.org>
54207         Emit #pragma system_header after the inclusion guard, not before.
54208         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54209         guard that spans the entire file, not before. This enables an
54210         optimization in GCC's preprocessor.
54211         * lib/ctype.in.h: Likewise.
54212         * lib/dirent.in.h: Likewise.
54213         * lib/errno.in.h: Likewise.
54214         * lib/float.in.h: Likewise.
54215         * lib/getopt.in.h: Likewise.
54216         * lib/iconv.in.h: Likewise.
54217         * lib/langinfo.in.h: Likewise.
54218         * lib/locale.in.h: Likewise.
54219         * lib/math.in.h: Likewise.
54220         * lib/netdb.in.h: Likewise.
54221         * lib/netinet_in.in.h: Likewise.
54222         * lib/pty.in.h: Likewise.
54223         * lib/sched.in.h: Likewise.
54224         * lib/se-selinux.in.h: Likewise.
54225         * lib/search.in.h: Likewise.
54226         * lib/spawn.in.h: Likewise.
54227         * lib/stdarg.in.h: Likewise.
54228         * lib/stdint.in.h: Likewise.
54229         * lib/string.in.h: Likewise.
54230         * lib/strings.in.h: Likewise.
54231         * lib/sys_file.in.h: Likewise.
54232         * lib/sys_ioctl.in.h: Likewise.
54233         * lib/sys_time.in.h: Likewise.
54234         * lib/sys_times.in.h: Likewise.
54235         * lib/sys_utsname.in.h: Likewise.
54236         * lib/sys_wait.in.h: Likewise.
54237         * lib/sysexits.in.h: Likewise.
54238         * lib/wctype.in.h: Likewise.
54240 2010-03-28  James Youngman  <jay@gnu.org>
54242         save-cwd: don't leak a file descriptor when the caller execs.
54243         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54244         saved file descriptor.
54245         * modules/save-cwd (Depends-on): Depend on cloexec.
54247 2010-03-29  Bruno Haible  <bruno@clisp.org>
54249         Remove vestiges of fts-lgpl module.
54250         * lib/fts_.h: Assume GNULIB_FTS is 1.
54251         * lib/fts.c: Likewise.
54252         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54254 2010-03-28  Bruno Haible  <bruno@clisp.org>
54256         Fix definition of tests witness macro.
54257         * gnulib-tool (func_import): Fix definition of witness macro.
54259 2010-03-28  Bruno Haible  <bruno@clisp.org>
54261         Fix ioctl's protoype on glibc systems.
54262         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54263         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54264         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54265         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54266         signature. If not, arrange to replace the ioctl function.
54267         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54268         REPLACE_IOCTL.
54269         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54270         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54271         Reported by Ludovic Courtès <ludo@gnu.org>.
54273 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54275         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54276         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54277         made it so grep -r --include=GLOB* ... did not work.
54279 2010-03-26  Jim Meyering  <meyering@redhat.com>
54280             Eric Blake  <eblake@redhat.com>
54282         maint.mk: prohibit use of test's -o and -a operators
54283         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54285 2010-03-28  Bruno Haible  <bruno@clisp.org>
54287         Remove unused GNULIB_XYZ macro definitions.
54288         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54289         invocation.
54291 2010-03-28  Bruno Haible  <bruno@clisp.org>
54293         Mark privileged tests modules.
54294         * modules/idpriv-drop-tests (Status): New section.
54295         * modules/idpriv-droptemp-tests (Status): New section.
54297 2010-03-28  Bruno Haible  <bruno@clisp.org>
54299         Split C++ tests into separate tests modules.
54300         * modules/dirent-c++-tests: New file, extracted from
54301         modules/dirent-tests.
54302         * modules/dirent-tests: Depend on it.
54303         * modules/fcntl-h-c++-tests: New file, extracted from
54304         modules/fcntl-h-tests.
54305         * modules/fcntl-h-tests: Depend on it.
54306         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54307         * modules/glob-tests: Depend on it.
54308         * modules/iconv-h-c++-tests: New file, extracted from
54309         modules/iconv-h-tests.
54310         * modules/iconv-h-tests: Depend on it.
54311         * modules/langinfo-c++-tests: New file, extracted from
54312         modules/langinfo-tests.
54313         * modules/langinfo-tests: Depend on it.
54314         * modules/locale-c++-tests: New file, extracted from
54315         modules/locale-tests.
54316         * modules/locale-tests: Depend on it.
54317         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54318         * modules/math-tests: Depend on it.
54319         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54320         * modules/pty-tests: Depend on it.
54321         * modules/search-c++-tests: New file, extracted from
54322         modules/search-tests.
54323         * modules/search-tests: Depend on it.
54324         * modules/signal-c++-tests: New file, extracted from
54325         modules/signal-tests.
54326         * modules/signal-tests: Depend on it.
54327         * modules/spawn-c++-tests: New file, extracted from
54328         modules/spawn-tests.
54329         * modules/spawn-tests: Depend on it.
54330         * modules/stdio-c++-tests: New file, extracted from
54331         modules/stdio-tests.
54332         * modules/stdio-tests: Depend on it.
54333         * modules/stdlib-c++-tests: New file, extracted from
54334         modules/stdlib-tests.
54335         * modules/stdlib-tests: Depend on it.
54336         * modules/string-c++-tests: New file, extracted from
54337         modules/string-tests.
54338         * modules/string-tests: Depend on it.
54339         * modules/sys_ioctl-c++-tests: New file, extracted from
54340         modules/sys_ioctl-tests.
54341         * modules/sys_ioctl-tests: Depend on it.
54342         * modules/sys_select-c++-tests: New file, extracted from
54343         modules/sys_select-tests.
54344         * modules/sys_select-tests: Depend on it.
54345         * modules/sys_socket-c++-tests: New file, extracted from
54346         modules/sys_socket-tests.
54347         * modules/sys_socket-tests: Depend on it.
54348         * modules/sys_stat-c++-tests: New file, extracted from
54349         modules/sys_stat-tests.
54350         * modules/sys_stat-tests: Depend on it.
54351         * modules/sys_time-c++-tests: New file, extracted from
54352         modules/sys_time-tests.
54353         * modules/sys_time-tests: Depend on it.
54354         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54355         * modules/time-tests: Depend on it.
54356         * modules/unistd-c++-tests: New file, extracted from
54357         modules/unistd-tests.
54358         * modules/unistd-tests: Depend on it.
54359         * modules/wchar-c++-tests: New file, extracted from
54360         modules/wchar-tests.
54361         * modules/wchar-tests: Depend on it.
54362         * modules/wctype-c++-tests: New file, extracted from
54363         modules/wctype-tests.
54364         * modules/wctype-tests: Depend on it.
54365         Reported by Simon Josefsson.
54367 2010-03-28  Bruno Haible  <bruno@clisp.org>
54369         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54370         * gnulib-tool (func_exists_module): New function, extracted from
54371         func_verify_module.
54372         (func_verify_module): Use it.
54373         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54374         'foo' only if 'foo' exists.
54375         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54376         module.
54378 2010-03-28  Bruno Haible  <bruno@clisp.org>
54380         gnulib-tool: Add support for special categories of tests.
54381         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54382         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54383         (func_usage): Document them.
54384         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54385         inc_unportable_tests, inc_all_tests): New variables.
54386         (func_acceptable): Consider these variables.
54387         (func_modules_transitive_closure): Make it work when the 'Status' field
54388         consists of multiple words.
54389         (func_import): Store and restore the values of inc_cxx_tests,
54390         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54391         inc_all_tests in gnulib-comp.m4.
54392         (func_create_testdir): Set inc_all_tests to true.
54393         * doc/gnulib.texi (Extra tests modules): New section.
54394         Suggested by Jim Meyering.
54396 2010-03-28  Bruno Haible  <bruno@clisp.org>
54398         ansi-c++-opt: Allow turning off the C++ build by default.
54399         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54400         gl_CXX_CHOICE_DEFAULT_NO is defined.
54401         Requested by Eric Blake.
54403 2010-03-28  Bruno Haible  <bruno@clisp.org>
54405         unistd: Avoid #define replacements in C++ mode.
54406         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54407         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54408         setsockopt, shutdown, select): In C++, attach a warning to the function
54409         if possible, rather than #defining the symbol to a dysfunctional alias.
54410         Reported by John W. Eaton <jwe@gnu.org>.
54412 2010-03-28  Bruno Haible  <bruno@clisp.org>
54414         Fix link errors on mingw.
54415         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54416         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54417         $(LIBSOCKET).
54418         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54419         $(LIBSOCKET).
54421 2010-03-28  Bruno Haible  <bruno@clisp.org>
54422             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54424         lib-ignore: Determine different options for different compilers.
54425         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54426         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54427         Add comments.
54428         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54429         * NEWS: Mention the change.
54431 2010-03-27  Bruno Haible  <bruno@clisp.org>
54433         Remove unused GNULIB_XYZ macro definitions.
54434         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54435         * modules/fseek (configure.ac): Likewise.
54436         * modules/ioctl (configure.ac): Likewise.
54437         * modules/open (configure.ac): Likewise.
54438         * modules/stdlib-safer (configure.ac): Likewise.
54440 2010-03-27  Bruno Haible  <bruno@clisp.org>
54442         Add a remark about certain modules.
54443         * modules/malloc (Comment): New section.
54444         * modules/realloc (Comment): Likewise.
54445         * modules/sigpipe (Comment): Likewise.
54447 2010-03-27  Bruno Haible  <bruno@clisp.org>
54449         Resolve conflict between the two kinds of module indicators.
54450         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54451         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54452         * modules/canonicalize (configure.ac): Invoke
54453         gl_MODULE_INDICATOR_FOR_TESTS.
54454         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54455         GNULIB_XYZ.
54456         * tests/test-dirent-c++.cc: Likewise.
54457         * tests/test-dirent-safer.c: Likewise.
54458         * tests/test-dup2.c: Likewise.
54459         * tests/test-fchdir.c: Likewise.
54460         * tests/test-fcntl-h-c++.cc: Likewise.
54461         * tests/test-getopt.c: Likewise.
54462         * tests/test-getopt.h: Likewise.
54463         * tests/test-langinfo-c++.cc: Likewise.
54464         * tests/test-locale-c++.cc: Likewise.
54465         * tests/test-math-c++.cc: Likewise.
54466         * tests/test-pty-c++.cc: Likewise.
54467         * tests/test-search-c++.cc: Likewise.
54468         * tests/test-signal-c++.cc: Likewise.
54469         * tests/test-spawn-c++.cc: Likewise.
54470         * tests/test-stdio-c++.cc: Likewise.
54471         * tests/test-stdlib-c++.cc: Likewise.
54472         * tests/test-string-c++.cc: Likewise.
54473         * tests/test-sys_ioctl-c++.cc: Likewise.
54474         * tests/test-sys_select-c++.cc: Likewise.
54475         * tests/test-sys_socket-c++.cc: Likewise.
54476         * tests/test-sys_stat-c++.cc: Likewise.
54477         * tests/test-sys_time-c++.cc: Likewise.
54478         * tests/test-time-c++.cc: Likewise.
54479         * tests/test-unistd-c++.cc: Likewise.
54480         * tests/test-wchar-c++.cc: Likewise.
54481         * tests/uninorm/test-u8-nfc.c: Likewise.
54482         * tests/uninorm/test-u8-nfd.c: Likewise.
54483         * tests/uninorm/test-u8-nfkc.c: Likewise.
54484         * tests/uninorm/test-u8-nfkd.c: Likewise.
54485         * tests/uninorm/test-u16-nfc.c: Likewise.
54486         * tests/uninorm/test-u16-nfd.c: Likewise.
54487         * tests/uninorm/test-u16-nfkc.c: Likewise.
54488         * tests/uninorm/test-u16-nfkd.c: Likewise.
54489         * tests/uninorm/test-u32-nfc.c: Likewise.
54490         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54491         * tests/uninorm/test-u32-nfd.c: Likewise.
54492         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54493         * tests/uninorm/test-u32-nfkc.c: Likewise.
54494         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54495         * tests/uninorm/test-u32-nfkd.c: Likewise.
54496         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54497         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54499 2010-03-27  Bruno Haible  <bruno@clisp.org>
54501         Distinguish two kinds of module indicators.
54502         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54503         gl_MODULE_INDICATOR.
54504         (gl_MODULE_INDICATOR): New macro.
54505         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54506         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54507         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54508         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54509         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54510         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54511         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54512         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54513         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54514         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54515         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54516         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54518         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54519         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54521         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54522         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54523         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54524         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54525         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54526         * modules/cloexec (configure.ac): Likewise.
54527         * modules/getopt-gnu (configure.ac): Likewise.
54528         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54529         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54530         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54531         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54533 2010-03-27  Bruno Haible  <bruno@clisp.org>
54535         New module description field 'Comment'.
54536         * gnulib-tool: New option --extract-comment.
54537         (func_usage): Document it.
54538         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54539         (func_get_comment): New function.
54540         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54542 2010-03-27  Bruno Haible  <bruno@clisp.org>
54544         Addendum to 2010-02-07 commit.
54545         * gnulib-tool (func_usage): Document --extract-applicability option.
54547 2010-03-27  Bruno Haible  <bruno@clisp.org>
54549         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54550         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54551         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54552         rather than link errors.
54554 2010-03-27  Bruno Haible  <bruno@clisp.org>
54556         Avoid side effects from tests-related modules on the compilation of lib.
54557         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54558         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54559         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54560         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54561         macro.
54562         (func_import): Define a witness macro. Assign it a value that depends
54563         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54564         tests-related modules.
54565         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54566         Reported by Jim Meyering.
54568 2010-03-27  Bruno Haible  <bruno@clisp.org>
54570         Factorize common .m4 code.
54571         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54572         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54573         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54574         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54575         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54576         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54577         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54578         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54579         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54580         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54581         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54582         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54583         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54584         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54585         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54586         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54587         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54588         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54590         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54591         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54592         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54593         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54595         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54596         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54597         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54598         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54600         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54601         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54602         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54604 2010-03-27  Bruno Haible  <bruno@clisp.org>
54606         Fix a compilation error on Cygwin with g++ >= 4.3.
54607         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54608         if it is undefined or if we alias it to chmod.
54609         (lstat): Don't warn about the use of this function if it is undefined
54610         or if we alias it to stat.
54611         Reported by Simon Josefsson.
54613 2010-03-27  Bruno Haible  <bruno@clisp.org>
54615         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54616         * modules/getlogin (configure.ac): Update.
54618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54619         * modules/getlogin_r (configure.ac): Update.
54621         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54623         * modules/inet_ntop (configure.ac): Update.
54625         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54626         * modules/inet_pton (configure.ac): Update.
54628         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54629         * modules/mbslen (configure.ac): Update.
54631         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54632         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54633         * modules/forkpty (configure.ac): Update.
54634         * modules/openpty (configure.ac): Update.
54636 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54638         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54639         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54641 2010-03-25  Eric Blake  <eblake@redhat.com>
54643         maint: use pragma consistently across replacement headers
54644         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54645         * lib/dirent.in.h (system_header): Likewise.
54646         * lib/errno.in.h (system_header): Likewise.
54647         * lib/float.in.h (system_header): Likewise.
54648         * lib/getopt.in.h (system_header): Likewise.
54649         * lib/iconv.in.h (system_header): Likewise.
54650         * lib/inttypes.in.h (system_header): Likewise.
54651         * lib/langinfo.in.h (system_header): Likewise.
54652         * lib/locale.in.h (system_header): Likewise.
54653         * lib/math.in.h (system_header): Likewise.
54654         * lib/netdb.in.h (system_header): Likewise.
54655         * lib/netinet_in.in.h (system_header): Likewise.
54656         * lib/pty.in.h (system_header): Likewise.
54657         * lib/sched.in.h (system_header): Likewise.
54658         * lib/se-selinux.in.h (system_header): Likewise.
54659         * lib/search.in.h (system_header): Likewise.
54660         * lib/spawn.in.h (system_header): Likewise.
54661         * lib/stdarg.in.h (system_header): Likewise.
54662         * lib/stdint.in.h (system_header): Likewise.
54663         * lib/string.in.h (system_header): Likewise.
54664         * lib/strings.in.h (system_header): Likewise.
54665         * lib/sys_file.in.h (system_header): Likewise.
54666         * lib/sys_ioctl.in.h (system_header): Likewise.
54667         * lib/sys_socket.in.h (system_header): Likewise.
54668         * lib/sys_times.in.h (system_header): Likewise.
54669         * lib/sys_utsname.in.h (system_header): Likewise.
54670         * lib/sys_wait.in.h (system_header): Likewise.
54671         * lib/sysexits.in.h (system_header): Likewise.
54672         * lib/unistd.in.h (system_header): Likewise.
54673         * lib/wctype.in.h (system_header): Likewise.
54675         arpa/inet: fix mingw compilation warning
54676         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54677         Reported by Matthew Bolte.
54679 2010-03-25  Bruno Haible  <bruno@clisp.org>
54681         Avoid collision between gnulib wrapper and libintl wrapper.
54682         * lib/printf.c (printf): Don't define if a printf wrapper is already
54683         defined in intl/printf.c.
54684         Reported by Michel Boaventura <michel@michelboaventura.com>.
54686 2010-03-25  Bruno Haible  <bruno@clisp.org>
54688         Use ANSI C.
54689         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54691 2010-03-25  Bruno Haible  <bruno@clisp.org>
54693         Minor formatting changes.
54694         * lib/acosl.c: Insert space before function argument list.
54695         * lib/argz.c: Likewise.
54696         * lib/asinl.c: Likewise.
54697         * lib/expl.c: Likewise.
54698         * lib/gen-uni-tables.c: Likewise.
54699         * lib/gettext.h: Likewise.
54700         * lib/glthread/lock.h: Likewise.
54701         * lib/tanl.c: Likewise.
54702         * lib/uniname/uniname.c: Likewise.
54703         * tests/test-idpriv-drop.c: Likewise.
54704         * tests/test-idpriv-droptemp.c: Likewise.
54705         * tests/test-lock.c: Likewise.
54706         * tests/test-tls.c: Likewise.
54707         * lib/argp-help.c: Insert space before function-like macro argument
54708         list.
54709         * lib/memcmp.c: Likewise.
54710         * tests/test-base64.c: Likewise.
54711         * lib/localename.c: Insert space before sizeof's argument list.
54712         * lib/safe-alloc.h: Likewise.
54713         * lib/file-set.h: Insert space before macro argument list.
54714         * tests/test-argp.c: Likewise.
54715         * lib/argp-namefrob.h: Insert space before function parameter list.
54716         * lib/getaddrinfo.c: Likewise.
54717         * lib/netdb.in.h: Likewise.
54718         * lib/parse-duration.h: Likewise.
54719         * lib/parse-duration.c: Likewise.
54720         * lib/poll.c: Likewise.
54721         * lib/select.c: Likewise.
54722         * lib/trim.h: Likewise.
54723         * tests/test-usleep.c: Likewise.
54724         * lib/ldexpl.c: Insert space before function parameter list and before
54725         function argument list.
54726         * lib/logl.c: Likewise.
54727         * lib/sqrtl.c: Likewise.
54728         * lib/trim.c: Likewise.
54729         * lib/cosl.c: Use GNU style indentation. Insert space before function
54730         argument list.
54731         * lib/sinl.c: Likewise.
54732         * lib/tsearch.c: Insert space after 'for'.
54733         Reported by Jim Meyering.
54735 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54737         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54738         config header before grepping, as it's not present before
54739         autoreconf/configure are run.  Reported by Simon Josefsson.
54741 2010-03-23  Bruno Haible  <bruno@clisp.org>
54743         pt_chown: Make it work with automake < 1.11.
54744         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54745         Reported by Simon Josefsson.
54747 2010-03-23  Bruno Haible  <bruno@clisp.org>
54749         pt_chown: Don't depend on GPLed modules.
54750         * lib/pt_chown.c: Don't include idpriv.h.
54751         (main): Don't drop privileges.
54752         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54753         Reported by Simon Josefsson.
54755 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54757         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54758         suggestions from karl@freefriends.org (Karl Berry).
54760 2010-03-22  Eric Blake  <eblake@redhat.com>
54762         gethostname: further tweaks
54763         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54764         are overriding gethostname.
54765         Suggested by Bruno Haible.
54767 2010-03-21  Bruno Haible  <bruno@clisp.org>
54769         Fix comments.
54770         * lib/forkpty.c (rpl_forkpty): Fix comment.
54771         * lib/openpty.c (rpl_openpty): Likewise.
54772         Reported by Eric Blake.
54774 2010-03-22  Eric Blake  <eblake@redhat.com>
54776         gethostname: fix build on mingw
54777         * lib/unistd.in.h (includes): Work around fact that mingw
54778         <winsock2.h> re-includes <unistd.h>, by avoiding any
54779         redeclarations if we are being included by <winsock2.h>.
54780         Reported by Matthias Bolte.
54782 2010-03-21  Bruno Haible  <bruno@clisp.org>
54784         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54785         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54786         modifications.
54787         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54788         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54789         provide the replacement.
54790         * modules/forkpty (Depends-on): Add openpty, login_tty.
54791         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54792         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54793         * doc/glibc-functions/forkpty.texi: More supported platforms.
54794         * config/srclist.txt: Add forkpty.c (commented).
54796 2010-03-21  Bruno Haible  <bruno@clisp.org>
54798         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54799         (Makefile.am): Verify that PTY_LIB is defined.
54801         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54803 2010-03-21  Bruno Haible  <bruno@clisp.org>
54805         Tests for module 'login_tty'.
54806         * modules/login_tty-tests: New file.
54807         * tests/test-login_tty.c: New file.
54809         New module 'login_tty'.
54810         * lib/login_tty.c: New file.
54811         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54812         * modules/login_tty: New file.
54813         * doc/glibc-functions/login_tty.texi: Mention the new module.
54815 2010-03-21  Bruno Haible  <bruno@clisp.org>
54817         login_tty: Documentation.
54818         * doc/glibc-functions/login_tty.texi: New file.
54819         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54821 2010-03-21  Bruno Haible  <bruno@clisp.org>
54823         pty: Consistent macro naming.
54824         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54825         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54826         * modules/pty (configure.ac): Update.
54828 2010-03-21  Bruno Haible  <bruno@clisp.org>
54830         Tests for openpty: Make stricter.
54831         * tests/test-openpty.c (main): Add test of canonical processing and
54832         erase.
54833         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54835         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54836         * lib/openpty.c (openpty): New replacement function.
54837         * lib/pty.in.h: Include <termios.h>.
54838         (openpty): Update declaration. Add comments.
54839         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54840         is not declared, arrange to provide the replacement. Check for _getpty
54841         and posix_openpt.
54842         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54843         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54844         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54845         * modules/pty-tests (test_pty_c___LDADD): New variable.
54846         * doc/glibc-functions/openpty.texi: More supported platforms.
54848 2010-03-21  Bruno Haible  <bruno@clisp.org>
54850         setenv: Tweaks.
54851         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54852         the test program.
54853         * doc/posix-functions/setenv.texi: Update platforms list.
54855 2010-03-21  Bruno Haible  <bruno@clisp.org>
54857         New module 'unlockpt'.
54858         * lib/unlockpt.c: New file, from glibc with modifications.
54859         * m4/unlockpt.m4: New file.
54860         * modules/unlockpt: New file.
54861         * lib/stdlib.in.h (unlockpt): New declaration.
54862         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54863         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54864         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54865         HAVE_UNLOCKPT.
54866         * doc/posix-functions/unlockpt.texi: Mention the new module.
54867         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54868         * config/srclist.txt: Add unlockpt.c (commented).
54870 2010-03-21  Jim Meyering  <meyering@redhat.com>
54872         maint.mk: prohibit inclusion of "intprops.h" without use
54873         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54875 2010-03-21  Bruno Haible  <bruno@clisp.org>
54877         New module 'grantpt'.
54878         * lib/grantpt.c: New file, from glibc with modifications.
54879         * m4/grantpt.m4: New file.
54880         * modules/grantpt: New file.
54881         * lib/stdlib.in.h (grantpt): New declaration.
54882         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54883         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54884         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54885         HAVE_GRANTPT.
54886         * doc/posix-functions/grantpt.texi: Mention the new module.
54887         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54888         * config/srclist.txt: Add grantpt.c (commented).
54890 2010-03-21  Bruno Haible  <bruno@clisp.org>
54892         New module 'pt_chown'.
54893         * lib/pt_chown.c: New file, from glibc with modifications.
54894         * lib/pty-private.h: New file, from glibc with modifications.
54895         * modules/pt_chown: New file.
54896         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54898 2010-03-21  Bruno Haible  <bruno@clisp.org>
54900         Tests for module 'ptsname'.
54901         * modules/ptsname-tests: New file.
54902         * tests/test-ptsname.c: New file.
54904         New module 'ptsname'.
54905         * lib/ptsname.c: New file, from glibc with modifications.
54906         * m4/ptsname.m4: New file.
54907         * modules/ptsname: New file.
54908         * lib/stdlib.in.h (ptsname): New declaration.
54909         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54910         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54911         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54912         HAVE_PTSNAME.
54913         * doc/posix-functions/ptsname.texi: Mention the new module.
54914         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54915         * config/srclist.txt: Add ptsname.c (commented).
54917 2010-03-21  Bruno Haible  <bruno@clisp.org>
54919         Tests for module 'ttyname_r'.
54920         * modules/ttyname_r-tests: New file.
54921         * tests/test-ttyname_r.c: New file.
54923         New module 'ttyname_r'.
54924         * lib/ttyname_r.c: New file.
54925         * m4/ttyname_r.m4: New file.
54926         * modules/ttyname_r: New file.
54927         * lib/unistd.in.h (ttyname_r): New declaration.
54928         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54929         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54930         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54931         HAVE_TTYNAME_R.
54932         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54933         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54935 2010-03-20  Bruno Haible  <bruno@clisp.org>
54937         signal: Undefine macro definitions in C++ mode.
54938         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54939         sigfillset): Undefine macro definitions from the system header in C++
54940         mode.
54941         Reported by John W. Eaton <jwe@gnu.org>.
54943 2010-03-20  Bruno Haible  <bruno@clisp.org>
54945         Ensure no #include statements inside extern "C" { ... }.
54946         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54947         contain #include statements.
54948         * lib/time.in.h: Likewise.
54950 2010-03-20  Bruno Haible  <bruno@clisp.org>
54952         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54953         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54954         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54955         Reported by John W. Eaton <jwe@gnu.org>.
54957 2010-03-20  Bruno Haible  <bruno@clisp.org>
54959         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54960         Reported by Jim Meyering.
54962 2010-03-20  Bruno Haible  <bruno@clisp.org>
54964         pipe: Set errno upon failure.
54965         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54966         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54967         errno value in error message.
54969 2010-03-20  Bruno Haible  <bruno@clisp.org>
54970             Jim Meyering  <meyering@redhat.com>
54972         lchown: Avoid "unused variable" warning.
54973         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54975 2010-03-20  Bruno Haible  <bruno@clisp.org>
54977         Work around unlink() bug on MacOS X 10.5.6.
54978         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54979         attempting to unlink a parent directory.
54980         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54981         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54982         activate for the replacement function.
54983         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54985 2010-03-20  Bruno Haible  <bruno@clisp.org>
54987         Fix link errors on Solaris 8.
54988         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54989         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54991 2010-03-19  Jim Meyering  <meyering@redhat.com>
54993         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54994         The _LIBC implementation of build_range_exp correctly honors the
54995         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54996         However, the non-_LIBC implementation would ignore that syntax-bit
54997         flag and return REG_ERANGE unconditionally.
54998         This change makes it honor that flag.
54999         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
55000         Make two pointer parameters "const".
55001         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
55002         (parse_bracket_exp): Update caller.
55004         regex.m4: correct the reversed range endpoint ([b-a]) test
55005         * m4/regex.m4: When requiring that [b-a] evoke failure,
55006         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
55007         test pass once again for x86-based systems.
55009 2010-03-19  Bruno Haible  <bruno@clisp.org>
55011         scandir: Fix link error on Solaris 8.
55012         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
55013         macros.
55015 2010-03-19  Bruno Haible  <bruno@clisp.org>
55017         getusershell: Fix documentation.
55018         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
55019         module.
55020         * doc/glibc-functions/setusershell.texi: Likewise.
55022         getusershell: Provide declaration, missing on Solaris 9.
55023         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
55024         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
55025         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
55026         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
55027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55028         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
55029         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
55030         HAVE_GETUSERSHELL.
55031         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
55033 2010-03-19  Bruno Haible  <bruno@clisp.org>
55035         wctype: Provide iswblank function.
55036         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
55037         exists and is fine.
55038         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
55039         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
55040         * tests/test-wctype.c (main): Re-enable the iswblank tests.
55041         * doc/posix-functions/iswblank.texi: Update.
55043 2010-03-19  Bruno Haible  <bruno@clisp.org>
55045         Tests of module 'pty' in C++ mode.
55046         * modules/pty-tests: New file.
55047         * tests/test-pty-c++.cc: New file.
55048         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55050 2010-03-19  Eric Blake  <eblake@redhat.com>
55052         logb: fix documentation
55053         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
55054         1.5 declaration bug.
55056         forkpty, openpty: prefer glibc's const-safe prototype
55057         * lib/forkpty.c (rpl_forkpty): New file.
55058         * lib/openpty.c (rpl_openpty): Likewise.
55059         * modules/forkpty (Files): Distribute it.
55060         * modules/openpty (Files): Likewise.
55061         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
55062         check...
55063         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
55064         replacement for non-const BSD signature.
55065         * modules/pty (Makefile.am): Substitute witnesses.
55066         * lib/pty.in.h (forkpty, openpty): Declare replacements.
55067         * tests/test-forkpty.c: Update signature check.
55068         * tests/test-openpty.c: Likewise.
55069         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
55070         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55072         forkpty, openpty: split functions into new modules
55073         * modules/pty (Makefile.am): Substitute new witnesses.
55074         (Libraries): Move library detection...
55075         * modules/forkpty: ...into new module.
55076         * modules/openpty: Another new module.
55077         * modules/pty-tests: Rename and split...
55078         * modules/forkpty-tests: ...to this...
55079         * modules/openpty-tests: ...and this.
55080         * tests/test-pty.c: Rename and split...
55081         * tests/test-forkpty.c: ...to this...
55082         * tests/test-openpty.c: ...and this.
55083         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
55084         (gl_PTY): Split library searching...
55085         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
55086         (gl_FORKPTY, gl_OPENPTY): New macros.
55087         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
55088         * NEWS: Mention the split.
55089         * MODULES.html.sh (Misc): Document the modules.
55090         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
55091         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55093         pty: improve replacement header
55094         * lib/pty.in.h: New file.
55095         * modules/pty (Files): Ship it.
55096         (Makefile.am): Always build replacement.
55097         * m4/pty.m4: Rename...
55098         * m4/pty_h.m4: ...to this.
55099         (gl_PTY): Modernize setting of witness macros; update check of
55100         forkpty to take proper advantage of cache.
55101         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
55103         getopt: avoid compiler warning
55104         * lib/getopt.c (attribute_hidden): Remove unused macro.
55106 2010-03-18  Bruno Haible  <bruno@clisp.org>
55108         Fix link errors on Solaris 8.
55109         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
55110         * modules/search-tests (test_search_c___LDADD): Likewise.
55111         * modules/signal-tests (test_signal_c___LDADD): Likewise.
55112         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
55113         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
55114         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
55115         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
55116         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
55117         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
55119 2010-03-18  Bruno Haible  <bruno@clisp.org>
55121         Fix bug introduced on 2010-03-14.
55122         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
55123         (gl_SPAWN_H): Require it.
55124         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55125         Reported by Simon Josefsson.
55127 2010-03-18  Bruno Haible  <bruno@clisp.org>
55129         Fix typo introduced on 2009-12-31.
55130         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55131         posix_spawn_file_actions_adddup2.
55133 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55134         and Eric Blake  <eblake@redhat.com>
55136         test-vc-list-files-git: make more robust
55137         * tests/test-vc-list-files-git.sh: Unset problematic environment
55138         variables.  Chain commands together.
55140 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55142         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55143         `AC_CHECK_DECL' invocation.
55145 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55147         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55148         appears before executable statements. Suggested by Petr Sumbera
55149         <Petr.Sumbera@Sun.COM>.
55151 2010-03-14  Bruno Haible  <bruno@clisp.org>
55153         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55154         portability problems. Instead use a simpler test.
55155         (main): Check that invalid arguments are rejected only on Linux.
55157 2010-03-14  Bruno Haible  <bruno@clisp.org>
55159         Fix bug introduced on 2009-12-31.
55160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55161         gl_PREREQ_SYS_H_WINSOCK2 always.
55162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55163         SYS_SOCKET_H variable.
55164         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55165         Update comments.
55166         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55167         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55168         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55169         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55170         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55172 2010-03-14  Bruno Haible  <bruno@clisp.org>
55174         Fix values returned by sinl, cosl.
55175         * lib/trigl.h: Add specification comments.
55176         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55177         that combines the values from the precomputed table with the values of
55178         the Chebyshev polynomials.
55180 2010-03-14  Bruno Haible  <bruno@clisp.org>
55182         Fix compilation error when modules 'posix_spawn[p]' are not used.
55183         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55186 2010-03-14  Bruno Haible  <bruno@clisp.org>
55188         Fix compilation error on mingw when module 'time_r' is not used.
55189         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55190         is 1.
55191         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55192         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55193         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55196 2010-03-14  Bruno Haible  <bruno@clisp.org>
55198         Fix compilation error with Sun C.
55199         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55200         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55201         instead of GCC specific ULONG_LONG_MAX.
55202         * lib/xstrtoll.c: Likewise.
55203         * lib/xstrtoull.c: Likewise.
55205 2010-03-13  Bruno Haible  <bruno@clisp.org>
55207         Allow the user to disable C++ code and tests.
55208         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55209         (gl_PROG_ANSI_CXX): Require it.
55211 2010-03-13  Bruno Haible  <bruno@clisp.org>
55213         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55214         cases.
55216 2010-03-13  Bruno Haible  <bruno@clisp.org>
55218         Test that gnulib does not break the standard C++ headers.
55219         * tests/test-locale-c++2.cc: New file.
55220         * modules/locale-tests (Files): Add it.
55221         (Makefile.am): Compile it for test-locale-c++.
55222         * tests/test-math-c++2.cc: New file.
55223         * modules/math-tests (Files): Add it.
55224         (Makefile.am): Compile it for test-math-c++.
55225         * tests/test-signal-c++2.cc: New file.
55226         * modules/signal-tests (Files): Add it.
55227         (Makefile.am): Compile it for test-signal-c++.
55228         * tests/test-stdio-c++2.cc: New file.
55229         * modules/stdio-tests (Files): Add it.
55230         (Makefile.am): Compile it for test-stdio-c++.
55231         * tests/test-stdlib-c++2.cc: New file.
55232         * modules/stdlib-tests (Files): Add it.
55233         (Makefile.am): Compile it for test-stdlib-c++.
55234         * tests/test-string-c++2.cc: New file.
55235         * modules/string-tests (Files): Add it.
55236         (Makefile.am): Compile it for test-string-c++.
55237         * tests/test-time-c++2.cc: New file.
55238         * modules/time-tests (Files): Add it.
55239         (Makefile.am): Compile it for test-time-c++.
55240         Reported by John W. Eaton <jwe@gnu.org>.
55242 2010-03-13  Bruno Haible  <bruno@clisp.org>
55244         * gnulib-tool (func_usage): Clarify which options are available for
55245         --create-testdir and --create-megatestdir.
55247 2010-03-13  Bruno Haible  <bruno@clisp.org>
55249         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55250         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55251         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55252         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55253         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55254         when appropriate.
55255         Reported by Jim Meyering.
55257 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55259         * gnulib-tool (func_import): Explain origin of code.
55261 2010-03-12  Bruno Haible  <bruno@clisp.org>
55263         Fix problem with automake's definition of CXXLINK.
55264         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55265         Reported by Simon Josefsson and Ludovic Courtès.
55267 2010-03-12  Bruno Haible  <bruno@clisp.org>
55269         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55270         stable releases.
55272 2010-03-11  Bruno Haible  <bruno@clisp.org>
55274         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55275         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55276         whether the system provides one variant or multiple variants of the
55277         function.
55278         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55279         C++ compilers.
55280         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55281         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55282         Reported by Jim Meyering.
55284 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55286         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55288 2010-03-08  Bruno Haible  <bruno@clisp.org>
55290         gnulib-tool: Add support for --libtool in --create-testdir.
55291         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55292         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55294 2010-03-08  Eric Blake  <eblake@redhat.com>
55296         gnulib-tool.texi: mention possibility of git submodule
55297         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55298         submodules.
55299         * doc/.gitignore: Ignore another generated file.
55301 2010-03-08  Karl Berry  <karl@gnu.org>
55303         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55304         of committing gnulib files while skipping others.
55306 2010-03-07  Bruno Haible  <bruno@clisp.org>
55308         Tests of module 'wctype' in C++ mode.
55309         * tests/test-wctype-c++.cc: New file.
55310         * modules/wctype-tests (Files): Add it and tests/signature.h.
55311         (Depends-on): Add ansi-c++-opt.
55312         (Makefile.am): Arrange to compile and run test-wctype-c++.
55314         Tests of module 'wchar' in C++ mode.
55315         * tests/test-wchar-c++.cc: New file.
55316         * modules/wchar-tests (Files): Add it and tests/signature.h.
55317         (Depends-on): Add ansi-c++-opt.
55318         (Makefile.am): Arrange to compile and run test-wchar-c++.
55319         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55320         gl_MODULE_INDICATOR.
55322         Tests of module 'unistd' in C++ mode.
55323         * tests/test-unistd-c++.cc: New file.
55324         * modules/unistd-tests (Files): Add it and tests/signature.h.
55325         (Depends-on): Add ansi-c++-opt.
55326         (Makefile.am): Arrange to compile and run test-unistd-c++.
55327         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55328         gl_MODULE_INDICATOR.
55330         Tests of module 'time' in C++ mode.
55331         * tests/test-time-c++.cc: New file.
55332         * modules/time-tests (Files): Add it and tests/signature.h.
55333         (Depends-on): Add ansi-c++-opt.
55334         (Makefile.am): Arrange to compile and run test-time-c++.
55335         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55337         Tests of module 'sys_time' in C++ mode.
55338         * tests/test-sys_time-c++.cc: New file.
55339         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55340         (Depends-on): Add ansi-c++-opt.
55341         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55342         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55343         gl_MODULE_INDICATOR.
55345         Tests of module 'sys_stat' in C++ mode.
55346         * tests/test-sys_stat-c++.cc: New file.
55347         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55348         (Depends-on): Add ansi-c++-opt.
55349         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55350         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55351         gl_MODULE_INDICATOR.
55353         Tests of module 'sys_socket' in C++ mode.
55354         * tests/test-sys_socket-c++.cc: New file.
55355         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55356         (Depends-on): Add ansi-c++-opt.
55357         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55358         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55359         gl_MODULE_INDICATOR.
55361         Tests of module 'sys_select' in C++ mode.
55362         * tests/test-sys_select-c++.cc: New file.
55363         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55364         (Depends-on): Add ansi-c++-opt.
55365         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55366         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55367         gl_MODULE_INDICATOR.
55369         Tests of module 'sys_ioctl' in C++ mode.
55370         * tests/test-sys_ioctl-c++.cc: New file.
55371         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55372         (Depends-on): Add ansi-c++-opt.
55373         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55375         gl_MODULE_INDICATOR.
55377         Tests of module 'string' in C++ mode.
55378         * tests/test-string-c++.cc: New file.
55379         * modules/string-tests (Files): Add it and tests/signature.h.
55380         (Depends-on): Add ansi-c++-opt.
55381         (Makefile.am): Arrange to compile and run test-string-c++.
55382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55383         gl_MODULE_INDICATOR.
55385         Tests of module 'stdlib' in C++ mode.
55386         * tests/test-stdlib-c++.cc: New file.
55387         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55388         (Depends-on): Add ansi-c++-opt.
55389         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55390         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55391         gl_MODULE_INDICATOR.
55393         Tests of module 'stdio' in C++ mode.
55394         * tests/test-stdio-c++.cc: New file.
55395         * modules/stdio-tests (Files): Add it and tests/signature.h.
55396         (Depends-on): Add ansi-c++-opt.
55397         (Makefile.am): Arrange to compile and run test-stdio-c++.
55398         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55399         gl_MODULE_INDICATOR.
55401         Tests of module 'spawn' in C++ mode.
55402         * tests/test-spawn-c++.cc: New file.
55403         * modules/spawn-tests (Files): Add it and tests/signature.h.
55404         (Depends-on): Add ansi-c++-opt.
55405         (Makefile.am): Arrange to compile and run test-spawn-c++.
55406         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55407         gl_MODULE_INDICATOR.
55409         Tests of module 'signal' in C++ mode.
55410         * tests/test-signal-c++.cc: New file.
55411         * modules/signal-tests (Files): Add it and tests/signature.h.
55412         (Depends-on): Add ansi-c++-opt.
55413         (Makefile.am): Arrange to compile and run test-signal-c++.
55414         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55415         gl_MODULE_INDICATOR.
55417         Tests of module 'search' in C++ mode.
55418         * tests/test-search-c++.cc: New file.
55419         * modules/search-tests (Files): Add it and tests/signature.h.
55420         (Depends-on): Add ansi-c++-opt.
55421         (Makefile.am): Arrange to compile and run test-search-c++.
55422         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55423         gl_MODULE_INDICATOR.
55425         Tests of module 'math' in C++ mode.
55426         * tests/test-math-c++.cc: New file.
55427         * modules/math-tests (Files): Add it and tests/signature.h.
55428         (Depends-on): Add ansi-c++-opt.
55429         (Makefile.am): Arrange to compile and run test-math-c++.
55430         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55432         Tests of module 'locale' in C++ mode.
55433         * tests/test-locale-c++.cc: New file.
55434         * modules/locale-tests (Files): Add it and tests/signature.h.
55435         (Depends-on): Add ansi-c++-opt.
55436         (Makefile.am): Arrange to compile and run test-locale-c++.
55437         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55438         gl_MODULE_INDICATOR.
55440         Tests of module 'langinfo' in C++ mode.
55441         * tests/test-langinfo-c++.cc: New file.
55442         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55443         (Depends-on): Add ansi-c++-opt.
55444         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55445         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55446         gl_MODULE_INDICATOR.
55448         Tests of module 'iconv-h' in C++ mode.
55449         * tests/test-iconv-h-c++.cc: New file.
55450         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55451         (Depends-on): Add ansi-c++-opt.
55452         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55454         Tests of module 'glob' in C++ mode.
55455         * tests/test-glob-c++.cc: New file.
55456         * modules/glob-tests (Files): Add it.
55457         (Depends-on): Add ansi-c++-opt.
55458         (Makefile.am): Arrange to compile and run test-glob-c++.
55460         Tests of module 'fcntl-h' in C++ mode.
55461         * tests/test-fcntl-h-c++.cc: New file.
55462         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55463         (Depends-on): Add ansi-c++-opt.
55464         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55465         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55466         gl_MODULE_INDICATOR.
55468         Tests of module 'dirent' in C++ mode.
55469         * tests/test-dirent-c++.cc: New file.
55470         * modules/dirent-tests (Files): Add it and tests/signature.h.
55471         (Depends-on): Add ansi-c++-opt.
55472         (Makefile.am): Arrange to compile and run test-dirent-c++.
55473         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55474         gl_MODULE_INDICATOR.
55476         New module 'ansi-c++-opt'.
55477         * modules/ansi-c++-opt: New file.
55478         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55480         Document C++ namespace mode.
55481         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55483         wctype: Avoid #define replacements in C++ mode.
55484         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55485         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55486         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55487         In C++, define a namespaced alias symbol.
55488         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55489         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55490         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55491         rule.
55493         wchar: Avoid #define replacements in C++ mode.
55494         * lib/wchar.in.h: Include c++defs.h.
55495         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55496         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55497         symbol.
55498         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55499         * modules/wchar (Depends-on): Add c++defs.
55500         (Makefile.am): Update wchar.h rule.
55502         unistd: Avoid #define replacements in C++ mode.
55503         * lib/unistd.in.h: Include c++defs.h.
55504         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55505         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55506         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55507         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55508         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55509         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55510         symbol.
55511         (environ): Update.
55512         * modules/unistd (Depends-on): Add c++defs.
55513         (Makefile.am): Update unistd.h rule.
55515         time: Avoid #define replacements in C++ mode.
55516         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55517         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55518         define a namespaced alias symbol.
55519         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55520         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55521         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55522         * modules/time (Depends-on): Add c++defs, warn-on-use.
55523         (Makefile.am): Update time.h rule.
55524         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55525         * modules/nanosleep (configure.ac): Likewise.
55526         * modules/strptime (configure.ac): Likewise.
55527         * modules/timegm (configure.ac): Likewise.
55529         sys_time: Avoid #define replacements in C++ mode.
55530         * lib/sys_time.in.h: Include c++defs.h.
55531         (gettimeofday): In C++, define a namespaced alias symbol.
55532         * modules/sys_time (Depends-on): Add c++defs.
55533         (Makefile.am): Update sys/time.h rule.
55535         sys_stat: Avoid #define replacements in C++ mode.
55536         * lib/sys_stat.in.h: Include c++defs.h.
55537         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55538         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55539         namespaced alias symbol.
55540         In C++, define a namespaced alias symbol.
55541         * modules/sys_stat (Depends-on): Add c++defs.
55542         (Makefile.am): Update sys/stat.h rule.
55544         sys_socket: Avoid #define replacements in C++ mode.
55545         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55546         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55547         definitions also when the system has a <sys/socket.h>.
55548         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55549         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55550         In C++, define a namespaced alias symbol.
55551         * modules/sys_socket (Depends-on): Add c++defs.
55552         (Makefile.am): Update sys/socket.h rule.
55554         sys_select: Avoid #define replacements in C++ mode.
55555         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55556         definitions also when the system has a <sys/select.h>.
55557         (select): In C++, define a namespaced alias symbol.
55558         * modules/sys_select (Depends-on): Add c++defs.
55559         (Makefile.am): Update sys/select.h rule.
55561         sys_ioctl: Avoid #define replacements in C++ mode.
55562         * lib/sys_ioctl.in.h: Include c++defs.h.
55563         (ioctl): In C++, define a namespaced alias symbol.
55564         * modules/sys_ioctl (Depends-on): Add c++defs.
55565         (Makefile.am): Update sys/ioctl.h rule.
55567         string: Avoid #define replacements in C++ mode.
55568         * lib/string.in.h: Include c++defs.h.
55569         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55570         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55571         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55572         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55573         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55574         * modules/string (Depends-on): Add c++defs.
55575         (Makefile.am): Update string.h rule.
55577         stdlib: Avoid #define replacements in C++ mode.
55578         * lib/stdlib.in.h: Include c++defs.h.
55579         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55580         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55581         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55582         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55583         symbol.
55584         * modules/stdlib (Depends-on): Add c++defs.
55585         (Makefile.am): Update stdlib.h rule.
55587         stdio: Avoid #define replacements in C++ mode.
55588         * lib/stdio.in.h: Include c++defs.h.
55589         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55590         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55591         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55592         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55593         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55594         namespaced alias symbol.
55595         * modules/stdio (Depends-on): Add c++defs.
55596         (Makefile.am): Update stdio.h rule.
55598         spawn: Avoid #define replacements in C++ mode.
55599         * lib/spawn.in.h: Include c++defs.h.
55600         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55601         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55602         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55603         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55604         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55605         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55606         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55607         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55608         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55609         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55610         In C++, define a namespaced alias symbol.
55611         * modules/spawn (Depends-on): Add c++defs.
55612         (Makefile.am): Update spawn.h rule.
55614         signal: Avoid #define replacements in C++ mode.
55615         * lib/signal.in.h: Include c++defs.h.
55616         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55617         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55618         namespaced alias symbol.
55619         * modules/signal (Depends-on): Add c++defs.
55620         (Makefile.am): Update signal.h rule.
55622         search: Avoid #define replacements in C++ mode.
55623         * lib/search.in.h: Include c++defs.h.
55624         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55625         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55626         symbol.
55627         * modules/search (Depends-on): Add c++defs.
55628         (Makefile.am): Update search.h rule.
55630         math: Avoid #define replacements in C++ mode.
55631         * lib/math.in.h: Include c++defs.h.
55632         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55633         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55634         trunc, truncl): In C++, define a namespaced alias symbol.
55635         * modules/math (Depends-on): Add c++defs.
55636         (Makefile.am): Update math.h rule.
55638         locale: Avoid #define replacements in C++ mode.
55639         * lib/locale.in.h: Include c++defs.h.
55640         (duplocale): In C++, define a namespaced alias symbol.
55641         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55642         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55643         * modules/locale (Depends-on): Add c++defs.
55644         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55646         langinfo: Avoid #define replacements in C++ mode.
55647         * lib/langinfo.in.h: Include c++defs.h.
55648         (nl_langinfo): In C++, define a namespaced alias symbol.
55649         * modules/langinfo (Depends-on): Add c++defs.
55650         (Makefile.am): Update langinfo.h rule.
55652         iconv-h: Avoid #define replacements in C++ mode.
55653         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55654         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55655         symbol.
55656         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55657         whenever iconv is present.
55658         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55659         (Makefile.am): Update iconv.h rule.
55661         glob: Avoid #define replacements in C++ mode.
55662         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55663         (_gl_glob_errfunc_fn): New type.
55664         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55665         symbol.
55666         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55667         (Makefile.am): Update glob.h rule.
55669         fcntl-h: Avoid #define replacements in C++ mode.
55670         * lib/fcntl.in.h: Include c++defs.h.
55671         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55672         * modules/fcntl-h (Depends-on): Add c++defs.
55673         (Makefile.am): Update fcntl.h rule.
55675         dirent: Avoid #define replacements in C++ mode.
55676         * lib/dirent.in.h: Include c++defs.h.
55677         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55678         namespaced alias symbol.
55679         (dirfd): Update declaration.
55680         * modules/dirent (Depends-on): Add c++defs.
55681         (Makefile.am): Update dirent.h rule.
55683         ctype: Make it usable in C++ code.
55684         * lib/ctype.in.h: Include c++defs.h.
55685         (isblank): Declare as extern "C".
55686         * modules/ctype (Depends-on): Add c++defs.
55687         (Makefile.am): Update ctype.h rule.
55689         New module 'c++defs'.
55690         * modules/c++defs: New file.
55691         * build-aux/c++defs.h: New file.
55692         Reported by John W. Eaton <jwe@gnu.org>.
55694 2010-03-07  Bruno Haible  <bruno@clisp.org>
55696         logb: Provide missing declaration for Cygwin.
55697         * lib/math.in.h (logb): New declaration.
55698         * m4/logb.m4: New file.
55699         * modules/logb (Files): Add m4/logb.m4.
55700         (Depends-on): Add math.
55701         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55702         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55704         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55705         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55707 2010-03-07  Bruno Haible  <bruno@clisp.org>
55709         Fix test-cond link error.
55710         * tests/test-cond.c: Include <stdio.h>.
55712 2010-03-07  Bruno Haible  <bruno@clisp.org>
55714         Fix test-dirent-safer link error.
55715         * modules/dirent-safer-tests (Makefile.am): Define
55716         test_dirent_safer_LDADD.
55718 2010-03-07  Bruno Haible  <bruno@clisp.org>
55720         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55721         among default module list.
55723 2010-03-07  Bruno Haible  <bruno@clisp.org>
55725         Fix link error on platforms with GNU libiconv.
55726         * modules/unistr/u8-strcoll-tests (Makefile): Define
55727         test_u8_strcoll_LDADD.
55728         * modules/unistr/u16-strcoll-tests (Makefile): Define
55729         test_u16_strcoll_LDADD.
55730         * modules/unistr/u32-strcoll-tests (Makefile): Define
55731         test_u32_strcoll_LDADD.
55733 2010-03-07  Bruno Haible  <bruno@clisp.org>
55735         Use POSIX declarations for socket functions.
55736         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55737         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55738         rpl_sendto): Change declaration to match POSIX.
55739         * lib/connect.c (rpl_connect): Likewise.
55740         * lib/accept.c (rpl_accept): Likewise.
55741         * lib/bind.c (rpl_bind): Likewise.
55742         * lib/getpeername.c (rpl_getpeername): Likewise.
55743         * lib/getsockname.c (rpl_getsockname): Likewise.
55744         * lib/recv.c (rpl_recv): Likewise.
55745         * lib/send.c (rpl_send): Likewise.
55746         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55747         * lib/sendto.c (rpl_sendto): Likewise.
55749 2010-03-06  Bruno Haible  <bruno@clisp.org>
55751         Clarify access, euidaccess, faccessat.
55752         * doc/posix-functions/faccessat.texi: Mention security problem under
55753         "Other problems", not "Portability problems".
55754         * doc/posix-functions/access.texi: Likewise. Mention a related security
55755         problem.
55756         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55757         * lib/euidaccess.c: Add comments about platforms.
55758         * lib/unistd.in.h (access, euidaccess): Add warnings.
55760 2010-03-07  Bruno Haible  <bruno@clisp.org>
55762         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55763         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55764         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55765         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55766         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55767         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55768         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55769         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55770         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55771         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55772         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55773         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55774         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55775         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55776         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55777         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55778         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55779         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55780         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55781         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55782         Likewise.
55783         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55784         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55785         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55786         Likewise.
55787         * tests/test-spawn.c (main): Make it work when
55788         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55790 2010-03-07  Bruno Haible  <bruno@clisp.org>
55792         Fix incorrect Makefile.am generation in German locale.
55793         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55794         Execute sed command with character range in C locale.
55796 2010-03-06  Bruno Haible  <bruno@clisp.org>
55798         Tests for module 'iconv-h'.
55799         * modules/iconv-h-tests: New file.
55800         * tests/test-iconv-h.c: New file.
55802         New module 'iconv-h'.
55803         * modules/iconv-h: New file.
55804         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55805         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55806         (configure.ac): Remove gl_ICONV_H.
55807         (Makefile.am): Remove rule for iconv.h.
55809 2010-03-06  Bruno Haible  <bruno@clisp.org>
55811         More consistent naming of *.m4 files.
55812         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55813         * modules/wctype (Files): Update.
55815         More consistent naming of *.m4 files.
55816         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55817         * modules/wchar (Files): Update.
55819 2010-03-06  Jim Meyering  <meyering@redhat.com>
55821         euidaccess: relax license to LGPLv2+
55822         * modules/euidaccess (License): Relax to LGPLv2+.
55824 2010-03-06  Bruno Haible  <bruno@clisp.org>
55826         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55827         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55828         (Makefile.am): Augment lib_SOURCES instead.
55830 2010-03-04  Jim Meyering  <meyering@redhat.com>
55832         utime: remove obsolete module
55833         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55834         unnecessary for years, and has been marked as obsolete for 10 months.
55835         * modules/utime: Remove file.
55836         * lib/utime.c: Remove file.
55837         * m4/utime.m4: Remove file.
55838         * m4/utimes-null.m4: Remove file.
55839         * doc/posix-functions/utime.texi (utime): Remove reference to
55840         the module.  Move the sole "fixed by gnulib" item into the
55841         "problems not fixed by Gnulib" list.
55842         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55844 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55846         * modules/exit (License): Relax license to LGPLv2+.
55847         (Status): Mark as obsolete.
55848         * NEWS: Mention deprecated 'exit' module.
55849         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55850         of now obsolete 'exit'.
55852 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55854         fts-lgpl: remove unused module
55855         * modules/fts-lgpl: Remove.
55856         * MODULES.html.sh (func_all_modules): Adjust.
55857         * check-module (find_included_lib_files): Adjust.
55858         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55860 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55862         copy-acl: enhance Solaris ACL error handling
55863         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55864         * lib/set-mode-acl.c (qset_acl): Likewise.
55866 2010-03-02  Bruno Haible  <bruno@clisp.org>
55868         spawn: Don't override the system defined values on FreeBSD 8.
55869         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55870         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55871         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55872         if HAVE_POSIX_SPAWN is 1.
55873         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55875 2010-03-01  Bruno Haible  <bruno@clisp.org>
55877         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55878         regarding Automake.
55880 2010-02-25  Bruno Haible  <bruno@clisp.org>
55882         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55883         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55884         setting, not afterwards.
55885         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55887 2010-02-24  Eric Blake  <eblake@redhat.com>
55889         bootstrap, git-version-gen: use timestamp
55890         * build-aux/git-version-gen (scriptversion): Force UTC.
55891         * build-aux/bootstrap (scriptversion): New variable.
55893         bootstrap: allow older git
55894         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55895         older than 1.6.4.  Requested by the libvirt project.
55897 2010-02-23  Eric Blake  <eblake@redhat.com>
55899         warn-on-use: work with old autoconf
55900         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55901         AS_VAR semantics of autoconf 2.60.
55902         Reported by Bruno Haible.
55904         bootstrap: improve some comments
55905         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55906         clarification comments.
55908         gettimeofday: provide correct function
55909         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55910         when replacement is declared, otherwise provide gettimeofday.
55911         Reported by Michael Goffioul.
55913 2010-02-23  Jim Meyering  <meyering@redhat.com>
55915         lib-ignore: relax license to "unlimited", not LGPLv2+
55916         * modules/lib-ignore (License): Relax to "unlimited".
55918 2010-02-23  Jim Meyering  <meyering@redhat.com>
55920         lib-ignore: relax license to LGPLv2+
55921         * modules/lib-ignore (License): Relax to LGPLv2+.
55923 2010-02-22  Eric Blake  <eblake@redhat.com>
55925         lseek: avoid bash 3.2 broken pipe bug
55926         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55927         warning from bash 3.2.
55928         Reported by Ben Pfaff, with analysis from Bruno Haible.
55930         bootstrap: support non-FSF copyright holder
55931         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55932         bootstrap.conf override of COPYRIGHT_HOLDER.
55933         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55935         bootstrap: interoperate with gettext 0.14.1
55936         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55938         bootstrap: allow for alternate submodule location
55939         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55940         hardcoding submodule location.
55941         (gnulib_mk): Allow direct use of Makefile.am.
55943         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55944         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55945         rather than reconfiguring where the submodule points.
55947         gettimeofday: restore support for platforms that lack function
55948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55949         replacement if function is missing.
55950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55951         * modules/sys_time (Makefile.am): Substitute it.
55952         * lib/sys_time.in.h (gettimeofday): Check it.
55953         Reported by Michael Goffioul.
55955 2010-02-21  Bruno Haible  <bruno@clisp.org>
55957         * lib/stdio.in.h (obstack_printf): Fix typo.
55959 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55961         vc-list-files: use bzr ls's -R option
55962         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55963         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55965 2010-02-21  Jim Meyering  <meyering@redhat.com>
55967         init.sh: fix EXEEXT shims to work also for names like test-prog
55968         * tests/init.sh: Re-exec a better shell, when needed.
55969         If the current shell lacks support for posix $(...), an init.sh-using
55970         test will now try to find a shell that supports that.  If EXEEXT is
55971         nonempty, we also require support for hyphen-in-alias-name and shell
55972         substitutions like ${var#glob}.  Failure to find such a shell results
55973         in a skipped test.
55975 2010-02-21  Bruno Haible  <bruno@clisp.org>
55977         Really work around "broken pipe" error message from bash 3.2.
55978         * gnulib-tool (func_reset_sigpipe): Remove function.
55979         (echo): In bash 3.2, define to a function that uses printf.
55980         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55982 2010-02-20  Bruno Haible  <bruno@clisp.org>
55984         Restore support for automake 1.9.6 with autoconf 2.61.
55985         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55986         Reported by James Youngman <jay@gnu.org>.
55988 2010-02-20  Bruno Haible  <bruno@clisp.org>
55990         Improve *printf warning condition.
55991         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55992         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55993         and the function is overridden due to SIGPIPE emulation.
55995 2010-02-20  Bruno Haible  <bruno@clisp.org>
55997         * lib/stdio.in.h: Tweak comments.
55999 2010-02-19  Bruno Haible  <bruno@clisp.org>
56001         Make it easier to find modules. New gnulib-tool option '--find'.
56002         * gnulib-tool: New option --find.
56003         (func_usage): Document it.
56004         (func_sanitize_modulelist): New function, extracted from
56005         func_all_modules.
56006         (func_all_modules): Invoke it.
56007         * doc/gnulib-tool.texi (Which modules?): New node.
56009 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
56011         * lib/sys_select.in.h: Provide select replacement even if
56012         sys/select.h exists on a system, for Interix.
56014 2010-02-18  Jim Meyering  <meyering@redhat.com>
56016         init.sh: don't use $(...) just yet
56017         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
56018         to accommodate e.g., Solaris' /bin/sh.
56020 2010-02-17  Bruno Haible  <bruno@clisp.org>
56022         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
56023         Reported by Ludovic Courtès <ludo@gnu.org>.
56025 2010-02-16  Simon Josefsson  <simon@josefsson.org>
56027         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
56028         linking with -lintl.
56030 2010-02-17  Simon Josefsson  <simon@josefsson.org>
56032         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
56033         if not provided by the system's netdb.h.  Reported by
56034         ludo@gnu.org (Ludovic Courtès).
56036 2010-02-15  Jim Meyering  <meyering@redhat.com>
56038         init.sh: improve portability and efficiency
56039         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
56040         "dummy" in a for loop.
56041         Use '!', not '^' to select the complement of a character set used
56042         in a "case" statement.
56043         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
56044         Suggestions from Eric Blake.
56046         init.sh: automatically accommodate programs with the .exe suffix
56047         Automatically arrange for an invocation of "prog" to execute the
56048         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
56049         may use the simpler "prog", yet still work when built on a system
56050         that requires specifying the added suffix.
56051         Do this by constructing a function named "prog" that invokes
56052         "prog.exe" for each .exe file in selected directories.
56053         * tests/init.sh (find_exe_basenames_): New function.
56054         (create_exe_shim_functions_): New function.
56055         (path_prepend_): Use it.
56057         maint.mk: mark syntax-check sc_*.m rules as .PHONY
56058         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
56059         "make -t syntax-check" doesn't create a ton of sc_*.m files.
56061 2010-02-14  Jim Meyering  <meyering@redhat.com>
56063         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
56064         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
56065         (sc_prohibit_hash_pjw_without_use): New rule.
56067         maint.mk: allow the default upload destination dir to be overridden
56068         * top/maint.mk (upload_dest_dir_): Define with a default that
56069         preserves the status quo.
56070         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
56071         Reported by Peter Simons.
56073         maint.mk: prohibit inclusion of "hash.h" without_use
56074         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
56076 2010-02-10  Jim Meyering  <meyering@redhat.com>
56078         maint.mk: prohibit inclusion of "ignore-value.h" without_use
56079         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
56081 2010-02-09  Eric Blake  <ebb9@byu.net>
56082         and Bruno Haible  <bruno@clisp.org>
56084         obstack-printf-posix: ensure declaration
56085         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
56086         extracted from gl_FUNC_OBSTACK_PRINTF.
56087         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
56088         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56089         Likewise.
56090         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
56091         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
56092         0.
56094 2010-02-08  Bruno Haible  <bruno@clisp.org>
56096         gnulib-tool: Fix typo in 2010-02-07 commit.
56097         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
56098         Reported by Eric Blake.
56100 2010-02-07  Bruno Haible  <bruno@clisp.org>
56102         gnulib-tool: Fix up caching patches.
56103         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
56104         option --no-cache. Use associative arrays when supported by the shell.
56105         (sed_comments): New variable.
56106         (modcache): Renamed from do_cache.
56107         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
56108         abbreviate unnecessarily.
56109         (have_associative): New variable.
56110         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
56111         way also for ksh and zsh.
56112         (func_init_sed_convert_to_cache_statements): New function, extracted
56113         from func_cache_lookup_module. Add support for associative arrays.
56114         Don't set the c_MODULE_cached variable here. Ignore all lines before
56115         the first field header. Remove only the final newline, not all trailing
56116         newlines. Support empty fields correctly. Limit the use of 'eval' to
56117         assignments.
56118         (func_get_description, func_get_status, func_get_notice,
56119         func_get_applicability, func_get_filelist, func_get_dependencies,
56120         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
56121         func_get_automake_snippet, func_get_include_directive,
56122         func_get_link_directive, func_get_license, func_get_maintainer):
56123         Update documentation. List the unoptimized code first. Add support for
56124         associative arrays. Limit the use of 'eval' to assignments.
56125         (func_get_applicability): Undo stylistic pessimisations.
56126         (func_get_automake_snippet, func_get_include_directive): Reduce code
56127         duplication.
56128         (func_modules_transitive_closure, func_modules_add_dummy,
56129         func_modules_notice, func_modules_to_filelist, func_add_file,
56130         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56131         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56132         func_create_testdir, func_create_megatestdir): Update documentation.
56134 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56136         * gnulib-tool (func_cache_lookup_module): Store the module name
56137         belonging to the cache variable; error out if two different
56138         module names map to the same cache variable name.
56140 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56142         gnulib-tool: Make caching optional.
56143         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56144         Update matching short versions of --no-changelog.
56145         (func_usage): Update.
56146         (sed_extract_cache_prog): Renamed from ...
56147         (sed_extract_prog): ... this; revert to old extraction script.
56148         (func_get_description, func_get_status)
56149         (func_get_notice, func_get_applicability, func_get_filelist)
56150         (func_get_dependencies, func_get_autoconf_early_snippet)
56151         (func_get_autoconf_snippet, func_get_automake_snippet)
56152         (func_get_include_directive, func_get_link_directive)
56153         (func_get_license, func_get_maintainer): If $do_cache is false,
56154         use old, non-caching extraction scripts.
56155         Suggestion by Bruno Haible.
56157 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56159         gnulib-tool: cache module metainformation.
56160         * gnulib-tool (sed_extract_prog): Match newline before each
56161         header, and rewrite header to a shell variable suffix.
56162         (func_cache_var, func_cache_lookup_module): New functions,
56163         to turn a module name into a cache variable prefix, and to
56164         look up and cache module metainformation.
56165         (func_get_description, func_get_status)
56166         (func_get_notice, func_get_applicability, func_get_filelist)
56167         (func_get_dependencies, func_get_autoconf_early_snippet)
56168         (func_get_autoconf_snippet, func_get_automake_snippet)
56169         (func_get_include_directive, func_get_link_directive)
56170         (func_get_license, func_get_maintainer): Use
56171         func_cache_lookup_module.
56173 2010-02-07  Bruno Haible  <bruno@clisp.org>
56175         fnctl: Fix missing dependency.
56176         * modules/fcntl (Depends-on): Add getdtablesize.
56177         Reported by John W. Eaton <jwe@gnu.org>.
56179 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56181         Argp: fix recognition of short alias options.
56183         * lib/argp-parse.c (convert_options): Fix improper use of
56184         `|' between character values.
56185         * tests/test-argp.c (group1_option): New alias option
56186         --read (-r).
56187         (group1_parser): Special handling for 'r'.
56188         (test15): New test case.
56189         (test_fun): Add test15.
56190         * tests/test-argp-2.sh: Update expected --help and --usage
56191         outputs.
56193 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56195         * tests/test-argp.c: Fix indentation.
56197 2010-02-04  Eric Blake  <ebb9@byu.net>
56199         gettimeofday: expose type of second argument
56200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56201         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56202         * tests/test-gettimeofday.c: Use it to silence warning.
56203         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56204         the issue.
56206 2010-02-03  Jim Meyering  <meyering@redhat.com>
56208         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56209         * lib/regcomp.c (TYPE_SIGNED): Define.
56210         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56212         regcomp.c: avoid a new -Wshadow warning
56213         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56215 2010-02-01  Jim Meyering  <meyering@redhat.com>
56217         removing useless parentheses in cpp #define directives
56218         For motivation, see commit c0221df4, "define STREQ(a,b)
56219         consistently, removing useless parentheses"
56220         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56221         * lib/mountlist.c (MNT_IGNORE): Likewise.
56222         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56224 2010-02-01  Eric Blake  <ebb9@byu.net>
56226         sys_time: use link-warning
56227         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56228         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56229         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56230         * modules/sys_time (Depends-on): Add warn-on-use.
56231         (Makefile.am): Always build replacement.
56232         (configure.ac): Update substitutions.
56233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56234         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56235         bother with SYS_TIME_H.
56236         * modules/gettimeofday (configure.ac): Declare indicator.
56237         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56238         in use.
56240         closein-tests: silence compiler warning
56241         * tests/test-closein.c (main): Ignore fread result.
56242         * modules/closein-tests (Depends-on): Add ignore-value.
56244         tests: silence warning about system return
56245         * tests/test-areadlink-with-size.c (main): Ignore system result.
56246         * tests/test-areadlink.c (main): Likewise.
56247         * tests/test-areadlinkat-with-size.c (main): Likewise.
56248         * tests/test-areadlinkat.c (main): Likewise.
56249         * tests/test-canonicalize-lgpl.c (main): Likewise.
56250         * tests/test-canonicalize.c (main): Likewise.
56251         * tests/test-chown.c (main): Likewise.
56252         * tests/test-fchownat.c (main): Likewise.
56253         * tests/test-fdutimensat.c (main): Likewise.
56254         * tests/test-fstatat.c (main): Likewise.
56255         * tests/test-futimens.c (main): Likewise.
56256         * tests/test-lchown.c (main): Likewise.
56257         * tests/test-link.c (main): Likewise.
56258         * tests/test-linkat.c (main): Likewise.
56259         * tests/test-lstat.c (main): Likewise.
56260         * tests/test-mkdir.c (main): Likewise.
56261         * tests/test-mkdirat.c (main): Likewise.
56262         * tests/test-mkfifo.c (main): Likewise.
56263         * tests/test-mkfifoat.c (main): Likewise.
56264         * tests/test-mknod.c (main): Likewise.
56265         * tests/test-readlink.c (main): Likewise.
56266         * tests/test-remove.c (main): Likewise.
56267         * tests/test-rename.c (main): Likewise.
56268         * tests/test-renameat.c (main): Likewise.
56269         * tests/test-rmdir.c (main): Likewise.
56270         * tests/test-symlink.c (main): Likewise.
56271         * tests/test-symlinkat.c (main): Likewise.
56272         * tests/test-unlink.c (main): Likewise.
56273         * tests/test-unlinkat.c (main): Likewise.
56274         * tests/test-utimens.c (main): Likewise.
56275         * tests/test-utimensat.c (main): Likewise.
56276         * modules/areadlink-tests (Depends-on): Add ignore-value.
56277         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56278         * modules/areadlinkat-tests (Depends-on): Likewise.
56279         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56280         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56281         * modules/canonicalize-tests (Depends-on): Likewise.
56282         * modules/chown-tests (Depends-on): Likewise.
56283         * modules/fdutimensat-tests (Depends-on): Likewise.
56284         * modules/futimens-tests (Depends-on): Likewise.
56285         * modules/lchown-tests (Depends-on): Likewise.
56286         * modules/link-tests (Depends-on): Likewise.
56287         * modules/linkat-tests (Depends-on): Likewise.
56288         * modules/lstat-tests (Depends-on): Likewise.
56289         * modules/mkdir-tests (Depends-on): Likewise.
56290         * modules/mkfifo-tests (Depends-on): Likewise.
56291         * modules/mkfifoat-tests (Depends-on): Likewise.
56292         * modules/mknod-tests (Depends-on): Likewise.
56293         * modules/openat-tests (Depends-on): Likewise.
56294         * modules/readlink-tests (Depends-on): Likewise.
56295         * modules/remove-tests (Depends-on): Likewise.
56296         * modules/rename-tests (Depends-on): Likewise.
56297         * modules/renameat-tests (Depends-on): Likewise.
56298         * modules/rmdir-tests (Depends-on): Likewise.
56299         * modules/symlink-tests (Depends-on): Likewise.
56300         * modules/symlinkat-tests (Depends-on): Likewise.
56301         * modules/unlink-tests (Depends-on): Likewise.
56302         * modules/utimens-tests (Depends-on): Likewise.
56303         * modules/utimensat-tests (Depends-on): Likewise.
56305 2010-01-31  Bruno Haible  <bruno@clisp.org>
56307         Perform the same test for many <math.h> functions.
56308         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56309         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56310         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56311         of gl_MATHFUNC.
56312         * modules/acos (configure.ac): Likewise.
56313         * modules/asin (configure.ac): Likewise.
56314         * modules/atan (configure.ac): Likewise.
56315         * modules/atan2 (configure.ac): Likewise.
56316         * modules/cbrt (configure.ac): Likewise.
56317         * modules/copysign (configure.ac): Likewise.
56318         * modules/cos (configure.ac): Likewise.
56319         * modules/cosh (configure.ac): Likewise.
56320         * modules/erf (configure.ac): Likewise.
56321         * modules/erfc (configure.ac): Likewise.
56322         * modules/exp (configure.ac): Likewise.
56323         * modules/fmod (configure.ac): Likewise.
56324         * modules/hypot (configure.ac): Likewise.
56325         * modules/j0 (configure.ac): Likewise.
56326         * modules/j1 (configure.ac): Likewise.
56327         * modules/jn (configure.ac): Likewise.
56328         * modules/lgamma (configure.ac): Likewise.
56329         * modules/log (configure.ac): Likewise.
56330         * modules/log10 (configure.ac): Likewise.
56331         * modules/log1p (configure.ac): Likewise.
56332         * modules/pow (configure.ac): Likewise.
56333         * modules/remainder (configure.ac): Likewise.
56334         * modules/sin (configure.ac): Likewise.
56335         * modules/sinh (configure.ac): Likewise.
56336         * modules/tan (configure.ac): Likewise.
56337         * modules/tanh (configure.ac): Likewise.
56338         * modules/y0 (configure.ac): Likewise.
56339         * modules/y1 (configure.ac): Likewise.
56340         * modules/yn (configure.ac): Likewise.
56341         Suggested by Paolo Bonzini.
56343 2010-01-31  Bruno Haible  <bruno@clisp.org>
56345         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56347 2010-01-31  Bruno Haible  <bruno@clisp.org>
56349         Work around getdelim() bug on FreeBSD 8.0.
56350         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56351         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56352         not work.
56353         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56354         is 1.
56355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56356         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56357         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56358         a non-zero size.
56359         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56361 2010-01-31  Bruno Haible  <bruno@clisp.org>
56363         Work around getline() bug on FreeBSD 8.0.
56364         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56365         and a non-zero size.
56366         * tests/test-getline.c (main): Likewise.
56367         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56368         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56370 2010-01-28  Eric Blake  <ebb9@byu.net>
56372         regex: fix build failure
56373         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56374         platforms.
56376 2010-01-28  Jim Meyering  <meyering@redhat.com>
56378         regex: do not ignore memory allocation failure
56379         * lib/regex_internal.c (create_cd_newstate): Detect
56380         re_node_set_init_copy failure.   Extracted from glibc commit
56381         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56383         regex: sync more white-space changes from libc
56384         * lib/regex_internal.c: White-space only changes.
56385         * lib/regexec.c: Likewise.
56387         regex: add many uses of __attribute_warn_unused_result__
56388         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56389         * lib/regexec.c: Likewise.
56390         Extracted from a messy glibc commit.
56392         regcomp.c: spelling and merge-artifact from glibc
56393         * lib/regcomp.c: Merge remainder of glibc's
56394         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56396         regcomp.c: sync white-space changes from glibc
56397         * lib/regcomp.c: Merge to accommodate white space
56398         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56400         regcomp.c: do not ignore internal return values
56401         * lib/regcomp.c: Do not ignore internal return values.
56402         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56403         but without its white-space changes and spelling fixes.
56405         regex_internal.h: define __attribute_warn_unused_result__
56406         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56408         maint: add a syntax-check rule to check for vulnerable Makefile.in
56409         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56411 2010-01-27  Jim Meyering  <meyering@redhat.com>
56413         ncftpput-ftp: clean up spaces
56414         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56415         Remove trailing blanks.
56417 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56419         * build-aux/git-version-gen: Fix copyright statement.
56420         * build-aux/gnupload: Likewise.
56421         * tests/test-arcfour.c: Likewise.
56422         * tests/test-arctwo.c: Likewise.
56423         * tests/test-count-one-bits.c: Likewise.
56424         * tests/test-crc.c: Likewise.
56425         * tests/test-des.c: Likewise.
56426         * tests/test-gc-arcfour.c: Likewise.
56427         * tests/test-gc-arctwo.c: Likewise.
56428         * tests/test-gc-des.c: Likewise.
56429         * tests/test-gc-hmac-md5.c: Likewise.
56430         * tests/test-gc-hmac-sha1.c: Likewise.
56431         * tests/test-gc-md2.c: Likewise.
56432         * tests/test-gc-md4.c: Likewise.
56433         * tests/test-gc-md5.c: Likewise.
56434         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56435         * tests/test-gc-rijndael.c: Likewise.
56436         * tests/test-gc-sha1.c: Likewise.
56437         * tests/test-gc.c: Likewise.
56438         * tests/test-gethostname.c: Likewise.
56439         * tests/test-gettimeofday.c: Likewise.
56440         * tests/test-hash.c: Likewise.
56441         * tests/test-hmac-md5.c: Likewise.
56442         * tests/test-hmac-sha1.c: Likewise.
56443         * tests/test-md2.c: Likewise.
56444         * tests/test-md4.c: Likewise.
56445         * tests/test-md5.c: Likewise.
56446         * tests/test-memchr.c: Likewise.
56447         * tests/test-memchr2.c: Likewise.
56448         * tests/test-memcmp.c: Likewise.
56449         * tests/test-memmem.c: Likewise.
56450         * tests/test-memrchr.c: Likewise.
56451         * tests/test-rawmemchr.c: Likewise.
56452         * tests/test-read-file.c: Likewise.
56453         * tests/test-rijndael.c: Likewise.
56454         * tests/test-sockets.c: Likewise.
56455         * tests/test-strchrnul.c: Likewise.
56456         * tests/test-strstr.c: Likewise.
56457         * tests/test-strtod.c: Likewise.
56458         * build-aux/ncftpput-ftp: Likewise.
56460 2010-01-26  Eric Blake  <ebb9@byu.net>
56462         ignore-value: update recommended header name
56463         * modules/ignore-value (Include): Only use <> for headers that
56464         exist in glibc.
56466 2010-01-26  Jim Meyering  <meyering@redhat.com>
56468         test-userspec.c: avoid compiler warnings
56469         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56470         and "initialization discards qualifiers..." warnings.
56471         Put the first "uid" in its own scope, and make char* members "const".
56473 2010-01-25  Bruno Haible  <bruno@clisp.org>
56475         gnulib-tool: Make warning diagnostics consistent.
56476         * gnulib-tool (func_warning): New function.
56477         Use it everywhere where gnulib-tool produces output to stderr and it is
56478         not a fatal error.
56480 2010-01-25  Bruno Haible  <bruno@clisp.org>
56482         Fix test dependencies.
56483         * modules/xstrtol-tests (Depends-on): Add inttypes.
56484         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56486 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56488         syntax-check: detect incorrect boolean macro values in config.h
56489         * modules/maintainer-makefile (configure.ac): Parameterize the location
56490         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56491         The logic is from Eric Blake and the location indicated by Jim Meyering.
56492         Note the more natural CONFIG_HEADER name is prohibited by automake
56493         for backwards compatibility reasons.
56494         * top/maint.mk (sc_Wundef_boolean): New rule.
56496 2010-01-25  Jim Meyering  <meyering@redhat.com>
56498         bootstrap: detect MacOS 10.6's shasum, too
56499         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56500         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56502 2010-01-23  Jim Meyering  <meyering@redhat.com>
56504         xstrtoll: new module
56505         * modules/xstrtoll: New file.
56506         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56507         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56508         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56509         ./configure fails if you use this module and lack "long long".
56510         * modules/xstrtoll-tests: New module.
56511         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56512         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56513         new init.sh-based test framework.
56515 2010-01-24  Bruno Haible  <bruno@clisp.org>
56517         Tests for module 'yn'.
56518         * modules/yn-tests: New file.
56519         * tests/test-yn.c: New file.
56521         Tests for module 'y1'.
56522         * modules/y1-tests: New file.
56523         * tests/test-y1.c: New file.
56525         Tests for module 'y0'.
56526         * modules/y0-tests: New file.
56527         * tests/test-y0.c: New file.
56529         Tests for module 'tanh'.
56530         * modules/tanh-tests: New file.
56531         * tests/test-tanh.c: New file.
56533         Tests for module 'tan'.
56534         * modules/tan-tests: New file.
56535         * tests/test-tan.c: New file.
56537         Tests for module 'sqrt'.
56538         * modules/sqrt-tests: New file.
56539         * tests/test-sqrt.c: New file.
56541         Tests for module 'sinh'.
56542         * modules/sinh-tests: New file.
56543         * tests/test-sinh.c: New file.
56545         Tests for module 'sin'.
56546         * modules/sin-tests: New file.
56547         * tests/test-sin.c: New file.
56549         Tests for module 'rint'.
56550         * modules/rint-tests: New file.
56551         * tests/test-rint.c: New file.
56553         Tests for module 'remainder'.
56554         * modules/remainder-tests: New file.
56555         * tests/test-remainder.c: New file.
56557         Tests for module 'pow'.
56558         * modules/pow-tests: New file.
56559         * tests/test-pow.c: New file.
56561         Tests for module 'nextafter'.
56562         * modules/nextafter-tests: New file.
56563         * tests/test-nextafter.c: New file.
56565         Tests for module 'modf'.
56566         * modules/modf-tests: New file.
56567         * tests/test-modf.c: New file.
56569         Tests for module 'logb'.
56570         * modules/logb-tests: New file.
56571         * tests/test-logb.c: New file.
56573         Tests for module 'log1p'.
56574         * modules/log1p-tests: New file.
56575         * tests/test-log1p.c: New file.
56577         Tests for module 'log10'.
56578         * modules/log10-tests: New file.
56579         * tests/test-log10.c: New file.
56581         Tests for module 'log'.
56582         * modules/log-tests: New file.
56583         * tests/test-log.c: New file.
56585         Tests for module 'lgamma'.
56586         * modules/lgamma-tests: New file.
56587         * tests/test-lgamma.c: New file.
56589         Tests for module 'ldexp'.
56590         * modules/ldexp-tests: New file.
56591         * tests/test-ldexp.c: New file.
56593         Tests for module 'jn'.
56594         * modules/jn-tests: New file.
56595         * tests/test-jn.c: New file.
56597         Tests for module 'j1'.
56598         * modules/j1-tests: New file.
56599         * tests/test-j1.c: New file.
56601         Tests for module 'j0'.
56602         * modules/j0-tests: New file.
56603         * tests/test-j0.c: New file.
56605         Tests for module 'hypot'.
56606         * modules/hypot-tests: New file.
56607         * tests/test-hypot.c: New file.
56609         Tests for module 'fmod'.
56610         * modules/fmod-tests: New file.
56611         * tests/test-fmod.c: New file.
56613         Tests for module 'fabs'.
56614         * modules/fabs-tests: New file.
56615         * tests/test-fabs.c: New file.
56617         Tests for module 'exp'.
56618         * modules/exp-tests: New file.
56619         * tests/test-exp.c: New file.
56621         Tests for module 'erfc'.
56622         * modules/erfc-tests: New file.
56623         * tests/test-erfc.c: New file.
56625         Tests for module 'erf'.
56626         * modules/erf-tests: New file.
56627         * tests/test-erf.c: New file.
56629         Tests for module 'cosh'.
56630         * modules/cosh-tests: New file.
56631         * tests/test-cosh.c: New file.
56633         Tests for module 'cos'.
56634         * modules/cos-tests: New file.
56635         * tests/test-cos.c: New file.
56637         Tests for module 'copysign'.
56638         * modules/copysign-tests: New file.
56639         * tests/test-copysign.c: New file.
56641         Tests for module 'cbrt'.
56642         * modules/cbrt-tests: New file.
56643         * tests/test-cbrt.c: New file.
56645         Tests for module 'atan2'.
56646         * modules/atan2-tests: New file.
56647         * tests/test-atan2.c: New file.
56649         Tests for module 'atan'.
56650         * modules/atan-tests: New file.
56651         * tests/test-atan.c: New file.
56653         Tests for module 'asin'.
56654         * modules/asin-tests: New file.
56655         * tests/test-asin.c: New file.
56657         Tests for module 'acos'.
56658         * modules/acos-tests: New file.
56659         * tests/test-acos.c: New file.
56661 2010-01-24  Bruno Haible  <bruno@clisp.org>
56663         Fix tests for common <math.h> functions.
56664         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56665         code snippet that references the function pointer, rather than merely
56666         calling the function. Substitute the FUNC_LIBM variable.
56667         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56668         * modules/acos (configure.ac): Likewise.
56669         * modules/asin (configure.ac): Likewise.
56670         * modules/atan (configure.ac): Likewise.
56671         * modules/atan2 (configure.ac): Likewise.
56672         * modules/cbrt (configure.ac): Likewise.
56673         * modules/copysign (configure.ac): Likewise.
56674         * modules/cos (configure.ac): Likewise.
56675         * modules/cosh (configure.ac): Likewise.
56676         * modules/erf (configure.ac): Likewise.
56677         * modules/erfc (configure.ac): Likewise.
56678         * modules/exp (configure.ac): Likewise.
56679         * modules/fabs (configure.ac): Likewise.
56680         * modules/fmod (configure.ac): Likewise.
56681         * modules/hypot (configure.ac): Likewise.
56682         * modules/j0 (configure.ac): Likewise.
56683         * modules/j1 (configure.ac): Likewise.
56684         * modules/jn (configure.ac): Likewise.
56685         * modules/ldexp (configure.ac): Likewise.
56686         * modules/lgamma (configure.ac): Likewise.
56687         * modules/log (configure.ac): Likewise.
56688         * modules/log10 (configure.ac): Likewise.
56689         * modules/log1p (configure.ac): Likewise.
56690         * modules/logb (configure.ac): Likewise.
56691         * modules/modf (configure.ac): Likewise.
56692         * modules/nextafter (configure.ac): Likewise.
56693         * modules/pow (configure.ac): Likewise.
56694         * modules/remainder (configure.ac): Likewise.
56695         * modules/rint (configure.ac): Likewise.
56696         * modules/sin (configure.ac): Likewise.
56697         * modules/sinh (configure.ac): Likewise.
56698         * modules/tan (configure.ac): Likewise.
56699         * modules/tanh (configure.ac): Likewise.
56700         * modules/y0 (configure.ac): Likewise.
56701         * modules/y1 (configure.ac): Likewise.
56702         * modules/yn (configure.ac): Likewise.
56704 2010-01-24  Bruno Haible  <bruno@clisp.org>
56706         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56707         * tests/test-acosl.c (x): New variable.
56708         (main): Store argument in x and fetch it from x.
56709         * tests/test-asinl.c (x): New variable.
56710         (main): Store argument in x and fetch it from x.
56711         * tests/test-atanl.c (x): New variable.
56712         (main): Store argument in x and fetch it from x.
56713         * tests/test-cosl.c (x): New variable.
56714         (main): Store argument in x and fetch it from x.
56715         * tests/test-expl.c (x): New variable.
56716         (main): Store argument in x and fetch it from x.
56717         * tests/test-logl.c (x): New variable.
56718         (main): Store argument in x and fetch it from x.
56719         * tests/test-sinl.c (x): New variable.
56720         (main): Store argument in x and fetch it from x.
56721         * tests/test-sqrtl.c (x): New variable.
56722         (main): Store argument in x and fetch it from x.
56723         * tests/test-tanl.c (x): New variable.
56724         (main): Store argument in x and fetch it from x.
56726 2010-01-24  Bruno Haible  <bruno@clisp.org>
56728         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56729         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56730         assignments to the initial TESTS_ENVIRONMENT.
56731         * doc/gnulib.texi (Unit test modules): Document it.
56732         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56733         TESTS_ENVIRONMENT.
56734         * modules/btowc-tests (Makefile.am): Likewise.
56735         * modules/c-stack-tests (Makefile.am): Likewise.
56736         * modules/c-strcase-tests (Makefile.am): Likewise.
56737         * modules/copy-file-tests (Makefile.am): Likewise.
56738         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56739         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56740         * modules/mbrtowc-tests (Makefile.am): Likewise.
56741         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56742         * modules/mbscasestr-tests (Makefile.am): Likewise.
56743         * modules/mbschr-tests (Makefile.am): Likewise.
56744         * modules/mbscspn-tests (Makefile.am): Likewise.
56745         * modules/mbsinit-tests (Makefile.am): Likewise.
56746         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56747         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56748         * modules/mbspbrk-tests (Makefile.am): Likewise.
56749         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56750         * modules/mbsrchr-tests (Makefile.am): Likewise.
56751         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56752         * modules/mbsspn-tests (Makefile.am): Likewise.
56753         * modules/mbsstr-tests (Makefile.am): Likewise.
56754         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56755         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56756         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56757         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56758         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56759         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56760         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56761         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56762         * modules/wcrtomb-tests (Makefile.am): Likewise.
56763         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56764         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56765         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56766         assignments from TESTS_ENVIRONMENT.
56767         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56768         augmentation.
56769         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56770         * modules/atexit-tests (Makefile.am): Likewise.
56771         * modules/binary-io-tests (Makefile.am): Likewise.
56772         * modules/closein-tests (Makefile.am): Likewise.
56773         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56774         * modules/exclude-tests (Makefile.am): Likewise.
56775         * modules/fflush-tests (Makefile.am): Likewise.
56776         * modules/fpending-tests (Makefile.am): Likewise.
56777         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56778         * modules/freadahead-tests (Makefile.am): Likewise.
56779         * modules/freadptr-tests (Makefile.am): Likewise.
56780         * modules/freadseek-tests (Makefile.am): Likewise.
56781         * modules/fseek-tests (Makefile.am): Likewise.
56782         * modules/fseeko-tests (Makefile.am): Likewise.
56783         * modules/ftell-tests (Makefile.am): Likewise.
56784         * modules/ftello-tests (Makefile.am): Likewise.
56785         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56786         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56787         * modules/lseek-tests (Makefile.am): Likewise.
56788         * modules/parse-duration-tests (Makefile.am): Likewise.
56789         * modules/perror-tests (Makefile.am): Likewise.
56790         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56791         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56792         * modules/pipe-tests (Makefile.am): Likewise.
56793         * modules/pread-tests (Makefile.am): Likewise.
56794         * modules/printf-posix-tests (Makefile.am): Likewise.
56795         * modules/select-tests (Makefile.am): Likewise.
56796         * modules/sigpipe-tests (Makefile.am): Likewise.
56797         * modules/tsearch-tests (Makefile.am): Likewise.
56798         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56799         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56800         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56801         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56802         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56803         * modules/version-etc-tests (Makefile.am): Likewise.
56804         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56805         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56806         * modules/xalloc-die-tests (Makefile.am): Likewise.
56807         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56808         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56809         * modules/xstrtol-tests (Makefile.am): Likewise.
56810         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56811         * modules/yesno-tests (Makefile.am): Likewise.
56812         Suggested by Jim Meyering.
56814 2010-01-24  Bruno Haible  <bruno@clisp.org>
56816         More documentation.
56817         * doc/gnulib.texi (Writing modules): New chapter.
56818         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56819         the new chapter.
56821 2010-01-24  Jim Meyering  <meyering@redhat.com>
56823         maint.mk: do not prepend "./" after filtering
56824         * top/maint.mk (_prepend_srcdir_prefix): New variable
56825         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56826         "./" when $(srcdir) is ".".
56828         define STREQ(a,b) consistently, removing useless parentheses
56829         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56830         since the only risk is that "a" or "b" contains an unparenthesized
56831         comma, but if either did that, STREQ would have 3 or more arguments.
56832         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56833         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56834         * lib/hash-triple.c (STREQ): Likewise.
56835         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56836         * lib/getugroups.c (STREQ): Likewise.
56838 2010-01-23  Jim Meyering  <meyering@redhat.com>
56840         maint.mk: fix syntax-check in a non-srcdir build directory
56841         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56842         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56844 2010-01-22  Jim Meyering  <meyering@redhat.com>
56846         userspec: add unit tests
56847         * tests/test-userspec.c: New file.
56848         * modules/userspec-tests: Likewise.
56850 2010-01-21  Jim Meyering  <meyering@redhat.com>
56852         maint.mk: handle source file names containing "." robustly
56853         * top/maint.mk (_dot_escaped_srcdir): Define.
56854         (VC_LIST): Use it in LHS of sed substitution.
56856 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56858         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56859         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56860         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56861         from a non-srcdir build.
56863 2010-01-20  Eric Blake  <ebb9@byu.net>
56865         warn-on-use: use instead of link-warning
56866         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56867         * modules/unistd (Depends-on, Makefile.am): Likewise.
56868         * modules/arpa_inet (Depends-on): Replace link-warning with
56869         warn-on-use.
56870         (Makefile.am): Update rules accordingly.
56871         * modules/ctype (Depends-on, Makefile.am): Likewise.
56872         * modules/dirent (Depends-on, Makefile.am): Likewise.
56873         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56874         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56875         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56876         * modules/locale (Depends-on, Makefile.am): Likewise.
56877         * modules/math (Depends-on, Makefile.am): Likewise.
56878         * modules/search (Depends-on, Makefile.am): Likewise.
56879         * modules/signal (Depends-on, Makefile.am): Likewise.
56880         * modules/spawn (Depends-on, Makefile.am): Likewise.
56881         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56882         * modules/string (Depends-on, Makefile.am): Likewise.
56883         * modules/strings (Depends-on, Makefile.am): Likewise.
56884         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56885         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56886         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56887         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56888         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56889         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56890         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56891         * modules/wchar (Depends-on, Makefile.am): Likewise.
56892         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56893         should be poisoned.
56894         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56895         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56896         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56897         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56898         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56899         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56900         * m4/math_h.m4 (gl_MATH_H): Likewise.
56901         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56902         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56903         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56904         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56905         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56907         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56908         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56909         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56910         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56912         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56913         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56914         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56915         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56917         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56918         GL_LINK_WARNING.
56919         * lib/ctype.in.h: Likewise.
56920         * lib/dirent.in.h: Likewise.
56921         * lib/fcntl.in.h: Likewise.
56922         * lib/inttypes.in.h: Likewise.
56923         * lib/langinfo.in.h: Likewise.
56924         * lib/locale.in.h: Likewise.
56925         * lib/math.in.h: Likewise.
56926         * lib/search.in.h: Likewise.
56927         * lib/signal.in.h: Likewise.
56928         * lib/spawn.in.h: Likewise.
56929         * lib/stdio.in.h: Likewise.
56930         * lib/stdlib.in.h: Likewise.
56931         * lib/string.in.h: Likewise.
56932         * lib/strings.in.h: Likewise.
56933         * lib/sys_file.in.h: Likewise.
56934         * lib/sys_ioctl.in.h: Likewise.
56935         * lib/sys_select.in.h: Likewise.
56936         * lib/sys_socket.in.h: Likewise.
56937         * lib/sys_stat.in.h: Likewise.
56938         * lib/sys_times.in.h: Likewise.
56939         * lib/sys_utsname.in.h: Likewise.
56940         * lib/unistd.in.h: Likewise.
56941         * lib/wchar.in.h: Likewise.
56943 2010-01-20  Bruno Haible  <bruno@clisp.org>
56945         Avoid duplicate -lm.
56946         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56947         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56948         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56949         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56950         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56951         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56952         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56953         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56954         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56955         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56956         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56957         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56958         Reported by Paolo Bonzini.
56960 2010-01-19  Bruno Haible  <bruno@clisp.org>
56962         langinfo, nl_langinfo: Relicense under LGPLv2+.
56963         * modules/langinfo (License): Change to LGPLv2+.
56964         * modules/nl_langinfo (License): Likewise.
56965         Patch by David Lutterkort <lutter@redhat.com>.
56967 2010-01-19  Bruno Haible  <bruno@clisp.org>
56969         Avoid compilation error with cc on OSF/1 5.1.
56970         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56971         statement, not before.
56972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56974 2010-01-18  Bruno Haible  <bruno@clisp.org>
56976         Avoid a link error due to the __printf__ symbol.
56977         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56978         and 2.6.x.
56979         (__format__, __printf__): Remove definitions.
56980         * lib/argp-fmtstream.h: Likewise.
56981         * lib/argp.h: Likewise.
56982         * lib/error.h: Likewise.
56983         * lib/vasnprintf.h: Likewise.
56984         * lib/xprintf.h: Likewise.
56985         * lib/xvasprintf.h: Likewise.
56986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56988 2010-01-18  Bruno Haible  <bruno@clisp.org>
56990         Tests for module 'tanl'.
56991         * modules/tanl-tests: New file.
56992         * tests/test-tanl.c: New file.
56994         Tests for module 'sqrtl'.
56995         * modules/sqrtl-tests: New file.
56996         * tests/test-sqrtl.c: New file.
56998         Tests for module 'sinl'.
56999         * modules/sinl-tests: New file.
57000         * tests/test-sinl.c: New file.
57002         Tests for module 'logl'.
57003         * modules/logl-tests: New file.
57004         * tests/test-logl.c: New file.
57006         Tests for module 'expl'.
57007         * modules/expl-tests: New file.
57008         * tests/test-expl.c: New file.
57010         Tests for module 'cosl'.
57011         * modules/cosl-tests: New file.
57012         * tests/test-cosl.c: New file.
57014         Tests for module 'atanl'.
57015         * modules/atanl-tests: New file.
57016         * tests/test-atanl.c: New file.
57018         Tests for module 'asinl'.
57019         * modules/asinl-tests: New file.
57020         * tests/test-asinl.c: New file.
57022         Tests for module 'acosl'.
57023         * modules/acosl-tests: New file.
57024         * tests/test-acosl.c: New file.
57026         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57027         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
57028         tanl): Use the standard gnulib idiom.
57029         * lib/cosl.c: Don't include trigl.c and sincosl.c.
57030         * lib/sinl.c: Likewise.
57031         * lib/tanl.c: Don't include trigl.c.
57032         (kernel_tanl): Make static.
57033         * lib/sincosl.c: Include trigl.h first.
57034         * lib/trigl.c: Likewise.
57035         * m4/acosl.m4: New file.
57036         * m4/asinl.m4: New file.
57037         * m4/atanl.m4: New file.
57038         * m4/cosl.m4: New file.
57039         * m4/expl.m4: New file.
57040         * m4/logl.m4: New file.
57041         * m4/sinl.m4: New file.
57042         * m4/sqrtl.m4: New file.
57043         * m4/tanl.m4: New file.
57044         * m4/mathl.m4: Remove file.
57045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
57046         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57047         Don't initialize GNULIB_MATHL.
57048         * modules/acosl: New file.
57049         * modules/asinl: New file.
57050         * modules/atanl: New file.
57051         * modules/cosl: New file.
57052         * modules/expl: New file.
57053         * modules/logl: New file.
57054         * modules/sinl: New file.
57055         * modules/sqrtl: New file.
57056         * modules/tanl: New file.
57057         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
57058         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
57059         substitute GNULIB_MATHL.
57060         * modules/mathl: Rewritten.
57061         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
57062         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
57063         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
57064         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
57065         * doc/posix-functions/expl.texi: Mention the 'expl' module.
57066         * doc/posix-functions/logl.texi: Mention the 'logl' module.
57067         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
57068         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
57069         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
57071 2010-01-18  Bruno Haible  <bruno@clisp.org>
57073         sqrt: Make gl_FUNC_SQRT requirable.
57074         * m4/sqrt.m4: New file.
57075         * modules/sqrt (Files): Add it.
57076         (configure.ac): Invoke gl_FUNC_SQRT.
57078 2010-01-18  Bruno Haible  <bruno@clisp.org>
57080         New modules for common <math.h> functions.
57081         * m4/mathfunc.m4: New file.
57082         * modules/acos: New file.
57083         * modules/asin: New file.
57084         * modules/atan: New file.
57085         * modules/atan2: New file.
57086         * modules/cbrt: New file.
57087         * modules/copysign: New file.
57088         * modules/cos: New file.
57089         * modules/cosh: New file.
57090         * modules/erf: New file.
57091         * modules/erfc: New file.
57092         * modules/exp: New file.
57093         * modules/fabs: New file.
57094         * modules/fmod: New file.
57095         * modules/hypot: New file.
57096         * modules/j0: New file.
57097         * modules/j1: New file.
57098         * modules/jn: New file.
57099         * modules/ldexp: New file.
57100         * modules/lgamma: New file.
57101         * modules/log: New file.
57102         * modules/log10: New file.
57103         * modules/log1p: New file.
57104         * modules/logb: New file.
57105         * modules/modf: New file.
57106         * modules/nextafter: New file.
57107         * modules/pow: New file.
57108         * modules/remainder: New file.
57109         * modules/rint: New file.
57110         * modules/sin: New file.
57111         * modules/sinh: New file.
57112         * modules/sqrt: New file.
57113         * modules/tan: New file.
57114         * modules/tanh: New file.
57115         * modules/y0: New file.
57116         * modules/y1: New file.
57117         * modules/yn: New file.
57118         * doc/posix-functions/acos.texi: Mention the 'acos' module.
57119         * doc/posix-functions/asin.texi: Mention the 'asin' module.
57120         * doc/posix-functions/atan.texi: Mention the 'atan' module.
57121         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
57122         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
57123         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57124         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57125         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57126         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57127         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57128         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57129         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57130         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57131         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57132         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57133         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57134         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57135         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57136         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57137         * doc/posix-functions/log.texi: Mention the 'log' module.
57138         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57139         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57140         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57141         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57142         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57143         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57144         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57145         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57146         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57147         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57148         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57149         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57150         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57151         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57152         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57153         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57155 2010-01-18  Jim Meyering  <meyering@redhat.com>
57157         ignore-value: relax license to LGPLv2+
57158         * modules/ignore-value (License): Relax to LGPLv2+.
57160         getdate: don't leak when TZ contains two or more '"'s
57161         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57162         double quote in TZ after the first one.
57164         readtokens: do not leak internal token_lengths buffer
57165         * lib/readtokens.c (readtokens): Free the local, lengths,
57166         when the supplied "token_lengths" parameter is NULL.
57168 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57170         Fix a couple of missing LIBTHREAD link failures on AIX.
57171         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57172         $(LIBTHREAD).
57173         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57175         Link test-poll against INET_PTON_LIB.
57176         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57177         for inet_pton on Solaris 10.
57179 2010-01-17  Bruno Haible  <bruno@clisp.org>
57181         unistdio/*-sprintf: Fix typo in module description.
57182         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57183         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57184         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57185         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57186         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57187         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57188         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57191 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57193         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57194         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57195         variables in shell case patterns, for AIX and HP-UX ksh.
57197         Split large sed scripts, for HP-UX sed.
57198         * modules/stdio: Split sed scripts around 50 sed commands,
57199         to avoid HP-UX limit of 99 commands, in the near future.
57200         * modules/string: Likewise.
57201         * modules/unistd: Likewise.
57203         gnulib-tool: avoid writing in the current directory.
57204         * gnulib-tool (func_emit_lib_Makefile_am)
57205         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57206         not in the current directory, so concurrent gnulib-tool
57207         instances do not interfere.
57209 2010-01-16  Jim Meyering  <meyering@redhat.com>
57211         doc: update users.txt
57212         * users.txt: Add grep.
57213         (diffutils, gzip): Update URLs.
57215 2010-01-12  Bruno Haible  <bruno@clisp.org>
57217         posix_spawn: Avoid test failure on Cygwin.
57218         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57219         characters.
57220         Reported by Simon Josefsson.
57222 2010-01-12  Bruno Haible  <bruno@clisp.org>
57224         * tests/test-cond.c (main): When skipping the test, show the reason.
57226 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57228         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57230 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57232         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57233         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57235 2010-01-12  Eric Blake  <ebb9@byu.net>
57237         build: guarantee AS_VAR_IF
57238         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57239         (gl_AS_VAR_IF): Move...
57240         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57241         Reported by Simon Josefsson.
57243 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57245         * lib/stdio.in.h: Fix typo.
57247 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57249         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57250         libgpg-error.
57252 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57254         * tests/test-xalloc-die.sh: Use $EXEEXT.
57256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57257             Bruno Haible  <bruno@clisp.org>
57259         getlogin, getlogin_r: Avoid test failure.
57260         * tests/test-getlogin.c: Include <stdio.h>.
57261         (main): Skip the test when the function fails because stdin is not a
57262         tty.
57263         * tests/test-getlogin_r.c: Include <stdio.h>.
57264         (main): Skip the test when the function fails because stdin is not a
57265         tty.
57267 2010-01-11  Eric Blake  <ebb9@byu.net>
57269         tests: avoid more large file warnings
57270         * tests/test-fflush.c: Avoid warning about ftell use.
57271         * tests/test-fseek.c: Avoid warning about fseek use.
57273 2010-01-10  Bruno Haible  <bruno@clisp.org>
57275         nproc: Work better on Linux when /proc and /sys are not mounted.
57276         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57277         as lower bound when, on glibc/Linux systems,
57278         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57279         Suggested by Pádraig Brady <P@draigbrady.com>.
57280         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57282         nproc: Refactor.
57283         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57284         extracted from num_processors.
57285         (num_processors): Call it.
57287 2010-01-11  Jim Meyering  <meyering@redhat.com>
57289         utimecmp: avoid new warning from upcoming gcc-4.5.0
57290         * lib/utimecmp.c (BILLION): Define using #define rather than an
57291         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57293 2010-01-11  Eric Blake  <ebb9@byu.net>
57295         math: add portability warnings for classification macros
57296         * modules/math (Depends-on): Add warn-on-use.
57297         (Makefile.am): Provide new substitutions.
57298         * m4/math_h.m4 (gl_MATH_H): Require inline.
57299         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57300         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57301         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57302         implement warnings.
57304         unistd: warn on use of environ without module
57305         * modules/unistd (Depends-on): Add warn-on-use.
57306         (Makefile.am): Provide new substitutions.
57307         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57308         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57310         stdio: warn on suspicious uses
57311         * modules/stdio (Depends-on): Add warn-on-use.
57312         (Makefile.am): Provide new substitutions.
57313         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57314         fseeko.
57315         * lib/stdio.in.h (gets): Always warn on use.
57316         (fseek, ftell): Adjust when warnings are issued, and honor
57317         _GL_NO_LARGE_FILES as a way to silence the warning.
57318         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57319         any warning about large file offsets.
57320         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57321         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57322         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57323         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57324         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57325         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57326         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57327         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57329         warn-on-use: new module
57330         * modules/warn-on-use: New file.
57331         * build-aux/warn-on-use.h: Likewise.
57332         * m4/warn-on-use.m4: Likewise.
57333         * MODULES.html.sh (Support for building): Mention it.
57335 2010-01-10  Bruno Haible  <bruno@clisp.org>
57337         Tests for module 'unistr/u32-strdup'.
57338         * modules/unistr/u32-strdup-tests: New file.
57339         * tests/unistr/test-u32-strdup.c: New file.
57341         Tests for module 'unistr/u16-strdup'.
57342         * modules/unistr/u16-strdup-tests: New file.
57343         * tests/unistr/test-u16-strdup.c: New file.
57345         Tests for module 'unistr/u8-strdup'.
57346         * modules/unistr/u8-strdup-tests: New file.
57347         * tests/unistr/test-u8-strdup.c: New file.
57348         * tests/unistr/test-strdup.h: New file.
57350         Tests for module 'unistr/u32-strncmp'.
57351         * modules/unistr/u32-strncmp-tests: New file.
57352         * tests/unistr/test-u32-strncmp.c: New file.
57354         Tests for module 'unistr/u16-strncmp'.
57355         * modules/unistr/u16-strncmp-tests: New file.
57356         * tests/unistr/test-u16-strncmp.c: New file.
57358         Tests for module 'unistr/u8-strncmp'.
57359         * modules/unistr/u8-strncmp-tests: New file.
57360         * tests/unistr/test-u8-strncmp.c: New file.
57361         * tests/unistr/test-strncmp.h: New file.
57363         Tests for module 'unistr/u32-strcoll'.
57364         * modules/unistr/u32-strcoll-tests: New file.
57365         * tests/unistr/test-u32-strcoll.c: New file.
57367         Tests for module 'unistr/u16-strcoll'.
57368         * modules/unistr/u16-strcoll-tests: New file.
57369         * tests/unistr/test-u16-strcoll.c: New file.
57371         Tests for module 'unistr/u8-strcoll'.
57372         * modules/unistr/u8-strcoll-tests: New file.
57373         * tests/unistr/test-u8-strcoll.c: New file.
57375         Tests for module 'unistr/u32-strcmp'.
57376         * modules/unistr/u32-strcmp-tests: New file.
57377         * tests/unistr/test-u32-strcmp.c: New file.
57378         * tests/unistr/test-u32-strcmp.h: New file.
57380         Tests for module 'unistr/u16-strcmp'.
57381         * modules/unistr/u16-strcmp-tests: New file.
57382         * tests/unistr/test-u16-strcmp.c: New file.
57383         * tests/unistr/test-u16-strcmp.h: New file.
57385         Tests for module 'unistr/u8-strcmp'.
57386         * modules/unistr/u8-strcmp-tests: New file.
57387         * tests/unistr/test-u8-strcmp.c: New file.
57388         * tests/unistr/test-u8-strcmp.h: New file.
57389         * tests/unistr/test-strcmp.h: New file.
57391         Tests for module 'unistr/u32-strncat'.
57392         * modules/unistr/u32-strncat-tests: New file.
57393         * tests/unistr/test-u32-strncat.c: New file.
57395         Tests for module 'unistr/u16-strncat'.
57396         * modules/unistr/u16-strncat-tests: New file.
57397         * tests/unistr/test-u16-strncat.c: New file.
57399         Tests for module 'unistr/u8-strncat'.
57400         * modules/unistr/u8-strncat-tests: New file.
57401         * tests/unistr/test-u8-strncat.c: New file.
57402         * tests/unistr/test-strncat.h: New file.
57404         Tests for module 'unistr/u32-strcat'.
57405         * modules/unistr/u32-strcat-tests: New file.
57406         * tests/unistr/test-u32-strcat.c: New file.
57408         Tests for module 'unistr/u16-strcat'.
57409         * modules/unistr/u16-strcat-tests: New file.
57410         * tests/unistr/test-u16-strcat.c: New file.
57412         Tests for module 'unistr/u8-strcat'.
57413         * modules/unistr/u8-strcat-tests: New file.
57414         * tests/unistr/test-u8-strcat.c: New file.
57415         * tests/unistr/test-strcat.h: New file.
57417         Tests for module 'unistr/u32-stpncpy'.
57418         * modules/unistr/u32-stpncpy-tests: New file.
57419         * tests/unistr/test-u32-stpncpy.c: New file.
57421         Tests for module 'unistr/u16-stpncpy'.
57422         * modules/unistr/u16-stpncpy-tests: New file.
57423         * tests/unistr/test-u16-stpncpy.c: New file.
57425         Tests for module 'unistr/u8-stpncpy'.
57426         * modules/unistr/u8-stpncpy-tests: New file.
57427         * tests/unistr/test-u8-stpncpy.c: New file.
57428         * tests/unistr/test-stpncpy.h: New file.
57430         Tests for module 'unistr/u32-strncpy'.
57431         * modules/unistr/u32-strncpy-tests: New file.
57432         * tests/unistr/test-u32-strncpy.c: New file.
57434         Tests for module 'unistr/u16-strncpy'.
57435         * modules/unistr/u16-strncpy-tests: New file.
57436         * tests/unistr/test-u16-strncpy.c: New file.
57438         Tests for module 'unistr/u8-strncpy'.
57439         * modules/unistr/u8-strncpy-tests: New file.
57440         * tests/unistr/test-u8-strncpy.c: New file.
57441         * tests/unistr/test-strncpy.h: New file.
57443         Tests for module 'unistr/u32-stpcpy'.
57444         * modules/unistr/u32-stpcpy-tests: New file.
57445         * tests/unistr/test-u32-stpcpy.c: New file.
57447         Tests for module 'unistr/u16-stpcpy'.
57448         * modules/unistr/u16-stpcpy-tests: New file.
57449         * tests/unistr/test-u16-stpcpy.c: New file.
57451         Tests for module 'unistr/u8-stpcpy'.
57452         * modules/unistr/u8-stpcpy-tests: New file.
57453         * tests/unistr/test-u8-stpcpy.c: New file.
57454         * tests/unistr/test-stpcpy.h: New file.
57456         Tests for module 'unistr/u32-strcpy'.
57457         * modules/unistr/u32-strcpy-tests: New file.
57458         * tests/unistr/test-u32-strcpy.c: New file.
57460         Tests for module 'unistr/u16-strcpy'.
57461         * modules/unistr/u16-strcpy-tests: New file.
57462         * tests/unistr/test-u16-strcpy.c: New file.
57464         Tests for module 'unistr/u8-strcpy'.
57465         * modules/unistr/u8-strcpy-tests: New file.
57466         * tests/unistr/test-u8-strcpy.c: New file.
57467         * tests/unistr/test-strcpy.h: New file.
57469         Tests for module 'unistr/u32-strnlen'.
57470         * modules/unistr/u32-strnlen-tests: New file.
57471         * tests/unistr/test-u32-strnlen.c: New file.
57473         Tests for module 'unistr/u16-strnlen'.
57474         * modules/unistr/u16-strnlen-tests: New file.
57475         * tests/unistr/test-u16-strnlen.c: New file.
57477         Tests for module 'unistr/u8-strnlen'.
57478         * modules/unistr/u8-strnlen-tests: New file.
57479         * tests/unistr/test-u8-strnlen.c: New file.
57480         * tests/unistr/test-strnlen.h: New file.
57482         Tests for module 'unistr/u32-strlen'.
57483         * modules/unistr/u32-strlen-tests: New file.
57484         * tests/unistr/test-u32-strlen.c: New file.
57486         Tests for module 'unistr/u16-strlen'.
57487         * modules/unistr/u16-strlen-tests: New file.
57488         * tests/unistr/test-u16-strlen.c: New file.
57490         Tests for module 'unistr/u8-strlen'.
57491         * modules/unistr/u8-strlen-tests: New file.
57492         * tests/unistr/test-u8-strlen.c: New file.
57494         Tests for module 'unistr/u32-prev'.
57495         * modules/unistr/u32-prev-tests: New file.
57496         * tests/unistr/test-u32-prev.c: New file.
57498         Tests for module 'unistr/u16-prev'.
57499         * modules/unistr/u16-prev-tests: New file.
57500         * tests/unistr/test-u16-prev.c: New file.
57502         Tests for module 'unistr/u8-prev'.
57503         * modules/unistr/u8-prev-tests: New file.
57504         * tests/unistr/test-u8-prev.c: New file.
57506         Tests for module 'unistr/u32-next'.
57507         * modules/unistr/u32-next-tests: New file.
57508         * tests/unistr/test-u32-next.c: New file.
57510         Tests for module 'unistr/u16-next'.
57511         * modules/unistr/u16-next-tests: New file.
57512         * tests/unistr/test-u16-next.c: New file.
57514         Tests for module 'unistr/u8-next'.
57515         * modules/unistr/u8-next-tests: New file.
57516         * tests/unistr/test-u8-next.c: New file.
57518         Tests for module 'unistr/u32-strmbtouc'.
57519         * modules/unistr/u32-strmbtouc-tests: New file.
57520         * tests/unistr/test-u32-strmbtouc.c: New file.
57522         Tests for module 'unistr/u16-strmbtouc'.
57523         * modules/unistr/u16-strmbtouc-tests: New file.
57524         * tests/unistr/test-u16-strmbtouc.c: New file.
57526         Tests for module 'unistr/u8-strmbtouc'.
57527         * modules/unistr/u8-strmbtouc-tests: New file.
57528         * tests/unistr/test-u8-strmbtouc.c: New file.
57530         Tests for module 'unistr/u32-strmblen'.
57531         * modules/unistr/u32-strmblen-tests: New file.
57532         * tests/unistr/test-u32-strmblen.c: New file.
57534         Tests for module 'unistr/u16-strmblen'.
57535         * modules/unistr/u16-strmblen-tests: New file.
57536         * tests/unistr/test-u16-strmblen.c: New file.
57538         Tests for module 'unistr/u8-strmblen'.
57539         * modules/unistr/u8-strmblen-tests: New file.
57540         * tests/unistr/test-u8-strmblen.c: New file.
57542         Tests for module 'unistr/u32-cpy-alloc'.
57543         * modules/unistr/u32-cpy-alloc-tests: New file.
57544         * tests/unistr/test-u32-cpy-alloc.c: New file.
57546         Tests for module 'unistr/u16-cpy-alloc'.
57547         * modules/unistr/u16-cpy-alloc-tests: New file.
57548         * tests/unistr/test-u16-cpy-alloc.c: New file.
57550         Tests for module 'unistr/u8-cpy-alloc'.
57551         * modules/unistr/u8-cpy-alloc-tests: New file.
57552         * tests/unistr/test-u8-cpy-alloc.c: New file.
57553         * tests/unistr/test-cpy-alloc.h: New file.
57555         Tests for module 'unistr/u32-mbsnlen'.
57556         * modules/unistr/u32-mbsnlen-tests: New file.
57557         * tests/unistr/test-u32-mbsnlen.c: New file.
57559         Tests for module 'unistr/u16-mbsnlen'.
57560         * modules/unistr/u16-mbsnlen-tests: New file.
57561         * tests/unistr/test-u16-mbsnlen.c: New file.
57563         Tests for module 'unistr/u8-mbsnlen'.
57564         * modules/unistr/u8-mbsnlen-tests: New file.
57565         * tests/unistr/test-u8-mbsnlen.c: New file.
57567         Tests for module 'unistr/u32-chr'.
57568         * modules/unistr/u32-chr-tests: New file.
57569         * tests/unistr/test-u32-chr.c: New file.
57571         Tests for module 'unistr/u16-chr'.
57572         * modules/unistr/u16-chr-tests: New file.
57573         * tests/unistr/test-u16-chr.c: New file.
57575         Tests for module 'unistr/u8-chr'.
57576         * modules/unistr/u8-chr-tests: New file.
57577         * tests/unistr/test-u8-chr.c: New file.
57578         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57580         Tests for module 'unistr/u32-cmp2'.
57581         * modules/unistr/u32-cmp2-tests: New file.
57582         * tests/unistr/test-u32-cmp2.c: New file.
57584         Tests for module 'unistr/u16-cmp2'.
57585         * modules/unistr/u16-cmp2-tests: New file.
57586         * tests/unistr/test-u16-cmp2.c: New file.
57588         Tests for module 'unistr/u8-cmp2'.
57589         * modules/unistr/u8-cmp2-tests: New file.
57590         * tests/unistr/test-u8-cmp2.c: New file.
57591         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57593         Tests for module 'unistr/u32-cmp'.
57594         * modules/unistr/u32-cmp-tests: New file.
57595         * tests/unistr/test-u32-cmp.c: New file.
57597         Tests for module 'unistr/u16-cmp'.
57598         * modules/unistr/u16-cmp-tests: New file.
57599         * tests/unistr/test-u16-cmp.c: New file.
57601         Tests for module 'unistr/u8-cmp'.
57602         * modules/unistr/u8-cmp-tests: New file.
57603         * tests/unistr/test-u8-cmp.c: New file.
57604         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57606         Tests for module 'unistr/u32-set'.
57607         * modules/unistr/u32-set-tests: New file.
57608         * tests/unistr/test-u32-set.c: New file.
57610         Tests for module 'unistr/u16-set'.
57611         * modules/unistr/u16-set-tests: New file.
57612         * tests/unistr/test-u16-set.c: New file.
57614         Tests for module 'unistr/u8-set'.
57615         * modules/unistr/u8-set-tests: New file.
57616         * tests/unistr/test-u8-set.c: New file.
57617         * tests/unistr/test-set.h: New file.
57619         Tests for module 'unistr/u32-move'.
57620         * modules/unistr/u32-move-tests: New file.
57621         * tests/unistr/test-u32-move.c: New file.
57623         Tests for module 'unistr/u16-move'.
57624         * modules/unistr/u16-move-tests: New file.
57625         * tests/unistr/test-u16-move.c: New file.
57627         Tests for module 'unistr/u8-move'.
57628         * modules/unistr/u8-move-tests: New file.
57629         * tests/unistr/test-u8-move.c: New file.
57630         * tests/unistr/test-move.h: New file.
57632         Tests for module 'unistr/u32-cpy'.
57633         * modules/unistr/u32-cpy-tests: New file.
57634         * tests/unistr/test-u32-cpy.c: New file.
57636         Tests for module 'unistr/u16-cpy'.
57637         * modules/unistr/u16-cpy-tests: New file.
57638         * tests/unistr/test-u16-cpy.c: New file.
57640         Tests for module 'unistr/u8-cpy'.
57641         * modules/unistr/u8-cpy-tests: New file.
57642         * tests/unistr/test-u8-cpy.c: New file.
57643         * tests/unistr/test-cpy.h: New file.
57645 2010-01-09  Bruno Haible  <bruno@clisp.org>
57647         Tests for module 'unistr/u32-uctomb'.
57648         * modules/unistr/u32-uctomb-tests: New file.
57649         * tests/unistr/test-u32-uctomb.c: New file.
57651         Tests for module 'unistr/u16-uctomb'.
57652         * modules/unistr/u16-uctomb-tests: New file.
57653         * tests/unistr/test-u16-uctomb.c: New file.
57655         Tests for module 'unistr/u8-uctomb'.
57656         * modules/unistr/u8-uctomb-tests: New file.
57657         * tests/unistr/test-u8-uctomb.c: New file.
57659         Tests for module 'unistr/u32-mbtoucr'.
57660         * modules/unistr/u32-mbtoucr-tests: New file.
57661         * tests/unistr/test-u32-mbtoucr.c: New file.
57663         Tests for module 'unistr/u16-mbtoucr'.
57664         * modules/unistr/u16-mbtoucr-tests: New file.
57665         * tests/unistr/test-u16-mbtoucr.c: New file.
57667         Tests for module 'unistr/u8-mbtoucr'.
57668         * modules/unistr/u8-mbtoucr-tests: New file.
57669         * tests/unistr/test-u8-mbtoucr.c: New file.
57671         Tests for module 'unistr/u32-mbtouc'.
57672         * modules/unistr/u32-mbtouc-tests: New file.
57673         * tests/unistr/test-u32-mbtouc.c: New file.
57675         Tests for module 'unistr/u16-mbtouc'.
57676         * modules/unistr/u16-mbtouc-tests: New file.
57677         * tests/unistr/test-u16-mbtouc.c: New file.
57679         Tests for module 'unistr/u8-mbtouc'.
57680         * modules/unistr/u8-mbtouc-tests: New file.
57681         * tests/unistr/test-u8-mbtouc.c: New file.
57683         Tests for module 'unistr/u32-mbtouc-unsafe'.
57684         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57685         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57686         * tests/unistr/test-u32-mbtouc.h: New file.
57688         Tests for module 'unistr/u16-mbtouc-unsafe'.
57689         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57690         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57691         * tests/unistr/test-u16-mbtouc.h: New file.
57693         Tests for module 'unistr/u8-mbtouc-unsafe'.
57694         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57695         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57696         * tests/unistr/test-u8-mbtouc.h: New file.
57698         Tests for module 'unistr/u32-mblen'.
57699         * modules/unistr/u32-mblen-tests: New file.
57700         * tests/unistr/test-u32-mblen.c: New file.
57702         Tests for module 'unistr/u16-mblen'.
57703         * modules/unistr/u16-mblen-tests: New file.
57704         * tests/unistr/test-u16-mblen.c: New file.
57706         Tests for module 'unistr/u8-mblen'.
57707         * modules/unistr/u8-mblen-tests: New file.
57708         * tests/unistr/test-u8-mblen.c: New file.
57710         Tests for module 'unistr/u32-to-u16'.
57711         * modules/unistr/u32-to-u16-tests: New file.
57712         * tests/unistr/test-u32-to-u16.c: New file.
57714         Tests for module 'unistr/u32-to-u8'.
57715         * modules/unistr/u32-to-u8-tests: New file.
57716         * tests/unistr/test-u32-to-u8.c: New file.
57718         Tests for module 'unistr/u16-to-u32'.
57719         * modules/unistr/u16-to-u32-tests: New file.
57720         * tests/unistr/test-u16-to-u32.c: New file.
57722         Tests for module 'unistr/u16-to-u8'.
57723         * modules/unistr/u16-to-u8-tests: New file.
57724         * tests/unistr/test-u16-to-u8.c: New file.
57726         Tests for module 'unistr/u8-to-u32'.
57727         * modules/unistr/u8-to-u32-tests: New file.
57728         * tests/unistr/test-u8-to-u32.c: New file.
57730         Tests for module 'unistr/u8-to-u16'.
57731         * modules/unistr/u8-to-u16-tests: New file.
57732         * tests/unistr/test-u8-to-u16.c: New file.
57734         Tests for module 'unistr/u32-check'.
57735         * modules/unistr/u32-check-tests: New file.
57736         * tests/unistr/test-u32-check.c: New file.
57738         Tests for module 'unistr/u16-check'.
57739         * modules/unistr/u16-check-tests: New file.
57740         * tests/unistr/test-u16-check.c: New file.
57742         Tests for module 'unistr/u8-check'.
57743         * modules/unistr/u8-check-tests: New file.
57744         * tests/unistr/test-u8-check.c: New file.
57746         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57747         (category_equals): New function.
57748         (main): Add more tests.
57749         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57751         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57753 2010-01-10  Bruno Haible  <bruno@clisp.org>
57755         unistr/u*-strcoll: Try harder to distinguish different strings.
57756         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57757         compare s1 and s2 to see if they are different.
57759 2010-01-10  Bruno Haible  <bruno@clisp.org>
57761         unistr/u*-stpncpy: Fix the return value.
57762         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57763         description of the return value consistent with stpncpy in glibc.
57764         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57765         written non-NUL unit.
57767 2010-01-10  Bruno Haible  <bruno@clisp.org>
57769         unistr/u*-next: Add missing dependencies.
57770         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57771         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57772         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57774 2010-01-10  Bruno Haible  <bruno@clisp.org>
57776         unistr/u8-mbsnlen: Fix return value for incomplete character.
57777         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57778         u8_mblen.
57779         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57780         Remove unistr/u8-mblen.
57781         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57782         u16_mblen.
57783         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57784         Remove unistr/u16-mblen.
57786 2010-01-10  Bruno Haible  <bruno@clisp.org>
57788         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57789         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57790         Reported by Brian Gough <bjg@gnu.org> and
57791         Chris Clayton <chris2553@googlemail.com> via
57792         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57794 2010-01-09  Bruno Haible  <bruno@clisp.org>
57796         unistr/u16-to-u32: Reject invalid input.
57797         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57798         u16_mbtouc.
57799         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57800         Remove unistr/u16-mbtouc.
57802         unistr/u16-to-u8: Reject invalid input.
57803         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57804         u16_mbtouc.
57805         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57806         Remove unistr/u16-mbtouc.
57808         unistr/u8-to-u32: Reject invalid input.
57809         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57810         u8_mbtouc.
57811         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57812         Remove unistr/u8-mbtouc.
57814         unistr/u8-to-u16: Reject invalid input.
57815         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57816         u8_mbtouc.
57817         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57818         Remove unistr/u8-mbtouc.
57820 2010-01-09  Bruno Haible  <bruno@clisp.org>
57822         Tests for module 'getlogin'.
57823         * modules/getlogin-tests: New file.
57824         * tests/test-getlogin.c: New file.
57826         New module 'getlogin'.
57827         * lib/unistd.in.h (getlogin): New declaration.
57828         * lib/getlogin.c: New file.
57829         * m4/getlogin.m4: New file.
57830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57831         HAVE_GETLOGIN.
57832         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57833         HAVE_GETLOGIN.
57834         * modules/getlogin: New file.
57835         * doc/posix-functions/getlogin.texi: Mention the new module.
57836         Reported by John W. Eaton <jwe@gnu.org>.
57838 2010-01-09  Bruno Haible  <bruno@clisp.org>
57840         getlogin_r: Support for native Windows.
57841         * lib/getlogin_r.c: Include <windows.h>
57842         (getlogin_r): Implement for native Windows.
57843         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57844         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57845         via John W. Eaton <jwe@gnu.org>.
57847 2010-01-09  Bruno Haible  <bruno@clisp.org>
57849         getlogin_r: Small fixes.
57850         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57851         succeeds.
57852         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57853         before testing whether getlogin_r is declared. No need to set
57854         HAVE_DECL_GETLOGIN_R to 1.
57855         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57857 2010-01-09  Bruno Haible  <bruno@clisp.org>
57859         * lib/unistd.in.h (getlogin_r): Add comment.
57861 2010-01-09  Bruno Haible  <bruno@clisp.org>
57863         Tests for module 'getlogin_r'.
57864         * modules/getlogin_r-tests: New file.
57865         * tests/test-getlogin_r.c: New file.
57867 2010-01-09  Jim Meyering  <meyering@redhat.com>
57869         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57870         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57871         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57873 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57875         * lib/dup2.c (rpl_dup2): Improve comment.
57877 2010-01-08  Eric Blake  <ebb9@byu.net>
57879         maint.mk: allow packages to add makefile @@ exceptions
57880         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57881         (sc_makefile_check): Rename...
57882         (sc_makefile_at_at_check): ...to this, and use hook.
57884         dup2: work around mingw bug
57885         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57886         Reported by Simon Josefsson.
57888 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57890         glob: Fix C++ compilation.
57891         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57892         C++.
57894 2010-01-07  Bruno Haible  <bruno@clisp.org>
57896         Fix indentation of wctype.in.h, broken since 2007-01-06.
57897         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57899 2010-01-07  Bruno Haible  <bruno@clisp.org>
57901         mbslen: Avoid collision with system function.
57902         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57903         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57904         * m4/mbslen.m4: New file.
57905         * modules/mbslen (Files): Add it.
57906         (configure.ac): Invoke gl_MBSLEN.
57907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57908         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57910         via Ian Beckwith <ianb@erislabs.net>.
57912 2010-01-07  Bruno Haible  <bruno@clisp.org>
57914         dirent: Document the last fix.
57915         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57917 2010-01-07  Bruno Haible  <bruno@clisp.org>
57919         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57920         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57921         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57922         va_list are defined.
57923         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57924         Reported by Eric Blake.
57926 2010-01-07  Bruno Haible  <bruno@clisp.org>
57928         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57929         * modules/xlist (Depends-on): Add 'list',
57930         * modules/xoset (Depends-on): Add 'oset'.
57931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57933 2010-01-07  Bruno Haible  <bruno@clisp.org>
57935         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57936         * doc/posix-functions/strncasecmp.texi: Likewise.
57938 2010-01-07  Bruno Haible  <bruno@clisp.org>
57940         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57942 2010-01-07  John W. Eaton  <jwe@octave.org>
57944         wctype: allow C++ use
57945         * lib/wctype.in.h: Add extern "C" block for C++.
57947 2010-01-06  Eric Blake  <ebb9@byu.net>
57949         maint.mk: detect incorrect GFDL usage
57950         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57952 2010-01-06  Jim Meyering  <meyering@redhat.com>
57953         and Eric Blake  <ebb9@byu.net>
57955         maint.mk: ignore multi-line copyright in NEWS
57956         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57958 2010-01-06  Eric Blake  <ebb9@byu.net>
57960         select: add missing dependency
57961         * modules/select-tests (Depends-on): Move sockets dependency...
57962         * modules/select (Depends-on): ...here.
57963         Reported by Ian Beckwith.
57965         doc: regenerate INSTALL
57966         * doc/INSTALL: Reflect recent autoconf update.
57967         * doc/INSTALL.ISO: Likewise.
57968         * doc/INSTALL.UTF-8: Likewise.
57970         pread: fix compilation on glibc
57971         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57972         Reported by Ralf Wildenhues.
57974         dirent: fix test failure
57975         * lib/dirent.in.h (includes): Guarantee ino_t.
57976         Reported by Ralf Wildenhues.
57978 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57980         linkat, renameat: avoid bad free
57981         * lib/at-func2.c (at_func2): Fix typo.
57982         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57984 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57986         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57987         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57988         to avoid failure of symlink test later.
57990 2010-01-06  Eric Blake  <ebb9@byu.net>
57992         stdio, unistd: guarantee ssize_t
57993         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57994         2008 are exposed when needed.
57995         * lib/stdio.in.h (includes): Likewise.
57996         Reported by Ralf Wildenhues.
57998 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
58000         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
58001         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
58002         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
58004 2010-01-06  Jim Meyering  <meyering@redhat.com>
58006         readtokens: this module *does* require xalloc.h
58007         It uses only functions that were omitted by the old syntax-check rule.
58008         * lib/readtokens.c: Include "xalloc.h" once again.
58009         * modules/readtokens (Depends-on): Add xalloc.
58010         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
58012 2010-01-05  Eric Blake  <ebb9@byu.net>
58014         maint: support 'make announcement' from a VPATH build
58015         * top/maint.mk (announcement): Look for correct NEWS file.
58017 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
58019         utimens (fdutimens): ignore a negative FD, per contract
58020         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
58021         when we have a valid file descriptor.  Otherwise, using a brand
58022         new glibc (with just-patched futimens that now fails with EBADF)
58023         would cause this function to fail with ENOSYS.
58024         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
58025         See also http://bugzilla.redhat.com/552320.
58027 2010-01-05  Eric Blake  <ebb9@byu.net>
58029         strcase: document what it provides
58030         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
58031         gnulib module.
58032         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
58033         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
58035 2010-01-05  Jim Meyering  <meyering@redhat.com>
58037         maint: remove useless inclusions of "xalloc.h"
58038         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
58039         * lib/readtokens.c: Likewise.
58040         * lib/same.c: Likewise.
58041         * modules/getloadavg (Depends-on): Remove xalloc.
58042         * modules/readtokens: Likewise.
58043         * modules/same: Likewise.
58045         maint.mk: include 4 more function names in alloca.h-checking regexp
58046         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
58047         regexp.  Before, we would give a false-positive (saying alloca.h
58048         is included unnecessarily) when the only uses involved omitted symbols.
58050         xalloc.h: use consistent formatting
58051         * lib/xalloc.h: Move declarations to start in the first column.
58053 2010-01-05  Eric Blake  <ebb9@byu.net>
58055         mkdir: avoid xalloc
58056         * lib/mkdir.c (includes): Drop unused header.
58057         Reported by John W. Eaton.
58059 2010-01-04  Jim Meyering  <meyering@redhat.com>
58061         nl_langinfo: avoid configure-time syntax error
58062         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
58063         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
58064         the empty string.  Don't let that provoke a shell syntax error.
58066         regcomp, regexec, fnmatch: avoid array bounds read error
58067         * lib/regcomp.c (build_equiv_class): From glibc:
58068         Use only the low 24 bits of a findidx return value as an index
58069         into the weights array.  Patch by Ulrich Drepper:
58070         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
58071         * lib/regexec.c (check_node_accept_bytes): Likewise.
58072         * lib/fnmatch_loop.c (FCT): Likewise.
58074         regcomp: skip collseq lookup when there are no rules
58075         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
58076         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
58078         regcomp: recognize ill-formed { } expressions
58079         * lib/regcomp.c (parse_dup_op): From glibc:
58080         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
58082         regcomp: fix typo in comment
58083         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
58084         s/satisfy/satisfies/.
58086         regcomp: sync from glibc: remove dead store
58087         * lib/regcomp.c (duplicate_node_closure): Remove useless
58088         search_duplicated_node call and dead store.
58090         regcomp: sync from glibc; always use nl_langinfo
58091         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
58092         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
58093         * modules/regex (Depends-on): Add nl_langinfo.
58095 2010-01-04  Eric Blake  <ebb9@byu.net>
58097         fdopendir: fix configure test
58098         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
58100 2010-01-01  Bruno Haible  <bruno@clisp.org>
58102         wchar: Remove unused configure check.
58103         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
58105 2010-01-01  Eric Blake  <ebb9@byu.net>
58107         headers: make check of system header explicit
58108         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
58109         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
58110         ourselves.
58111         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58113         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58114         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
58115         internals.
58116         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
58117         missing.
58118         Suggested by Bruno Haible.
58120 2010-01-01  Jim Meyering  <meyering@redhat.com>
58122         ChangeLog: tweak to eliminate unnecessary copyright line
58123         * ChangeLog: Remove a copyright line that was mistakenly updated
58124         by today's update-copyright run.  Reported by Eric Blake.
58126         test-update-copyright: don't let envvar setting cause test failure
58127         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58129 2010-01-01  Bruno Haible  <bruno@clisp.org>
58131         localename: Avoid gcc warning.
58132         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58133         function if it is not used.
58135 2010-01-01  Jim Meyering  <meyering@redhat.com>
58137         update nearly all FSF copyright year lists to include 2010
58138         Use the same procedure as for 2009, outlined in
58139         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58141         version-etc: set COPYRIGHT_YEAR to 2010
58142         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58144 2009-12-31  Eric Blake  <ebb9@byu.net>
58146         doc: correct availability of cygwin 1.5.x getopt
58147         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58148         variables.
58149         * doc/posix-functions/opterr.texi (opterr): Likewise.
58150         * doc/posix-functions/optind.texi (optind): Likewise.
58151         * doc/posix-functions/optopt.texi (optopt): Likewise.
58152         * doc/posix-functions/tzname.texi (tzname): Likewise.
58154         openat: update maintainer
58155         * modules/openat (Maintainer): Add myself.
58157         utimens: avoid shadowing warning
58158         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58159         buffers into one, to avoid shadowing, as well as avoiding a
58160         redundant stat.
58161         Reported by Jim Meyering.
58163         test-dup2: avoid compiler warning
58164         * tests/test-dup2.c (is_inheritable): Only define if used.
58166 2010-01-01  Bruno Haible  <bruno@clisp.org>
58168         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58169         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58170         defined, use wctomb instead of wcrtomb.
58172 2010-01-01  Bruno Haible  <bruno@clisp.org>
58174         iconv: Reject native Solaris iconv.
58175         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58176         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58178 2009-12-31  Bruno Haible  <bruno@clisp.org>
58180         * tests/test-signal.c (main): Remove test of 'SIG'.
58182 2009-12-31  Bruno Haible  <bruno@clisp.org>
58184         spawn: Fix incomplete fix.
58185         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58186         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58187         warnings for GNULIB_POSIXCHECK again.
58188         Reported by Eric Blake.
58190 2009-12-31  Bruno Haible  <bruno@clisp.org>
58192         Avoid namespace pollution on glibc systems.
58193         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58194         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58195         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58196         glibc systems.
58198 2009-12-31  Bruno Haible  <bruno@clisp.org>
58200         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58201         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58202         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58203         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58204         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58205         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58206         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58208 2009-12-31  Bruno Haible  <bruno@clisp.org>
58210         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58211         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58212         afterwards.
58214 2009-12-31  Bruno Haible  <bruno@clisp.org>
58216         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58217         SYS_UTSNAME_H.
58219 2009-12-31  Bruno Haible  <bruno@clisp.org>
58221         spawn: Fix misapplied patch.
58222         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58223         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58224         warnings for GNULIB_POSIXCHECK.
58226 2009-12-31  Bruno Haible  <bruno@clisp.org>
58228         times: Update after sys_times changed.
58229         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58230         * modules/times (Files): Add it.
58231         (configure.ac): Invoke gl_FUNC_TIMES.
58233 2009-12-31  Bruno Haible  <bruno@clisp.org>
58235         Use AC_C_INLINE where necessary.
58236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58237         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58238         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58239         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58240         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58241         * m4/mbiter.m4 (gl_MBITER): Likewise.
58242         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58243         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58244         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58245         * modules/u64 (configure.ac): Likewise.
58247 2009-12-31  Bruno Haible  <bruno@clisp.org>
58249         Use AC_C_INLINE instead of module 'inline' where possible.
58250         * modules/inline (Description): Clarify purpose.
58251         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58252         * modules/count-one-bits (Depends-on): Remove inline.
58253         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58254         * modules/openat (Depends-on): Remove inline.
58255         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58256         instead of depending on module 'inline'.
58257         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58258         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58259         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58260         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58261         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58262         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58263         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58264         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58265         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58266         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58267         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58268         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58269         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58270         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58271         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58272         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58273         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58274         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58275         Likewise.
58276         * modules/unictype/property-ascii-hex-digit (Depends-on,
58277         configure.ac): Likewise.
58278         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58279         configure.ac): Likewise.
58280         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58281         configure.ac): Likewise.
58282         * modules/unictype/property-bidi-block-separator (Depends-on,
58283         configure.ac): Likewise.
58284         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58285         configure.ac): Likewise.
58286         * modules/unictype/property-bidi-common-separator (Depends-on,
58287         configure.ac): Likewise.
58288         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58289         Likewise.
58290         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58291         configure.ac): Likewise.
58292         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58293         configure.ac): Likewise.
58294         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58295         configure.ac): Likewise.
58296         * modules/unictype/property-bidi-european-digit (Depends-on,
58297         configure.ac): Likewise.
58298         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58299         configure.ac): Likewise.
58300         * modules/unictype/property-bidi-left-to-right (Depends-on,
58301         configure.ac): Likewise.
58302         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58303         configure.ac): Likewise.
58304         * modules/unictype/property-bidi-other-neutral (Depends-on,
58305         configure.ac): Likewise.
58306         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58307         Likewise.
58308         * modules/unictype/property-bidi-segment-separator (Depends-on,
58309         configure.ac): Likewise.
58310         * modules/unictype/property-bidi-whitespace (Depends-on,
58311         configure.ac): Likewise.
58312         * modules/unictype/property-combining (Depends-on, configure.ac):
58313         Likewise.
58314         * modules/unictype/property-composite (Depends-on, configure.ac):
58315         Likewise.
58316         * modules/unictype/property-currency-symbol (Depends-on,
58317         configure.ac): Likewise.
58318         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58319         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58320         Likewise.
58321         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58322         configure.ac): Likewise.
58323         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58324         Likewise.
58325         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58326         Likewise.
58327         * modules/unictype/property-extender (Depends-on, configure.ac):
58328         Likewise.
58329         * modules/unictype/property-format-control (Depends-on, configure.ac):
58330         Likewise.
58331         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58332         Likewise.
58333         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58334         Likewise.
58335         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58336         Likewise.
58337         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58338         Likewise.
58339         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58340         Likewise.
58341         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58342         Likewise.
58343         * modules/unictype/property-id-start (Depends-on, configure.ac):
58344         Likewise.
58345         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58346         Likewise.
58347         * modules/unictype/property-ids-binary-operator (Depends-on,
58348         configure.ac): Likewise.
58349         * modules/unictype/property-ids-trinary-operator (Depends-on,
58350         configure.ac): Likewise.
58351         * modules/unictype/property-ignorable-control (Depends-on,
58352         configure.ac): Likewise.
58353         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58354         Likewise.
58355         * modules/unictype/property-join-control (Depends-on, configure.ac):
58356         Likewise.
58357         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58358         Likewise.
58359         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58360         Likewise.
58361         * modules/unictype/property-logical-order-exception (Depends-on,
58362         configure.ac): Likewise.
58363         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58364         Likewise.
58365         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58366         * modules/unictype/property-non-break (Depends-on, configure.ac):
58367         Likewise.
58368         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58369         Likewise.
58370         * modules/unictype/property-numeric (Depends-on, configure.ac):
58371         Likewise.
58372         * modules/unictype/property-other-alphabetic (Depends-on,
58373         configure.ac): Likewise.
58374         * modules/unictype/property-other-default-ignorable-code-point
58375         (Depends-on, configure.ac): Likewise.
58376         * modules/unictype/property-other-grapheme-extend (Depends-on,
58377         configure.ac): Likewise.
58378         * modules/unictype/property-other-id-continue (Depends-on,
58379         configure.ac): Likewise.
58380         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58381         Likewise.
58382         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58383         Likewise.
58384         * modules/unictype/property-other-math (Depends-on, configure.ac):
58385         Likewise.
58386         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58387         Likewise.
58388         * modules/unictype/property-paired-punctuation (Depends-on,
58389         configure.ac): Likewise.
58390         * modules/unictype/property-paragraph-separator (Depends-on,
58391         configure.ac): Likewise.
58392         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58393         Likewise.
58394         * modules/unictype/property-pattern-white-space (Depends-on,
58395         configure.ac): Likewise.
58396         * modules/unictype/property-private-use (Depends-on, configure.ac):
58397         Likewise.
58398         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58399         Likewise.
58400         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58401         Likewise.
58402         * modules/unictype/property-radical (Depends-on, configure.ac):
58403         Likewise.
58404         * modules/unictype/property-sentence-terminal (Depends-on,
58405         configure.ac): Likewise.
58406         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58407         Likewise.
58408         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58409         * modules/unictype/property-terminal-punctuation (Depends-on,
58410         configure.ac): Likewise.
58411         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58412         Likewise.
58413         * modules/unictype/property-unassigned-code-value (Depends-on,
58414         configure.ac): Likewise.
58415         * modules/unictype/property-unified-ideograph (Depends-on,
58416         configure.ac): Likewise.
58417         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58418         Likewise.
58419         * modules/unictype/property-variation-selector (Depends-on,
58420         configure.ac): Likewise.
58421         * modules/unictype/property-white-space (Depends-on, configure.ac):
58422         Likewise.
58423         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58424         Likewise.
58425         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58426         Likewise.
58427         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58428         Likewise.
58429         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58430         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58431         Likewise.
58433 2009-12-31  Bruno Haible  <bruno@clisp.org>
58435         Remove unnecessary AC_C_INLINE invocation.
58436         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58437         since 2009-08-21.
58439 2009-12-31  Jim Meyering  <meyering@redhat.com>
58441         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58442         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58443         With this change, we can all remove the gpg_key_ID = ... definition
58444         from our respective cfg.mk files.
58446         maint.mk: create announcement template in ~/, not in /tmp
58447         * top/maint.mk (emit_upload_commands): Adjust.
58448         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58449         Remove temporary file, .ci-msg.
58451 2009-12-31  Eric Blake  <ebb9@byu.net>
58453         link-warning: always build headers with link warnings
58454         * modules/arpa_inet (Makefile.am): Always build replacement
58455         header.
58456         * modules/ctype (Makefile.am): Likewise.
58457         * modules/dirent (Makefile.am): Likewise.
58458         * modules/inttypes (Makefile.am): Likewise.
58459         * modules/langinfo (Makefile.am): Likewise.
58460         * modules/locale (Makefile.am): Likewise.
58461         * modules/spawn (Makefile.am): Likewise.
58462         * modules/sys_file (Makefile.am): Likewise.
58463         * modules/sys_ioctl (Makefile.am): Likewise.
58464         * modules/sys_select (Makefile.am): Likewise.
58465         * modules/sys_socket (Makefile.am): Likewise.
58466         * modules/sys_times (Makefile.am): Likewise.
58467         * modules/sys_utsname (Makefile.am): Likewise.
58468         * modules/sys_wait (Makefile.am): Likewise.
58469         * modules/wchar (Makefile.am): Likewise.
58470         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58471         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58472         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58473         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58474         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58475         Likewise.
58476         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58477         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58478         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58479         Likewise.
58480         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58481         Likewise.
58482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58483         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58484         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58485         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58488         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58489         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58490         (gl_WCHAR_H_DEFAULTS): Likewise.
58492 2009-12-31  Eric Blake  <ebb9@byu.net>
58494         signal, spawn: use link warnings
58495         * lib/signal.in.h (sigset_t): Make unconditional.
58496         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58497         (sigpending, sigprocmask, sigaction): Add link warnings.
58498         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58499         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58500         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58501         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58502         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58503         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58504         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58505         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58506         (posix_spawn_file_actions_destroy)
58507         (posix_spawn_file_actions_addopen)
58508         (posix_spawn_file_actions_addclose)
58509         (posix_spawn_file_actions_adddup2): Likewise.
58510         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58511         * tests/test-signal.c (main): Enhance test.
58513         spawn: improve wrapper support
58514         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58515         (gl_SPAWN_H_DEFAULTS): New defaults.
58516         * modules/spawn (Makefile.am): Substitute them.
58517         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58518         Only declare if missing or broken.
58520         sys_times, sys_utsname: use include_next
58521         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58522         header.
58523         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58524         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58525         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58526         * modules/sys_times (Depends-on): Add include_next.
58527         (Makefile.am): Substitute additional values.
58528         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58529         * lib/sys_times.in.h (includes): Include native header, if
58530         available.
58531         * lib/sys_utsname.in.h (includes): Likewise.
58532         * tests/test-sys_times.c (main): Enhance test.
58534         fdutimensat: revert prior patch
58535         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58536         utimens.h.
58537         Reported by Bruno Haible.
58539 2009-12-30  Eric Blake  <ebb9@byu.net>
58541         sys_wait: drop link-warning dependency
58542         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58543         link-warning efforts.
58544         * lib/sys_wait.in.h: Likewise.
58546         fdutimensat: remove bogus dependency
58547         * modules/fdutimensat (Depends-on): Drop inline.
58549         unistd: fix typo
58550         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58552 2009-12-30  Bruno Haible  <bruno@clisp.org>
58554         Fix compilation error with Solaris cc.
58555         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58556         * lib/unicase/u16-is-invariant.c: Likewise.
58557         * lib/unicase/u32-is-invariant.c: Likewise.
58558         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58560 2009-12-30  Bruno Haible  <bruno@clisp.org>
58562         Fix test crash.
58563         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58564         locales.
58565         Reported by Simon Josefsson <simon@josefsson.org>.
58567 2009-12-30  Bruno Haible  <bruno@clisp.org>
58569         Fix compilation error on most platforms.
58570         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58571         Reported by Simon Josefsson <simon@josefsson.org>
58572         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58574 2009-12-30  Eric Blake  <ebb9@byu.net>
58576         futimens, utimensat: work around ntfs-3g bug
58577         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58578         a ctime bug is present, and expand workaround to cover ntfs-3g.
58579         * lib/utimens.c (fdutimens, lutimens): Likewise.
58580         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58581         (validate_timespec): Adjust return value.
58582         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58583         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58584         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58586 2009-12-29  Eric Blake  <ebb9@byu.net>
58588         link-warning: make usage consistent
58589         * modules/ctype (Depends-on): Add link-warning.
58590         (Makefile.am): Update rules accordingly.
58591         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58592         * modules/locale (Depends-on, Makefile.am): Likewise.
58593         * modules/sys_file (Makefile.am): Likewise.
58594         * modules/getopt-posix (Makefile.am): Delete unused link warning
58595         efforts.
58596         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58597         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58598         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58599         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58601         stdio: remove unused variables
58602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58604         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58606         tests: test more substitute headers
58607         * modules/ctype-tests: New file.
58608         * modules/dirent-tests: Likewise.
58609         * modules/spawn-tests: Likewise.
58610         * modules/sys_file-tests: Likewise.
58611         * modules/sys_ioctl-tests: Likewise.
58612         * modules/sys_wait-tests: Likewise.
58613         * tests/test-ctype.c: Likewise.
58614         * tests/test-dirent.c: Likewise.
58615         * tests/test-spawn.c: Likewise.
58616         * tests/test-sys_file.c: Likewise.
58617         * tests/test-sys_ioctl.c: Likewise.
58618         * tests/test-sys_wait.c: Likewise.
58619         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58620         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58621         whether or not flock is in use.
58623         tests: remove License section from module
58624         * modules/arpa_inet-tests: Remove unneeded section.
58625         * modules/byteswap-tests: Likewise.
58626         * modules/ceilf-tests: Likewise.
58627         * modules/ceill-tests: Likewise.
58628         * modules/crypto/des-tests: Likewise.
58629         * modules/crypto/gc-arcfour-tests: Likewise.
58630         * modules/crypto/gc-arctwo-tests: Likewise.
58631         * modules/crypto/gc-des-tests: Likewise.
58632         * modules/crypto/gc-hmac-md5-tests: Likewise.
58633         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58634         * modules/crypto/gc-md2-tests: Likewise.
58635         * modules/crypto/gc-md4-tests: Likewise.
58636         * modules/crypto/gc-md5-tests: Likewise.
58637         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58638         * modules/crypto/gc-rijndael-tests: Likewise.
58639         * modules/crypto/gc-sha1-tests: Likewise.
58640         * modules/crypto/gc-tests: Likewise.
58641         * modules/crypto/md2-tests: Likewise.
58642         * modules/crypto/md4-tests: Likewise.
58643         * modules/fcntl-h-tests: Likewise.
58644         * modules/floorf-tests: Likewise.
58645         * modules/floorl-tests: Likewise.
58646         * modules/frexp-nolibm-tests: Likewise.
58647         * modules/frexp-tests: Likewise.
58648         * modules/frexpl-nolibm-tests: Likewise.
58649         * modules/frexpl-tests: Likewise.
58650         * modules/getaddrinfo-tests: Likewise.
58651         * modules/inttypes-tests: Likewise.
58652         * modules/isfinite-tests: Likewise.
58653         * modules/isinf-tests: Likewise.
58654         * modules/ldexpl-tests: Likewise.
58655         * modules/locale-tests: Likewise.
58656         * modules/math-tests: Likewise.
58657         * modules/netdb-tests: Likewise.
58658         * modules/netinet_in-tests: Likewise.
58659         * modules/printf-frexp-tests: Likewise.
58660         * modules/printf-frexpl-tests: Likewise.
58661         * modules/priv-set-tests: Likewise.
58662         * modules/random_r-tests: Likewise.
58663         * modules/round-tests: Likewise.
58664         * modules/roundf-tests: Likewise.
58665         * modules/roundl-tests: Likewise.
58666         * modules/search-tests: Likewise.
58667         * modules/select-tests: Likewise.
58668         * modules/signal-tests: Likewise.
58669         * modules/stdbool-tests: Likewise.
58670         * modules/stddef-tests: Likewise.
58671         * modules/stdint-tests: Likewise.
58672         * modules/stdio-tests: Likewise.
58673         * modules/stdlib-tests: Likewise.
58674         * modules/string-tests: Likewise.
58675         * modules/strings-tests: Likewise.
58676         * modules/sys_select-tests: Likewise.
58677         * modules/sys_socket-tests: Likewise.
58678         * modules/sys_stat-tests: Likewise.
58679         * modules/sys_time-tests: Likewise.
58680         * modules/sys_utsname-tests: Likewise.
58681         * modules/sysexits-tests: Likewise.
58682         * modules/time-tests: Likewise.
58683         * modules/trunc-tests: Likewise.
58684         * modules/truncf-tests: Likewise.
58685         * modules/truncl-tests: Likewise.
58686         * modules/tsearch-tests: Likewise.
58687         * modules/unistd-tests: Likewise.
58688         * modules/wchar-tests: Likewise.
58689         * modules/wctype-tests: Likewise.
58691         tests: fix license on several tests
58692         * tests/test-des.c: Update to GPLv3+.
58693         * tests/test-flock.c: Likewise.
58694         * tests/test-fsync.c: Likewise.
58695         * tests/test-futimens.h: Likewise.
58696         * tests/test-gc-arcfour.c: Likewise.
58697         * tests/test-gc-arctwo.c: Likewise.
58698         * tests/test-gc-des.c: Likewise.
58699         * tests/test-gc-hmac-md5.c: Likewise.
58700         * tests/test-gc-hmac-sha1.c: Likewise.
58701         * tests/test-gc-md2.c: Likewise.
58702         * tests/test-gc-md4.c: Likewise.
58703         * tests/test-gc-md5.c: Likewise.
58704         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58705         * tests/test-gc-rijndael.c: Likewise.
58706         * tests/test-gc-sha1.c: Likewise.
58707         * tests/test-gc.c: Likewise.
58708         * tests/test-getcwd.c: Likewise.
58709         * tests/test-link.c: Likewise.
58710         * tests/test-link.h: Likewise.
58711         * tests/test-lutimens.h: Likewise.
58712         * tests/test-md2.c: Likewise.
58713         * tests/test-md4.c: Likewise.
58714         * tests/test-mkdir.h: Likewise.
58715         * tests/test-rename.c: Likewise.
58716         * tests/test-rename.h: Likewise.
58717         * tests/test-safe-alloc.c: Likewise.
58718         * tests/test-utimens-common.h: Likewise.
58719         * tests/test-utimens.h: Likewise.
58721         maint: sync license texts
58722         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58723         * doc/gpl-3.0.texi: Revert copyright year update.
58724         * doc/lgpl-3.0.texi: Likewise.
58726 2009-12-29  Jim Meyering  <meyering@redhat.com>
58728         update nearly all FSF copyright year lists to include 2009
58729         The files named by the following are exempted:
58730             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58731               test -f "$dst" && { echo "$dst"; continue; }
58732               test -d "$dst" || continue
58733               echo "$dst"/$(basename "$src")
58734             done > exempt
58735             git ls-files tests/unictype >> exempt
58736         In the remaining files, convert to all-interval notation if
58737         - there is already at least one year interval like 2000-2003
58738         - the file is maintained by me
58739         - the file is in lib/uni*/, where that style already prevails
58740         Otherwise, use update-copyright's default.
58742 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58743         and Eric Blake  <ebb9@byu.net>
58745         tests: don't require debug system() to pass
58746         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58747         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58748         * tests/test-unlink.h (test_unlink_func): Likewise.
58749         * tests/test-fstatat.c (main): ...into callers.
58750         * tests/test-lstat.c (main): Likewise.
58751         * tests/test-rmdir.c (main): Likewise.
58752         * tests/test-unlink.c (main): Likewise.
58753         * tests/test-unlinkat.c (main): Likewise.
58754         * tests/test-areadlink-with-size.c (main): Don't require a
58755         debug-only system call to pass, aiding cross-testing to mingw.
58756         * tests/test-areadlink.c (main): Likewise.
58757         * tests/test-areadlinkat-with-size.c (main): Likewise.
58758         * tests/test-areadlinkat.c (main): Likewise.
58759         * tests/test-canonicalize-lgpl.c (main): Likewise.
58760         * tests/test-canonicalize.c (main): Likewise.
58761         * tests/test-chown.c (main): Likewise.
58762         * tests/test-fchownat.c (main): Likewise.
58763         * tests/test-lchown.c (main): Likewise.
58764         * tests/test-fdutimensat.c (main): Likewise.
58765         * tests/test-futimens.c (main): Likewise.
58766         * tests/test-link.c (main): Likewise.
58767         * tests/test-linkat.c (main): Likewise.
58768         * tests/test-mkdir.c (main): Likewise.
58769         * tests/test-mkdirat.c (main): Likewise.
58770         * tests/test-mkfifo.c (main): Likewise.
58771         * tests/test-mkfifoat.c (main): Likewise.
58772         * tests/test-mknod.c (main): Likewise.
58773         * tests/test-readlink.c (main): Likewise.
58774         * tests/test-remove.c (main): Likewise.
58775         * tests/test-rename.c (main): Likewise.
58776         * tests/test-renameat.c (main): Likewise.
58777         * tests/test-symlink.c (main): Likewise.
58778         * tests/test-symlinkat.c (main): Likewise.
58779         * tests/test-utimens.c (main): Likewise.
58780         * tests/test-utimensat.c (main): Likewise.
58782 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58784         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58785         on $(UNUSED_PARAMETER_H) to avoid build failure.
58787 2009-12-28  Jim Meyering  <meyering@redhat.com>
58789         update-copyright: you may specify a max. line length other than 72
58790         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58792         maint: use consistent FSF copyright line syntax
58793         * lib/posixtm.c: Add missing comma in FSF copyright line.
58794         * lib/posixtm.h: Likewise.
58795         * lib/getugroups.c: Add missing ", Inc.".
58797         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58798         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58799         FSF copyright line.  Remove trailing blanks.
58801 2009-12-28  Eric Blake  <ebb9@byu.net>
58803         test-dup2: reduce dependencies
58804         * modules/cloexec (Configure.ac): Set witness.
58805         * modules/dup2-tests (Depends-on): Drop cloexec.
58806         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58807         not present.
58808         Suggested by Bruno Haible.
58810 2009-12-26  Bruno Haible  <bruno@clisp.org>
58812         Remove an unneeded dependency.
58813         * modules/fseterr (Depends-on): Remove dup2.
58815 2009-12-26  Eric Blake  <ebb9@byu.net>
58817         tests: use macros.h in more places
58818         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58819         (ASSERT_STREAM): Provide default of stderr.
58820         * tests/test-dirent-safer.c: Include macros.h, using alternate
58821         stream for assertions.
58822         * tests/test-dup-safer.c: Likewise.
58823         * tests/test-freopen-safer.c: Likewise.
58824         * tests/test-getopt.c: Likewise.
58825         * tests/test-openat-safer.c: Likewise.
58826         * tests/test-pipe.c: Likewise.
58827         * tests/test-popen-safer.c: Likewise.
58828         * modules/dirent-safer-tests (Files): Include macros.h.
58829         * modules/unistd-safer-tests (Files): Likewise.
58830         * modules/freopen-safer-tests (Files): Likewise.
58831         * modules/getopt-posix-tests (Files): Likewise.
58832         * modules/openat-safer-tests (Files): Likewise.
58833         * modules/pipe-tests (Files): Likewise.
58835 2009-12-26  Bruno Haible  <bruno@clisp.org>
58837         javacomp-script: Portability fix.
58838         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58839         that it also works on Solaris.
58841 2009-12-26  Bruno Haible  <bruno@clisp.org>
58843         localename: Fix storage allocation of gl_locale_name_thread's result.
58844         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58845         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58846         all platforms that have 'uselocale'.
58847         (gl_locale_name_thread_unsafe): New function, extracted from
58848         gl_locale_name_thread.
58849         (gl_locale_name_thread): Call struniq on all platforms that have
58850         'uselocale'.
58851         * tests/test-localename.c (test_locale_name_thread): Check that the
58852         resulting strings are permanently allocated.
58853         * modules/localename-tests (Depends-on): Add strdup.
58855 2009-12-26  Bruno Haible  <bruno@clisp.org>
58857         * tests/test-localename.c (categories): Fill in the strings.
58859 2009-12-26  Jim Meyering  <meyering@redhat.com>
58861         isdir: complete the removal of m4/isdir.m4
58862         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58864         isdir: clean up, since at least grep still uses it
58865         * lib/isdir.c: Include "isdir.h".
58866         (S_ISDIR): Remove now-unneeded definition.
58867         * modules/isdir (Files): Add lib/isdir.h.
58868         * lib/isdir.h: New file, with declaration.
58869         * m4/isdir.m4: Remove file -- unneeded.
58871 2009-12-25  Bruno Haible  <bruno@clisp.org>
58873         selinux-h: Make generated .h files standalone.
58874         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58875         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58876         * lib/se-selinux.in.h: Likewise.
58877         * modules/selinux-h (Depends-on): Add unused-parameter.
58878         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58879         selinux/selinux.h and selinux/context.h.
58880         Suggested by Eric Blake.
58882 2009-12-25  Bruno Haible  <bruno@clisp.org>
58884         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58885         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58886         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58887         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58888         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58890 2009-12-24  Bruno Haible  <bruno@clisp.org>
58892         openat: Fix warning.
58893         * lib/openat-proc.c: Include <unistd.h>.
58895 2009-12-24  Bruno Haible  <bruno@clisp.org>
58897         New module 'unused-parameter'.
58898         * build-aux/unused-parameter.h: New file, extracted from earlier
58899         gnulib-common.m4.
58900         * modules/unused-parameter: New file.
58901         * lib/unistr.h: Include unused-parameter.h.
58902         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58903         _GL_UNUSED.
58904         * modules/unistr/base (Depends-on): Add unused-parameter.
58906 2009-12-24  Bruno Haible  <bruno@clisp.org>
58908         Add missing dependencies to 'extensions' module.
58909         * m4/extensions.m4: Add comment.
58910         * modules/accept4 (Depends-on): Add extensions.
58911         * modules/dup3 (Depends-on): Likewise.
58912         * modules/fcntl (Depends-on): Likewise.
58913         * modules/futimens (Depends-on): Likewise.
58914         * modules/mknod (Depends-on): Likewise.
58915         * modules/pipe2 (Depends-on): Likewise.
58916         * modules/stat-time (Depends-on): Likewise.
58917         * modules/strcasestr-simple (Depends-on): Likewise.
58918         * modules/strsignal (Depends-on): Likewise.
58919         * modules/utimensat (Depends-on): Likewise.
58920         * modules/localcharset (Depends-on): Likewise. Needed because of
58921         gl_FCNTL_O_FLAGS.
58922         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58923         AC_TYPE_MBSTATE_T.
58924         * modules/wcsnrtombs (Depends-on): Likewise.
58925         * modules/wcsrtombs (Depends-on): Likewise.
58927 2009-12-24  Bruno Haible  <bruno@clisp.org>
58929         binary-io: Avoid gcc warning due to SET_BINARY.
58930         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58931         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58933 2009-12-24  Bruno Haible  <bruno@clisp.org>
58935         Avoid future namespace pollution on glibc systems.
58936         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58937         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58938         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58939         glibc systems.
58941 2009-12-24  Bruno Haible  <bruno@clisp.org>
58943         Refactor common macros used in tests.
58944         * tests/macros.h: New file.
58945         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58946         and/or <stdlib.h>, if appropriate.
58947         (ASSERT, SIZEOF): Remove macros.
58948         * tests/test-areadlink-with-size.c: Likewise.
58949         * tests/test-areadlinkat.c: Likewise.
58950         * tests/test-areadlinkat-with-size.c: Likewise.
58951         * tests/test-argmatch.c: Likewise.
58952         * tests/test-argv-iter.c: Likewise.
58953         * tests/test-array-mergesort.c: Likewise.
58954         * tests/test-array_list.c: Likewise.
58955         * tests/test-array_oset.c: Likewise.
58956         * tests/test-avltree_list.c: Likewise.
58957         * tests/test-avltree_oset.c: Likewise.
58958         * tests/test-avltreehash_list.c: Likewise.
58959         * tests/test-base64.c: Likewise.
58960         * tests/test-binary-io.c: Likewise.
58961         * tests/test-bitrotate.c: Likewise.
58962         * tests/test-btowc.c: Likewise.
58963         * tests/test-byteswap.c: Likewise.
58964         * tests/test-c-ctype.c: Likewise.
58965         * tests/test-c-stack.c: Likewise.
58966         * tests/test-c-strcasecmp.c: Likewise.
58967         * tests/test-c-strcasestr.c: Likewise.
58968         * tests/test-c-strncasecmp.c: Likewise.
58969         * tests/test-c-strstr.c: Likewise.
58970         * tests/test-canonicalize-lgpl.c: Likewise.
58971         * tests/test-canonicalize.c: Likewise.
58972         * tests/test-carray_list.c: Likewise.
58973         * tests/test-ceilf1.c: Likewise.
58974         * tests/test-ceilf2.c: Likewise.
58975         * tests/test-ceill.c: Likewise.
58976         * tests/test-chown.c: Likewise.
58977         * tests/test-cloexec.c: Likewise.
58978         * tests/test-copy-acl.c: Likewise.
58979         * tests/test-copy-file.c: Likewise.
58980         * tests/test-count-one-bits.c: Likewise.
58981         * tests/test-dprintf-posix.c: Likewise.
58982         * tests/test-dup2.c: Likewise.
58983         * tests/test-dup3.c: Likewise.
58984         * tests/test-duplocale.c: Likewise.
58985         * tests/test-fbufmode.c: Likewise.
58986         * tests/test-fchdir.c: Likewise.
58987         * tests/test-fchownat.c: Likewise.
58988         * tests/test-fcntl-safer.c: Likewise.
58989         * tests/test-fcntl.c: Likewise.
58990         * tests/test-fdopendir.c: Likewise.
58991         * tests/test-fdutimensat.c: Likewise.
58992         * tests/test-fflush2.c: Likewise.
58993         * tests/test-file-has-acl.c: Likewise.
58994         * tests/test-filevercmp.c: Likewise.
58995         * tests/test-flock.c: Likewise.
58996         * tests/test-floorf1.c: Likewise.
58997         * tests/test-floorf2.c: Likewise.
58998         * tests/test-floorl.c: Likewise.
58999         * tests/test-fnmatch.c: Likewise.
59000         * tests/test-fopen.h: Likewise.
59001         * tests/test-fpending.c: Likewise.
59002         * tests/test-fprintf-posix.c: Likewise.
59003         * tests/test-fpurge.c: Likewise.
59004         * tests/test-freadable.c: Likewise.
59005         * tests/test-freadahead.c: Likewise.
59006         * tests/test-freading.c: Likewise.
59007         * tests/test-freadptr.c: Likewise.
59008         * tests/test-freadptr2.c: Likewise.
59009         * tests/test-freadseek.c: Likewise.
59010         * tests/test-freopen.c: Likewise.
59011         * tests/test-frexp.c: Likewise.
59012         * tests/test-frexpl.c: Likewise.
59013         * tests/test-fseek.c: Likewise.
59014         * tests/test-fseeko.c: Likewise.
59015         * tests/test-fstatat.c: Likewise.
59016         * tests/test-fstrcmp.c: Likewise.
59017         * tests/test-fsync.c: Likewise.
59018         * tests/test-ftell.c: Likewise.
59019         * tests/test-ftello.c: Likewise.
59020         * tests/test-func.c: Likewise.
59021         * tests/test-futimens.c: Likewise.
59022         * tests/test-fwritable.c: Likewise.
59023         * tests/test-fwriting.c: Likewise.
59024         * tests/test-getcwd.c: Likewise.
59025         * tests/test-getdate.c: Likewise.
59026         * tests/test-getdelim.c: Likewise.
59027         * tests/test-getdtablesize.c: Likewise.
59028         * tests/test-getgroups.c: Likewise.
59029         * tests/test-getline.c: Likewise.
59030         * tests/test-getndelim2.c: Likewise.
59031         * tests/test-glob.c: Likewise.
59032         * tests/test-hash.c: Likewise.
59033         * tests/test-i-ring.c: Likewise.
59034         * tests/test-iconv-utf.c: Likewise.
59035         * tests/test-iconv.c: Likewise.
59036         * tests/test-idpriv-drop.c: Likewise.
59037         * tests/test-idpriv-droptemp.c: Likewise.
59038         * tests/test-inet_ntop.c: Likewise.
59039         * tests/test-inet_pton.c: Likewise.
59040         * tests/test-isblank.c: Likewise.
59041         * tests/test-isfinite.c: Likewise.
59042         * tests/test-isinf.c: Likewise.
59043         * tests/test-isnan.c: Likewise.
59044         * tests/test-isnand.h: Likewise.
59045         * tests/test-isnanf.h: Likewise.
59046         * tests/test-isnanl.h: Likewise.
59047         * tests/test-lchown.c: Likewise.
59048         * tests/test-ldexpl.c: Likewise.
59049         * tests/test-link.c: Likewise.
59050         * tests/test-linkat.c: Likewise.
59051         * tests/test-linked_list.c: Likewise.
59052         * tests/test-linkedhash_list.c: Likewise.
59053         * tests/test-localename.c: Likewise.
59054         * tests/test-lseek.c: Likewise.
59055         * tests/test-lstat.c: Likewise.
59056         * tests/test-mbmemcasecmp.c: Likewise.
59057         * tests/test-mbmemcasecoll.c: Likewise.
59058         * tests/test-mbrtowc.c: Likewise.
59059         * tests/test-mbscasecmp.c: Likewise.
59060         * tests/test-mbscasestr1.c: Likewise.
59061         * tests/test-mbscasestr2.c: Likewise.
59062         * tests/test-mbscasestr3.c: Likewise.
59063         * tests/test-mbscasestr4.c: Likewise.
59064         * tests/test-mbschr.c: Likewise.
59065         * tests/test-mbscspn.c: Likewise.
59066         * tests/test-mbsinit.c: Likewise.
59067         * tests/test-mbsncasecmp.c: Likewise.
59068         * tests/test-mbsnrtowcs.c: Likewise.
59069         * tests/test-mbspbrk.c: Likewise.
59070         * tests/test-mbspcasecmp.c: Likewise.
59071         * tests/test-mbsrchr.c: Likewise.
59072         * tests/test-mbsrtowcs.c: Likewise.
59073         * tests/test-mbsspn.c: Likewise.
59074         * tests/test-mbsstr1.c: Likewise.
59075         * tests/test-mbsstr2.c: Likewise.
59076         * tests/test-mbsstr3.c: Likewise.
59077         * tests/test-memchr.c: Likewise.
59078         * tests/test-memchr2.c: Likewise.
59079         * tests/test-memcmp.c: Likewise.
59080         * tests/test-memmem.c: Likewise.
59081         * tests/test-memrchr.c: Likewise.
59082         * tests/test-mkdir.c: Likewise.
59083         * tests/test-mkdirat.c: Likewise.
59084         * tests/test-mkfifo.c: Likewise.
59085         * tests/test-mkfifoat.c: Likewise.
59086         * tests/test-mknod.c: Likewise.
59087         * tests/test-nanosleep.c: Likewise.
59088         * tests/test-nl_langinfo.c: Likewise.
59089         * tests/test-obstack-printf.c: Likewise.
59090         * tests/test-open.c: Likewise.
59091         * tests/test-openat.c: Likewise.
59092         * tests/test-pipe-filter-gi1.c: Likewise.
59093         * tests/test-pipe-filter-gi2-main.c: Likewise.
59094         * tests/test-pipe-filter-ii1.c: Likewise.
59095         * tests/test-pipe-filter-ii2-main.c: Likewise.
59096         * tests/test-pipe2.c: Likewise.
59097         * tests/test-popen.h: Likewise.
59098         * tests/test-posixtm.c: Likewise.
59099         * tests/test-pread.c: Likewise.
59100         * tests/test-printf-frexp.c: Likewise.
59101         * tests/test-printf-frexpl.c: Likewise.
59102         * tests/test-printf-posix.c: Likewise.
59103         * tests/test-priv-set.c: Likewise.
59104         * tests/test-quotearg.c: Likewise.
59105         * tests/test-random_r.c: Likewise.
59106         * tests/test-rawmemchr.c: Likewise.
59107         * tests/test-rbtree_list.c: Likewise.
59108         * tests/test-rbtree_oset.c: Likewise.
59109         * tests/test-rbtreehash_list.c: Likewise.
59110         * tests/test-readlink.c: Likewise.
59111         * tests/test-remove.c: Likewise.
59112         * tests/test-rename.c: Likewise.
59113         * tests/test-renameat.c: Likewise.
59114         * tests/test-rmdir.c: Likewise.
59115         * tests/test-round1.c: Likewise.
59116         * tests/test-roundf1.c: Likewise.
59117         * tests/test-roundl.c: Likewise.
59118         * tests/test-safe-alloc.c: Likewise.
59119         * tests/test-sameacls.c: Likewise.
59120         * tests/test-set-mode-acl.c: Likewise.
59121         * tests/test-setenv.c: Likewise.
59122         * tests/test-sigaction.c: Likewise.
59123         * tests/test-signbit.c: Likewise.
59124         * tests/test-sleep.c: Likewise.
59125         * tests/test-snprintf-posix.c: Likewise.
59126         * tests/test-snprintf.c: Likewise.
59127         * tests/test-sprintf-posix.c: Likewise.
59128         * tests/test-stat-time.c: Likewise.
59129         * tests/test-stat.c: Likewise.
59130         * tests/test-strcasestr.c: Likewise.
59131         * tests/test-strchrnul.c: Likewise.
59132         * tests/test-strerror.c: Likewise.
59133         * tests/test-striconv.c: Likewise.
59134         * tests/test-striconveh.c: Likewise.
59135         * tests/test-striconveha.c: Likewise.
59136         * tests/test-strsignal.c: Likewise.
59137         * tests/test-strstr.c: Likewise.
59138         * tests/test-strtod.c: Likewise.
59139         * tests/test-strverscmp.c: Likewise.
59140         * tests/test-symlink.c: Likewise.
59141         * tests/test-symlinkat.c: Likewise.
59142         * tests/test-trunc1.c: Likewise.
59143         * tests/test-trunc2.c: Likewise.
59144         * tests/test-truncf1.c: Likewise.
59145         * tests/test-truncf2.c: Likewise.
59146         * tests/test-truncl.c: Likewise.
59147         * tests/test-uname.c: Likewise.
59148         * tests/test-unlink.c: Likewise.
59149         * tests/test-unlinkat.c: Likewise.
59150         * tests/test-unsetenv.c: Likewise.
59151         * tests/test-usleep.c: Likewise.
59152         * tests/test-utimens.c: Likewise.
59153         * tests/test-utimensat.c: Likewise.
59154         * tests/test-vasnprintf-posix.c: Likewise.
59155         * tests/test-vasnprintf-posix2.c: Likewise.
59156         * tests/test-vasnprintf.c: Likewise.
59157         * tests/test-vasprintf-posix.c: Likewise.
59158         * tests/test-vasprintf.c: Likewise.
59159         * tests/test-vdprintf-posix.c: Likewise.
59160         * tests/test-vfprintf-posix.c: Likewise.
59161         * tests/test-vprintf-posix.c: Likewise.
59162         * tests/test-vsnprintf-posix.c: Likewise.
59163         * tests/test-vsnprintf.c: Likewise.
59164         * tests/test-vsprintf-posix.c: Likewise.
59165         * tests/test-wcrtomb.c: Likewise.
59166         * tests/test-wcsnrtombs.c: Likewise.
59167         * tests/test-wcsrtombs.c: Likewise.
59168         * tests/test-wctype.c: Likewise.
59169         * tests/test-wcwidth.c: Likewise.
59170         * tests/test-xfprintf-posix.c: Likewise.
59171         * tests/test-xmemdup0.c: Likewise.
59172         * tests/test-xprintf-posix.c: Likewise.
59173         * tests/test-xvasprintf.c: Likewise.
59174         * tests/unicase/test-locale-language.c: Likewise.
59175         * tests/unicase/test-mapping-part1.h: Likewise.
59176         * tests/unicase/test-predicate-part1.h: Likewise.
59177         * tests/unicase/test-u8-casecmp.c: Likewise.
59178         * tests/unicase/test-u8-casecoll.c: Likewise.
59179         * tests/unicase/test-u8-casefold.c: Likewise.
59180         * tests/unicase/test-u8-is-cased.c: Likewise.
59181         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59182         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59183         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59184         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59185         * tests/unicase/test-u8-tolower.c: Likewise.
59186         * tests/unicase/test-u8-totitle.c: Likewise.
59187         * tests/unicase/test-u8-toupper.c: Likewise.
59188         * tests/unicase/test-u16-casecmp.c: Likewise.
59189         * tests/unicase/test-u16-casecoll.c: Likewise.
59190         * tests/unicase/test-u16-casefold.c: Likewise.
59191         * tests/unicase/test-u16-is-cased.c: Likewise.
59192         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59193         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59194         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59195         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59196         * tests/unicase/test-u16-tolower.c: Likewise.
59197         * tests/unicase/test-u16-totitle.c: Likewise.
59198         * tests/unicase/test-u16-toupper.c: Likewise.
59199         * tests/unicase/test-u32-casecmp.c: Likewise.
59200         * tests/unicase/test-u32-casecoll.c: Likewise.
59201         * tests/unicase/test-u32-casefold.c: Likewise.
59202         * tests/unicase/test-u32-is-cased.c: Likewise.
59203         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59204         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59205         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59206         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59207         * tests/unicase/test-u32-tolower.c: Likewise.
59208         * tests/unicase/test-u32-totitle.c: Likewise.
59209         * tests/unicase/test-u32-toupper.c: Likewise.
59210         * tests/unicase/test-ulc-casecmp.c: Likewise.
59211         * tests/unicase/test-ulc-casecoll.c: Likewise.
59212         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59213         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59214         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59215         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59216         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59217         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59218         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59219         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59220         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59221         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59222         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59223         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59224         * tests/unictype/test-bidi_byname.c: Likewise.
59225         * tests/unictype/test-bidi_name.c: Likewise.
59226         * tests/unictype/test-bidi_of.c: Likewise.
59227         * tests/unictype/test-bidi_test.c: Likewise.
59228         * tests/unictype/test-block_list.c: Likewise.
59229         * tests/unictype/test-block_of.c: Likewise.
59230         * tests/unictype/test-block_test.c: Likewise.
59231         * tests/unictype/test-categ_and.c: Likewise.
59232         * tests/unictype/test-categ_and_not.c: Likewise.
59233         * tests/unictype/test-categ_byname.c: Likewise.
59234         * tests/unictype/test-categ_name.c: Likewise.
59235         * tests/unictype/test-categ_none.c: Likewise.
59236         * tests/unictype/test-categ_of.c: Likewise.
59237         * tests/unictype/test-categ_or.c: Likewise.
59238         * tests/unictype/test-categ_test_withtable.c: Likewise.
59239         * tests/unictype/test-combining.c: Likewise.
59240         * tests/unictype/test-decdigit.c: Likewise.
59241         * tests/unictype/test-digit.c: Likewise.
59242         * tests/unictype/test-mirror.c: Likewise.
59243         * tests/unictype/test-numeric.c: Likewise.
59244         * tests/unictype/test-pr_byname.c: Likewise.
59245         * tests/unictype/test-pr_test.c: Likewise.
59246         * tests/unictype/test-predicate-part1.h: Likewise.
59247         * tests/unictype/test-scripts.c: Likewise.
59248         * tests/unictype/test-sy_c_ident.c: Likewise.
59249         * tests/unictype/test-sy_java_ident.c: Likewise.
59250         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59251         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59252         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59253         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59254         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59255         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59256         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59257         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59258         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59259         * tests/uninorm/test-compat-decomposition.c: Likewise.
59260         * tests/uninorm/test-composition.c: Likewise.
59261         * tests/uninorm/test-decomposing-form.c: Likewise.
59262         * tests/uninorm/test-decomposition.c: Likewise.
59263         * tests/uninorm/test-u8-nfc.c: Likewise.
59264         * tests/uninorm/test-u8-nfd.c: Likewise.
59265         * tests/uninorm/test-u8-nfkc.c: Likewise.
59266         * tests/uninorm/test-u8-nfkd.c: Likewise.
59267         * tests/uninorm/test-u8-normcmp.c: Likewise.
59268         * tests/uninorm/test-u8-normcoll.c: Likewise.
59269         * tests/uninorm/test-u16-nfc.c: Likewise.
59270         * tests/uninorm/test-u16-nfd.c: Likewise.
59271         * tests/uninorm/test-u16-nfkc.c: Likewise.
59272         * tests/uninorm/test-u16-nfkd.c: Likewise.
59273         * tests/uninorm/test-u16-normcmp.c: Likewise.
59274         * tests/uninorm/test-u16-normcoll.c: Likewise.
59275         * tests/uninorm/test-u32-nfc.c: Likewise.
59276         * tests/uninorm/test-u32-nfd.c: Likewise.
59277         * tests/uninorm/test-u32-nfkc.c: Likewise.
59278         * tests/uninorm/test-u32-nfkd.c: Likewise.
59279         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59280         * tests/uninorm/test-u32-normcmp.c: Likewise.
59281         * tests/uninorm/test-u32-normcoll.c: Likewise.
59282         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59283         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59284         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59285         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59286         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59287         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59288         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59289         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59290         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59291         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59292         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59293         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59294         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59295         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59296         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59297         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59298         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59299         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59300         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59301         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59302         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59303         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59304         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59305         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59306         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59307         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59308         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59309         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59310         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59311         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59312         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59313         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59314         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59315         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59316         * tests/uniwidth/test-u8-width.c: Likewise.
59317         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59318         * tests/uniwidth/test-u16-width.c: Likewise.
59319         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59320         * tests/uniwidth/test-u32-width.c: Likewise.
59321         * tests/uniwidth/test-uc_width.c: Likewise.
59322         * tests/uniwidth/test-uc_width2.c: Likewise.
59323         * modules/acl-tests (Files): Add tests/macros.h.
59324         * modules/areadlink-tests (Files): Likewise.
59325         * modules/areadlink-with-size-tests (Files): Likewise.
59326         * modules/areadlinkat-tests (Files): Likewise.
59327         * modules/areadlinkat-with-size-tests (Files): Likewise.
59328         * modules/argmatch-tests (Files): Likewise.
59329         * modules/argv-iter-tests (Files): Likewise.
59330         * modules/array-list-tests (Files): Likewise.
59331         * modules/array-mergesort-tests (Files): Likewise.
59332         * modules/array-oset-tests (Files): Likewise.
59333         * modules/avltree-list-tests (Files): Likewise.
59334         * modules/avltree-oset-tests (Files): Likewise.
59335         * modules/avltreehash-list-tests (Files): Likewise.
59336         * modules/base64-tests (Files): Likewise.
59337         * modules/binary-io-tests (Files): Likewise.
59338         * modules/bitrotate-tests (Files): Likewise.
59339         * modules/btowc-tests (Files): Likewise.
59340         * modules/byteswap-tests (Files): Likewise.
59341         * modules/c-ctype-tests (Files): Likewise.
59342         * modules/c-stack-tests (Files): Likewise.
59343         * modules/c-strcase-tests (Files): Likewise.
59344         * modules/c-strcasestr-tests (Files): Likewise.
59345         * modules/c-strstr-tests (Files): Likewise.
59346         * modules/canonicalize-lgpl-tests (Files): Likewise.
59347         * modules/canonicalize-tests (Files): Likewise.
59348         * modules/carray-list-tests (Files): Likewise.
59349         * modules/ceilf-tests (Files): Likewise.
59350         * modules/ceill-tests (Files): Likewise.
59351         * modules/chown-tests (Files): Likewise.
59352         * modules/cloexec-tests (Files): Likewise.
59353         * modules/copy-file-tests (Files): Likewise.
59354         * modules/count-one-bits-tests (Files): Likewise.
59355         * modules/dprintf-posix-tests (Files): Likewise.
59356         * modules/dup2-tests (Files): Likewise.
59357         * modules/dup3-tests (Files): Likewise.
59358         * modules/duplocale-tests (Files): Likewise.
59359         * modules/fbufmode-tests (Files): Likewise.
59360         * modules/fchdir-tests (Files): Likewise.
59361         * modules/fcntl-safer-tests (Files): Likewise.
59362         * modules/fcntl-tests (Files): Likewise.
59363         * modules/fdopendir-tests (Files): Likewise.
59364         * modules/fdutimensat-tests (Files): Likewise.
59365         * modules/fflush-tests (Files): Likewise.
59366         * modules/filevercmp-tests (Files): Likewise.
59367         * modules/flock-tests (Files): Likewise.
59368         * modules/floorf-tests (Files): Likewise.
59369         * modules/floorl-tests (Files): Likewise.
59370         * modules/fnmatch-tests (Files): Likewise.
59371         * modules/fopen-safer-tests (Files): Likewise.
59372         * modules/fopen-tests (Files): Likewise.
59373         * modules/fpending-tests (Files): Likewise.
59374         * modules/fprintf-posix-tests (Files): Likewise.
59375         * modules/fpurge-tests (Files): Likewise.
59376         * modules/freadable-tests (Files): Likewise.
59377         * modules/freadahead-tests (Files): Likewise.
59378         * modules/freading-tests (Files): Likewise.
59379         * modules/freadptr-tests (Files): Likewise.
59380         * modules/freadseek-tests (Files): Likewise.
59381         * modules/freopen-tests (Files): Likewise.
59382         * modules/frexp-nolibm-tests (Files): Likewise.
59383         * modules/frexp-tests (Files): Likewise.
59384         * modules/frexpl-nolibm-tests (Files): Likewise.
59385         * modules/frexpl-tests (Files): Likewise.
59386         * modules/fseek-tests (Files): Likewise.
59387         * modules/fseeko-tests (Files): Likewise.
59388         * modules/fstrcmp-tests (Files): Likewise.
59389         * modules/fsync-tests (Files): Likewise.
59390         * modules/ftell-tests (Files): Likewise.
59391         * modules/ftello-tests (Files): Likewise.
59392         * modules/func-tests (Files): Likewise.
59393         * modules/futimens-tests (Files): Likewise.
59394         * modules/fwritable-tests (Files): Likewise.
59395         * modules/fwriting-tests (Files): Likewise.
59396         * modules/getcwd-tests (Files): Likewise.
59397         * modules/getdate-tests (Files): Likewise.
59398         * modules/getdelim-tests (Files): Likewise.
59399         * modules/getdtablesize-tests (Files): Likewise.
59400         * modules/getgroups-tests (Files): Likewise.
59401         * modules/getline-tests (Files): Likewise.
59402         * modules/getndelim2-tests (Files): Likewise.
59403         * modules/glob-tests (Files): Likewise.
59404         * modules/hash-tests (Files): Likewise.
59405         * modules/i-ring-tests (Files): Likewise.
59406         * modules/iconv-tests (Files): Likewise.
59407         * modules/iconv_open-utf-tests (Files): Likewise.
59408         * modules/idpriv-drop-tests (Files): Likewise.
59409         * modules/idpriv-droptemp-tests (Files): Likewise.
59410         * modules/inet_ntop-tests (Files): Likewise.
59411         * modules/inet_pton-tests (Files): Likewise.
59412         * modules/isblank-tests (Files): Likewise.
59413         * modules/isfinite-tests (Files): Likewise.
59414         * modules/isinf-tests (Files): Likewise.
59415         * modules/isnan-tests (Files): Likewise.
59416         * modules/isnand-nolibm-tests (Files): Likewise.
59417         * modules/isnand-tests (Files): Likewise.
59418         * modules/isnanf-nolibm-tests (Files): Likewise.
59419         * modules/isnanf-tests (Files): Likewise.
59420         * modules/isnanl-nolibm-tests (Files): Likewise.
59421         * modules/isnanl-tests (Files): Likewise.
59422         * modules/lchown-tests (Files): Likewise.
59423         * modules/ldexpl-tests (Files): Likewise.
59424         * modules/link-tests (Files): Likewise.
59425         * modules/linkat-tests (Files): Likewise.
59426         * modules/linked-list-tests (Files): Likewise.
59427         * modules/linkedhash-list-tests (Files): Likewise.
59428         * modules/localename-tests (Files): Likewise.
59429         * modules/lseek-tests (Files): Likewise.
59430         * modules/lstat-tests (Files): Likewise.
59431         * modules/mbmemcasecmp-tests (Files): Likewise.
59432         * modules/mbmemcasecoll-tests (Files): Likewise.
59433         * modules/mbrtowc-tests (Files): Likewise.
59434         * modules/mbscasecmp-tests (Files): Likewise.
59435         * modules/mbscasestr-tests (Files): Likewise.
59436         * modules/mbschr-tests (Files): Likewise.
59437         * modules/mbscspn-tests (Files): Likewise.
59438         * modules/mbsinit-tests (Files): Likewise.
59439         * modules/mbsncasecmp-tests (Files): Likewise.
59440         * modules/mbsnrtowcs-tests (Files): Likewise.
59441         * modules/mbspbrk-tests (Files): Likewise.
59442         * modules/mbspcasecmp-tests (Files): Likewise.
59443         * modules/mbsrchr-tests (Files): Likewise.
59444         * modules/mbsrtowcs-tests (Files): Likewise.
59445         * modules/mbsspn-tests (Files): Likewise.
59446         * modules/mbsstr-tests (Files): Likewise.
59447         * modules/memchr-tests (Files): Likewise.
59448         * modules/memchr2-tests (Files): Likewise.
59449         * modules/memcmp-tests (Files): Likewise.
59450         * modules/memmem-tests (Files): Likewise.
59451         * modules/memrchr-tests (Files): Likewise.
59452         * modules/mkdir-tests (Files): Likewise.
59453         * modules/mkfifo-tests (Files): Likewise.
59454         * modules/mkfifoat-tests (Files): Likewise.
59455         * modules/mknod-tests (Files): Likewise.
59456         * modules/nanosleep-tests (Files): Likewise.
59457         * modules/nl_langinfo-tests (Files): Likewise.
59458         * modules/obstack-printf-tests (Files): Likewise.
59459         * modules/open-tests (Files): Likewise.
59460         * modules/openat-tests (Files): Likewise.
59461         * modules/pipe-filter-gi-tests (Files): Likewise.
59462         * modules/pipe-filter-ii-tests (Files): Likewise.
59463         * modules/pipe2-tests (Files): Likewise.
59464         * modules/popen-safer-tests (Files): Likewise.
59465         * modules/popen-tests (Files): Likewise.
59466         * modules/posixtm-tests (Files): Likewise.
59467         * modules/pread-tests (Files): Likewise.
59468         * modules/printf-frexp-tests (Files): Likewise.
59469         * modules/printf-frexpl-tests (Files): Likewise.
59470         * modules/printf-posix-tests (Files): Likewise.
59471         * modules/priv-set-tests (Files): Likewise.
59472         * modules/quotearg-tests (Files): Likewise.
59473         * modules/random_r-tests (Files): Likewise.
59474         * modules/rawmemchr-tests (Files): Likewise.
59475         * modules/rbtree-list-tests (Files): Likewise.
59476         * modules/rbtree-oset-tests (Files): Likewise.
59477         * modules/rbtreehash-list-tests (Files): Likewise.
59478         * modules/readlink-tests (Files): Likewise.
59479         * modules/remove-tests (Files): Likewise.
59480         * modules/rename-tests (Files): Likewise.
59481         * modules/renameat-tests (Files): Likewise.
59482         * modules/rmdir-tests (Files): Likewise.
59483         * modules/round-tests (Files): Likewise.
59484         * modules/roundf-tests (Files): Likewise.
59485         * modules/roundl-tests (Files): Likewise.
59486         * modules/safe-alloc-tests (Files): Likewise.
59487         * modules/setenv-tests (Files): Likewise.
59488         * modules/sigaction-tests (Files): Likewise.
59489         * modules/signbit-tests (Files): Likewise.
59490         * modules/sleep-tests (Files): Likewise.
59491         * modules/snprintf-posix-tests (Files): Likewise.
59492         * modules/snprintf-tests (Files): Likewise.
59493         * modules/sprintf-posix-tests (Files): Likewise.
59494         * modules/stat-tests (Files): Likewise.
59495         * modules/stat-time-tests (Files): Likewise.
59496         * modules/strcasestr-tests (Files): Likewise.
59497         * modules/strchrnul-tests (Files): Likewise.
59498         * modules/strerror-tests (Files): Likewise.
59499         * modules/striconv-tests (Files): Likewise.
59500         * modules/striconveh-tests (Files): Likewise.
59501         * modules/striconveha-tests (Files): Likewise.
59502         * modules/strsignal-tests (Files): Likewise.
59503         * modules/strstr-tests (Files): Likewise.
59504         * modules/strtod-tests (Files): Likewise.
59505         * modules/strverscmp-tests (Files): Likewise.
59506         * modules/symlink-tests (Files): Likewise.
59507         * modules/symlinkat-tests (Files): Likewise.
59508         * modules/trunc-tests (Files): Likewise.
59509         * modules/truncf-tests (Files): Likewise.
59510         * modules/truncl-tests (Files): Likewise.
59511         * modules/uname-tests (Files): Likewise.
59512         * modules/unicase/cased-tests (Files): Likewise.
59513         * modules/unicase/ignorable-tests (Files): Likewise.
59514         * modules/unicase/locale-language-tests (Files): Likewise.
59515         * modules/unicase/tolower-tests (Files): Likewise.
59516         * modules/unicase/totitle-tests (Files): Likewise.
59517         * modules/unicase/toupper-tests (Files): Likewise.
59518         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59519         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59520         * modules/unicase/u8-casefold-tests (Files): Likewise.
59521         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59522         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59523         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59524         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59525         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59526         * modules/unicase/u8-tolower-tests (Files): Likewise.
59527         * modules/unicase/u8-totitle-tests (Files): Likewise.
59528         * modules/unicase/u8-toupper-tests (Files): Likewise.
59529         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59530         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59531         * modules/unicase/u16-casefold-tests (Files): Likewise.
59532         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59533         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59534         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59535         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59536         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59537         * modules/unicase/u16-tolower-tests (Files): Likewise.
59538         * modules/unicase/u16-totitle-tests (Files): Likewise.
59539         * modules/unicase/u16-toupper-tests (Files): Likewise.
59540         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59541         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59542         * modules/unicase/u32-casefold-tests (Files): Likewise.
59543         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59544         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59545         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59546         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59547         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59548         * modules/unicase/u32-tolower-tests (Files): Likewise.
59549         * modules/unicase/u32-totitle-tests (Files): Likewise.
59550         * modules/unicase/u32-toupper-tests (Files): Likewise.
59551         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59552         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59553         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59554         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59555         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59556         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59557         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59558         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59559         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59560         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59561         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59562         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59563         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59564         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59565         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59566         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59567         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59568         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59569         * modules/unictype/block-list-tests (Files): Likewise.
59570         * modules/unictype/block-of-tests (Files): Likewise.
59571         * modules/unictype/block-test-tests (Files): Likewise.
59572         * modules/unictype/category-C-tests (Files): Likewise.
59573         * modules/unictype/category-Cc-tests (Files): Likewise.
59574         * modules/unictype/category-Cf-tests (Files): Likewise.
59575         * modules/unictype/category-Cn-tests (Files): Likewise.
59576         * modules/unictype/category-Co-tests (Files): Likewise.
59577         * modules/unictype/category-Cs-tests (Files): Likewise.
59578         * modules/unictype/category-L-tests (Files): Likewise.
59579         * modules/unictype/category-Ll-tests (Files): Likewise.
59580         * modules/unictype/category-Lm-tests (Files): Likewise.
59581         * modules/unictype/category-Lo-tests (Files): Likewise.
59582         * modules/unictype/category-Lt-tests (Files): Likewise.
59583         * modules/unictype/category-Lu-tests (Files): Likewise.
59584         * modules/unictype/category-M-tests (Files): Likewise.
59585         * modules/unictype/category-Mc-tests (Files): Likewise.
59586         * modules/unictype/category-Me-tests (Files): Likewise.
59587         * modules/unictype/category-Mn-tests (Files): Likewise.
59588         * modules/unictype/category-N-tests (Files): Likewise.
59589         * modules/unictype/category-Nd-tests (Files): Likewise.
59590         * modules/unictype/category-Nl-tests (Files): Likewise.
59591         * modules/unictype/category-No-tests (Files): Likewise.
59592         * modules/unictype/category-P-tests (Files): Likewise.
59593         * modules/unictype/category-Pc-tests (Files): Likewise.
59594         * modules/unictype/category-Pd-tests (Files): Likewise.
59595         * modules/unictype/category-Pe-tests (Files): Likewise.
59596         * modules/unictype/category-Pf-tests (Files): Likewise.
59597         * modules/unictype/category-Pi-tests (Files): Likewise.
59598         * modules/unictype/category-Po-tests (Files): Likewise.
59599         * modules/unictype/category-Ps-tests (Files): Likewise.
59600         * modules/unictype/category-S-tests (Files): Likewise.
59601         * modules/unictype/category-Sc-tests (Files): Likewise.
59602         * modules/unictype/category-Sk-tests (Files): Likewise.
59603         * modules/unictype/category-Sm-tests (Files): Likewise.
59604         * modules/unictype/category-So-tests (Files): Likewise.
59605         * modules/unictype/category-Z-tests (Files): Likewise.
59606         * modules/unictype/category-Zl-tests (Files): Likewise.
59607         * modules/unictype/category-Zp-tests (Files): Likewise.
59608         * modules/unictype/category-Zs-tests (Files): Likewise.
59609         * modules/unictype/category-and-not-tests (Files): Likewise.
59610         * modules/unictype/category-and-tests (Files): Likewise.
59611         * modules/unictype/category-byname-tests (Files): Likewise.
59612         * modules/unictype/category-name-tests (Files): Likewise.
59613         * modules/unictype/category-none-tests (Files): Likewise.
59614         * modules/unictype/category-of-tests (Files): Likewise.
59615         * modules/unictype/category-or-tests (Files): Likewise.
59616         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59617         * modules/unictype/combining-class-tests (Files): Likewise.
59618         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59619         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59620         * modules/unictype/ctype-blank-tests (Files): Likewise.
59621         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59622         * modules/unictype/ctype-digit-tests (Files): Likewise.
59623         * modules/unictype/ctype-graph-tests (Files): Likewise.
59624         * modules/unictype/ctype-lower-tests (Files): Likewise.
59625         * modules/unictype/ctype-print-tests (Files): Likewise.
59626         * modules/unictype/ctype-punct-tests (Files): Likewise.
59627         * modules/unictype/ctype-space-tests (Files): Likewise.
59628         * modules/unictype/ctype-upper-tests (Files): Likewise.
59629         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59630         * modules/unictype/decimal-digit-tests (Files): Likewise.
59631         * modules/unictype/digit-tests (Files): Likewise.
59632         * modules/unictype/mirror-tests (Files): Likewise.
59633         * modules/unictype/numeric-tests (Files): Likewise.
59634         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59635         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59636         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59637         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59638         Likewise.
59639         * modules/unictype/property-bidi-block-separator-tests (Files):
59640         Likewise.
59641         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59642         Likewise.
59643         * modules/unictype/property-bidi-common-separator-tests (Files):
59644         Likewise.
59645         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59646         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59647         Likewise.
59648         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59649         Likewise.
59650         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59651         Likewise.
59652         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59653         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59654         Likewise.
59655         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59656         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59657         Likewise.
59658         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59659         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59660         * modules/unictype/property-bidi-segment-separator-tests (Files):
59661         Likewise.
59662         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59663         * modules/unictype/property-byname-tests (Files): Likewise.
59664         * modules/unictype/property-combining-tests (Files): Likewise.
59665         * modules/unictype/property-composite-tests (Files): Likewise.
59666         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59667         * modules/unictype/property-dash-tests (Files): Likewise.
59668         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59669         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59670         Likewise.
59671         * modules/unictype/property-deprecated-tests (Files): Likewise.
59672         * modules/unictype/property-diacritic-tests (Files): Likewise.
59673         * modules/unictype/property-extender-tests (Files): Likewise.
59674         * modules/unictype/property-format-control-tests (Files): Likewise.
59675         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59676         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59677         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59678         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59679         * modules/unictype/property-hyphen-tests (Files): Likewise.
59680         * modules/unictype/property-id-continue-tests (Files): Likewise.
59681         * modules/unictype/property-id-start-tests (Files): Likewise.
59682         * modules/unictype/property-ideographic-tests (Files): Likewise.
59683         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59684         * modules/unictype/property-ids-trinary-operator-tests (Files):
59685         Likewise.
59686         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59687         * modules/unictype/property-iso-control-tests (Files): Likewise.
59688         * modules/unictype/property-join-control-tests (Files): Likewise.
59689         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59690         * modules/unictype/property-line-separator-tests (Files): Likewise.
59691         * modules/unictype/property-logical-order-exception-tests (Files):
59692         Likewise.
59693         * modules/unictype/property-lowercase-tests (Files): Likewise.
59694         * modules/unictype/property-math-tests (Files): Likewise.
59695         * modules/unictype/property-non-break-tests (Files): Likewise.
59696         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59697         * modules/unictype/property-numeric-tests (Files): Likewise.
59698         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59699         * modules/unictype/property-other-default-ignorable-code-point-tests
59700         (Files): Likewise.
59701         * modules/unictype/property-other-grapheme-extend-tests (Files):
59702         Likewise.
59703         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59704         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59705         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59706         * modules/unictype/property-other-math-tests (Files): Likewise.
59707         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59708         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59709         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59710         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59711         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59712         * modules/unictype/property-private-use-tests (Files): Likewise.
59713         * modules/unictype/property-punctuation-tests (Files): Likewise.
59714         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59715         * modules/unictype/property-radical-tests (Files): Likewise.
59716         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59717         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59718         * modules/unictype/property-space-tests (Files): Likewise.
59719         * modules/unictype/property-terminal-punctuation-tests (Files):
59720         Likewise.
59721         * modules/unictype/property-test-tests (Files): Likewise.
59722         * modules/unictype/property-titlecase-tests (Files): Likewise.
59723         * modules/unictype/property-unassigned-code-value-tests (Files):
59724         Likewise.
59725         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59726         * modules/unictype/property-uppercase-tests (Files): Likewise.
59727         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59728         * modules/unictype/property-white-space-tests (Files): Likewise.
59729         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59730         * modules/unictype/property-xid-start-tests (Files): Likewise.
59731         * modules/unictype/property-zero-width-tests (Files): Likewise.
59732         * modules/unictype/scripts-tests (Files): Likewise.
59733         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59734         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59735         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59736         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59737         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59738         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59739         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59740         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59741         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59742         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59743         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59744         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59745         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59746         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59747         * modules/uninorm/composition-tests (Files): Likewise.
59748         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59749         * modules/uninorm/decomposition-tests (Files): Likewise.
59750         * modules/uninorm/filter-tests (Files): Likewise.
59751         * modules/uninorm/nfc-tests (Files): Likewise.
59752         * modules/uninorm/nfd-tests (Files): Likewise.
59753         * modules/uninorm/nfkc-tests (Files): Likewise.
59754         * modules/uninorm/nfkd-tests (Files): Likewise.
59755         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59756         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59757         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59758         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59759         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59760         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59761         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59762         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59763         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59764         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59765         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59766         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59767         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59768         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59769         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59770         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59771         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59772         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59773         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59774         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59775         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59776         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59777         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59778         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59779         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59780         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59781         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59782         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59783         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59784         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59785         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59786         * modules/uniwidth/u8-width-tests (Files): Likewise.
59787         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59788         * modules/uniwidth/u16-width-tests (Files): Likewise.
59789         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59790         * modules/uniwidth/u32-width-tests (Files): Likewise.
59791         * modules/uniwidth/width-tests (Files): Likewise.
59792         * modules/unlink-tests (Files): Likewise.
59793         * modules/unsetenv-tests (Files): Likewise.
59794         * modules/usleep-tests (Files): Likewise.
59795         * modules/utimens-tests (Files): Likewise.
59796         * modules/utimensat-tests (Files): Likewise.
59797         * modules/vasnprintf-posix-tests (Files): Likewise.
59798         * modules/vasnprintf-tests (Files): Likewise.
59799         * modules/vasprintf-posix-tests (Files): Likewise.
59800         * modules/vasprintf-tests (Files): Likewise.
59801         * modules/vdprintf-posix-tests (Files): Likewise.
59802         * modules/vfprintf-posix-tests (Files): Likewise.
59803         * modules/vprintf-posix-tests (Files): Likewise.
59804         * modules/vsnprintf-posix-tests (Files): Likewise.
59805         * modules/vsnprintf-tests (Files): Likewise.
59806         * modules/vsprintf-posix-tests (Files): Likewise.
59807         * modules/wcrtomb-tests (Files): Likewise.
59808         * modules/wcsnrtombs-tests (Files): Likewise.
59809         * modules/wcsrtombs-tests (Files): Likewise.
59810         * modules/wctype-tests (Files): Likewise.
59811         * modules/wcwidth-tests (Files): Likewise.
59812         * modules/xmemdup0-tests (Files): Likewise.
59813         * modules/xprintf-posix-tests (Files): Likewise.
59814         * modules/xvasprintf-tests (Files): Likewise.
59816 2009-12-24  Eric Blake  <ebb9@byu.net>
59818         test-nanosleep: fix typo
59819         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59820         patch.
59821         Reported by Bruno Haible.
59823 2009-12-24  Bruno Haible  <bruno@clisp.org>
59825         Reduce namespace pollution on glibc systems.
59826         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59827         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59828         systems.
59829         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59830         <getopt.h> on glibc systems.
59831         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59832         systems.
59833         * lib/fcntl.c: Include <unistd.h> here instead.
59835 2009-12-24  Bruno Haible  <bruno@clisp.org>
59837         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59839 2009-12-24  Eric Blake  <ebb9@byu.net>
59841         tests: add signature checks
59842         * tests/signature.h (SIGNATURE_CHECK): New file.
59843         * modules/atexit-tests (Files): Use it.
59844         * modules/btowc-tests (Files): Likewise.
59845         * modules/canonicalize-lgpl-tests (Files): Likewise.
59846         * modules/ceilf-tests (Files): Likewise.
59847         * modules/ceill-tests (Files): Likewise.
59848         * modules/chown-tests (Files): Likewise.
59849         * modules/dprintf-posix-tests (Files): Likewise.
59850         * modules/dup2-tests (Files): Likewise.
59851         * modules/dup3-tests (Files): Likewise.
59852         * modules/duplocale-tests (Files): Likewise.
59853         * modules/fchdir-tests (Files): Likewise.
59854         * modules/fcntl-tests (Files): Likewise.
59855         * modules/fdopendir-tests (Files): Likewise.
59856         * modules/fflush-tests (Files): Likewise.
59857         * modules/flock-tests (Files): Likewise.
59858         * modules/floorf-tests (Files): Likewise.
59859         * modules/floorl-tests (Files): Likewise.
59860         * modules/fnmatch-tests (Files): Likewise.
59861         * modules/fopen-tests (Files): Likewise.
59862         * modules/fprintf-posix-tests (Files): Likewise.
59863         * modules/freopen-tests (Files): Likewise.
59864         * modules/frexp-nolibm-tests (Files): Likewise.
59865         * modules/frexp-tests (Files): Likewise.
59866         * modules/frexpl-nolibm-tests (Files): Likewise.
59867         * modules/frexpl-tests (Files): Likewise.
59868         * modules/fseek-tests (Files): Likewise.
59869         * modules/fseeko-tests (Files): Likewise.
59870         * modules/fsync-tests (Files): Likewise.
59871         * modules/ftell-tests (Files): Likewise.
59872         * modules/ftello-tests (Files): Likewise.
59873         * modules/futimens-tests (Files): Likewise.
59874         * modules/getaddrinfo-tests (Files): Likewise.
59875         * modules/getcwd-tests (Files): Likewise.
59876         * modules/getdelim-tests (Files): Likewise.
59877         * modules/getdtablesize-tests (Files): Likewise.
59878         * modules/getgroups-tests (Files): Likewise.
59879         * modules/gethostname-tests (Files): Likewise.
59880         * modules/getline-tests (Files): Likewise.
59881         * modules/getopt-posix-tests (Files): Likewise.
59882         * modules/gettimeofday-tests (Files): Likewise.
59883         * modules/glob-tests (Files): Likewise.
59884         * modules/iconv-tests (Files): Likewise.
59885         * modules/inet_ntop-tests (Files): Likewise.
59886         * modules/inet_pton-tests (Files): Likewise.
59887         * modules/isblank-tests (Files): Likewise.
59888         * modules/lchown-tests (Files): Likewise.
59889         * modules/ldexpl-tests (Files): Likewise.
59890         * modules/link-tests (Files): Likewise.
59891         * modules/linkat-tests (Files): Likewise.
59892         * modules/lseek-tests (Files): Likewise.
59893         * modules/lstat-tests (Files): Likewise.
59894         * modules/mbrtowc-tests (Files): Likewise.
59895         * modules/mbsinit-tests (Files): Likewise.
59896         * modules/mbsnrtowcs-tests (Files): Likewise.
59897         * modules/mbsrtowcs-tests (Files): Likewise.
59898         * modules/memchr-tests (Files): Likewise.
59899         * modules/memcmp-tests (Files): Likewise.
59900         * modules/memmem-tests (Files): Likewise.
59901         * modules/memrchr-tests (Files): Likewise.
59902         * modules/mkdir-tests (Files): Likewise.
59903         * modules/mkfifo-tests (Files): Likewise.
59904         * modules/mkfifoat-tests (Files): Likewise.
59905         * modules/mknod-tests (Files): Likewise.
59906         * modules/nanosleep-tests (Files): Likewise.
59907         * modules/nl_langinfo-tests (Files): Likewise.
59908         * modules/obstack-printf-tests (Files): Likewise.
59909         * modules/open-tests (Files): Likewise.
59910         * modules/openat-tests (Files): Likewise.
59911         * modules/perror-tests (Files): Likewise.
59912         * modules/pipe2-tests (Files): Likewise.
59913         * modules/poll-tests (Files): Likewise.
59914         * modules/popen-tests (Files): Likewise.
59915         * modules/posix_spawn-tests (Files): Likewise.
59916         * modules/posix_spawnp-tests (Files): Likewise.
59917         * modules/pread-tests (Files): Likewise.
59918         * modules/printf-posix-tests (Files): Likewise.
59919         * modules/pty-tests (Files): Likewise.
59920         * modules/random_r-tests (Files): Likewise.
59921         * modules/rawmemchr-tests (Files): Likewise.
59922         * modules/readlink-tests (Files): Likewise.
59923         * modules/remove-tests (Files): Likewise.
59924         * modules/rename-tests (Files): Likewise.
59925         * modules/renameat-tests (Files): Likewise.
59926         * modules/rmdir-tests (Files): Likewise.
59927         * modules/round-tests (Files): Likewise.
59928         * modules/roundf-tests (Files): Likewise.
59929         * modules/roundl-tests (Files): Likewise.
59930         * modules/select-tests (Files): Likewise.
59931         * modules/setenv-tests (Files): Likewise.
59932         * modules/sigaction-tests (Files): Likewise.
59933         * modules/sleep-tests (Files): Likewise.
59934         * modules/snprintf-posix-tests (Files): Likewise.
59935         * modules/snprintf-tests (Files): Likewise.
59936         * modules/sprintf-posix-tests (Files): Likewise.
59937         * modules/stat-tests (Files): Likewise.
59938         * modules/strcasestr-tests (Files): Likewise.
59939         * modules/strchrnul-tests (Files): Likewise.
59940         * modules/strerror-tests (Files): Likewise.
59941         * modules/strsignal-tests (Files): Likewise.
59942         * modules/strstr-tests (Files): Likewise.
59943         * modules/strtod-tests (Files): Likewise.
59944         * modules/strverscmp-tests (Files): Likewise.
59945         * modules/symlink-tests (Files): Likewise.
59946         * modules/symlinkat-tests (Files): Likewise.
59947         * modules/times-tests (Files): Likewise.
59948         * modules/trunc-tests (Files): Likewise.
59949         * modules/truncf-tests (Files): Likewise.
59950         * modules/truncl-tests (Files): Likewise.
59951         * modules/tsearch-tests (Files): Likewise.
59952         * modules/uname-tests (Files): Likewise.
59953         * modules/unlink-tests (Files): Likewise.
59954         * modules/unsetenv-tests (Files): Likewise.
59955         * modules/usleep-tests (Files): Likewise.
59956         * modules/utimensat-tests (Files): Likewise.
59957         * modules/vasprintf-tests (Files): Likewise.
59958         * modules/vdprintf-posix-tests (Files): Likewise.
59959         * modules/vfprintf-posix-tests (Files): Likewise.
59960         * modules/vprintf-posix-tests (Files): Likewise.
59961         * modules/vsnprintf-posix-tests (Files): Likewise.
59962         * modules/vsnprintf-tests (Files): Likewise.
59963         * modules/vsprintf-posix-tests (Files): Likewise.
59964         * modules/wcrtomb-tests (Files): Likewise.
59965         * modules/wcsnrtombs-tests (Files): Likewise.
59966         * modules/wcsrtombs-tests (Files): Likewise.
59967         * modules/wcwidth-tests (Files): Likewise.
59968         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59969         * tests/test-isinf.c (isinf): Likewise.
59970         * tests/test-isnan.c (isnan): Likewise.
59971         * tests/test-signbit.c (signbit): Likewise.
59972         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59973         declaration, either as macro or with correct signature.
59974         (select): Ensure function under test is declared with correct
59975         signature in correct header.
59976         * tests/test-atexit.c (atexit): Likewise.
59977         * tests/test-btowc.c (btowc): Likewise.
59978         * tests/test-canonicalize-lgpl.c (realpath)
59979         (canonicalize_file_name): Likewise.
59980         * tests/test-ceilf1.c (ceilf): Likewise.
59981         * tests/test-ceill.c (ceill): Likewise.
59982         * tests/test-chown.c (chown): Likewise.
59983         * tests/test-dprintf-posix.c (dprintf): Likewise.
59984         * tests/test-dup2.c (dup2): Likewise.
59985         * tests/test-dup3.c (dup3): Likewise.
59986         * tests/test-duplocale.c (duplocale): Likewise.
59987         * tests/test-fchdir.c (fchdir): Likewise.
59988         * tests/test-fchownat.c (fchownat): Likewise.
59989         * tests/test-fcntl.c (fcntl): Likewise.
59990         * tests/test-fdopendir.c (fdopendir): Likewise.
59991         * tests/test-fflush.c (fflush): Likewise.
59992         * tests/test-flock.c (flock): Likewise.
59993         * tests/test-floorf1.c (floorf): Likewise.
59994         * tests/test-floorl.c (floorl): Likewise.
59995         * tests/test-fnmatch.c (fnmatch): Likewise.
59996         * tests/test-fopen.c (fopen): Likewise.
59997         * tests/test-fprintf-posix.c (fprintf): Likewise.
59998         * tests/test-freopen.c (freopen): Likewise.
59999         * tests/test-frexp.c (frexp): Likewise.
60000         * tests/test-frexpl.c (frexpl): Likewise.
60001         * tests/test-fseek.c (fseek): Likewise.
60002         * tests/test-fseeko.c (fseeko): Likewise.
60003         * tests/test-fstatat.c (fstatat): Likewise.
60004         * tests/test-fsync.c (fsync): Likewise.
60005         * tests/test-ftell.c (ftell): Likewise.
60006         * tests/test-ftello.c (ftello): Likewise.
60007         * tests/test-futimens.c (futimens): Likewise.
60008         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
60009         (gai_strerror): Likewise.
60010         * tests/test-getcwd.c (getcwd): Likewise.
60011         * tests/test-getdelim.c (getdelim): Likewise.
60012         * tests/test-getdtablesize.c (getdtablesize): Likewise.
60013         * tests/test-getgroups.c (getgroups): Likewise.
60014         * tests/test-gethostname.c (gethostname): Likewise.
60015         * tests/test-getline.c (getline): Likewise.
60016         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
60017         Likewise.
60018         * tests/test-gettimeofday.c (gettimeofday): Likewise.
60019         * tests/test-glob.c (glob, globfree): Likewise.
60020         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
60021         * tests/test-inet_ntop.c (inet_ntop): Likewise.
60022         * tests/test-inet_pton.c (inet_pton): Likewise.
60023         * tests/test-isblank.c (isblank): Likewise.
60024         * tests/test-lchown.c (lchown): Likewise.
60025         * tests/test-ldexpl.c (ldexpl): Likewise.
60026         * tests/test-link.c (link): Likewise.
60027         * tests/test-linkat.c (linkat): Likewise.
60028         * tests/test-lseek.c (lseek): Likewise.
60029         * tests/test-lstat.c (lstat): Likewise.
60030         * tests/test-mbrtowc.c (mbrtowc): Likewise.
60031         * tests/test-mbsinit.c (mbsinit): Likewise.
60032         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
60033         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
60034         * tests/test-memchr.c (memchr): Likewise.
60035         * tests/test-memcmp.c (memcmp): Likewise.
60036         * tests/test-memmem.c (memmem): Likewise.
60037         * tests/test-memrchr.c (memrchr): Likewise.
60038         * tests/test-mkdir.c (mkdir): Likewise.
60039         * tests/test-mkdirat.c (mkdirat): Likewise.
60040         * tests/test-mkfifo.c (mkfifo): Likewise.
60041         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
60042         * tests/test-mknod.c (mknod): Likewise.
60043         * tests/test-nanosleep.c (nanosleep): Likewise.
60044         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
60045         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
60046         Likewise.
60047         * tests/test-open.c (open): Likewise.
60048         * tests/test-openat.c (openat): Likewise.
60049         * tests/test-perror.c (perror): Likewise.
60050         * tests/test-pipe2.c (pipe2): Likewise.
60051         * tests/test-poll.c (poll): Likewise.
60052         * tests/test-popen.c (popen, pclose): Likewise.
60053         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
60054         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
60055         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
60056         (posix_spawn_file_actions_destroy)
60057         (posix_spawn_file_actions_addclose)
60058         (posix_spawn_file_actions_addopen)
60059         (posix_spawn_file_actions_adddup2): Likewise.
60060         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
60061         * tests/test-pread.c (pread): Likewise.
60062         * tests/test-printf-posix.c (printf): Likewise.
60063         * tests/test-pty.c (openpty, forkpty): Likewise.
60064         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
60065         (random_r): Likewise.
60066         * tests/test-rawmemchr.c (rawmemchr): Likewise.
60067         * tests/test-readlink.c (readlink): Likewise.
60068         * tests/test-remove.c (remove): Likewise.
60069         * tests/test-rename.c (rename): Likewise.
60070         * tests/test-renameat.c (renameat): Likewise.
60071         * tests/test-rmdir.c (rmdir): Likewise.
60072         * tests/test-round1.c (round): Likewise.
60073         * tests/test-roundf1.c (roundf): Likewise.
60074         * tests/test-roundl.c (roundl): Likewise.
60075         * tests/test-setenv.c (setenv): Likewise.
60076         * tests/test-sigaction.c (sigaction): Likewise.
60077         * tests/test-sleep.c (sleep): Likewise.
60078         * tests/test-snprintf.c (snprintf): Likewise.
60079         * tests/test-sprintf-posix.c (sprintf): Likewise.
60080         * tests/test-stat.c (stat): Likewise.
60081         * tests/test-stpncpy.c (stpncpy): Likewise.
60082         * tests/test-strcasestr.c (strcasestr): Likewise.
60083         * tests/test-strchrnul.c (strchrnul): Likewise.
60084         * tests/test-strerror.c (strerror): Likewise.
60085         * tests/test-strsignal.c (strsignal): Likewise.
60086         * tests/test-strstr.c (strstr): Likewise.
60087         * tests/test-strtod.c (strtod): Likewise.
60088         * tests/test-strverscmp.c (strverscmp): Likewise.
60089         * tests/test-symlink.c (symlink): Likewise.
60090         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
60091         * tests/test-times.c (times): Likewise.
60092         * tests/test-trunc1.c (trunc): Likewise.
60093         * tests/test-truncf1.c (truncf): Likewise.
60094         * tests/test-truncl.c (truncl): Likewise.
60095         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
60096         Likewise.
60097         * tests/test-uname.c (uname): Likewise.
60098         * tests/test-unlink.c (unlink): Likewise.
60099         * tests/test-unlinkat.c (unlinkat): Likewise.
60100         * tests/test-unsetenv.c (unsetenv): Likewise.
60101         * tests/test-usleep.c (usleep): Likewise.
60102         * tests/test-utimensat.c (utimensat): Likewise.
60103         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
60104         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
60105         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
60106         * tests/test-vprintf-posix.c (vprintf): Likewise.
60107         * tests/test-vsnprintf.c (vsnprintf): Likewise.
60108         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
60109         * tests/test-wcrtomb.c (wcrtomb): Likewise.
60110         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
60111         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
60112         * tests/test-wcwidth.c (wcwidth): Likewise.
60114         build: pull in conditional headers during GNULIB_POSIXCHECK
60115         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
60116         definitions from any conditionally-included headers.
60117         * lib/stdlib.in.h (includes): Likewise.
60118         * lib/unistd.in.h (includes): Likewise.
60120 2009-12-24  Bruno Haible  <bruno@clisp.org>
60122         * tests/test-argv-iter.c: Include header file being tested immediately
60123         after config.h.
60124         * tests/test-base64.c: Likewise.
60125         * tests/test-flock.c: Likewise.
60126         * tests/test-fsync.c: Likewise.
60127         * tests/test-getdate.c: Likewise.
60128         * tests/test-getndelim2.c: Likewise.
60129         * tests/test-isfinite.c: Likewise.
60130         * tests/test-isinf.c: Likewise.
60131         * tests/test-strerror.c: Likewise.
60132         * tests/test-strsignal.c: Likewise.
60134 2009-12-23  Eric Blake  <ebb9@byu.net>
60136         unistd: work around cygwin bug
60137         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60138         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60139         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60141 2009-12-23  Bruno Haible  <bruno@clisp.org>
60143         localename: More tests.
60144         * tests/test-localename.c (SIZEOF): New macro.
60145         (categories): New variable.
60146         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60147         test_locale_name_default): Add test w.r.t. thread locale.
60148         (test_locale_name_thread): New function.
60149         (main): Invoke it.
60151         localename: Make aware of thread locale.
60152         * lib/localename.h (gl_locale_name_thread): New declaration.
60153         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60154         behaviour with respect to thread locale.
60155         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60156         <langinfo.h>, glthread/lock.h.
60157         (SIZE_BITS): New macro.
60158         (string_hash): New function.
60159         (struct hash_node): New type.
60160         (HASH_TABLE_SIZE): New macro.
60161         (struniq_hash_table, struniq_lock): New variables.
60162         (struniq): New function.
60163         (gl_locale_name_thread): New function.
60164         (gl_locale_name): Invoke it.
60165         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60166         * modules/localename (Depends-on): Add lock.
60167         Reported by Mike Gran <spk121@yahoo.com>.
60169 2009-12-23  Eric Blake  <ebb9@byu.net>
60171         va-args: new module
60172         * modules/va-args: New file.
60173         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60174         * MODULES.html.sh (Core language properties): Mention it.
60176         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60177         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60178         named alias for __attribute__((__unused__)).
60179         * lib/chown.c: Update client.
60180         * lib/fchmodat.c: Likewise.
60181         * lib/fts.c: Likewise.
60182         * lib/getdate.y: Likewise.
60183         * lib/getgroups.c: Likewise.
60184         * lib/getopt.c: Likewise.
60185         * lib/getugroups.c: Likewise.
60186         * lib/mkdir.c: Likewise.
60187         * lib/mkfifo.c: Likewise.
60188         * lib/mkfifoat.c: Likewise.
60189         * lib/mknod.c: Likewise.
60190         * lib/mknodat.c: Likewise.
60191         * lib/readlink.c: Likewise.
60192         * lib/se-context.in.h: Likewise.
60193         * lib/se-selinux.in.h: Likewise.
60194         * lib/sockets.c: Likewise.
60195         * lib/symlink.c: Likewise.
60196         * lib/symlinkat.c: Likewise.
60197         * lib/unicodeio.c: Likewise.
60198         * lib/unistr.h: Likewise.
60199         * tests/test-areadlink.c: Likewise.
60200         * tests/test-areadlinkat.c: Likewise.
60201         * tests/test-filenamecat.c: Likewise.
60202         * tests/test-fseeko.c: Likewise.
60203         * tests/test-ftello.c: Likewise.
60204         * tests/test-getdate.c: Likewise.
60205         * tests/test-getgroups.c: Likewise.
60206         * tests/test-gethostname.c: Likewise.
60207         * tests/test-quotearg.c: Likewise.
60208         * tests/test-version-etc.c: Likewise.
60209         * tests/test-xalloc-die.c: Likewise.
60210         * tests/test-xfprintf-posix.c: Likewise.
60211         * tests/test-xprintf-posix.c: Likewise.
60212         * tests/test-xvasprintf.c: Likewise.
60214         tests: avoid compiler warnings
60215         * tests/test-fcntl.c (main): Delete unused parameters.
60216         * tests/test-freopen-safer.c (main): Likewise.
60217         * tests/test-xalloc-die.c (main): Mark unused parameters.
60218         * tests/test-fseeko.c (main): Likewise.
60219         * tests/test-ftello.c (main): Likewise.
60220         * tests/test-nanosleep.c (main): Avoid declaration warning.
60221         * tests/test-sleep.c (main): Likewise.
60222         * tests/test-unsetenv.c (main): Silence warning about string
60223         literal.
60224         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60226 2009-12-23  Bruno Haible  <bruno@clisp.org>
60228         * tests/test-localename.c (test_locale_name): New function, extracted
60229         from main. Also test mixed situations.
60230         (test_locale_name_posix, test_locale_name_environ,
60231         test_locale_name_default): New functions.
60232         (main): Invoke them all.
60233         * modules/localename-tests (configure.ac): Test for newlocale.
60235 2009-12-23  Bruno Haible  <bruno@clisp.org>
60237         unistd: Ensure getcwd gets declared before being overridden.
60238         * lib/unistd.in.h: Conditionally include <io.h>.
60240 2009-12-22  Bruno Haible  <bruno@clisp.org>
60242         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60243         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60244         (gl_WCHAR_H): Invoke it.
60245         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60246         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60247         Reported by Karl Berry <karl@freefriends.org>.
60249 2009-12-22  Eric Blake  <ebb9@byu.net>
60251         math, unistd: avoid redundant includes
60252         * lib/math.in.h (isnan): No need to re-include <math.h>.
60253         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60255         getsubopt: work around cygwin bug
60256         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60257         avoid conflicting with system getsubopt.
60258         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60259         bug.
60261         getopt: synchronize from glibc
60262         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60263         parameter order.  Adjust all callers.
60264         (_getopt_internal_r, main): Adjust quoting in error messages.
60265         Drop considerations for outdated POSIX 1003.2 error message.
60266         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60267         callers.
60268         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60270         test-getopt: test stderr behavior
60271         * modules/getopt-posix-tests (Depends-on): Add dup2.
60272         * tests/test-getopt.c (ASSERT): Avoid stderr.
60273         (main): Move stderr to a temporary file.
60274         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60275         Instead, add parameter to inform caller if output occurred.
60276         (test_getopt): Adjust all existing tests to expect silence, and
60277         add new tests of leading ":".
60278         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60279         glibc shortcomings with leading "-:" or "+:" in optstring.
60280         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60281         Likewise.
60282         * doc/posix-functions/getopt.texi (getopt): Likewise.
60284         test-getopt: enhance test
60285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60286         supports optind=0.
60287         * tests/test-getopt.c (OPTIND_MIN): Move...
60288         * tests/test-getopt.h (OPTIND_MIN): ...here.
60289         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60290         Require that optind=0 works, since modern BSD supports it in
60291         addition to optreset, and since coreutils expects it.
60292         (test_getopt_long_only): New test.
60293         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60294         glibc shortcomings with 'W;', and enforcement of optind=0.
60295         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60296         Likewise.
60298 2009-12-21  Bruno Haible  <bruno@clisp.org>
60300         localename: Improvements for MacOS X and Cygwin.
60301         * lib/localename.h (gl_locale_name_environ): New declaration.
60302         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60303         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60304         (gl_locale_name_posix): Invoke it.
60305         (gl_locale_name_default): Add comments. Use Windows native API also on
60306         Cygwin.
60308 2009-12-21  Bruno Haible  <bruno@clisp.org>
60310         Update list of Win32 locale ids.
60311         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60312         (LANG_SAMI): Renamed from LANG_SAAMI.
60313         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60314         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60315         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60316         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60317         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60318         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60319         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60320         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60321         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60322         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60323         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60324         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60325         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60326         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60327         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60328         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60329         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60330         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60331         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60332         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60333         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60334         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60335         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60336         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60337         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60338         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60339         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60340         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60341         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60342         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60343         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60344         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60345         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60346         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60347         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60348         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60349         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60350         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60351         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60352         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60353         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60354         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60355         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60356         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60357         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60358         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60359         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60360         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60361         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60362         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60363         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60364         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60365         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60366         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60367         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60368         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60369         Add more languages and countries for Sami, Sorbian. Add more countries
60370         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60371         for Pashto. Change country for Syriac, Tswana.
60373 2009-12-21  Eric Blake  <ebb9@byu.net>
60375         test-utimens: avoid spurious failure
60376         * tests/test-chown.h (nap): Factor...
60377         * tests/nap.h: ...into new file.
60378         * tests/test-lchown.h (nap): Avoid duplication.
60379         * tests/test-utimens-common.h (nap): Use shared implementation,
60380         necessary on file systems with 1-second resolution.
60381         * modules/chown-tests (Files): Include new file.
60382         * modules/fdutimensat-tests (Files): Likewise.
60383         * modules/futimens-tests (Files): Likewise.
60384         * modules/lchown-tests (Files): Likewise.
60385         * modules/openat-tests (Files): Likewise.
60386         * modules/utimens-tests (Files): Likewise.
60387         * modules/utimensat-tests (Files): Likewise.
60389 2009-12-19  Eric Blake  <ebb9@byu.net>
60391         futimens, utimensat: work around Linux bug
60392         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60393         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60394         * lib/utimensat.c (rpl_utimensat): Work around it.
60395         * lib/futimens.c (rpl_futimens): Adjust comment.
60397         utimens: work around Linux ctime bug
60398         * lib/utimens.c (detect_ctime_bug): New helper function.
60399         (update_timespec): Differentiate between workaround needed for
60400         this bug vs. what is needed for systems that lack utimensat.
60401         (fdutimens, lutimens): Work around bug.
60403         utimens: check for ctime update
60404         * tests/test-utimens-common.h (check_ctime): Define.
60405         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60406         * tests/test-futimens.h (test_futimens): Likewise.
60407         * tests/test-lutimens.h (test_lutimens): Likewise.
60408         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60409         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60411 2009-12-19  Bruno Haible  <bruno@clisp.org>
60413         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60414         * tests/test-dprintf-posix2.sh: New file.
60415         * tests/test-dprintf-posix2.c: New file.
60416         * modules/dprintf-posix-tests (Files): Add them.
60417         (configure.ac): Check for getrlimit and setrlimit.
60418         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60420 2009-12-19  Bruno Haible  <bruno@clisp.org>
60422         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60423         * tests/test-fprintf-posix3.sh: New file.
60424         * tests/test-fprintf-posix3.c: New file.
60425         * modules/fprintf-posix-tests (Files): Add them.
60426         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60428 2009-12-19  Eric Blake  <ebb9@byu.net>
60430         dirfd: fix prototype
60431         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60432         * lib/dirfd.c (dirfd): Likewise.
60434         canonicalize: reduce memory usage
60435         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60436         allocation to size.
60437         Reported by Solar Designer <solar@openwall.com>.
60439 2009-12-19  Bruno Haible  <bruno@clisp.org>
60441         New module attribute 'Applicability'.
60442         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60443         * gnulib-tool: New option --extract-applicability.
60444         (func_usage): Document it.
60445         (sed_extract_prog): Recognize it.
60446         (func_get_applicability): New function.
60447         (func_import): Generalize handling of 'link-warning' module.
60448         * modules/link-warning (Applicability): New section.
60449         * modules/arg-nonnull (Applicability): New section.
60450         Repoted by Simon Josefsson <simon@josefsson.org>.
60452 2009-12-19  Bruno Haible  <bruno@clisp.org>
60454         fflush: tweak
60455         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60456         * lib/fseeko.c (rpl_fseeko): Likewise.
60458 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60460         * lib/gl_list.h: Fix typo in comment.
60462 2009-12-16  Eric Blake  <ebb9@byu.net>
60464         fcntl: use to simplify other modules
60465         * modules/cloexec (Depends-on): Add fcntl.
60466         * modules/fchdir (Depends-on): Likewise.
60467         * modules/fd-safer-flag (Depends-on): Likewise.
60468         * modules/unistd-safer (Depends-on): Likewise.
60469         * modules/dup3 (configure.ac): Set module indicator.
60470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60471         missing.
60472         * lib/fchdir.c (_gl_register_dup): Fix comment.
60473         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60474         * lib/dup-safer.c (dup_safer): Likewise.
60475         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60476         * lib/dup3.c (dup3): Likewise.
60477         * tests/test-fchdir.c (main): Enhance test.
60478         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60480         fcntl: port portions of fcntl to mingw
60481         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60482         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60483         replacement for mingw.
60484         * modules/fcntl (Description): Update.
60485         (Depends-on): Add dup2.
60486         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60487         * modules/fcntl-h (Makefile.am): Substitute it.
60488         * lib/fcntl.in.h (fcntl): Update declaration.
60489         (F_DUPFD, F_GETFD): New macros, when needed.
60490         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60491         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60492         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60493         we now guarantee.
60495         fcntl: work around cygwin bug in F_DUPFD
60496         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60497         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60498         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60499         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60500         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60502         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60503         * modules/fcntl (Files): List new files.
60504         (configure.ac): Run a test.
60505         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60506         * lib/fcntl.c (rpl_fcntl): Likewise.
60507         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60508         (gl_FCNTL_H): Always replace fcntl.h.
60509         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60510         * lib/fcntl.in.h (fcntl): Declare replacement.
60511         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60512         needed, plus a witness.
60513         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60514         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60515         * tests/test-fcntl.c: New file.
60516         * modules/fcntl-tests: Likewise.
60518         binary-io: avoid potential compilation warning
60519         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60520         directives.
60522         fflush: avoid compilation error on NetBSD
60523         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60524         between off_t and fpos_t, since the latter is sometimes a struct.
60525         * lib/fseeko.c (rpl_fseeko): Likewise.
60526         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60528 2009-12-15  Eric Blake  <ebb9@byu.net>
60530         fcntl-h, stdio, sys_ioctl: fix declarations
60531         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60532         function must not take arguments.
60533         * lib/sys_ioctl.in.h (ioctl): Likewise.
60534         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60535         (open): Add a link warning.
60537 2009-12-15  Jim Meyering  <meyering@redhat.com>
60539         areadlink, areadlink-with-size: relax license to LGPLv2+
60540         * modules/areadlink (License): Relax to LGPLv2+.
60541         * modules/areadlink-with-size (License): Likewise.
60543 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60544             Bruno Haible  <bruno@clisp.org>
60546         *printf: Fix memory leak.
60547         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60548         * lib/vfprintf.c (vfprintf): Likewise.
60549         * lib/dprintf.c (dprintf): Likewise.
60550         * lib/vdprintf.c (vdprintf): Likewise.
60552 2009-12-14  Eric Blake  <ebb9@byu.net>
60554         accept4: adjust module dependencies
60555         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60557         utimens: one more try at avoiding compiler warning
60558         * lib/utimens.c (lutimens): Lower scope of result.
60560 2009-12-13  Bruno Haible  <bruno@clisp.org>
60562         Move the malloc checking from module 'list' to new module 'xlist'.
60563         * modules/xlist: New file.
60564         * lib/gl_xlist.h: New file.
60565         * lib/gl_xlist.c: New file.
60566         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60567         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60568         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60569         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60570         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60571         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60572         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60573         gl_sortedlist_nx_add): New declarations.
60574         (struct gl_list_implementation): Rename and change methods accordingly.
60575         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60576         (gl_list_nx_create): Renamed from gl_list_create.
60577         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60578         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60579         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60580         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60581         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60582         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60583         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60584         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60585         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60586         gl_list_create_empty.
60587         (gl_list_nx_create): Renamed from gl_list_create.
60588         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60589         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60590         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60591         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60592         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60593         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60594         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60595         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60596         * lib/gl_array_list.c: Don't include xalloc.h.
60597         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60598         NULL upon out-of-memory.
60599         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60600         out-of-memory.
60601         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60602         Change return type to 'int'.
60603         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60604         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60605         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60606         upon out-of-memory.
60607         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60608         upon out-of-memory.
60609         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60610         upon out-of-memory.
60611         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60612         upon out-of-memory.
60613         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60614         out-of-memory.
60615         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60616         Update.
60617         (gl_array_list_implementation): Update.
60618         * lib/gl_carray_list.c: Don't include xalloc.h.
60619         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60620         Return NULL upon out-of-memory.
60621         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60622         out-of-memory.
60623         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60624         Change return type to 'int'.
60625         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60626         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60627         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60628         upon out-of-memory.
60629         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60630         upon out-of-memory.
60631         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60632         out-of-memory.
60633         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60634         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60635         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60636         Update.
60637         (gl_carray_list_implementation): Update.
60638         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60639         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60640         gl_linked_create_empty. Return NULL upon out-of-memory.
60641         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60642         out-of-memory.
60643         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60644         Change return type to 'int'. Return -1 upon out-of-memory.
60645         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60646         out-of-memory.
60647         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60648         upon out-of-memory.
60649         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60650         upon out-of-memory.
60651         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60652         NULL upon out-of-memory.
60653         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60654         upon out-of-memory.
60655         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60656         out-of-memory.
60657         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60658         Update.
60659         * lib/gl_linked_list.c: Don't include xalloc.h.
60660         (gl_linked_list_implementation): Update.
60661         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60662         (add_to_bucket): Change return type to 'int'.
60663         (gl_linkedhash_list_implementation): Update.
60664         * lib/gl_anytree_list1.h (free_subtree): New function.
60665         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60666         gl_tree_create_empty. Return NULL upon out-of-memory.
60667         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60668         Change return type to 'int'. Return -1 upon out-of-memory.
60669         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60670         out-of-memory.
60671         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60672         (gl_tree_remove_node): New function, moved here from
60673         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60674         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60675         Update.
60676         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60677         malloc, not xmalloc. Return NULL upon out-of-memory.
60678         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60679         out-of-memory.
60680         (gl_tree_remove_node_from_tree): New function, extracted from
60681         gl_tree_remove_node.
60682         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60683         upon out-of-memory.
60684         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60685         out-of-memory.
60686         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60687         upon out-of-memory.
60688         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60689         upon out-of-memory.
60690         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60691         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60692         not xmalloc. Return NULL upon out-of-memory.
60693         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60694         out-of-memory.
60695         (gl_tree_remove_node_from_tree): New function, extracted from
60696         gl_tree_remove_node.
60697         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60698         upon out-of-memory.
60699         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60700         out-of-memory.
60701         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60702         upon out-of-memory.
60703         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60704         upon out-of-memory.
60705         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60706         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60707         gl_anytree_list1.h before gl_anyavltree_list2.h.
60708         (gl_avltree_list_implementation): Update.
60709         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60710         gl_anytree_list1.h before gl_anyavltree_list2.h.
60711         (gl_rbtree_list_implementation): Update.
60712         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60713         Change return type to 'int'. Return -1 upon out-of-memory. Use
60714         __builtin_expect.
60715         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60716         (gl_avltreehash_list_implementation): Update.
60717         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60718         (gl_rbtreehash_list_implementation): Update.
60719         * modules/array-list (Depends-on): Remove xalloc.
60720         * modules/carray-list (Depends-on): Likewise.
60721         * modules/linked-list (Depends-on): Likewise.
60722         * modules/linkedhash-list (Depends-on): Likewise.
60723         * modules/avltree-list (Depends-on): Likewise.
60724         * modules/rbtree-list (Depends-on): Likewise.
60725         * modules/avltreehash-list (Depends-on): Likewise.
60726         * modules/rbtreehash-list (Depends-on): Likewise.
60728         * modules/xsublist: New file.
60729         * lib/gl_xsublist.h: New file.
60730         * lib/gl_xsublist.c: New file.
60731         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60732         (gl_sublist_nx_create): New declaration.
60733         * lib/gl_sublist.c: Don't include xalloc.h.
60734         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60735         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60736         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60737         Change return type to 'int'. Return -1 upon out-of-memory.
60738         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60739         upon out-of-memory.
60740         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60741         NULL upon out-of-memory.
60742         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60743         upon out-of-memory.
60744         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60745         NULL upon out-of-memory.
60746         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60747         NULL upon out-of-memory.
60748         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60749         upon out-of-memory.
60750         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60751         (gl_sublist_list_implementation): Update.
60752         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60753         upon out-of-memory.
60754         * modules/sublist (Depends-on): Remove xalloc.
60756         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60757         * tests/test-carray_list.c: Likewise.
60758         * tests/test-linked_list.c: Likewise.
60759         * tests/test-linkedhash_list.c: Likewise.
60760         * tests/test-avltree_list.c: Likewise.
60761         * tests/test-rbtree_list.c: Likewise.
60762         * tests/test-avltreehash_list.c: Likewise.
60763         * tests/test-rbtreehash_list.c: Likewise.
60764         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60765         * modules/carray-list-tests (Makefile.am): Likewise.
60766         * modules/linked-list-tests (Makefile.am): Likewise.
60767         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60768         * modules/avltree-list-tests (Makefile.am): Likewise.
60769         * modules/rbtree-list-tests (Makefile.am): Likewise.
60770         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60771         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60773         * NEWS: Mention the changes.
60775         * lib/clean-temp.c: Include gl_xlist.h.
60776         * modules/clean-temp (Depends-on): Add xlist.
60778         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60779         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60781         * tests/test-array_oset.c: Include gl_xlist.h.
60782         * modules/array-oset-tests (Depends-on): Add xlist.
60784         Reported by José E. Marchesi <jemarch@gnu.org>.
60786 2009-12-13  Bruno Haible  <bruno@clisp.org>
60788         Move the malloc checking from module 'oset' to new module 'xoset'.
60789         * modules/xoset: New file.
60790         * lib/gl_xoset.h: New file.
60791         * lib/gl_xoset.c: New file.
60792         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60793         declarations.
60794         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60795         (struct gl_oset_implementation): Rename and change methods accordingly.
60796         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60797         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60798         'int'. Mark as __warn_unused_result__.
60799         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60800         gl_oset_create_empty.
60801         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60802         'int'.
60803         * lib/gl_array_oset.c: Don't include xalloc.h.
60804         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60805         malloc, not xmalloc.
60806         (grow): Change return type to 'int'. Don't call xalloc_die.
60807         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60808         to 'int'.
60809         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60810         'int'.
60811         (gl_array_oset_implementation): Update.
60812         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60813         gl_tree_create_empty.
60814         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60815         'int'.
60816         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60817         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60818         xmalloc.
60819         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60820         not xmalloc.
60821         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60822         xmalloc.
60823         (gl_avltree_oset_implementation): Update.
60824         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60825         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60826         xmalloc.
60827         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60828         not xmalloc.
60829         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60830         xmalloc.
60831         (gl_rbtree_oset_implementation): Update.
60832         * modules/array-oset (Depends-on): Remove xalloc.
60833         * modules/avltree-oset (Depends-on): Likewise.
60834         * modules/rbtree-oset (Depends-on): Likewise.
60835         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60836         * tests/test-avltree_oset.c: Likewise.
60837         * tests/test-rbtree_oset.c: Likewise.
60838         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60839         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60840         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60841         * NEWS: Mention the change.
60843 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60845         maint.mk: allow a project to override release-prep commands
60846         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60847         commands into a new rule.
60848         (release-prep): New rule.
60849         (release-prep-hook): New overridable variable.
60851 2009-12-13  Bruno Haible  <bruno@clisp.org>
60853         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60855 2009-12-13  Jim Meyering  <meyering@redhat.com>
60857         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60858         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60860 2009-12-12  Bruno Haible  <bruno@clisp.org>
60862         duplocale: Tweak.
60863         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60865 2009-12-12  Karl Berry  <karl@gnu.org>
60867         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60869 2009-12-12  Bruno Haible  <bruno@clisp.org>
60871         * m4/po.m4: Undo incorrect untabification.
60873 2009-12-12  Bruno Haible  <bruno@clisp.org>
60875         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60876         * modules/c-strtod (Depends-on): Add locale.
60877         * modules/c-strtold (Depends-on): Likewise.
60879 2009-12-12  Bruno Haible  <bruno@clisp.org>
60881         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60883 2009-12-11  Eric Blake  <ebb9@byu.net>
60885         setenv: relax requirement in light of POSIX ruling
60886         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60887         not NULL.
60888         * tests/test-setenv.c (main): Relax test.
60889         * tests/test-unsetenv.c (main): Likewise.
60890         * doc/posix-functions/setenv.texi (setenv): Document this.
60891         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60893 2009-12-11  Bruno Haible  <bruno@clisp.org>
60895         New module 'fd-safer-flag'.
60896         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60897         * lib/dup-safer.c (dup_safer_flag): Remove function.
60898         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60899         * lib/fd-safer.c (fd_safer_flag): Remove function.
60900         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60901         * modules/cloexec (configure.ac): Drop indicator macro.
60902         * modules/fd-safer-flag: New file.
60903         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60904         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60905         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60907 2009-12-11  Bruno Haible  <bruno@clisp.org>
60909         Tests for module 'nl_langinfo'.
60910         * modules/nl_langinfo-tests: New file.
60911         * tests/test-nl_langinfo.sh: New file.
60912         * tests/test-nl_langinfo.c: New file.
60914         New module 'nl_langinfo'.
60915         * lib/nl_langinfo.c: New file.
60916         * m4/nl_langinfo.m4: New file.
60917         * modules/nl_langinfo: New file.
60918         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60920 2009-12-11  Bruno Haible  <bruno@clisp.org>
60922         Tests for module 'langinfo'.
60923         * modules/langinfo-tests: New file.
60924         * tests/test-langinfo.c: New file.
60926         New module 'langinfo'.
60927         * lib/langinfo.in.h: New file.
60928         * m4/langinfo_h.m4: New file.
60929         * modules/langinfo: New file.
60930         * doc/posix-headers/langinfo.texi: Mention the new module.
60932 2009-12-11  Bruno Haible  <bruno@clisp.org>
60934         * lib/config.charset: Untabify.
60936 2009-12-11  Bruno Haible  <bruno@clisp.org>
60938         * modules/unistd-safer (configure.ac): Drop indicator macro.
60940 2009-12-11  Bruno Haible  <bruno@clisp.org>
60942         Move pipe2-safer code to its own file.
60943         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60944         * lib/pipe-safer.c (pipe2_safer): Remove function.
60945         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60946         (Makefile.am): Add it to lib_SOURCES.
60948 2009-12-10  Bruno Haible  <bruno@clisp.org>
60950         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60952 2009-12-10  Bruno Haible  <bruno@clisp.org>
60954         Declare which arguments expect non-NULL values, for GCC and clang.
60955         * build-aux/arg-nonnull.h: New file.
60956         * modules/arg-nonnull: New file.
60957         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60958         (inet_ntop, inet_pton): Use it.
60959         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60960         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60961         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60962         (open, openat): Use it.
60963         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60964         (fnmatch): Use it.
60965         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60966         (getopt, getopt_long, getopt_long_only): Use it.
60967         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60968         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60969         Use it.
60970         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60971         (iconv_open): Use it.
60972         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60973         (strtoimax, strtoumax): Use it.
60974         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60975         (duplocale): Use it.
60976         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60977         (frexp, frexpl): Use it.
60978         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60979         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60980         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60981         (tsearch, tfind, tdelete, twalk): Use it.
60982         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60983         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60984         sigpending): Use it.
60985         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60986         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60987         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60988         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60989         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60990         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60991         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60992         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60993         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60994         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60995         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60996         Use it.
60997         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60998         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60999         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
61000         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
61001         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
61002         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
61003         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
61004         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
61005         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
61006         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
61007         strtoull, unsetenv): Use it.
61008         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
61009         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61010         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61011         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
61012         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
61013         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
61014         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
61015         (strcasecmp, strncasecmp): Use it.
61016         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
61017         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
61018         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
61019         rpl_setsockopt): Use it.
61020         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
61021         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
61022         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
61023         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
61024         (gettimeofday): Use it.
61025         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
61026         (times): Use it.
61027         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
61028         (uname): Use it.
61029         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
61030         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
61031         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
61032         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
61033         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
61034         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
61035         unlinkat, write): Use it.
61036         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
61037         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
61038         * lib/argv-iter.h: Include arg-nonnull.h.
61039         (_ATTRIBUTE_NONNULL_): Remove macro.
61040         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
61041         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
61042         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
61043         optimization.
61044         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
61045         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
61046         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
61047         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
61048         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
61049         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
61050         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
61051         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
61052         * modules/arpa_inet (Depends-on): Add arg-nonnull.
61053         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
61054         * modules/dirent (Depends-on): Add arg-nonnull.
61055         (Makefile.am): Insert arg-nonnull.h into dirent.h.
61056         * modules/fcntl-h (Depends-on): Add arg-nonnull.
61057         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
61058         * modules/fnmatch (Depends-on): Add arg-nonnull.
61059         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
61060         * modules/getopt-posix (Depends-on): Add arg-nonnull.
61061         (Makefile.am): Insert arg-nonnull.h into getopt.h.
61062         * modules/glob (Depends-on): Add arg-nonnull.
61063         (Makefile.am): Insert arg-nonnull.h into glob.h.
61064         * modules/iconv_open (Depends-on): Add arg-nonnull.
61065         (Makefile.am): Insert arg-nonnull.h into iconv.h.
61066         * modules/inttypes (Depends-on): Add arg-nonnull.
61067         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
61068         * modules/locale (Depends-on): Add arg-nonnull.
61069         (Makefile.am): Insert arg-nonnull.h into locale.h.
61070         * modules/math (Depends-on): Add arg-nonnull.
61071         (Makefile.am): Insert arg-nonnull.h into math.h.
61072         * modules/netdb (Depends-on): Add arg-nonnull.
61073         (Makefile.am): Insert arg-nonnull.h into netdb.h.
61074         * modules/search (Depends-on): Add arg-nonnull.
61075         (Makefile.am): Insert arg-nonnull.h into search.h.
61076         * modules/signal (Depends-on): Add arg-nonnull.
61077         (Makefile.am): Insert arg-nonnull.h into signal.h.
61078         * modules/spawn (Depends-on): Add arg-nonnull.
61079         (Makefile.am): Insert arg-nonnull.h into spawn.h.
61080         * modules/stdio (Depends-on): Add arg-nonnull.
61081         (Makefile.am): Insert arg-nonnull.h into stdio.h.
61082         * modules/stdlib (Depends-on): Add arg-nonnull.
61083         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
61084         * modules/string (Depends-on): Add arg-nonnull.
61085         (Makefile.am): Insert arg-nonnull.h into string.h.
61086         * modules/strings (Depends-on): Add arg-nonnull.
61087         (Makefile.am): Insert arg-nonnull.h into strings.h.
61088         * modules/sys_socket (Depends-on): Add arg-nonnull.
61089         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
61090         * modules/sys_stat (Depends-on): Add arg-nonnull.
61091         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
61092         * modules/sys_time (Depends-on): Add arg-nonnull.
61093         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
61094         * modules/sys_times (Depends-on): Add arg-nonnull.
61095         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
61096         * modules/sys_utsname (Depends-on): Add arg-nonnull.
61097         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
61098         * modules/time (Depends-on): Add arg-nonnull.
61099         (Makefile.am): Insert arg-nonnull.h into time.h.
61100         * modules/unistd (Depends-on): Add arg-nonnull.
61101         (Makefile.am): Insert arg-nonnull.h into unistd.h.
61102         * modules/wchar (Depends-on): Add arg-nonnull.
61103         (Makefile.am): Insert arg-nonnull.h into wchar.h.
61104         * modules/argv-iter (Depends-on): Add arg-nonnull.
61105         * tests/test-canonicalize.c (null_ptr): New function.
61106         (main): Use it.
61107         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
61108         (main): Use it.
61109         * tests/test-memmem.c (null_ptr): New function.
61110         (main): Use it.
61111         Reported by Jim Meyering.
61113 2009-12-10  Bruno Haible  <bruno@clisp.org>
61115         Use spaces for indentation, not tabs.
61116         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
61117         * m4/*.m4: Untabify.
61118         * build-aux/*.h: Untabify.
61119         * tests/**/*.[hc]: Untabify.
61120         * README: New section "Indent with spaces, not TABs", based on
61121         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
61122         * NEWS: Mention the change.
61124 2009-12-10  Bruno Haible  <bruno@clisp.org>
61126         pty test: Fix link error.
61127         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61128         test_pty_LDADD.
61130 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61132         * modules/pty: New file.
61133         * modules/pty-tests: New file.
61134         * m4/pty.m4: New file.
61135         * tests/test-pty.c: New file.
61136         * doc/glibc-headers/pty.texi: Modified.
61137         * doc/glibc-functions/forkpty.texi: Modified.
61138         * doc/glibc-functions/openpty.texi: Modified.
61140 2009-12-10  Bruno Haible  <bruno@clisp.org>
61142         Avoid syntax error in C++ mode.
61143         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61145 2009-12-10  Bruno Haible  <bruno@clisp.org>
61147         Use sed with option -e.
61148         * gnulib-tool (func_version, func_emit_copyright_notice,
61149         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61150         option -e to sed.
61151         * modules/link-warning (Makefile.am): Likewise.
61153 2009-12-10  Jim Meyering  <meyering@redhat.com>
61155         mgetgroups: do not write bytes beyond end of malloc'd buffer
61156         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61157         username, we call getgroups with a one-element-shorter buffer,
61158         but still told it the length was original, max_n_groups.
61160 2009-12-09  Eric Blake  <ebb9@byu.net>
61162         cloexec: relax license
61163         * modules/cloexec (Maintainer): Add myself.
61164         (License): Use LGPL, not GPL.
61166         link-warning: optimize generation
61167         * modules/link-warning (Makefile.am): Reduce process usage.
61169 2009-12-09  Bruno Haible  <bruno@clisp.org>
61171         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61172         workaround was added on 2009-11-17.
61174 2009-12-09  Jim Meyering  <meyering@redhat.com>
61175             Bruno Haible  <bruno@clisp.org>
61177         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61178         * modules/link-warning (Makefile.am): Make the comment-removing sed
61179         command more robust in the face of bootstrap-prepended comment lines.
61181 2009-12-09  Bruno Haible  <bruno@clisp.org>
61183         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61184         most one group.
61186 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61187             Bruno Haible  <bruno@clisp.org>
61189         * build-aux/link-warning.h: Add copyright notice.
61190         * modules/link-warning (Makefile.am): Generate link-warning.h from
61191         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61192         * NEWS: Mention change in link-warning module.
61193         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61194         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61195         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61196         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61197         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61198         * modules/math (Makefile.am): Add dependency to math.h.
61199         * modules/search (Makefile.am): Add dependency to search.h.
61200         * modules/signal (Makefile.am): Add dependency to signal.h.
61201         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61202         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61203         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61204         * modules/string (Makefile.am): Add dependency to string.h.
61205         * modules/strings (Makefile.am): Add dependency to strings.h.
61206         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61207         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61208         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61209         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61210         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61211         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61212         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61213         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61214         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61216 2009-12-09  Bruno Haible  <bruno@clisp.org>
61218         fchdir: Optimize away rpl_fstat when possible.
61219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61220         REPLACE_OPEN_DIRECTORY.
61221         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61223 2009-12-09  Bruno Haible  <bruno@clisp.org>
61225         * lib/fchdir.c: Update comment.
61227 2009-12-09  Bruno Haible  <bruno@clisp.org>
61229         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61231 2009-12-08  Eric Blake  <ebb9@byu.net>
61233         fchdir: avoid memory leak on re-registration.
61234         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61236 2009-12-08  Jim Meyering  <meyering@redhat.com>
61238         init.sh: avoid Solaris 10 /bin/sh portability problem
61239         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61240         sourced script:
61241           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61242           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61243           bar
61244         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61245         and two tests used that idiom.
61246         * tests/init.sh: Update suggested usage comments.
61247         (path_prepend_): New function, to be used in place
61248         of the --src-path=DIR option.
61249         (setup_): Move PATH-prepending code into path_prepend_.
61250         * tests/test-pread.sh: Adapt to new usage.
61251         * tests/test-xalloc-die.sh: Likewise.
61253 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61255         * doc/gnulib.texi (Glibc pty.h): Add.
61256         * doc/glibc-functions/forkpty.texi: Add.
61257         * doc/glibc-functions/openpty.texi: Add.
61258         Suggested by Bruno Haible.
61260 2009-12-08  Eric Blake  <ebb9@byu.net>
61262         fchdir: fix logic bugs
61263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61264         * tests/test-fchdir.c (main): Enhance test.
61265         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61266         is in use.
61268         dup2: fix logic bugs
61269         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61270         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61271         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61272         exists.
61273         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61275 2009-12-07  Eric Blake  <ebb9@byu.net>
61277         unlink: fix m4 detection
61278         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61280         unistd-safer: add unit test
61281         * modules/unistd-safer-tests: New file.
61282         * tests/test-dup-safer.c: Likewise.
61283         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61284         * tests/test-dup2.c (setmode): Likewise.
61285         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61287         cloexec: preserve text vs. binary across dup_cloexec
61288         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61289         mode.
61290         * modules/dup2-tests (Depends-on): Add binary-io.
61291         * modules/cloexec-tests (Depends-on): Likewise.
61292         * tests/test-dup2.c (setmode, is_mode): New helpers.
61293         (main): Add tests that translation mode is preserved.
61294         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61295         Reported by Bruno Haible.
61297         mgetgroups: reduce duplicate listings
61298         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61299         resulting array.
61300         * tests/test-chown.h (test_chown): Simplify client.
61301         * tests/test-lchown.h (test_lchown): Likewise.
61303 2009-12-06  Bruno Haible  <bruno@clisp.org>
61305         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61306         value.
61308 2009-12-06  Bruno Haible  <bruno@clisp.org>
61310         * lib/progname.c: Include stdio.h, stdlib.h.
61311         (set_program_name): Reject a NULL argument.
61313 2009-12-05  Eric Blake  <ebb9@byu.net>
61315         pipe2-safer: new module
61316         * modules/pipe2-safer: New file.
61317         * lib/unistd-safer.h (pipe2_safer): New prototype.
61318         * lib/unistd--.h (pipe2): New wrapper.
61319         * lib/pipe-safer.c (pipe2_safer): New function.
61320         * modules/pipe (Depends-on): Add pipe2-safer.
61321         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61323         stdlib-safer: preserve cloexec flag for mkostemp[s]
61324         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61325         fd_safer_flag.
61327         unistd-safer: allow preservation of cloexec status via flag
61328         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61329         prototypes.
61330         * lib/dup-safer.c (dup_safer_flag): New function.
61331         * lib/fd-safer.c (fd_safer_flag): Likewise.
61332         * modules/cloexec (configure.ac): Set witness.
61334         test-dup2: enhance test
61335         * modules/dup2-tests (Depends-on): Add cloexec.
61336         * tests/test-dup2.c (main): Enhance test.
61338         cloexec: add dup_cloexec
61339         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61340         header and comments.
61341         * lib/cloexec.c (set_cloexec_flag): Add comments.
61342         (dup_cloexec): New function, with mingw implementation borrowed
61343         from...
61344         * lib/w32spawn.h (dup_noinherit): ...here.
61345         * modules/execute (Depends-on): Add cloexec.
61346         * modules/pipe (Depends-on): Likewise.
61347         * modules/cloexec (Depends-on): Add dup2.
61348         * modules/cloexec-tests (Files): New file.
61349         * tests/test-cloexec.c: Likewise.
61351         test-xalloc-die: fix test for mingw
61352         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61353         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61354         directory and .exe suffix off argv[0] output.
61356         test-fseeko: fix test for mingw
61357         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61358         than undefining fseek, so test will pass on mingw.
61360 2009-12-05  Bruno Haible  <bruno@clisp.org>
61362         * lib/progname.h (set_program_name): Clarify specification.
61363         * lib/progname.c (set_program_name): Likewise.
61364         Reported by Jim Meyering.
61366 2009-12-05  Jim Meyering  <meyering@redhat.com>
61368         maint.mk: backslash-escape parens in default regexp
61369         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61370         backslash-escape the literal parentheses.
61372         maint.mk: news-date-check: use grep -E
61373         * top/maint.mk (today): Define a Make variable, not a...
61374         (news-date-check): ...shell variable.
61375         (news-date-regexp): Use the Make variable.
61376         Use grep's -E option.  Change the failing diagnostic to mention
61377         the variable, $(news-date-regexp).
61379 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61381         maintainer-makefile: allow customization of NEWS entry format
61382         * top/maint.mk (news-date-regexp): New overridable variable.
61383         (news-date-check): Use it.
61385 2009-12-04  Eric Blake  <ebb9@byu.net>
61387         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61388         * lib/mgetgroups.h (xgetgroups): New prototype.
61389         * lib/mgetgroups.c (xgetgroups): New wrapper.
61390         (mgetgroups): Handle ENOSYS.
61391         * modules/mgetgroups (Depends-on): Add realloc.
61392         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61394         mgetgroups: avoid argument promotion issues with -1
61395         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61396         for invalid gid_t.
61397         * tests/test-chown.h (getegid, test_chown): Likewise.
61398         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61400 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61402         exclude: Fix header file problems.
61403         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61405 2009-12-01  Jim Meyering  <meyering@redhat.com>
61407         fts: fts_open: do not let an empty string cause immediate failure
61408         This is required in support of GNU rm, for which the command
61409         "rm A '' B" must process and remove both A and B, in spite of
61410         the empty string argument.
61411         * lib/fts.c (fts_open): Do not let the presence of an empty string
61412         cause fts_open to fail immediately.  Most fts-using tools must be
61413         able to process all arguments, in order, and can be expected to
61414         diagnose such arguments themselves.
61416 2009-11-30  Eric Blake  <ebb9@byu.net>
61418         utimens: fix compilation error
61419         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61420         Declare variable at right scope.
61422 2009-11-29  Jim Meyering  <meyering@redhat.com>
61424         bootstrap: handle perl-5.11's changed --version output
61425         * build-aux/bootstrap (get_version): Handle perl separately,
61426         since perl-5.11's --version output is different.
61428 2009-11-28  Jim Meyering  <meyering@redhat.com>
61430         userspec: depend on the inttostr module, too
61431         * modules/userspec (Depends-on): Add inttostr.
61433         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61434         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61435         number of MAXUID when it evaluates to (uid_t) -1.
61436         Likewise for group ID.  Reported by Matt McCutchen in
61437         <http://savannah.gnu.org/bugs/?28113>
61439         userspec: reformat to use spaces, not TABs
61440         * lib/userspec.c: Expand TABs to spaces.
61441         Add Emacs' "indent-tabs-mode: nil" hint.
61443 2009-11-27  Eric Blake  <ebb9@byu.net>
61445         getopt-gnu: flush out another BSD bug
61446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61447         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61448         flush out BSD bug.
61449         * tests/test-getopt.h (test_getopt): End lists with NULL.
61450         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61451         (test_getopt_long_posix): Enhance test.
61452         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61453         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61454         getopt-gnu.
61455         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61456         Likewise.
61458 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61460         * modules/idpriv-droptemp-tests (Notice): Fix text.
61462 2009-11-27  Jim Meyering  <meyering@redhat.com>
61464         test-xalloc-die: avoid spurious failure due to libtool argv difference
61465         In a libtool-enabled project, this test would fail due to a difference
61466         in the emitted program name, e.g.,
61467         -test-xalloc-die: memory exhausted
61468         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61469         Use program to avoid that.
61470         * modules/xalloc-die-tests (Depends-on): Add progname.
61471         * tests/test-xalloc-die.c: Include progname.h".
61472         (program_name): Remove decl.
61473         (main): Call set_program_name.
61474         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61476 2009-11-26  Richard Jones  <rjones@redhat.com>
61478         w32sock: leave win32 error in place.
61479         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61481 2009-11-26  Eric Blake  <ebb9@byu.net>
61483         init.sh: suggest to use skip_ and fail_ functions in comments
61484         * tests/init.sh: Add a sentence.
61486 2009-11-25  Bruno Haible  <bruno@clisp.org>
61488         init.sh: add documentation in comments
61489         * tests/init.sh: Add some developer and user documentation.
61491 2009-11-26  Jim Meyering  <meyering@redhat.com>
61493         init.sh: accommodate even those who specify bogus srcdir manually
61494         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61495         configure-time tests to be sanitized, so that there is no need to
61496         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61497         (with no double quotes) suffices.  However, since tests may be
61498         invoked manually, and since you may explicitly set srcdir to the
61499         name of a directory containing spaces, do quote its uses here.
61500         * tests/test-pread.sh: Likewise.
61501         Suggested by Bruno Haible.
61503         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61504         * tests/test-pread.sh: Write no data into the pipe, because
61505         test-pread actually reads none.  This avoids a diagnostic,
61506         "bash: echo: write error: Broken pipe", that arises in the unusual
61507         event something is ignoring SIGPIPE, and might be interpreted
61508         as some sort of failure.  Reported by Bruno Haible.
61510 2009-11-25  Jim Meyering  <meyering@redhat.com>
61512         test-pread: cover failure with ESPIPE and EINVAL
61513         * tests/test-pread.c (main): Test for failure, too.
61514         * tests/test-pread.sh: Invoke with stdin on a pipe.
61515         Suggested by Eric Blake.
61517         pread: improvement and fix
61518         * modules/pread (Depends-on): Depend on lseek, for portability to
61519         e.g., mingw.  Suggested by Eric Blake.
61520         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61522         unistd.in.h: correct declaration of pread
61523         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61524         Reported by Richard W.M. Jones.
61526         test-pread.sh: distribute the test script
61527         * modules/pread-tests (Files): Include test-pread.sh.
61529         test-pread.sh: clean up
61530         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61531         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61532         That is unnecessary, since it's always ".".
61533         Suggestion from Eric Blake.
61535         test-pread.sh: make executable
61536         * tests/test-pread.sh: Set executable bit.
61537         Reported by Eric Blake.
61539         correct typo in test-pread.sh
61540         * tests/test-pread.sh: Add #! line.
61542         test pread
61543         * tests/test-pread.c: New file.
61544         * tests/test-pread.sh: Likewise.
61545         * modules/pread-tests: Likewise.
61547         pread: new module
61548         * modules/pread: New file.
61549         * lib/unistd.in.h (pread): Define/declare.
61550         * lib/pread.c (pread): New file.
61551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61552         * modules/unistd (Makefile.am): Substitute witnesses.
61553         * doc/posix-functions/pread.texi (pread): Update.
61554         * MODULES.html.sh: Add pread.
61556 2009-11-25  Jim Meyering  <meyering@redhat.com>
61558         tests/init.sh: new file to be used via most *.sh tests
61559         * tests/init.sh: New file.
61561 2009-11-25  Eric Blake  <ebb9@byu.net>
61563         utimens: work around older Linux failure with symlinks
61564         * lib/utimens.c (lutimensat_works_really): New variable.
61565         (fdutimens, lutimens): Use it to manage kernels that support
61566         nanosecond times on files, but not on symlinks.
61567         Reported by Ondřej Vašík.
61569         utimes: fix configure grammar
61570         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61572 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61574         regex: Fix fastmap for multibyte character ranges.
61575         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61576         characters when a multibyte character range is included.
61578 2009-11-22  Andy Wingo  <wingo@pobox.com>
61580         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61581         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61583 2009-11-24  Bruno Haible  <bruno@clisp.org>
61585         doc: Most *_l functions exist in MacOS X 10.5.
61586         * doc/posix-functions/duplocale.texi: Update platforms list.
61587         * doc/posix-functions/freelocale.texi: Likewise.
61588         * doc/posix-functions/newlocale.texi: Likewise.
61589         * doc/posix-functions/uselocale.texi: Likewise.
61590         * doc/posix-functions/isalnum_l.texi: Likewise.
61591         * doc/posix-functions/isalpha_l.texi: Likewise.
61592         * doc/posix-functions/isblank_l.texi: Likewise.
61593         * doc/posix-functions/iscntrl_l.texi: Likewise.
61594         * doc/posix-functions/isdigit_l.texi: Likewise.
61595         * doc/posix-functions/isgraph_l.texi: Likewise.
61596         * doc/posix-functions/islower_l.texi: Likewise.
61597         * doc/posix-functions/isprint_l.texi: Likewise.
61598         * doc/posix-functions/ispunct_l.texi: Likewise.
61599         * doc/posix-functions/isspace_l.texi: Likewise.
61600         * doc/posix-functions/isupper_l.texi: Likewise.
61601         * doc/posix-functions/iswalnum_l.texi: Likewise.
61602         * doc/posix-functions/iswalpha_l.texi: Likewise.
61603         * doc/posix-functions/iswblank_l.texi: Likewise.
61604         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61605         * doc/posix-functions/iswctype_l.texi: Likewise.
61606         * doc/posix-functions/iswdigit_l.texi: Likewise.
61607         * doc/posix-functions/iswgraph_l.texi: Likewise.
61608         * doc/posix-functions/iswlower_l.texi: Likewise.
61609         * doc/posix-functions/iswprint_l.texi: Likewise.
61610         * doc/posix-functions/iswpunct_l.texi: Likewise.
61611         * doc/posix-functions/iswspace_l.texi: Likewise.
61612         * doc/posix-functions/iswupper_l.texi: Likewise.
61613         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61614         * doc/posix-functions/isxdigit_l.texi: Likewise.
61615         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61616         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61617         * doc/posix-functions/strcoll_l.texi: Likewise.
61618         * doc/posix-functions/strfmon_l.texi: Likewise.
61619         * doc/posix-functions/strftime_l.texi: Likewise.
61620         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61621         * doc/posix-functions/strxfrm_l.texi: Likewise.
61622         * doc/posix-functions/tolower_l.texi: Likewise.
61623         * doc/posix-functions/toupper_l.texi: Likewise.
61624         * doc/posix-functions/towctrans_l.texi: Likewise.
61625         * doc/posix-functions/towlower_l.texi: Likewise.
61626         * doc/posix-functions/towupper_l.texi: Likewise.
61627         * doc/posix-functions/wcscoll_l.texi: Likewise.
61628         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61629         * doc/posix-functions/wctrans_l.texi: Likewise.
61630         * doc/posix-functions/wctype_l.texi: Likewise.
61631         * doc/glibc-functions/strptime_l.texi: Likewise.
61632         * doc/glibc-functions/strtod_l.texi: Likewise.
61633         * doc/glibc-functions/strtof_l.texi: Likewise.
61634         * doc/glibc-functions/strtol_l.texi: Likewise.
61635         * doc/glibc-functions/strtold_l.texi: Likewise.
61636         * doc/glibc-functions/strtoll_l.texi: Likewise.
61637         * doc/glibc-functions/strtoul_l.texi: Likewise.
61638         * doc/glibc-functions/strtoull_l.texi: Likewise.
61639         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61640         * doc/glibc-functions/wcstod_l.texi: Likewise.
61641         * doc/glibc-functions/wcstof_l.texi: Likewise.
61642         * doc/glibc-functions/wcstol_l.texi: Likewise.
61643         * doc/glibc-functions/wcstold_l.texi: Likewise.
61644         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61645         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61646         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61648 2009-11-24  Bruno Haible  <bruno@clisp.org>
61650         duplocale: Fix logic bug.
61651         * lib/duplocale.c: Don't include <langinfo.h>.
61652         (_NL_LOCALE_NAME): Remove macro.
61653         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61654         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61656 2009-11-23  Jim Meyering  <meyering@redhat.com>
61658         test-update-copyright: don't hard-code /usr/bin/perl
61659         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61660         perl to print the current year.  Gilles Espinasse reported that
61661         the replaced use of perl was hard-coded as /usr/bin/perl.
61663 2009-11-23  Bruno Haible  <bruno@clisp.org>
61665         duplocale: Add support for glibc 2.3.x.
61666         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61668 2009-11-22  Bruno Haible  <bruno@clisp.org>
61670         vasnprintf: Tiny optimization.
61671         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61672         MacOS X.
61674 2009-11-22  Bruno Haible  <bruno@clisp.org>
61676         Tests for module 'duplocale'.
61677         * modules/duplocale-tests: New file.
61678         * tests/test-duplocale.c: New file.
61680         New module 'duplocale'.
61681         * m4/duplocale.m4: New file.
61682         * lib/locale.in.h (duplocale): New declaration.
61683         * lib/duplocale.c: New file.
61684         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61685         gl_LOCALE_H_DEFAULTS): New macros.
61686         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61687         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61688         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61689         REPLACE_DUPLOCALE.
61690         * modules/duplocale: New file.
61691         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61693 2009-11-22  Bruno Haible  <bruno@clisp.org>
61695         * modules/locale-tests (configure.ac): Test for newlocale function.
61696         * tests/test-locale.c: When the system has extended locale functions,
61697         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61699         locale: Make locale_t available when possible.
61700         * lib/locale.in.h: Include <xlocale.h> when it exists.
61701         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61702         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61703         * modules/locale (Depends-on): Add extensions.
61704         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61705         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61707 2009-11-22  Bruno Haible  <bruno@clisp.org>
61709         Add comments.
61710         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61711         invocation.
61712         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61713         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61714         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61716 2009-11-22  Bruno Haible  <bruno@clisp.org>
61718         error: account for the possibility of freopen (stdout).
61719         * lib/error.c: Include <unistd.h>.
61720         (flush_stdout): New function, extracted from error and error_at_line.
61721         Determine stdout's fd dynamically.
61722         (error, error_at_line): Invoke flush_stdout.
61723         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61724         * modules/error (Depends-on): Add unistd.
61726 2009-11-22  Bruno Haible  <bruno@clisp.org>
61728         diffseq: Add comment.
61729         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61731 2009-11-22  Jim Meyering  <meyering@redhat.com>
61733         c-stack: avoid defining an unused static function
61734         * lib/c-stack.c (find_stack_direction): Do not define this function
61735         when it will not be used.
61737         diffseq: avoid spurious gcc warnings
61738         * lib/diffseq.h (IF_LINT2): Define.
61739         (compareseq): Use it to initialize two members of "part".
61740         This avoids two used-uninitialized warnings.
61742 2009-11-21  Jim Meyering  <meyering@redhat.com>
61744         c-stack: avoid "ignoring return value of `write'" warning
61745         * lib/c-stack.c: Include "ignore-value.h".
61746         (die): Explicitly ignore each write return value.
61747         * modules/c-stack (Depends-on): Add ignore-value.
61749 2009-11-21  Bruno Haible  <bruno@clisp.org>
61751         diffseq: reduce scope of variable 'best'.
61752         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61753         variable, earlier used for two different purposes.
61755 2009-11-21  Jim Meyering  <meyering@redhat.com>
61757         diffseq: remove useless assignment to "best"
61758         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61759         assignment.  At that point "best" is already guaranteed to be zero.
61761 2009-11-20  Eric Blake  <ebb9@byu.net>
61763         build: mention ftp redirector in release announcements
61764         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61765         values that used to come from cfg.mk; mention FTP redirect URL.
61766         * build-aux/announce-gen: Mention the mirror list.
61767         Suggested by Karl Berry.
61769         nanosleep: improve port to mingw
61770         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61772         LIB_NANOSLEEP, but only when needed.
61773         * modules/select (Link): Document LIBSOCKET.
61774         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61775         enough.
61777         nanosleep: work around cygwin bug
61778         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61779         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61780         bug.
61781         (getnow): Delete, not needed.
61782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61783         LIB_CLOCK_GETTIME.
61784         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61785         clock-time, gettime.
61786         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61787         bug.
61788         * modules/nanosleep-tests: New test.
61789         * tests/test-nanosleep.c: New file.
61791         sleep: work around cygwin bug
61792         * lib/sleep.c (rpl_sleep): Work around the bug.
61793         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61794         (gl_PREREQ_SLEEP): Delete unused macro.
61795         * modules/sleep (Depends-on): Add verify.
61796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61797         * modules/unistd (Makefile.am): Substitute witness.
61798         * lib/unistd.in.h (sleep): Update prototype.
61799         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61800         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61801         * modules/sleep-tests (Depends-on): Check for alarm.
61803 2009-11-20  Jim Meyering  <meyering@redhat.com>
61805         maint.mk: improve sc_prohibit_magic_number_exit
61806         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61807         so it does not match uses like System.exit(1).
61808         Add comments showing how to correct all offenders.
61810 2009-11-19  Eric Blake  <ebb9@byu.net>
61812         xalloc-die-tests: add missing library
61813         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61815         test-xvasprintf: silence compiler warnings
61816         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61817         empty string from gcc.
61819 2009-11-19  Jim Meyering  <meyering@redhat.com>
61821         xfreopen: new module, from coreutils
61822         * modules/xfreopen: New module.
61823         * lib/xfreopen.c: New file.
61824         * lib/xfreopen.h: New file.
61825         * MODULES.html.sh (File stream based Input/Output"): Add it.
61827 2009-11-19  Eric Blake  <ebb9@byu.net>
61829         manywarnings: depend on warnings
61830         * modules/manywarnings (Depends-on): Add warnings.
61832         build: avoid compiler warnings
61833         * lib/select.c (rpl_select): Delete unused variable.
61834         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61836 2009-11-18  Eric Blake  <ebb9@byu.net>
61838         tests: avoid false negative with --with-packager
61839         * tests/test-version-etc.sh: Discard packager information.
61840         * tests/test-argp-version-etc-1.sh: Likewise.
61841         Reported by Mike Frysinger.
61843         utimens: fix regression on Solaris
61844         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61845         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61846         can only change fd timestamps via futimesat.  Instead, use an
61847         additional witness macro to avoid BSD bug.
61848         Reported by Jim Meyering.
61850 2009-11-17  Eric Blake  <ebb9@byu.net>
61852         usleep: use it to simplify tests
61853         * modules/stat-time-tests (Depends-on): Add usleep.
61854         (configure.ac): Drop usleep check.
61855         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61856         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61857         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61858         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61859         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61860         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61861         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61862         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61863         Likewise.
61864         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61865         * tests/test-lchown.h (nap): Likewise.
61866         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61867         * tests/test-stat-time.c (nap): Likewise.
61868         * tests/test-utimens-common.h (nap): Update comments.
61870         usleep: new module
61871         * modules/usleep: New file.
61872         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61873         * lib/usleep.c (usleep): Likewise.
61874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61875         * modules/unistd (Makefile.am): Substitute witnesses.
61876         * lib/unistd.in.h (usleep): Add declaration.
61877         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61878         * MODULES.html.sh (Date and time): Likewise.
61879         * modules/usleep-tests (Depends-on): New test.
61880         * tests/test-usleep.c: New file.
61882         chown: work around OpenBSD bug
61883         * lib/chown.c (rpl_chown): Work around the bug.
61884         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61885         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61886         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61887         * modules/chown (Depends-on): Add stdbool.
61888         * modules/lchown (Depends-on): Likewise.
61889         * doc/posix-functions/chown.texi (chown): Document the bug.
61890         * doc/posix-functions/lchown.texi (lchown): Likewise.
61891         * tests/test-lchown.h (test_chown): Relax test.
61893         mkstemp: avoid conflict with C++ keyword template
61894         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61895         * lib/mkostemp.c (mkostemp): Likewise.
61896         * lib/mkostemps.c (mkostemps): Likewise.
61897         * lib/mkstemp.c (mkstemp): Likewise.
61898         * lib/mkstemps.c (mkstemps): Likewise.
61900         xalloc-die-tests: optimize
61901         * tests/test-xalloc-die.sh: Reduce number of processes.
61903 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61905         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61906         patch from ludo@gnu.org (Ludovic Courtès).
61908 2009-11-17  Jim Meyering  <meyering@redhat.com>
61910         version-etc: use proper license string
61911         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61912         * modules/version-etc-fsf: Likewise.
61914 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61916         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61917         printed to stdout.  Deal with EOL differences.
61919 2009-11-17  Eric Blake  <ebb9@byu.net>
61921         unsetenv: work around Solaris bug
61922         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61923         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61924         Reported by Jim Meyering.
61926         vasnprintf: avoid compiler warnings
61927         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61928         variables.
61929         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61931 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61933         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61934         settings since xalloc-die is no longer the self test,
61935         xalloc-die.sh is.
61937 2009-11-17  Jim Meyering  <meyering@redhat.com>
61939         test-xalloc-die.sh: make the code agree with the commit log
61940         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61941         at the end, just in case you happen to have a test-xalloc-die
61942         program in some other PATH directory.
61944         test-xalloc-die.sh: fix a portability bug
61945         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61946         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61947         Otherwise, argv[0] (as often seen in diagnostics) would be too
61948         system-dependent, sometimes with, and sometimes without the leading "./".
61950         version-etc-fsf: relax license to LGPLv3+
61951         * modules/version-etc-fsf (License): Relax license.
61953 2009-11-16  Eric Blake  <ebb9@byu.net>
61955         xalloc-die-tests: avoid printing null pointer
61956         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61957         shell script.
61958         * tests/test-xalloc-die.c (program_name): Declare.
61959         * tests/test-xalloc-die.sh (tmpfiles): New file.
61961         setenv, unsetenv: work around various bugs
61962         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61963         (setenv) [HAVE_SETENV]: Work around bugs.
61964         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61965         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61966         for bugs.
61967         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61968         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61970         * modules/stdlib (Makefile.am): Update substitutions.
61971         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61972         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61973         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61974         * modules/setenv-tests: New test.
61975         * modules/unsetenv-tests: Likewise.
61976         * tests/test-setenv.c: New file.
61977         * tests/test-unsetenv.c: Likewise.
61979 2009-11-16  Jim Meyering  <meyering@redhat.com>
61981         version-etc: relax license to LGPLv3+
61982         * modules/version-etc (License): Relax license.
61984         better AC_REQUIRE expanded-before-required-warning avoidance
61985         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61986         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61987         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61988         which is no longer needed.
61990 2009-11-16  Eric Blake  <ebb9@byu.net>
61992         test-freading: clean up temporary file
61993         * tests/test-freading.c (main): Remove file on success, and use
61994         ASSERT more liberally.
61995         Reported by Jim Meyering.
61997 2009-11-16  Jim Meyering  <meyering@redhat.com>
61999         avoid new AC_REQUIRE expanded-before-required warnings
62000         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
62001         merely using it.
62002         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
62003         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
62005 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62007         * tests/test-xalloc-die.c: New file.
62008         * modules/xalloc-die-tests: New file.
62009         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
62010         XFAIL_TESTS so it can be appended by modules.
62012 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62014         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
62015         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
62017 2009-11-14  Eric Blake  <ebb9@byu.net>
62019         fnmatch: avoid compiler warning
62020         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
62021         to silence compiler warning about mismatch signedness in ?:.
62022         Reported by Robert Millan.
62024         intprops: add double-inclusion guard
62025         * lib/intprops.h: Allow idempotent includes.
62026         Suggested by Bruce Korb.
62028         openat: detect Solaris fchownat bug
62029         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
62030         penalizing glibc chownat when only lchownat is broken.
62031         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
62032         trailing slash bugs.
62033         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
62034         * modules/openat-tests (Files): Include more files.
62035         (Depends-on): Add mgetgroups, sleep, stat-time.
62036         (configure.ac): Add additional checks.
62037         (Makefile.am): Build new test.
62038         * tests/test-fchownat.c: New file.
62040         lchown: detect Solaris and FreeBSD bug
62041         * lib/lchown.c (rpl_lchown): Work around bug.
62042         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
62043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62044         * modules/unistd (Makefile.am): Populate it.
62045         * lib/unistd.in.h (lchown): Update declaration.
62046         * doc/posix-functions/lchown.texi (lchown): Document the bug.
62047         * modules/lchown-tests: New file.
62048         * tests/test-lchown.h (test_lchown): Likewise.
62049         * tests/test-lchown.c (main): Likewise.
62051         chown: detect Solaris and FreeBSD bug
62052         * lib/chown.c (rpl_chown): Work around bug.
62053         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
62054         (gl_PREREQ_CHOWN): Delete.
62055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62056         * modules/unistd (Makefile.am): Populate it.
62057         * lib/unistd.in.h (chown): Update declaration.
62058         * lib/lchown.c (chown): Update client.
62059         * modules/lchown (Depends-on): Add lstat.
62060         * doc/posix-functions/chown.texi (chown): Document the bug.
62061         * doc/posix-functions/getgroups.texi (getgroups): Document
62062         getgroups pitfall.
62063         * modules/chown-tests: New file.
62064         * tests/test-chown.h (test_chown): Likewise.
62065         * tests/test-chown.c (main): Likewise.
62067 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
62069         gnulib-tool: correctly detect absence of m4 directories
62070         * gnulib-tool: Avoid extra newline on data passed to wc -l.
62072 2009-11-14  Jim Meyering  <meyering@redhat.com>
62074         maint.mk: Prohibit inclusion of "xalloc.h" without use.
62075         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62077 2009-11-14  John W. Eaton  <jwe@gnu.org>
62079         strftime.h: wrap function declaration in extern "C" block
62080         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
62082 2009-11-13  Eric Blake  <ebb9@byu.net>
62084         getgroups: avoid compiler warning
62085         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
62087         getgroups: work around FreeBSD bug
62088         * lib/getgroups.c (rpl_getgroups): Work around the bug.
62089         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
62090         * doc/posix-functions/getgroups.texi (getgroups): Document it.
62091         * tests/test-getgroups.c (main): Fix buffer overrun.
62093         getgroups: avoid compilation failure
62094         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
62095         * modules/getgroups (Depends-on): Add stdint.
62097 2009-11-13  Jim Meyering  <meyering@redhat.com>
62099         test-getgroups: avoid compilation failure
62100         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
62102 2009-11-13  Eric Blake  <ebb9@byu.net>
62104         mgetgroups: new module, taken from coreutils
62105         * modules/mgetgroups: New file.
62106         * lib/mgetgroups.h: Likewise.
62107         * lib/mgetgroups.c (mgetgroups): Likewise.
62108         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
62109         * MODULES.html.sh (Users and groups): Mention it.
62111         getgroups: don't expose GETGROUPS_T to user
62112         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
62113         an element at a time if GETGROUPS_T is wrong size.
62114         * lib/getugroups.h (getugroups): Change signature.
62115         * lib/unistd.in.h (getgroups): Likewise.
62116         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
62117         signature needs fixing.
62118         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
62119         AC_TYPE_GETGROUPS.
62120         * modules/group-member (Depends-on): Add getgroups.
62121         * lib/group-member.c (group_info, get_group_info): Use gid_t.
62122         (group_member): Rely on getgroups replacement.
62123         * lib/getugroups.c (getugroups): Use gid_t.
62124         * tests/test-getgroups.c (main): Likewise.
62125         * NEWS: Mention the signature change.
62126         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62127         problem with signature.
62128         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62129         GETGROUPS_T is still useful for setgroups.
62131         getgroups, getugroups: provide stubs for mingw
62132         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62133         * lib/getugroups.c (getugroups): Likewise.
62134         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62135         function.  Modernize replacement scheme.
62136         (gl_PREREQ_GETGROUPS): Delete.
62137         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62138         * modules/getgroups (configure.ac): Declare witness.
62139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62140         * modules/unistd (Depends-on): Substitute witness.
62141         * lib/unistd.in.h (getgroups): Declare replacement.
62143         getgroups: avoid calling exit
62144         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62145         drop xalloc.
62146         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62147         dependencies.
62148         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62149         exiting, in the rare case of malloc failure.
62151         getgroups: fix logic error
62152         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62153         has more than 20 groups.
62154         * modules/getgroups-tests: New test.
62155         * tests/test-getgroups.c: New file.
62157 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62159         * tests/test-base64.c: Improve.
62161 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62163         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62164         Blake <ebb9@byu.net>.
62166 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62168         * tests/test-xvasprintf.c: Add %s%s related checks.
62170 2009-11-12  Eric Blake  <ebb9@byu.net>
62172         version-etc: match standards.texi style
62173         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62174         and use <> only for URLs.
62176 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62178         fts: do not fail on a submount during traversal
62179         * lib/fts.c (fts_build): Read the stat info again after opening
62180         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62181         Original report at http://bugzilla.redhat.com/501848.
62183 2009-11-12  Jim Meyering  <meyering@redhat.com>
62185         bootstrap: sync from coreutils
62186         * build-aux/bootstrap (bootstrap_epilogue): New function.
62187         Use git_modules_config in one more place.  This make bootstrap's
62188         --gnulib-srcdir option more useful for testing.
62190         bootstrap: generalize autoheader check
62191         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62192         AC_CONFIG_HEADERS.
62194 2009-11-11  Eric Blake  <ebb9@byu.net>
62196         mkfifoat: use new modules for Solaris and BSD bugs
62197         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62198         * lib/mkfifoat.c (mknodat): Split...
62199         * lib/mknodat.c (mknodat): ...into new file.
62200         * modules/mkfifoat (Files): Ship new file.
62201         (Depends-on): Add mkfifo, mknod.
62202         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62203         (Depends-on): Add symlink.
62204         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62205         redundant with test_mkfifo.h.
62206         (do_mkfifoat, do_mknodat): New helpers.
62208         mknod: new module
62209         * modules/mknod: New file.
62210         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62211         * lib/mknod.c (mknod): Likewise.
62212         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62213         defaults.
62214         * modules/sys_stat (Makefile.am): Substitute them.
62215         * lib/sys_stat.in.h (mknod): Declare replacement.
62216         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62217         Document it.
62218         * doc/posix-functions/mknod.texi (mknod): Likewise.
62219         * modules/mknod-tests: New test.
62220         * tests/test-mknod.c: Likewise.
62222         mkfifo: new module
62223         * modules/mkfifo: New file.
62224         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62225         * lib/mkfifo.c (mkfifo): Likewise.
62226         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62227         defaults.
62228         * modules/sys_stat (Makefile.am): Substitute them.
62229         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62230         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62231         Document it.
62232         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62233         * modules/mkfifo-tests: New test.
62234         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62235         from test-mkfifoat.c.
62236         * tests/test-mkfifo.c: New file.
62238         readlink: detect FreeBSD bug
62239         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62240         slash on symlink.
62241         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62242         * tests/test-readlink.h (test_readlink): Enhance test.
62244         symlink: detect FreeBSD bug
62245         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62246         slash on symlink.
62247         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62248         * tests/test-symlink.h (test_symlink): Enhance test.
62250 2009-11-10  Eric Blake  <ebb9@byu.net>
62252         link: detect FreeBSD bug
62253         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62254         symlink.
62255         * doc/posix-functions/link.texi (link): Document the bug.
62256         * tests/test-link.h (test_link): Enhance test.
62257         * tests/test-linkat.c (main): Update caller.
62259         unlink, remove: detect FreeBSD bug
62260         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62261         slash on symlink.
62262         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62263         * doc/posix-functions/remove.texi (remove): Likewise.
62264         * tests/test-unlink.h (test_unlink): Enhance test.
62265         * tests/test-remove.c (main): Likewise.
62267 2009-11-09  Eric Blake  <ebb9@byu.net>
62269         rename: detect FreeBSD bug
62270         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62271         slash on symlink.
62272         * modules/renameat-tests (Depends-on): Add filenamecat.
62273         * tests/test-rename.h (test_rename): Allow one more errno.
62274         * tests/test-renameat.c (main): Likewise.
62275         * doc/posix-functions/rename.texi (rename): Document the bug.
62277         open: detect FreeBSD bug
62278         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62279         symlink.
62280         * doc/posix-functions/open.texi (open): Document the bug.
62281         * doc/posix-functions/utimes.texi (utimes): Likewise.
62282         * tests/test-open.h (test_open): Add parameters, and test symlink
62283         handling.
62284         * tests/test-open.c (main): Adjust caller.
62285         * tests/test-fcntl-safer.c (main): Likewise.
62286         * modules/open-tests (Depends-on): Add stdbool, symlink.
62287         * modules/fcntl-safer-tests (Depends-on): Likewise.
62288         * tests/test-openat.c (main): Add test-open tests.
62290         stat: detect FreeBSD bug
62291         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62292         symlink.
62293         * doc/posix-functions/stat.texi (stat): Document the bug.
62294         * tests/test-stat.h (test_stat_func): Add argument.
62295         * tests/test-stat.c (main): Adjust caller.
62296         * tests/test-fstatat.c (main): Likewise.
62297         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62298         Reported by Jim Meyering.
62300 2009-11-09  James Youngman  <jay@gnu.org>
62302         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62303         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62305 2009-11-08  Jim Meyering  <meyering@redhat.com>
62307         utimens: remove invalid futimesat call
62308         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62309         It used the file descriptor of the target file as the DIR_FD
62310         parameter and NULL as the file name.  That caused failure with
62311         errno == EFAULT on FreeBSD-8.0-rc2
62313 2009-11-07  Eric Blake  <ebb9@byu.net>
62315         fflush, freadseek: use fseeko, not fseek
62316         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62317         (clear_ungetc_buffer): Avoid potential problems on large files.
62318         * lib/freadseek.c (freadseek): Likewise.
62319         * modules/freadseek (Depends-on): Add fseeko.
62320         * modules/fseek (configure.ac): Set a witness.
62321         * tests/test-fflush.c (main): Use fseeko.
62322         * tests/test-fpurge.c (fseek): Disable link warning.
62323         * tests/test-freadable.c (fseek): Likewise.
62324         * tests/test-freading.c (fseek): Likewise.
62325         * tests/test-fseeko.c (fseek): Likewise.
62326         * tests/test-ftell.c (fseek): Likewise.
62327         * tests/test-ftello.c (fseek): Likewise.
62328         * tests/test-fwritable.c (fseek): Likewise.
62329         * tests/test-fwriting.c (fseek): Likewise.
62331 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62333         * modules/memchr (Depends-on): Drop getpagesize dependency.
62335 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62337         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62338         Reported by Ludovic Courtès.
62339         * build-aux/pmccabe2html: Improve example usage.
62340         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62342 2009-11-06  Jim Meyering  <meyering@redhat.com>
62344         do-release-commit-and-tag: New module.
62345         Automate the release-commit and tag process.
62346         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62347         * modules/do-release-commit-and-tag: New file.
62348         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62350 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62352         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62353         because test-select.c uses inet_pton.
62355 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62357         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62358         GETADDRINFO_LIB.  Bump serial number.
62359         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62360         Suggested by Eric Blake <ebb9@byu.net>.
62362 2009-11-05  Eric Blake  <ebb9@byu.net>
62364         strtod: detect darwin bug
62365         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62366         Reported by Leo Davis.
62368         freopen-safer: new module
62369         * modules/freopen-safer: New module.
62370         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62371         * lib/freopen-safer.c (freopen_safer): New file.
62372         * lib/stdio-safer.h (freopen_safer): New declaration.
62373         * lib/stdio--.h (freopen): New override.
62374         * MODULES.html.sh (File stream based Input/Output): Mention it.
62375         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62376         freopen-safer module.
62377         * doc/posix-functions/stderr.texi (stderr): Likewise.
62378         * doc/posix-functions/stdin.texi (stdin): Likewise.
62379         * doc/posix-functions/stdout.texi (stdout): Likewise.
62380         * modules/freopen-safer-tests: New test.
62381         * tests/test-reopen-safer.c: New file.
62383 2009-11-05  Jim Meyering  <meyering@redhat.com>
62385         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62386         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62388 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62390         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62392 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62394         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62396 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62398         Fix link error.
62399         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62400         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62402 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62404         * tests/test-func.c: Also test value of __func__.
62406 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62408         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62409         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62411 2009-11-05  Bruno Haible  <bruno@clisp.org>
62413         Fix link error.
62414         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62415         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62416         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62418 2009-11-05  Bruno Haible  <bruno@clisp.org>
62420         Tests for module 'inet_pton'.
62421         * modules/inet_pton-tests: New file.
62422         * tests/test-inet_pton.c: New file.
62424 2009-11-05  Bruno Haible  <bruno@clisp.org>
62426         Tests for module 'inet_ntop'.
62427         * modules/inet_ntop-tests: New file.
62428         * tests/test-inet_ntop.c: New file.
62430 2009-11-04  Eric Blake  <ebb9@byu.net>
62432         stdlib-safer: wrap all mkstemp variants
62433         * modules/mkostemp (configure.ac): Set witness.
62434         * modules/mkostemps (configure.ac): Likewise.
62435         * modules/mkstemps (configure.ac): Likewise.
62436         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62437         (mkstemps_safer): Wrap more functions.
62438         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62439         wrapping.
62440         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62441         (mkstemps_safer): Implement the wrappers.
62443         mkstemps, mkostemps: new modules
62444         * modules/mkostemps: New module.
62445         * modules/mkstemps: Likewise.
62446         * lib/mkostemps.c (mkostemps): New file.
62447         * lib/mkstemps.c (mkstemps): Likewise.
62448         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62449         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62451         * modules/stdlib (Makefile.am): Substitute them.
62452         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62453         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62454         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62455         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62456         * MODULES.html.sh (File system functions): Mention them.
62458         tempname: resync from glibc
62459         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62460         same values for __GT_FILE as glibc.  Abort even when assertions
62461         are disabled.
62462         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62463         match its value otherwise.  Allow idempotent inclusion.
62464         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62465         * lib/mkostemp.c (mkostemp): Likewise.
62466         * lib/mkstemp.c (mkstemp): Likewise.
62467         * lib/tmpfile.c (tmpfile): Likewise.
62468         * NEWS: Document this.
62470         utimens: fix use of futimens on older Linux
62471         * lib/utimens.c (fdutimens): Use updated, rather than original,
62472         timespec to avoid bug in older Linux kernel.
62473         Reported by Simon Josefsson.
62475 2009-11-04  Bruno Haible  <bruno@clisp.org>
62477         Make num_processors more flexible and consistent.
62478         * lib/nproc.h (enum nproc_query): New type.
62479         (num_processors): Add a 'query' argument.
62480         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62481         (num_processors): Add a 'query' argument. Test the value of the
62482         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62483         mingw, count the number of CPUs available for the current process.
62484         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62485         Check for sched_getaffinity and sched_getaffinity_np.
62486         * modules/nproc (Depends-on): Add c-ctype, extensions.
62487         * NEWS: Mention the change.
62489 2009-11-03  Bruno Haible  <bruno@clisp.org>
62491         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62493 2009-11-03  Jim Meyering  <meyering@redhat.com>
62495         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62496         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62497         if it is defined.
62499 2009-11-02  Eric Blake  <ebb9@byu.net>
62501         mktime, timegm: share common declaration
62502         * lib/mktime-internal.h: New file.
62503         * lib/mktime.c: Use it rather than open-coding a declaration.
62504         * lib/timegm.c: Likewise.
62505         * modules/mktime (Files): Ship it.
62506         * modules/timegm (Files): Likewise.
62507         Suggested by Bruno Haible.
62509         test-update-copyright: update test to match script changes
62510         * tests/test-update-copyright.sh: Avoid hard-coding perl
62511         location.  Don't update *.bak created by earlier runs.
62513 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62514             Simon Josefsson  <simon@josefsson.org>
62515             Bruno Haible  <bruno@clisp.org>
62517         Fix link error on Solaris 8.
62518         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62519         also in libnsl. Define also INET_PTON_LIB.
62520         * modules/inet_pton (Link): New section.
62522 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62523             Bruno Haible  <bruno@clisp.org>
62525         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62526         * modules/inet_ntop (Link): New section.
62527         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62529 2009-11-02  Eric Blake  <ebb9@byu.net>
62531         maint: avoid compiler warnings in m4 macros
62532         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62533         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62535 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62537         * m4/pmccabe2html.m4: Remove file.
62538         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62539         function.  Change maintainer.
62540         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62541         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62542         Courtès).
62544 2009-10-31  Eric Blake  <ebb9@byu.net>
62546         fseeko: fix m4 regression
62547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62548         regression from 2009-10-27.
62549         Reported by Ralf Wildenhues.
62551 2009-10-31  Jim Meyering  <meyering@redhat.com>
62553         inttostr: aesthetics and improved (compile-time) safety
62554         Define inttype_is_signed rather than inttype_is_unsigned,
62555         since the sole use is via "#if inttype_is_signed".
62556         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62557         inttype_is_unsigned.
62558         * lib/offtostr.c (inttype_is_signed): Likewise.
62559         * lib/uinttostr.c (inttype_is_signed): Likewise.
62560         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62561         * lib/inttostr.c (inttostr): Use verify to cross-check the
62562         inttype_is_signed value and the signedness of the actual type.
62563         * modules/inttostr (Depends-on): Add verify.
62565 2009-10-30  Eric Blake  <ebb9@byu.net>
62567         build: avoid compiler warnings
62568         * lib/fchmodat.c (lchmod): Mark unused variables.
62569         * lib/getopt.c (_getopt_initialize): Likewise.
62570         * lib/mktime.c (__mktime_internal): Provide prototype.
62571         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62572         older gcc that do not understand #pragma GCC diagnostic.
62573         * lib/uinttostr.c (inttype_is_unsigned): Define.
62574         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62576 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62578         stat: fix compilation on AIX
62579         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62580         only see struct stat64.
62582 2009-10-30  Eric Blake  <ebb9@byu.net>
62584         exclude: make more robust
62585         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62586         rather than masking a coding bug.
62587         Suggested by Bruno Haible.
62589 2009-10-30  Jim Meyering  <meyering@redhat.com>
62591         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62592         Rather than putting #!/usr/bin/perl on the first line,
62593         start with a variant of what's recommended by "man perlrun" that
62594         invokes the first "perl" program from your shell's search path.
62595         * build-aux/gitlog-to-changelog: Replace #!... as above.
62596         Add a "Local Variables" perl mode setting.
62597         Prompted by a patch from Ludovic Courtès.
62598         Improved by Eric Blake.
62599         * build-aux/useless-if-before-free: Likewise.
62600         * build-aux/announce-gen: Likewise.
62601         * build-aux/update-copyright: Likewise.
62603 2009-10-29  Eric Blake  <ebb9@byu.net>
62605         filenamecat-lgpl: adjust clients
62606         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62607         filenamecat.
62608         * modules/renameat (Depends-on): Likewise.
62610         filenamecat: split into filenamecat-lgpl
62611         * modules/filenamecat-lgpl: New module.
62612         * modules/filenamecat (Files): Move library-safe files into
62613         filenamecat-lgpl.
62614         (Depends-on): Add filenamecat-lgpl.
62615         (configure.ac): Declare witness.
62616         * lib/filenamecat.h (file_name_concat): Only declare when using
62617         GPL module.
62618         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62619         Move...
62620         * lib/filenamecat-lgpl.c: ...into new file.
62621         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62622         (gl_FILE_NAME_CONCAT): Use it.
62623         * MODULES.html.sh (File system functions): Mention new module.
62625         argp: avoid memory leak
62626         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62627         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62628         base_name, since the latter malloc()s and can call exit().
62629         Leak introduced 2006-07-03.
62631         dirname-lgpl: adjust clients that don't need full dirname
62632         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62633         * modules/filenamecat (Depends-on): Likewise.
62634         * modules/linkat (Depends-on): Likewise.
62635         * modules/mkancesdirs (Depends-on): Likewise.
62636         * modules/mkdir (Depends-on): Likewise.
62637         * modules/openat (Depends-on): Likewise.
62638         * modules/savewd (Depends-on): Likewise.
62639         * modules/rename (Depends-on): Likewise.
62640         (License): Relax license.
62641         * modules/mkdir-tests (Depends-on): Drop progname.
62642         (Makefile.am): Delete unneeded LDADD.
62643         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62645         dirname: split into dirname-lgpl
62646         * modules/dirname-lgpl: New module.
62647         * modules/dirname (Files): Move library-safe files into
62648         dirname-lgpl.
62649         (Depends-on): Add dirname-lgpl.
62650         (configure.ac): Declare witness.
62651         * modules/double-slash-root (License): Relax license.
62652         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62653         module.
62654         * lib/dirname.c (dir_len, mdir_name): Move...
62655         * lib/dirname-lgpl.c: ...into new file.
62656         * lib/basename.c (last_component, base_len): Move...
62657         * lib/basename-lgpl.c: ...into new file.
62658         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62659         (gl_DIRNAME): Use it.
62660         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62661         Mention new module.
62662         * modules/dirname-tests (Depends-on): Add progname.
62663         * tests/test-dirname.c (program_name): Delete.
62665         mkdir: make safe for libraries
62666         * modules/mkdir (Depends-on): Drop xalloc.
62667         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62668         exit.
62670         tests: avoid some compiler warnings
62671         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62672         literals.
62673         * tests/test-memchr.c (main): Avoid type mismatch.
62674         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62675         * tests/test-base64.c (main): Likewise.
62676         * tests/test-getdelim.c (main): Likewise.
62677         * tests/test-gethostname.c (main): Likewise.
62678         * tests/test-getline.c (main): Likewise.
62679         * tests/test-netinet_in.c (main): Likewise.
62680         * tests/test-select.c (open_server_socket, main): Likewise.
62681         * tests/test-select-stdin.c (main): Likewise.
62682         * tests/test-sockets.c (main): Likewise.
62683         * tests/test-strsignal.c (main): Likewise.
62684         * tests/test-sys_select.c (main): Likewise.
62685         * tests/test-sys_socket.c (main): Likewise.
62686         * tests/test-u64.c (main): Likewise.
62687         * tests/test-xfprintf-posix.c (main): Likewise.
62688         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62690         sockets: avoid compiler warning
62691         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62693         maint: detect usage(1) and other suspicious exits
62694         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62696 2009-10-29  Jim Meyering  <meyering@redhat.com>
62698         timespec: long-to-int truncation could make timespec_cmp malfunction
62699         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62700         a multiple of 2^32 nanoseconds as no difference.
62702 2009-10-28  Jim Meyering  <meyering@redhat.com>
62704         fprintftime: wrap macro code argument in "do {...} while(0)"
62705         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62706         cpy macro must be a statement that can be followed by a semicolon.
62707         Now that the else clause contains a comment and is hence longer
62708         than one line, I require curly braces.  That in turn requires
62709         that we wrap this code block in the standard do...while(0).
62711         fprintftime: remove stray semicolon from previous change
62712         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62714         fprintftime: avoid a warning about ignored fwrite return value
62715         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62716         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62717         that is unsafe.
62718         * modules/fprintftime (Depends-on): Add ignore-value.
62720         exclude: avoid an unwarranted warning
62721         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62723 2009-10-27  Eric Blake  <ebb9@byu.net>
62725         fseek: avoid compilation failure when fflush is replaced
62726         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62727         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62728         module is in use.
62729         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62730         module is not in use; since REPLACE_FSEEK worked otherwise.
62731         (GNULIB_FTELLO): Likewise for ftell.
62732         Reported by Ian Beckwith and others.
62734 2009-10-27  Bruno Haible  <bruno@clisp.org>
62736         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62737         Reported by Jim Meyering.
62739 2009-10-27  Jim Meyering  <jim@meyering.net>
62740             Bruno Haible  <bruno@clisp.org>
62742         Avoid warning despite dropping the return value of fwrite.
62743         * lib/unicodeio.c: Include ignore-value.h.
62744         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62745         * modules/unicodeio (Depends-on): Add ignore-value.
62747 2009-10-26  Eric Blake  <ebb9@byu.net>
62749         areadlinkat: fix fallback path
62750         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62751         pointer and zero.
62753 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62755         Use a better IO block size for modern systems
62756         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62757         * lib/md2.c: Likewise.
62758         * lib/md4.c: Likewise.
62759         * lib/md5.c: Likewise.
62760         * lib/sha1.c: Likewise.
62761         * lib/sha256.c: Likewise.
62762         * lib/sha512.c: Likewise.
62764 2009-10-22  Eric Blake  <ebb9@byu.net>
62766         tests: avoid several compiler warnings
62767         * tests/test-getcwd.c (main): Avoid buffer underflow.
62768         * tests/test-getdate.c (main): String literals are not safe with
62769         putenv, so use setenv.  Declare unused argument.
62770         * modules/getdate-tests (Depends-on): Add setenv.
62771         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62772         problems with string literals in char *.
62773         * tests/test-hash.c (main): Avoid shadowing declaration.
62774         (insert_new): Treat string literals as char const *.
62775         * tests/test-getopt.h (test_getopt): Likewise.
62776         (getopt_loop): Alter types to minimize casting elsewhere.
62777         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62778         (test_getopt_long_posix): Likewise.
62779         (do_getopt_long): Add wrapper to minimize casting.
62780         * tests/test-atexit.c (clear_temp_file): Use void.
62781         * tests/test-areadlink-with-size.c (main): Declare unused
62782         arguments.
62783         * tests/test-areadlink.c (main): Likewise.
62784         * tests/test-areadlinkat-with-size.c (main): Likewise.
62785         * tests/test-areadlinkat.c (main): Likewise.
62786         * tests/test-canonicalize-lgpl.c (main): Likewise.
62787         * tests/test-canonicalize.c (main): Likewise.
62788         * tests/test-dirent-safer.c (main): Likewise.
62789         * tests/test-dirname.c (main): Likewise.
62790         * tests/test-dup2.c (main): Likewise.
62791         * tests/test-fchdir.c (main): Likewise.
62792         * tests/test-fcntl-h.c (main): Likewise.
62793         * tests/test-fcntl-safer.c (main): Likewise.
62794         * tests/test-fdopendir.c (main): Likewise.
62795         * tests/test-fdutimensat.c (main): Likewise.
62796         * tests/test-fflush.c (main): Likewise.
62797         * tests/test-filenamecat.c (main): Likewise.
62798         * tests/test-filevercmp.c (main): Likewise.
62799         * tests/test-fopen-safer.c (main): Likewise.
62800         * tests/test-fopen.c (main): Likewise.
62801         * tests/test-fpending.c (main): Likewise.
62802         * tests/test-fpurge.c (main): Likewise.
62803         * tests/test-freading.c (main): Likewise.
62804         * tests/test-fstatat.c (main): Likewise.
62805         * tests/test-fsync.c (main): Likewise.
62806         * tests/test-futimens.c (main): Likewise.
62807         * tests/test-getndelim2.c (main): Likewise.
62808         * tests/test-gettimeofday.c (main): Likewise.
62809         * tests/test-getopt.c (main): Likewise.
62810         * tests/test-i-ring.c (main): Likewise.
62811         * tests/test-inttypes.c (main): Likewise.
62812         * tests/test-link.c (main): Likewise.
62813         * tests/test-lstat.c (main): Likewise.
62814         * tests/test-math.c (main): Likewise.
62815         * tests/test-md5.c (main): Likewise.
62816         * tests/test-memchr2.c (main): Likewise.
62817         * tests/test-memrchr.c (main): Likewise.
62818         * tests/test-mkdir.c (main): Likewise.
62819         * tests/test-mkdirat.c (main): Likewise.
62820         * tests/test-mkfifoat.c (main): Likewise.
62821         * tests/test-open.c (main): Likewise.
62822         * tests/test-openat-safer.c (main): Likewise.
62823         * tests/test-openat.c (main): Likewise.
62824         * tests/test-quotearg.c (main): Likewise.
62825         * tests/test-rawmemchr.c (main): Likewise.
62826         * tests/test-readlink.c (main): Likewise.
62827         * tests/test-remove.c (main): Likewise.
62828         * tests/test-rename.c (main): Likewise.
62829         * tests/test-renameat.c (main): Likewise.
62830         * tests/test-rmdir.c (main): Likewise.
62831         * tests/test-sha1.c (main): Likewise.
62832         * tests/test-signal.c (main): Likewise.
62833         * tests/test-sigaction.c (main): Likewise.
62834         * tests/test-stat.c (main): Likewise.
62835         * tests/test-stat-time.c (main): Likewise.
62836         * tests/test-stddef.c (main): Likewise.
62837         * tests/test-stdint.c (main): Likewise.
62838         * tests/test-stdio.c (main): Likewise.
62839         * tests/test-stdlib.c (main): Likewise.
62840         * tests/test-strchrnul.c (main): Likewise.
62841         * tests/test-strerror.c (main): Likewise.
62842         * tests/test-string.c (main): Likewise.
62843         * tests/test-strtod.c (main): Likewise.
62844         * tests/test-strverscmp.c (main): Likewise.
62845         * tests/test-symlink.c (main): Likewise.
62846         * tests/test-symlinkat.c (main): Likewise.
62847         * tests/test-sys_stat.c (main): Likewise.
62848         * tests/test-sys_time.c (main): Likewise.
62849         * tests/test-time.c (main): Likewise.
62850         * tests/test-unistd.c (main): Likewise.
62851         * tests/test-unlink.c (main): Likewise.
62852         * tests/test-unlinkat.c (main): Likewise.
62853         * tests/test-utimens.c (main): Likewise.
62854         * tests/test-utimensat.c (main): Likewise.
62855         * tests/test-version-etc.c (main): Likewise.
62856         * tests/test-wchar.c (main): Likewise.
62857         * tests/test-wctype.c (main): Likewise.
62858         * tests/test-xprintf-posix.c (main): Likewise.
62859         * tests/test-posixtm.c (main): Likewise.
62860         (STREQ): Delete unused macro.
62861         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62862         shadowed variables.
62863         * tests/test-memchr.c (main): Likewise.
62865 2009-10-21  Eric Blake  <ebb9@byu.net>
62867         areadlinkat: avoid failure on older glibc
62868         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62869         rather than mis-comparing 0 against FUNC_RESULT of char*.
62871 2009-10-21  Bruno Haible  <bruno@clisp.org>
62873         * modules/stpncpy (License): Relicense under LGPLv2+.
62874         Reported by David Lutterkort <lutter@redhat.com>.
62876 2009-10-20  Eric Blake  <ebb9@byu.net>
62878         utimensat: work around Solaris 9 bug
62879         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62880         has trailing slash bugs.
62881         * tests/test-lutimens.h (test_lutimens): Enhance test.
62882         * tests/test-utimens.h (test_utimens): Likewise.
62883         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62884         * doc/posix-functions/utimes.texi (utimes): Likewise.
62885         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62886         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62887         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62888         * doc/posix-functions/futimens.texi (futimens): Likewise.
62890         fdutimensat: new module
62891         * modules/fdutimensat: New file.
62892         * lib/fdutimensat.c (fdutimensat): Likewise.
62893         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62894         * MODULES.html.sh (File system functions): Mention module.
62895         * modules/fdutimensat-tests: New test.
62896         * tests/test-fdutimensat.c: Likewise.
62898         doc: regenerate INSTALL
62899         * doc/INSTALL: Reflect recent autoconf update.
62900         * doc/INSTALL.ISO: Likewise.
62901         * doc/INSTALL.UTF-8: Likewise.
62903 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62905         acl: warn if ACL support is not detected
62906         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62908 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62910         * lib/nproc.h: Add extern "C" block for C++.
62912 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62913             Bruno Haible  <bruno@clisp.org>
62915         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62916         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62917         * doc/posix-functions/isalpha.texi: Likewise.
62918         * doc/posix-functions/isblank.texi: Likewise.
62919         * doc/posix-functions/iscntrl.texi: Likewise.
62920         * doc/posix-functions/isdigit.texi: Likewise.
62921         * doc/posix-functions/isgraph.texi: Likewise.
62922         * doc/posix-functions/islower.texi: Likewise.
62923         * doc/posix-functions/isprint.texi: Likewise.
62924         * doc/posix-functions/ispunct.texi: Likewise.
62925         * doc/posix-functions/isspace.texi: Likewise.
62926         * doc/posix-functions/isupper.texi: Likewise.
62927         * doc/posix-functions/isxdigit.texi: Likewise.
62929 2009-10-18  Bruno Haible  <bruno@clisp.org>
62931         Tests for module 'isblank'.
62932         * modules/isblank-tests: New file.
62933         * tests/test-isblank.c: New file.
62935         New module 'isblank'.
62936         * lib/isblank.c: New file.
62937         * m4/isblank.m4: New file.
62938         * modules/isblank: New file.
62939         * doc/posix-functions/isblank.texi: Mention the new module.
62941 2009-10-18  Bruno Haible  <bruno@clisp.org>
62943         New module 'ctype'.
62944         * lib/ctype.in.h: New file.
62945         * m4/ctype.m4: New file.
62946         * modules/ctype: New file.
62947         * doc/posix-headers/ctype.texi: Mention the new module.
62949 2009-10-18  Jim Meyering  <meyering@redhat.com>
62951         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62952         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62953         right after its initialization, rather than farther down.
62954         Keeping these in close proximity makes it easier to ensure
62955         that each such variable is initialized.  E.g.,
62957             LIB_CLOCK_GETTIME=
62958             AC_SUBST([LIB_CLOCK_GETTIME])
62960         This change also increments these serial numbers.
62961         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62962         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62965 2009-10-18  Bruno Haible  <bruno@clisp.org>
62967         Don't let environment variables perturb build.
62968         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62969         (gl_PREREQ_GETHRXTIME): ... not here.
62971 2009-10-18  Bruno Haible  <bruno@clisp.org>
62973         Avoid symlink attack in localcharset module.
62974         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62975         (O_NOFOLLOW): Define fallback.
62976         (get_charset_aliases): Don't open the file if it is a symbolic link.
62977         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62978         gl_FCNTL_H.
62979         (gl_FCNTL_H): Require it.
62980         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62981         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62982         Reported by Fergal Glynn <fglynn@veracode.com>.
62984 2009-10-18  Bruno Haible  <bruno@clisp.org>
62986         Implement nproc for mingw.
62987         * lib/nproc.c: Include <windows.h>
62988         (num_processors): On native Windows platforms, try GetSystemInfo.
62990 2009-10-18  Bruno Haible  <bruno@clisp.org>
62992         Implement nproc for IRIX.
62993         * lib/nproc.c: Include <sys/sysmp.h>.
62994         (num_processors): On IRIX systems, try sysmp.
62995         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62997 2009-10-18  Bruno Haible  <bruno@clisp.org>
62999         Implement nproc for HP-UX.
63000         * lib/nproc.c: Include <sys/pstat.h>
63001         (num_processors): On HP-UX systems, try pstat_getdynamic.
63002         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
63003         pstat_getdynamic.
63005 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
63006             Bruno Haible  <bruno@clisp.org>
63008         Implement nproc for NetBSD, OpenBSD.
63009         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
63010         (ARRAY_SIZE): New macro.
63011         (num_processors): On BSD systems, try sysctl of HW_NCPU.
63012         * m4/nproc.m4: New file.
63013         * modules/nproc (Files): Add m4/nproc.m4.
63014         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
63015         (Makefile.am): Instead, augment lib_SOURCES.
63017 2009-10-18  Bruno Haible  <bruno@clisp.org>
63019         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
63020         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
63021         sys/param.h.
63023 2009-10-16  Eric Blake  <ebb9@byu.net>
63025         utimensat: new module
63026         * modules/utimensat: New file.
63027         * lib/utimensat.c (utimensat): Likewise.
63028         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63029         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
63030         so we can work around Linux bugs.
63031         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63032         * modules/sys_stat (Makefile.am): Substitute them.
63033         * lib/sys_stat.in.h (utimensat): Declare it.
63034         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63035         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63036         * modules/utimensat-tests: New test.
63037         * tests/test-utimensat.c: Likewise.
63039         utimens: let lutimens work on non-symlinks
63040         * lib/utimens.c (lutimens): Fall back to utimens rather than
63041         failing with ENOSYS, when file is not a symlink.
63042         (utimens): Reduce redirection.
63043         * tests/test-lutimens.h (test_lutimens): Update test to cover
63044         non-symlinks.
63045         * tests/test-utimens.h (test_utimens): Update test to cover
63046         symlinks.
63047         * tests/test-utimens.c (main): Update caller.
63049         utimens: cache whether utimensat syscall works
63050         * lib/utimens.c (utimensat_works_really): New cache variable.
63051         (fdutimens, lutimens): Use it to avoid failing syscall.
63053         test-stat-time, test-utimens: improve portability
63054         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
63055         ext4 on alpha, and for cygwin.
63056         * tests/test-utimens-common.h: New file.
63057         (nap): Factor delays into single function.
63058         * tests/test-lutimens.h (test_lutimens): Use new header.
63059         * tests/test-futimens.h (test_futimens): Likewise.
63060         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
63061         timestamps to occur from same machine, as was done previously for
63062         test_utimens.
63063         * modules/utimens-tests (Files): Ship new file.
63064         * modules/futimens-tests (Files): Likewise.
63065         Reported in part by Jim Meyering.
63067         sys_stat: sort replacement declarations
63068         * lib/sys_stat.in.h: Sort declarations.
63069         * lib/futimens.c (futimens): Fix typo.
63071 2009-10-15  Jim Meyering  <meyering@redhat.com>
63073         don't let environment settings perturb build
63074         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
63075         could cause a configure-time and/or build-time malfunction.
63076         Typically, a configure-time function-in-library test is performed
63077         via code like this:
63079           LIB_VAR=
63080           AC_SUBST([LIB_VAR])
63081           prefix_saved_LIBS=$LIBS
63082             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
63083                        [test "$ac_cv_search_FUNC" = "none required" ||
63084                         LIB_VAR=$ac_cv_search_FUNC])
63085           LIBS=$prefix_saved_LIBS
63087         However, in each of the files affected by this change, the LIB_VAR=
63088         initialization was omitted.  Thus, when set in the environment, its
63089         value would propagate into generated Makefiles when FUNC is not found
63090         in LIB_NAME.
63091         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
63092         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63095 2009-10-14  Eric Blake  <ebb9@byu.net>
63097         fchdir: avoid infinite recursion in mingw
63098         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
63099         recursing.
63101         test-stat-time: port to mingw
63102         * tests/test-stat-time.c (force_unlink): Return a value.
63103         (test_ctime) [W32]: Fix compilation error.
63104         (nap): Don't call usleep with too large an argument.  Use
63105         force_unlink.
63106         * doc/pastposix-functions/usleep.texi (usleep): Document the
63107         portability issue.
63109 2009-10-13  Jim Meyering  <meyering@redhat.com>
63111         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
63112         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63113         * modules/pipe-filter-ii: Likewise.
63114         * modules/sys_socket-tests: Likewise.
63115         * modules/tsearch-tests: Likewise.
63116         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
63117         (check): Depend on it.
63119 2009-10-12  Eric Blake  <ebb9@byu.net>
63121         utimens-tests: port to NFS file systems
63122         * tests/test-utimens.h (test_utimens): Refactor utimecmp
63123         comparisons to avoid spurious failures from timestamp drift
63124         between NFS machines.
63126 2009-10-12  Eric Blake  <ebb9@byu.net>
63128         stat-time-tests: minor cleanups
63129         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63130         * tests/test-stat-time.c (nap): Separate assignment from call.
63131         Suggested by Paolo Bonzini and Bruno Haible.
63133         sys_stat: guarantee struct timespec
63134         * lib/sys_stat.in.h (includes): Always include <time.h>
63135         * modules/sys_stat (Depends-on): Add time.
63136         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63137         mode_t permission values.
63138         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63139         get at subsecond timestamps.
63141 2009-10-10  Eric Blake  <ebb9@byu.net>
63143         futimens: new module
63144         * modules/futimens: New file.
63145         * lib/futimens.c (futimens): Likewise.
63146         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63147         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63148         we can work around Linux bugs.
63149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63150         * modules/sys_stat (Makefile.am): Substitute them.
63151         * lib/sys_stat.in.h (futimens): Declare it.
63152         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63153         * doc/posix-functions/futimens.texi (futimens): Likewise.
63154         * modules/futimens-tests: New test.
63155         * tests/test-futimens.c: Likewise.
63157         utimens: introduce fdutimens
63158         * lib/utimens.h (fdutimens): New prototype.
63159         * lib/utimens.c (gl_futimens): Move guts...
63160         (fdutimens): ...to new interface.
63161         * tests/test-utimens.c (do_fdutimens): Use it.
63163         utimens: add UTIME_NOW and UTIME_OMIT support
63164         * lib/utimens.c (validate_timespec, update_timespec): New helper
63165         functions.
63166         (gl_futimens, lutimens): Use them.
63167         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63168         stdbool, sys_stat.
63169         (Link): Mention resulting library dependency.
63170         * modules/utimecmp (Link): Likewise.
63171         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63172         (Makefile.am): Pick up library dependency.
63173         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63174         definition.
63175         * tests/test-sys_stat.c: Test the definitions.
63176         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63177         * NEWS: Document library dependency.
63179         utimecmp: support symlink timestamps
63180         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63181         hashing when possible.  Use pathconf when available.
63182         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63183         * modules/utimecmp (Depends-on): Add lstat.
63185         utimens: add lutimens interface
63186         * lib/utimens.c (lutimens): New function.
63187         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63188         * lib/utimens.h (lutimens): Declare new interface.
63189         * tests/test-utimens.c (main): Enhance test.
63190         * tests/test-lutimens.h (test_lutimens): New file.
63191         * modules/utimens-tests (Files): Distribute it.
63192         (Depends-on): Add symlink.
63193         (configure.ac): Check for usleep.
63195         utimens: validate futimens usage
63196         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63197         fewer syscalls on failure later on.  Avoid compiler warning on
63198         mingw.
63199         * modules/utimens (Depends-on): Add dup2.
63201         utimens: add test
63202         * modules/utimens-tests: New test.
63203         * tests/test-utimens.h: New file.
63204         * tests/test-futimens.h: Likewise.
63205         * tests/test-utimens.c: Likewise.
63207         doc: mention timestamp portability issues
63208         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63209         instead.
63210         * doc/posix-functions/utime.texi (utime): Likewise.
63211         * doc/posix-functions/utimes.texi (utimes): Likewise.
63212         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63213         instead.
63214         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63215         module.
63216         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63217         Mention weakness with symlink timestamps.
63218         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63219         to utimensat/futimens instead.
63220         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63222         test-dup2: enhance test
63223         * tests/test-dup2.c (main): Also check AT_FDCWD.
63225         test-stat-time: avoid more spurious failures
63226         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63227         xfs; and avoid race if the two timestamps cross quantization edge.
63229         relocatable: prefer 'file system' over 'filesystem'
63230         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63231         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63232         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63233         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63234         * lib/relocatable.c (compute_curr_prefix): Likewise.
63236 2009-10-10  Jim Meyering  <meyering@redhat.com>
63238         stat-time-tests: check for the usleep function
63239         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63241 2009-10-10  Bruno Haible  <bruno@clisp.org>
63243         * modules/xnanosleep: Put the Link section after the Include section.
63245 2009-10-09  Eric Blake  <ebb9@byu.net>
63247         dup2: work around FreeBSD 6.1 bug
63248         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63249         * doc/posix-functions/dup2.texi (dup2): Document it.
63250         Reported by Nelson H. F. Beebe and Jim Meyering.
63252         test-stat-time: port to buggy NFS clients
63253         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63254         (test_ctime): Also skip test if mtime and ctime are skewed.
63256         maint: prefer 'file system' over 'filesystem'
63257         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63258         * doc/posix-functions/lstat.texi (lstat): Likewise.
63259         * lib/file-has-acl.c (file_has_acl): Likewise.
63260         * lib/fwriteerror.c [TEST]: Likewise.
63261         * tests/test-areadlink.h (test_areadlink): Likewise.
63262         * tests/test-areadlinkat-with-size.c (main): Likewise.
63263         * tests/test-areadlinkat.c (main): Likewise.
63264         * tests/test-canonicalize-lgpl.c (main): Likewise.
63265         * tests/test-canonicalize.c (main): Likewise.
63266         * tests/test-fstatat.c (main): Likewise.
63267         * tests/test-linkat.c (main): Likewise.
63268         * tests/test-lstat.h (test_lstat_func): Likewise.
63269         * tests/test-mkdir.h (test_mkdir): Likewise.
63270         * tests/test-readlink.h (test_readlink): Likewise.
63271         * tests/test-remove.c (main): Likewise.
63272         * tests/test-rename.h (test_rename): Likewise.
63273         * tests/test-renameat.c (main): Likewise.
63274         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63275         * tests/test-symlink.h (test_symlink): Likewise.
63276         * tests/test-symlinkat.c (main): Likewise.
63277         * tests/test-unlink.h (test_unlink_func): Likewise.
63278         * tests/test-unlinkat.c (main): Likewise.
63280         maint: make realtime library usage explicit
63281         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63282         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63283         * modules/settime (Link): Likewise.
63284         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63286         test-stat-time: speed up execution
63287         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63288         warning on mingw.
63289         (nap): New helper function.
63290         (prepare_test): Use it to reduce sleep time.
63291         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63292         execution.
63293         * modules/stat-time-tests (configure.ac): Check for usleep.
63295 2009-10-09  Jim Meyering  <meyering@redhat.com>
63297         selinux-h: always use getfilecon wrappers
63298         * lib/getfilecon.c: New file.
63299         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63300         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63301         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63302         (fgetfilecon): Provide a stub.
63303         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63304         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63305         file unconditionally.
63306         When <selinux/selinux.h> is found, arrange to use wrappers.
63307         * modules/selinux-h (Files): Add getfilecon.c.
63308         (Makefile.am): Substitute include-next-related bits
63309         into the now-always-generated selinux/selinux.h file.
63310         * doc/glibc-functions/lgetfilecon.texi: New file.
63311         * doc/glibc-functions/fgetfilecon.texi: New file.
63312         * doc/glibc-functions/getfilecon.texi: New file.
63313         * doc/glibc-functions/getfilecon-desc.texi: New file.
63314         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63315         which to pull in the new files.
63316         * MODULES.html.sh (Misc): Add selinux-h.
63318 2009-10-08  Jim Meyering  <meyering@redhat.com>
63320         unistd: fix comment typo
63321         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63323 2009-10-08  Eric Blake  <ebb9@byu.net>
63325         areadlink: use SIZE_MAX consistently
63326         * modules/areadlink (Depends-on): Add stdint.
63327         * modules/areadlink-with-size (Depends-on): Likewise.
63328         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63329         gives NULL; drop sys/types, since unistd gives size_t; and add
63330         stdint for SIZE_MAX.
63331         (SIZE_MAX): Rely on headers.
63332         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63333         and add stdint.
63334         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63335         (SIZE_MAX): Likewise.
63336         (INITIAL_BUF_SIZE): Turn into enum.
63337         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63339 2009-10-08  Jim Meyering  <meyering@redhat.com>
63341         areadlinkat: avoid compilation failure
63342         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63343         Fix typo in comment.
63345 2009-10-07  Eric Blake  <ebb9@byu.net>
63347         areadlinkat-with-size: new module
63348         * modules/areadlinkat-with-size: New module.
63349         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63350         * lib/areadlink.h (areadlinkat): Declare it.
63351         * MODULES.html.sh (File system functions): Mention it.
63352         * modules/areadlinkat-with-size-tests: New test.
63353         * tests/test-areadlinkat-with-size.c: New file.
63355         xreadlinkat: new module
63356         * modules/xreadlinkat: New module.
63357         * lib/xreadlinkat.c (xreadlinkat): New file.
63358         * lib/xreadlink.h (xreadlinkat): Declare it.
63359         * MODULES.html.sh (File system functions): Mention it.
63361         areadlinkat: new module
63362         * lib/at-func.c (FUNC_FAIL): New define.
63363         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63364         * modules/areadlinkat: New module.
63365         * lib/linkat.c (areadlinkat): Move...
63366         * lib/areadlinkat.c (areadlinkat): ...to new file.
63367         * lib/areadlink.h (areadlinkat): Declare it.
63368         * modules/linkat (Depends-on): Add areadlinkat.
63369         * MODULES.html.sh (File system functions): Mention it.
63370         * modules/areadlinkat-tests: New test.
63371         * tests/test-areadlinkat.c: New file.
63373         areadlink, areadlink-with-size: add tests
63374         * modules/areadlink-tests: New test.
63375         * modules/areadlink-with-size-tests: Likewise.
63376         * tests/test-areadlink.h: New file.
63377         * tests/test-areadlink.c: Likewise.
63378         * tests/test-areadlink-with-size.c: Likewise.
63380         maint: minor cleanups
63381         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63382         _UNUSED_PARAMETER_ instead.
63383         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63384         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63385         * modules/linkat-tests (Files): Distribute test-link.h.
63387         openat, utimens: whitespace cleanup
63388         * lib/openat.c: Prefer space throughout, rather than mix of 8
63389         spaces vs. tabs.
63390         * lib/at-func.c: Likewise.
63391         * lib/utimens.c: Likewise.
63393         openat: avoid using wrong fd
63394         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63395         working directory chooses same fd.
63396         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63398         mkdir, mkdirat: fix cygwin 1.5.x bug
63399         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63400         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63401         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63402         bug.
63403         (gl_PREREQ_MKDIR): Delete unused macro.
63404         * modules/mkdir (Files): Track file rename.
63405         (configure.ac): Update macro name.
63406         * modules/openat (Depends-on): Add mkdir.
63407         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63409         mkdir, mkdirat: add tests
63410         * modules/mkdir-tests: New test.
63411         * tests/test-mkdir.h: New file.
63412         * tests/test-mkdir.c: Likewise.
63413         * tests/test-mkdirat.c: Likewise.
63414         * modules/openat-tests (Files): Add new files.
63415         (Makefile.am): Run new test.
63417 2009-10-06  Eric Blake  <ebb9@byu.net>
63419         doc: tweak *at function documentation
63420         * doc/posix-functions/faccessat.texi (faccessat): Mention
63421         known issue with replacement.
63422         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63423         * doc/posix-functions/linkat.texi (linkat): Likewise.
63424         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63425         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63426         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63427         * doc/posix-functions/renameat.texi (renameat): Likewise.
63428         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63430         openat: fix GNU/Hurd bug in unlinkat
63431         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63432         broken.
63433         * doc/posix-functions/unlink.texi (unlink): Document this.
63434         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63436         fdopendir: fix GNU/Hurd bug
63437         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63438         allowing non-directory fds.
63439         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63440         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63441         * modules/dirent (Makefile.am): Substitute it.
63442         * lib/dirent.in.h (fdopendir): Declare replacement.
63443         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63444         * tests/test-fdopendir.c (main): Test something other than
63445         /dev/null, since on Hurd that behaves like a directory.
63447         test-symlink: port to GNU/Hurd
63448         * tests/test-symlink.h (test_symlink): Relax expected errno.
63450         doc: tweak more cygwin information
63451         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63452         now compatible with glibc.
63453         * doc/posix-functions/getopt.texi (getopt): Likewise.
63455         getopt-gnu: add another test
63456         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63457         guarantee behavior relied on by m4.
63458         * tests/test-getopt.c (main): Use it.
63459         * modules/getopt-posix-tests (Depends-on): Add setenv.
63460         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63462         getopt: fix compilation on darwin
63463         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63464         include.
63465         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63466         Reported by Ludovic Courtès.
63468 2009-10-06  Bruno Haible  <bruno@clisp.org>
63470         * modules/size_max (Description): Discourage its use.
63471         Reported by Simon Josefsson.
63473 2009-10-06  Jim Meyering  <meyering@redhat.com>
63475         linkat: avoid compilation failure
63476         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63478 2009-10-05  Eric Blake  <ebb9@byu.net>
63480         linkat: support Linux 2.6.17
63481         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63482         linkat on Linux, but allow cache variable override.
63483         * lib/linkat.c (rpl_linkat): Define override.
63484         * modules/linkat (Depends-on): Add symlinkat.
63485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63486         * modules/unistd (Makefile.am): Substitute it.
63487         * lib/unistd.in.h (linkat): Declare replacement.
63488         Reported by Pádraig Brady.
63490         quotearg: port test to systems with C.UTF-8 locale
63491         * tests/test-quotearg.c (struct result_strings): Add another
63492         member, differentiating between C.ASCII and C.UTF-8 handling.
63493         (compare_strings): Add parameter.
63494         (main): Adjust all callers.
63496         getopt: avoid clash with FreeBSD _getopt_internal
63497         * lib/getopt.in.h (_getopt_internal): Override the name.
63498         * lib/getopt_int.h (includes): Pick up any overrides.
63499         Reported by Reuben Thomas.
63501         hash: allow C89 compilation
63502         * lib/hash.c (check_tuning): Move declaration before statement.
63503         Reported by Reuben Thomas.
63505 2009-10-05  Karl Berry  <karl@gnu.org>
63507         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63509 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63510             Bruno Haible  <bruno@clisp.org>
63512         * lib/uname.c (uname): Use a table-driven algorithm to compute
63513         Windows NT versions.
63515 2009-10-04  Bruno Haible  <bruno@clisp.org>
63517         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63518         program_invocation_short_name.
63519         * modules/progname (configure.ac): Test for presence of
63520         program_invocation_short_name.
63521         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63523 2009-10-04  Bruno Haible  <bruno@clisp.org>
63525         * lib/progname.c (set_program_name): Fix comment.
63526         Reported by Jim Meyering.
63528 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63529             Bruno Haible  <bruno@clisp.org>
63531         * lib/uname.c: Include <string.h>.
63532         (uname): Do only one call to GetVersionEx in the common case.
63534 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63535             Bruno Haible  <bruno@clisp.org>
63537         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63538         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63539         (uname): Add support for Windows CE and various non-x86 CPU types.
63541 2009-10-03  Bruno Haible  <bruno@clisp.org>
63543         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63544         invocation to tests/configure.ac.
63545         Reported by Ian Beckwith <ianb@erislabs.net>.
63547 2009-10-02  Eric Blake  <ebb9@byu.net>
63549         fchdir: avoid compiler warning
63550         * lib/fchdir.c (canonicalize_file_name)
63551         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63553         test-open: support mingw errno values
63554         * tests/test-open.h (test_open): Relax test.
63555         * tests/test-fopen.h (test_fopen): Likewise.
63556         * tests/test-openat-safer.c (main): Likewise.
63558         open: fix opening directory on mingw
63559         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63561         test-open: on GNU/Hurd, /dev/null is a directory
63562         * tests/test-fopen.h (main): Rename...
63563         (test_fopen): ...to this.  Use a guaranteed non-directory when
63564         confirming open behavior on trailing slash.
63565         * tests/test-openat-safer.c (main): Likewise.
63566         * tests/test-open.h (main): Likewise....
63567         (test_open): ...to this.
63568         * tests/test-fopen.c (main): Adjust caller.
63569         * tests/test-fopen-safer.c (main): Likewise.
63570         * tests/test-open.c (main): Likewise.
63571         * tests/test-fcntl-safer.c (main): Likewise.
63572         Reported by Samuel Thibault.
63574         rename, fchdir: don't ignore chdir failure
63575         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63576         * lib/rename.c (rpl_rename) [W32]: Likewise.
63577         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63578         an empty destination directory if source cannot be renamed,
63579         although there is still possibility for failure.
63580         * doc/posix-functions/rename.texi (rename): Document the race.
63581         Reported by Jim Meyering.
63583         maint: cleanup whitespace in recent commits
63584         * lib/rename.c (rpl_rename): Remove tabs.
63585         * tests/test-link.h (test_link): Likewise.
63586         * lib/fchdir.c (get_name): Likewise.
63587         Reported by Jim Meyering.
63589 2009-10-02  Ben Pfaff  <blp@gnu.org>
63591         relocatable-prog-wrapper: Add missing dependency on
63592         double-slash-root.
63593         * modules/relocatable-prog-wrapper: Add dependency.
63594         Reported by Ian Beckwith <ianb@erislabs.net>.
63596 2009-10-02  Eric Blake  <ebb9@byu.net>
63598         renameat: fix Solaris bugs
63599         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63600         needed fixing.
63601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63602         * modules/stdio (Makefile.am): Substitute it.
63603         * lib/stdio.in.h (renameat): Declare replacement.
63604         * lib/renameat.c (rpl_renameat): Implement fix.
63606         renameat: new module
63607         * modules/renameat: New file.
63608         * lib/renameat.c (renameat): Likewise.
63609         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63611         * modules/stdio (Makefile.am): Substitute them.
63612         * lib/stdio.in.h (renameat): Declare it.
63613         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63614         * doc/posix-functions/renameat.texi (renameat): Likewise.
63615         * modules/renameat-tests: New test.
63616         * tests/test-renameat.c: Likewise.
63618         rename: fix mingw bugs
63619         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63620         directory overwrite bugs.
63622         rename: fix another cygwin 1.5 bug
63623         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63624         checks.
63625         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63626         unnecessary cygwin workarounds.  Also work around bug with moving
63627         full directory onto an empty one.
63628         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63630         rename-dest-slash: merge into rename module
63631         * modules/rename-dest-slash (Status): Mark obsolete.
63632         (Depends-on): Add rename.
63633         (Files): Let rename do it all.
63634         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63635         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63636         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63637         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63638         * lib/rename.c (rpl_rename): Update comments.
63640         rename: fix cygwin 1.5.x bugs
63641         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63642         * lib/rename.c (rpl_rename): Work around them.
63643         * modules/rename (Depends-on): Add same-inode.
63645         rename: fix Solaris 10 bug
63646         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63647         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63648         was the only bug.
63650         rename: fix Solaris 9 bug
63651         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63652         on non-directory.  Avoid calling exit.
63653         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63654         strdup.
63655         * modules/rename-tests (Depends-on): Drop lstat.
63656         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63657         (gl_PREREQ_RENAME): Delete unused macro.
63659         rename-dest-slash: fix NetBSD bug
63660         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63661         links.
63662         * modules/rename-dest-slash (Depends-on): Add same-inode.
63664         rename-tests: new test, exposes several platform bugs
63665         * modules/rename-tests: New file.
63666         * tests/test-rename.h: Likewise.
63667         * tests/test-rename.c: Likewise.
63668         * doc/posix-functions/rename.texi (rename): Improve documentation,
63669         including bugs that will eventually be fixed in gnulib.
63671 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63673         * lib/uname.c: Include <stdlib.h>
63674         (uname): Assume version info is available.
63676 2009-10-02  Jim Meyering  <meyering@redhat.com>
63678         gnu-web-doc-update: correct --help output
63679         * build-aux/gnu-web-doc-update: Make --help output relevant.
63681         gnu-web-doc-update: add standard options
63682         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63684         gnu-web-doc-update: New module.
63685         Use this script to automatically update the on-line web documentation
63686         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63687         * modules/gnu-web-doc-update: New file, from coreutils.
63688         * build-aux/gnu-web-doc-update: New script.
63690 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63692         link: LoadLibrary is not needed.
63693         * lib/link.c: Use GetModuleHandle.
63695 2009-10-01  Eric Blake  <ebb9@byu.net>
63697         getopt: bump serial number
63698         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63699         change.
63701         tests: tighten link, rmdir, and remove tests
63702         * tests/test-link.h (includes): No need to use <config.h> here.
63703         Clean up if directory hard link was created, otherwise test for
63704         trailing '.'.
63705         * tests/test-linkat.c (main): Simplify.
63706         * tests/test-remove.c (main): Enhance test for trailing '.'.
63707         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63709 2009-10-01  Jim Meyering  <meyering@redhat.com>
63711         maint.mk: requiring "make major" was annoying, for a "minor" release.
63712         What is intended is "stable", to contrast with alpha and beta,
63713         so require "make stable", not "make major".
63714         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63715         (get_tool_versions): Likewise.
63716         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63718 2009-09-30  Ben Pfaff  <blp@gnu.org>
63720         Fix broken build of replacement for Windows tmpfile().
63721         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63722         flags argument added along with the 'mkostemp' module.
63724 2009-09-28  Bruno Haible  <bruno@clisp.org>
63726         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63727         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63728         to 'remove_elt'.
63729         (gl_list_remove): Update.
63730         * lib/gl_list.c (gl_list_remove): Update.
63731         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63732         to 'remove_elt'.
63733         (gl_oset_remove): Update.
63734         * lib/gl_list.c (gl_oset_remove): Update.
63735         Reported by Eric Blake.
63737 2009-09-28  Eric Blake  <ebb9@byu.net>
63739         doc: mention yet more cygwin 1.7 status
63740         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63741         cygwin.
63742         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63743         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63745         argp: fix test failure
63746         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63747         that are not upper-case.  Pass correct range to tolower.
63749 2009-09-27  Jim Meyering  <meyering@redhat.com>
63751         test-yesno: work around sparc-dash here-document infelicity
63752         Without this change, the literal \177 byte in a here document
63753         would make dash 0.5.5.1-3 access uninitialized memory.
63754         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63755         Instead, use a marker, "@", and filter through tr to create the desired
63756         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63758 2009-09-27  Bruno Haible  <bruno@clisp.org>
63760         Disable untested support for new flavours of ACLs on AIX.
63761         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63762         progress.
63763         * lib/set-mode-acl.c (qset_acl): Likewise.
63765 2008-12-07  Bruno Haible  <bruno@clisp.org>
63767         Add support for new flavours of ACLs on AIX. (Untested.)
63768         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63769         (file_has_acl): Add support for newer AIX.
63770         * lib/set-mode-acl.c (qset_acl): Likewise.
63771         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63772         Rainer Tammer <tammer@tammer.net>.
63774 2009-09-26  Eric Blake  <ebb9@byu.net>
63776         argp: fix compilation of getopt
63777         * lib/getopt.in.h (includes): Use different guard than glibc.
63778         Reported by Sergey Poznyakoff.
63780         doc: mention more cygwin 1.7 status
63781         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63782         bug.
63783         * doc/posix-functions/execl.texi (execl): Likewise.
63784         * doc/posix-functions/execle.texi (execle): Likewise.
63785         * doc/posix-functions/execlp.texi (execlp): Likewise.
63786         * doc/posix-functions/execv.texi (execv): Likewise.
63787         * doc/posix-functions/execve.texi (execve): Likewise.
63788         * doc/posix-functions/execvp.texi (execvp): Likewise.
63789         * doc/glibc-functions/canonicalize_file_name.texi
63790         (canonicalize_file_name): Cygwin 1.7 now provides this.
63791         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63792         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63793         on AT_SYMLINK_NOFOLLOW.
63795 2009-09-24  Eric Blake  <ebb9@byu.net>
63797         test-linkat: make test more robust
63798         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63800         getopt: fix inclusion guards for cygwin
63801         * modules/getopt-posix (Depends-on): Add include-next.
63802         (Makefile.am): Substitute more items in replacement header.
63803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63804         <getopt.h>.
63805         * lib/getopt.in.h (includes): Use split inclusion guard, and
63806         prefer <getopt.h> over include <unistd.h> when one is present.
63807         (option): Also override name of 'struct option'.
63809         same-inode: revert prior change; it is not yet ready
63810         * NEWS: Undo mention of this change.
63811         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63812         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63813         * lib/cycle-check.c (cycle_check): Likewise.
63814         * lib/same.c (same_name): Likewise.
63815         * lib/at-func2.c (at_func2): Likewise.
63817 2009-09-23  Eric Blake  <ebb9@byu.net>
63819         linkat: new module
63820         * modules/linkat: New file.
63821         * lib/at-func2.c (at_func2): Likewise.
63822         * lib/linkat.c (linkat): Likewise.
63823         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63824         * lib/openat-priv.h (at_func2): Add declaration.
63825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63826         * modules/unistd (Makefile.am): Substitute them.
63827         * lib/unistd.in.h (linkat): Declare it.
63828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63829         * doc/posix-functions/linkat.texi (linkat): Likewise.
63830         * doc/posix-functions/link.texi (link): Tweak wording.
63831         * tests/test-link.c (main): Move guts...
63832         * tests/test-link.h (test_link): ...into new file.
63833         * modules/linkat-tests: New test.
63834         * tests/test-linkat.c: Likewise.
63835         * modules/link-tests (Files): Ship new file.
63836         (Depends-on): Add stdbool.
63838         dirname: add library-safe mdir_name
63839         * lib/dirname.h (mdir_name): New prototype.
63840         * lib/dirname.c (dir_name): Move guts...
63841         (mdir_name): ...to new function that avoids xalloc_die.
63843         fchdir: another mingw fix
63844         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63845         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63846         on mingw (where it has not yet been ported), and make it optional
63847         elsewhere.
63848         (_gl_register_fd): Use it.
63850         same-inode: make SAME_INODE tri-state, to port to mingw
63851         * NEWS: Mention this change.
63852         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63853         st_ino always being 0.
63854         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63855         * lib/cycle-check.c (cycle_check): Likewise.
63856         * lib/same.c (same_name): Likewise.
63858         lstat: avoid mingw compilation error
63859         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63860         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63861         lstat ourselves.
63862         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63863         was adequate.
63864         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63865         the checks for lstat.
63866         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63868         link: fix test failure on Solaris 9
63869         * lib/link.c (rpl_link): Don't assume link will catch bogus
63870         trailing slash on source.
63872         test-symlinkat: enhance test
63873         * tests/test-readlink.c (main): Move guts...
63874         * tests/test-readlink.h (test_readlink): ...into new file.
63875         * tests/test-symlink.c (main): Move guts...
63876         * tests/test-symlink.h (test_symlink): ...into new file.
63877         * tests/test-symlinkat.c (main): Use new files for further
63878         coverage.
63879         (do_symlink, do_readlink): New helper functions.
63880         * modules/symlink-tests (Files): Ship new file.
63881         (Depends-on): Add stdbool.
63882         * modules/readlink-tests (Files): Ship new file.
63883         (Depends-on): Add stdbool.
63884         * modules/symlinkat-tests (Files): Use new files.
63886 2009-09-23  Eric Blake  <ebb9@byu.net>
63888         readlink: document portability issue with symlink length
63889         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63890         systems have bogus st_size on symlinks, and mention the
63891         areadlink-with-size module.
63892         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63893         * doc/posix-functions/readlink.texi (readlink): Mention the
63894         areadlink module, and ERANGE failure.
63895         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63896         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63898         readlink: fix Solaris 9 bug with trailing slash
63899         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63900         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63901         * doc/posix-functions/readlink.texi (readlink): Document this.
63902         * modules/readlink-tests: New test.
63903         * tests/test-readlink.c: Likewise.
63905         readlink: fix cygwin 1.5.x bug with return type
63906         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63907         * lib/unistd.in.h (readlink): Use ssize_t.
63908         * lib/readlink.c (readlink): Likewise.
63909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63910         * modules/unistd (Makefile.am): Substitute it.
63911         * lib/unistd.in.h (readlink): Declare replacement.
63912         * doc/posix-functions/readlink.texi (readlink): Document this.
63914         symlink: use throughout gnulib
63915         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63916         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63917         symlink is not used.
63918         * modules/symlinkat (Depends-on): Add symlink.
63919         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63920         * modules/canonicalize-tests (Depends-on): Likewise.
63921         * modules/lstat-tests (Depends-on): Likewise.
63922         * modules/openat-tests (Depends-on): Likewise.
63923         * modules/remove-tests (Depends-on): Likewise.
63924         * modules/rmdir-tests (Depends-on): Likewise.
63925         * modules/unlink-tests (Depends-on): Likewise.
63926         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63927         * tests/test-canonicalize.c (symlink): Likewise.
63928         * tests/test-fstatat.c (symlink): Likewise.
63929         * tests/test-lstat.c (symlink): Likewise.
63930         * tests/test-remove.c (symlink): Likewise.
63931         * tests/test-rmdir.c (symlink): Likewise.
63932         * tests/test-unlink.c (symlink): Likewise.
63933         * tests/test-unlinkat.c (symlink): Likewise.
63935         symlink: new module, for Solaris 9 bug
63936         * modules/symlink: New file.
63937         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63938         * lib/symlink.c: Likewise.
63939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63940         * modules/unistd (Makefile.am): Substitute them.
63941         * lib/unistd.in.h (symlink): Declare replacement.
63942         * MODULES.html.sh (File system functions): Mention it.
63943         * doc/posix-functions/symlink.texi (symlink): Likewise.
63944         * modules/symlink-tests: New test.
63945         * tests/test-symlink.c: Likewise.
63947 2009-09-23  Bruno Haible  <bruno@clisp.org>
63949         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63950         when needed.
63951         Test case: gnulib-tool --import --with-tests atexit inttypes.
63952         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63954 2009-09-23  Bruno Haible  <bruno@clisp.org>
63956         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63957         subcommand, not in a subshell.
63959 2009-09-22  Eric Blake  <ebb9@byu.net>
63961         unistd: sort replacement declarations
63962         * lib/unistd.in.h: Sort declarations.
63964         open, openat: minor optimization
63965         * lib/open.c (open): If open succeeded, len is non-zero.
63966         * lib/openat.c (rpl_openat): Likewise.
63968         link-follow: ensure correct result
63969         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63970         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63971         distinguish between possible failures.
63973 2009-09-21  Eric Blake  <ebb9@byu.net>
63975         fts: avoid compiler warning
63976         * lib/fts.c (dirent_inode_sort_may_be_useful)
63977         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63979 2009-09-19  Bruno Haible  <bruno@clisp.org>
63981         * lib/progreloc.c (canonicalize_file_name): New declaration.
63983 2009-09-19  Eric Blake  <ebb9@byu.net>
63985         link: fix quoting
63986         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63988         openat: fix openat bugs on Solaris 9
63989         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63990         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63991         * modules/openat (Depends-on): Add open.
63992         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63993         * modules/fcntl-h (Makefile.am): Substitute it.
63994         * lib/fcntl.in.h (openat): Declare replacement.
63995         * doc/posix-functions/openat.texi (openat): Document this.
63997         openat: move fstatat and unlinkat into correct files
63998         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63999         compiled.
64000         * lib/openat.c (fstatat, unlinkat): Move...
64001         * lib/fstatat.c (fstatat): ...into correct files.
64002         * lib/unlinkat.c (unlinkat): Likewise.
64004         openat: fix unlinkat bugs on Solaris 9
64005         * lib/unlinkat.c (unlinkat): New file.
64006         * modules/openat (Depends-on): Add unlink.
64007         (Files): Distribute it.
64008         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
64009         trailing slash behavior is broken.
64010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64011         * modules/unistd (Makefile.am): Substitute it.
64012         * lib/unistd.in.h (unlinkat): Declare replacement.
64013         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
64015         openat: fix fstatat bugs on Solaris 9
64016         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
64017         stat.
64018         * doc/posix-functions/fstatat.texi (fstatat): Document this.
64020         test-unlinkat: enhance test, to expose Solaris 9 bug
64021         * tests/test-unlink.c (main): Factor guts...
64022         * tests/test-unlink.h (test_rmdir_func): ...into new file.
64023         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
64024         * tests/test-rmdir.c (main): Adjust caller.
64025         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
64026         (unlinker): New helper function.
64027         (rmdirat): Enhance check.
64028         * modules/rmdir-tests (Depends-on): Add stdbool.
64029         * modules/unlink-tests (Depends-on): Likewise.
64030         (Files): Add test-unlink.h.
64031         * modules/openat-tests (Files): Likewise.
64032         (Depends-on): Add unlinkdir.
64034         test-fstatat: new test, to expose Solaris 9 bugs
64035         * tests/test-stat.c (main): Factor guts...
64036         * tests/test-stat.h (test_stat_func): ...into new file.
64037         * tests/test-lstat.c (main): Factor guts...
64038         * tests/test-lstat.h (test_lstat_func): ...into new file.
64039         * tests/test-fstatat.c: New file.
64040         * modules/stat-tests (Files): Add test-stat.h.
64041         * modules/lstat-tests (Files): Add test-lstat.h.
64042         (Depends-on): Add stdbool.
64043         * modules/openat-tests (Depends-on): Add pathmax.
64044         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
64045         (Makefile.am): Run new test.
64047         remove: new module, for mingw and Solaris 9 bugs
64048         * modules/remove: New file.
64049         * lib/remove.c: Likewise.
64050         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
64051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
64052         * modules/stdio (Makefile.am): Use them.
64053         * lib/stdio.in.h (remove): Declare replacement.
64054         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64055         * doc/posix-functions/remove.texi (remove): Likewise.
64056         * modules/remove-tests: New test.
64057         * tests/test-remove.c: Likewise.
64059         unlink: new module, for Solaris 9 bug
64060         * modules/unlink: New file.
64061         * lib/unlink.c: Likewise.
64062         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
64063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64064         * modules/unistd (Makefile.am): Use them.
64065         * lib/unistd.in.h (stat): Declare replacement.
64066         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64067         * doc/posix-functions/unlink.texi (unlink): Likewise.
64068         * modules/unlink-tests: New test.
64069         * tests/test-unlink.c: Likewise.
64071         lstat: fix Solaris 9 bug
64072         * lib/lstat.c (lstat): Also check for trailing slash on
64073         non-symlink, non-directories.  Use stat module to simplify logic.
64074         * doc/posix-functions/lstat.texi (lstat): Document it.
64075         * modules/lstat-tests (Depends-on): Add errno, same-inode.
64076         (configure.ac): Check for symlink.
64077         * tests/test-lstat.c (main): Add more tests.
64079         stat: add as dependency to other modules
64080         * modules/chown (Depends-on): Add stat.
64081         * modules/euidaccess (Depends-on): Likewise.
64082         * modules/fchdir (Depends-on): Likewise.
64083         * modules/isdir (Depends-on): Likewise.
64084         * modules/link (Depends-on): Likewise.
64085         * modules/lstat (Depends-on): Likewise.
64086         * modules/mkdir-p (Depends-on): Likewise.
64087         * modules/modechange (Depends-on): Likewise.
64088         * modules/open (Depends-on): Likewise.
64089         * modules/readlink (Depends-on): Likewise.
64090         * modules/same (Depends-on): Likewise.
64092         stat: fix Solaris 9 bug
64093         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
64094         slash.
64095         * lib/stat.c (rpl_stat): Work around it.
64096         * doc/posix-functions/stat.texi (stat): Update documentation.
64098         stat: new module, for mingw bug
64099         * modules/stat: New file.
64100         * lib/stat.c: Likewise.
64101         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64103         * modules/sys_stat (Makefile.am): Use them.
64104         * lib/sys_stat.in.h (stat): Declare replacement.
64105         * lib/openat.c (fstatat): Deal with lstat and stat being function
64106         macros.
64107         * modules/openat (Depends-on): Add inline.
64108         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64109         * doc/posix-functions/stat.texi (stat): Likewise.
64110         * modules/stat-tests: New test.
64111         * tests/test-stat.c: Likewise.
64113 2009-09-19  Jim Meyering  <meyering@redhat.com>
64115         syntax-check: detect unnecessary inclusion of canonicalize.h
64116         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
64118 2009-09-19  Eric Blake  <ebb9@byu.net>
64120         canonicalize-lgpl: adjust clients to use correct header
64121         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64122         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
64123         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64124         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64125         * lib/progreloc.c (includes): Likewise.
64127 2009-09-19  Jim Meyering  <meyering@redhat.com>
64129         test-posixtm.c: correct a comment
64130         * tests/test-posixtm.c: Correct first-line comment.
64131         Spotted by Eric Blake.
64133 2009-09-16  Jim Meyering  <meyering@redhat.com>
64135         posixtm-tests: make T const-correct; add a test case
64136         * tests/test-posixtm.c (T): Declare const.
64137         Add a test for -(2^31+1).
64138         Remove useless can-succeed-only-in-2002 test.
64140         posixtm-tests: adjust the sole failing test
64141         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64142         expected output matches what mktime now produces.  Cross-checked via
64143         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64145         posixtm: move #ifdef'd tests into a new module
64146         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64147         * tests/test-posixtm.c: ... this new file.
64148         * modules/posixtm-tests: New module.
64150 2009-09-19  Eric Blake  <ebb9@byu.net>
64152         openat: simplify use of at-func.c
64153         * lib/at-func.c (includes): Include prerequisites here, to
64154         simplify requirements on client files.
64155         * lib/openat-priv.h: Add double-inclusion guard.
64156         * lib/faccessat.c (includes): Simplify.
64157         * lib/fchmodat.c (includes): Likewise.
64158         * lib/fchownat.c (includes): Likewise.
64159         * lib/mkdirat.c (includes): Likewise.
64160         * lib/mkfifoat.c (includes): Likewise.
64161         * lib/symlinkat.c (includes): Likewise.
64163         openat: allow return of fd 0
64164         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64165         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64166         unistd-safer.
64167         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64168         <fcntl.h>; this module does not leak fds.
64169         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64170         must be allowed to return 0, leaving openat_safer to add the
64171         safety.
64172         (openat_permissive): Avoid writing to just-opened fd 2 if
64173         restoring the current directory fails.
64174         * lib/openat-die.c (openat_restore_fail): Add comment.
64175         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64176         (save_cwd): Guarantee safe fd, but without use of open_safer.
64177         * tests/test-openat.c: New test.
64178         * modules/openat-tests (Files, Makefile.am): Distribute and build
64179         new file.
64181         relocatable-prog-wrapper: fix build
64182         * modules/relocatable-prog-wrapper (Files): Update name of
64183         canonicalize m4 file, broken on 2009-09-17.
64184         Reported by emad hajjar <aleppos@hotmail.com>.
64186 2009-09-19  Bruno Haible  <bruno@clisp.org>
64188         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64189         * lib/safe-alloc.c: Likewise.
64190         Reported by Ian Beckwith <ianb@erislabs.net>.
64192 2009-09-18  Bruno Haible  <bruno@clisp.org>
64194         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64195         Reported by <erobles@sensacd.com.mx>.
64197 2009-09-17  Eric Blake  <ebb9@byu.net>
64199         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64200         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64201         slashes when checking if last component is missing.
64202         * tests/test-canonicalize.c (main): Test this.
64204         canonicalize, canonicalize-lgpl: honor // if distinct from /
64205         * modules/canonicalize (Files): Add double-slash-root.m4.
64206         * modules/canonicalize-lgpl (Files): Likewise.
64207         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64208         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64209         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64210         fallback definition.
64211         (canonicalize_filename_mode): Use it to protect //.
64212         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64213         (__realpath): Likewise.
64214         * tests/test-canonicalize.c (main): Test this.
64215         * tests/test-canonicalize-lgpl.c (main): Likewise.
64216         * modules/canonicalize-tests (Depends-on): Add same-inode.
64217         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64219         canonicalize-lgpl: fix glibc bug with trailing slash
64220         * m4/canonicalize-lgpl.m4: Move contents...
64221         * m4/canonicalize.m4: ...here.
64222         (gl_CANONICALIZE_LGPL): Factor realpath check...
64223         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64224         glibc 2.3.5 bug, fixed 2005-04-27.
64225         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64226         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64227         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64228         * modules/canonicalize-lgpl (Files): Manage file rename.
64229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64230         * modules/stdlib (Makefile.am): Substitute witness.
64231         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64232         is needed.
64233         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64234         replacement is required.
64235         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64236         * doc/glibc-functions/canonicalize_file_name.texi
64237         (canonicalize_file_name): Document this.
64238         * doc/posix-functions/realpath.texi (realpath): Likewise.
64240         canonicalize-lgpl: reject non-directory with trailing slash
64241         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64242         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64243         catches failures in glibc 2.3.5.
64244         * tests/test-canonicalize.c (main): Likewise.
64246         canonicalize-lgpl: use native realpath if it works
64247         * lib/canonicalize-lgpl.c (realpath): Guard with
64248         FUNC_REALPATH_WORKS.
64249         * lib/stdlib.in.h (realpath): Make declaration optional based on
64250         HAVE_REALPATH.
64251         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64252         native realpath works.
64253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64254         * modules/stdlib (Makefile.am): Substitute witness.
64256         canonicalize, canonicalize-lgpl: use <stdlib.h>
64257         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64258         (Include): Mention <stdlib.h>.
64259         (configure.ac): Mention functions we provide.
64260         * modules/canonicalize (configure.ac): Likewise.
64261         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64262         realpath if canonicalize_file_name is missing.
64263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64264         * modules/stdlib (Makefile.am): Substitute witnesses.
64265         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64266         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64267         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64268         * NEWS: Document this.
64269         * doc/glibc-functions/canonicalize_file_name.texi
64270         (canonicalize_file_name): Likewise.
64271         * doc/posix-functions/realpath.texi (realpath): Likewise.
64272         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64274         test-canonicalize: consolidate into single C program
64275         * tests/test-canonicalize.sh: Delete; move setup into...
64276         * tests/test-canonicalize.c (main): ...the program, making it
64277         easier to run in debugger.  Add some tests.
64278         * modules/canonicalize-tests (Files): Remove unused file.
64279         (Depends-on): Add progname.
64280         (configure.ac, Makefile.am): Simplify.
64282         test-canonicalize-lgpl: consolidate into single C program
64283         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64284         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64285         easier to run in debugger.  Add some tests.
64286         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64287         (configure.ac, Makefile.am): Simplify.
64289         canonicalize: avoid resolvepath
64290         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64291         unnecessary checks.
64292         * lib/canonicalize.c (includes): Simplify.
64293         (canonicalize_file_name): Drop resolvepath implementation.
64294         * modules/canonicalize (Depends-on): Drop filenamecat.
64296         canonicalize: don't lose errno
64297         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64298         over calls to free.
64300         canonicalize: simplify errno handling
64301         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64302         assignment.
64304         canonicalize, canonicalize-lgpl: update module dependencies
64305         * modules/canonicalize (Depends-on): Add extensions, lstat,
64306         pathmax, stdlib.
64307         (Files): Drop pathmax.h.
64308         (configure.ac): Adjust macro name.
64309         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64310         lstat, stdlib, sys_stat.
64311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64312         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64313         extensions.
64314         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64315         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64316         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64317         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64318         declaration, if available.
64319         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64320         we can rely on the readlink module.
64321         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64322         (includes): Use <unistd.h> unconditionally.
64324 2009-09-17  Eric Blake  <ebb9@byu.net>
64326         maint: make Include sections of modules consistent
64327         * modules/alloca: Use only header name; no need to list #include.
64328         * modules/alloca-opt: Likewise.
64329         * modules/arpa_inet: Likewise.
64330         * modules/canon-host: Likewise.
64331         * modules/configmake: Likewise.
64332         * modules/dirent: Likewise.
64333         * modules/eealloc: Likewise.
64334         * modules/environ: Likewise.
64335         * modules/fchdir: Likewise.
64336         * modules/fcntl: Likewise.
64337         * modules/fcntl-h: Likewise.
64338         * modules/gethrxtime: Likewise.
64339         * modules/gettime: Likewise.
64340         * modules/ignore-value: Likewise.
64341         * modules/inet_ntop: Likewise.
64342         * modules/inet_pton: Likewise.
64343         * modules/inttypes: Likewise.
64344         * modules/isnand-nolibm: Likewise.
64345         * modules/isnanf-nolibm: Likewise.
64346         * modules/mbchar: Likewise.
64347         * modules/mbfile: Likewise.
64348         * modules/mbiter: Likewise.
64349         * modules/mbuiter: Likewise.
64350         * modules/netdb: Likewise.
64351         * modules/netinet_in: Likewise.
64352         * modules/nproc: Likewise.
64353         * modules/pagealign_alloc: Likewise.
64354         * modules/poll: Likewise.
64355         * modules/printf-frexp: Likewise.
64356         * modules/pthread: Likewise.
64357         * modules/putenv: Likewise.
64358         * modules/random_r: Likewise.
64359         * modules/relocatable-prog: Likewise.
64360         * modules/search: Likewise.
64361         * modules/select: Likewise.
64362         * modules/selinux-h: Likewise.
64363         * modules/settime: Likewise.
64364         * modules/signal: Likewise.
64365         * modules/size_max: Likewise.
64366         * modules/socklen: Likewise.
64367         * modules/ssize_t: Likewise.
64368         * modules/stdarg: Likewise.
64369         * modules/stdbool: Likewise.
64370         * modules/stddef: Likewise.
64371         * modules/stdint: Likewise.
64372         * modules/stdio: Likewise.
64373         * modules/stdlib: Likewise.
64374         * modules/string: Likewise.
64375         * modules/strings: Likewise.
64376         * modules/sys_file: Likewise.
64377         * modules/sys_ioctl: Likewise.
64378         * modules/sys_select: Likewise.
64379         * modules/sys_socket: Likewise.
64380         * modules/sys_stat: Likewise.
64381         * modules/sys_time: Likewise.
64382         * modules/sys_times: Likewise.
64383         * modules/sys_utsname: Likewise.
64384         * modules/sys_wait: Likewise.
64385         * modules/sysexits: Likewise.
64386         * modules/time: Likewise.
64387         * modules/times: Likewise.
64388         * modules/tmpfile: Likewise.
64389         * modules/trim: Likewise.
64390         * modules/unistd: Likewise.
64391         * modules/wchar: Likewise.
64392         * modules/wctype: Likewise.
64394 2009-09-17  Bruno Haible  <bruno@clisp.org>
64396         Make getdate.y compile on QNX and NetBSD 5 / i386.
64397         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64398         TIME_T_FITS_IN_LONG_INT.
64399         * lib/getdate.y (long_time_t): New type.
64400         (relative_time): Change type of 'seconds' field to long_time_t.
64401         (get_date): Update types of local variables. Check against overflow
64402         during conversion from long_time_t to time_t.
64403         Reported by Matt Kraai <kraai@ftbfs.org>
64404         and Hasso Tepper <hasso@netbsd.org>.
64406 2009-09-17  Bruno Haible  <bruno@clisp.org>
64408         * modules/COPYING: Update copyright years.
64409         * modules/README: Likeiwse.
64410         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64411         Reported by Ian Beckwith <ianb@erislabs.net>.
64413 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64415         * users.txt: Update references for gnuit package.
64417 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64419         * m4/getdelim.m4: Fix typo in copyright line.
64421 2009-09-17  Bruno Haible  <bruno@clisp.org>
64423         * lib/atoll.c: Use the standard header with GPL copyright.
64424         * lib/argz.in.h: Likewise.
64425         * lib/glob.c: Likewise.
64426         * lib/glob-libc.h: Likewise.
64427         * lib/random_r.c: Likewise.
64428         * lib/siglist.h: Likewise.
64429         * lib/strsignal.c: Likewise.
64430         Reported by Ian Beckwith <ianb@erislabs.net>.
64432 2009-09-17  Eric Blake  <ebb9@byu.net>
64434         rmdir: ensure correct dependency order
64435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64437 2009-09-17  Bruno Haible  <bruno@clisp.org>
64439         Disable assertion that fails on NetBSD 5 / i386.
64440         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64441         Reported by Sam Steingold <sds@gnu.org>
64442         and Hasso Tepper <hasso@netbsd.org>.
64444 2009-09-16  Eric Blake  <ebb9@byu.net>
64446         unlinkdir: port to mingw
64447         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64448         on which no one can unlink a directory.
64450         stdlib: sort witness names
64451         * modules/stdlib (Makefile.am): Sort replacements.
64452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64453         * lib/stdlib.in.h: Likewise.
64455         parse-duration-tests: avoid link failure
64456         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64457         LIBINTL.
64458         Reported by Tom G. Christensen.
64460         openat-tests: ensure unlinkat behaves like rmdir
64461         * tests/test-rmdir.c (main): Factor guts...
64462         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64463         * modules/rmdir-tests (Files): Ship new file.
64464         * modules/openat-tests: New test.
64465         * tests/test-unlinkat.c: Likewise.
64467         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64468         * modules/rmdir-errno (Status, Notice): Now obsolete.
64470         rmdir: work around cygwin 1.5.x and mingw bugs
64471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64472         * lib/rmdir.c (rmdir): Work around it.
64473         * modules/rmdir (Status, Notice): No longer obsolete.
64474         (Files): Add dos.m4.
64475         (Depends-on): Add unistd.
64476         (configure.ac): Set witnesses.
64477         (License): Relax to LGPLv2+.
64478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64479         * modules/unistd (Makefile.am): Substitute witnesses.
64480         * lib/unistd.in.h (rmdir): Declare replacement.
64481         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64482         * modules/rmdir-tests: New tests.
64483         * tests/test-rmdir.c: Likewise.
64485 2009-09-15  Eric Blake  <ebb9@byu.net>
64487         fchdir: improve use of replacement functions
64488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64491         REPLACE_CLOSEDIR.
64492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64493         * modules/sys_stat (Makefile.am): Substitute correct witness.
64494         * modules/dirent (Makefile.am): Likewise.
64495         * modules/unistd (Makefile.am): Likewise.
64496         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64497         * lib/unistd.in.h (dup): Likewise.
64498         * lib/sys_stat.in.h (fstat): Likewise.
64500         maint: ignore gnulib-tool temp files
64501         * .gitignore: Ignore files created during gnulib-tool --test.
64503 2009-09-13  Jim Meyering  <meyering@redhat.com>
64505         posixtm: don't reject a time that specify "60" as the number of seconds
64506         * lib/posixtm.c (posixtime): The code to reject invalid dates
64507         would also reject a time specified with the .60 suffix.
64508         But POSIX allows that, in order to accommodate leap seconds.
64509         So don't reject it.
64510         (main): Adjust tests accordingly.
64511         * modules/posixtm (Depends-on): Add stpcpy.
64513 2009-09-11  Jim Meyering  <meyering@redhat.com>
64515         announce-gen: include [$release_type] in emitted Subject:
64516         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64517         e.g., [stable] in the emitted Subject: line.
64519 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64521         Remove obsolete macros from several modules.
64522         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64523         obsolete Autoconf macros with their modern counterparts.
64524         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64525         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64527         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64528         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64529         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64531         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64532         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64533         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64534         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64535         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64536         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64537         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64538         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64539         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64540         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64541         * m4/time_r.m4 (gl_TIME_R): Likewise.
64542         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64543         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64544         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64546         Fix copyright header in build-aux scripts.
64547         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64548         recommendation.
64549         * build-aux/ncftpput-ftp: Likewise.
64550         * build-aux/update-copyright: Likewise.
64552 2009-09-09  Eric Blake  <ebb9@byu.net>
64554         test-link: allow Linux choice of errno
64555         * tests/test-link.c (main): Relax test for alternate error.
64557         strndup: fix improper m4 caching
64558         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64559         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64560         (gl_PREREQ_STRNDUP): Delete.
64561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64562         * modules/string (Makefile.am): Substitute it.
64563         * lib/string.in.h (strndup): Modernize prototype.
64565         getcwd: port to mingw
64566         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64567         different from the POSIX assumptions made throughout the getcwd
64568         module; fortunately, the mingw getcwd does not need replacement.
64569         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64570         * modules/getcwd-tests: New test.
64571         * tests/test-getcwd.c: Likewise.
64573         link: fix platform bugs
64574         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64575         * lib/link.c (link): Work around them.  Fix related mingw bug.
64576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64577         * modules/unistd (Makefile.am): Substitute it.
64578         * lib/unistd.in.h (link): Declare replacement.
64579         * doc/posix-functions/link.texi (link): Document this.
64580         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64582         test-link: consolidate into single C program, test more cases
64583         * tests/test-link.sh: Delete.
64584         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64585         at least Cygwin and Solaris.
64586         * modules/link-tests (Files): Remove unused file.
64587         (Depends-on): Add errno, sys_stat.
64588         (Makefile.am): Simplify.
64590 2009-09-08  Bruno Haible  <bruno@clisp.org>
64592         Work around towlower, towupper bug on mingw.
64593         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64594         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64595         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64596         * doc/posix-functions/towupper.texi: Likewise.
64597         Reported by Eric Blake.
64599 2009-09-08  Jim Meyering  <meyering@redhat.com>
64601         build: don't try to run autoheader if we don't use it
64602         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64603         is not used in configure.ac.
64605 2009-09-08  Eric Blake  <ebb9@byu.net>
64607         euidaccess: fix compilation error
64608         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64610         rawmemchr: relax license
64611         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64612         okay.
64613         Reported by Jim Meyering.
64615         mkfifoat: new module
64616         * modules/mkfifoat: New file.
64617         * lib/mkfifoat.c: Likewise.
64618         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64619         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64620         * modules/sys_stat (Makefile.am): Use them.
64621         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64622         * MODULES.html.sh (File system functions): Mention module.
64623         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64624         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64625         * modules/mkfifoat-tests: New test.
64626         * tests/test-mkfifoat.c: Likewise.
64628         strchrnul: relax license
64629         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64630         okay.
64631         Reported by Jim Meyering.
64633 2009-09-08  Eric Blake  <ebb9@byu.net>
64635         fstatat: fix compilation on Solaris
64636         * lib/fstatat.c (includes): Add fcntl.h.
64637         Reported by Pádraig Brady.
64639 2009-09-07  Eric Blake  <ebb9@byu.net>
64641         rename: modernize replacement
64642         * modules/rename (Depends-on): Add stdio.
64643         (configure.ac): Declare witness.
64644         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64645         stdio take care of replacement.
64646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64647         * modules/stdio (Makefile.am): Substitute them.
64648         * lib/stdio.in.h (rename): Declare replacement.
64649         * lib/rename.c (includes): Allow cross-compilation to non-windows
64650         machines.
64651         * doc/posix-functions/rename.texi (rename): Improve
64652         documentation.
64654         stdio: sort witness names
64655         * modules/stdio (Makefile.am): Sort replacements.
64656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64657         * lib/stdio.in.h: Likewise.
64659         getcwd: minor cleanups
64660         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64661         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64663         openat: provide more convenience names
64664         * modules/faccessat (configure.ac): Add C witness.
64665         * lib/unistd.in.h (readlinkat): Fix typo.
64666         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64667         convenience wrappers.
64668         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64669         wrappers in syntax checks.
64671 2009-09-06  Eric Blake  <ebb9@byu.net>
64673         doc: fix comments in recent patches
64674         * lib/faccessat.c: Mention correct function.
64675         * lib/fchmodat.c: Likewise.
64676         * lib/fchownat.c: Likewise.
64677         * lib/symlinkat.c: Likewise.
64678         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64679         constants.
64681         faccessat, symlinkat: continue cleanup of previous patch
64682         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64683         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64684         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64686         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64687         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64688         set.
64690 2009-09-06  Bruno Haible  <bruno@clisp.org>
64692         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64693         (fstatat): Declare if GNULIB_FSTATAT is set.
64694         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64695         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64696         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64697         * modules/fcntl-h (Files): Remove m4/openat.m4.
64698         * modules/sys_stat (Files): Remove m4/openat.m4.
64699         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64700         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64701         * modules/unistd (Files): Remove m4/openat.m4.
64702         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64703         GNULIB_OPENAT.
64704         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64705         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64707         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64708         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64709         gl_OPENAT_DEFAULTS.
64710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64711         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64712         Don't require gl_OPENAT_DEFAULTS.
64713         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64714         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64715         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64716         (gl_OPENAT_DEFAULTS): Remove macro.
64718 2009-09-06  Bruno Haible  <bruno@clisp.org>
64720         * modules/openat (configure.ac): Remove unneeded witness.
64722 2009-09-06  Bruno Haible  <bruno@clisp.org>
64724         Set errno to ENOSYS when a function is entirely unsupported.
64725         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64726         EOPNOTSUPP.
64727         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64728         * modules/chown (Depends-on): Remove errno.
64730 2009-09-06  Bruno Haible  <bruno@clisp.org>
64732         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64734 2009-09-06  Bruno Haible  <bruno@clisp.org>
64736         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64738 2009-09-06  Ben Pfaff  <blp@gnu.org>
64739             Bruno Haible  <bruno@clisp.org>
64741         Work around a glibc bug in strtok_r.
64742         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64743         Undefine if UNDEFINE_STRTOK_R is set.
64744         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64746         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64748         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64749         UNDEFINE_STRTOK_R.
64750         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64752 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64754         exclude: minor fix
64755         * lib/exclude.c: Include wctype.h
64757 2009-09-06  Akim Demaille  <demaille@gostai.com>
64759         bootstrap: improve error message
64760         * build-aux/bootstrap (find_tool): Upon failure, report the list
64761         of candidates.
64762         Honor the initial value of the envvar.
64764 2009-09-05  Eric Blake  <ebb9@byu.net>
64766         symlinkat: new module
64767         * modules/symlinkat: New file.
64768         * lib/symlinkat.c: Likewise.
64769         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64771         * modules/unistd (Makefile.am): Use them.
64772         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64773         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64774         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64775         * MODULES.html.sh (File system functions): Mention module.
64776         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64778         * modules/symlinkat-tests: New test.
64779         * tests/test-symlinkat.c: Likewise.
64781         test-openat-safer: add more checks
64782         * tests/test-openat-safer.c (main): Check more code paths.
64784 2009-09-05  Jim Meyering  <meyering@redhat.com>
64786         syntax-check: detect unnecessary inclusion of openat.h
64787         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64789 2009-09-05  Bruno Haible  <bruno@clisp.org>
64791         Support towlower, towupper.
64792         * doc/posix-functions/towlower.texi: Mention module wctype.
64793         * doc/posix-functions/towupper.texi: Likewise.
64794         * lib/wctype.in.h (towlower, towupper): New functions.
64795         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64796         (ASSERT): New macro.
64797         (e): New variable.
64798         (main): Test also towlower, towupper. Test WEOF argument.
64799         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64801 2009-09-05  Bruno Haible  <bruno@clisp.org>
64803         Fix conversion behaviour when the input is invalid.
64804         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64805         mark occurring in first pass of indirect conversion.
64806         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64807         input.
64808         Found by clang's static analyzer.
64810 2009-09-05  Bruno Haible  <bruno@clisp.org>
64812         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64813         where direct conversion is possible.
64815 2009-09-04  Eric Blake  <ebb9@byu.net>
64817         openat: fail with ENOENT on empty name
64818         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64819         buffer.
64821         link-follow: fix logic bug in prior patch
64822         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64823         reversed sense of yes and no in prior patch.  Avoid confusing
64824         compilation failure with desired semantics.
64826         link-follow: accommodate mingw and cross-compilation
64827         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64828         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64829         cross-compilation results to -1, to make linkat easier to
64830         implement when cross-compiling.  Trivially support mingw.
64831         * modules/link-follow (configure.ac): Call new name.
64832         * NEWS: Mention this.
64834 2009-09-03  Eric Blake  <ebb9@byu.net>
64836         faccessat: compile replacement
64837         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64838         needed.
64840         fts: fix compilation error
64841         * lib/fts.c (includes): Re-add "openat.h", for
64842         openat_needs_fchdir.
64844         faccessat: new module
64845         * modules/faccessat: New file.
64846         * lib/faccessat.c: Likewise.
64847         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64849         * modules/unistd (Makefile.am): Use it.
64850         * lib/unistd.in.h (faccessat): Declare it.
64851         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64852         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64853         * MODULES.html.sh (File system functions): Mention it.
64854         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64855         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64857         euidaccess: prefer POSIX over non-standard implementation
64858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64859         * lib/euidaccess.c (euidaccess): Use it if available.
64861         openat: make template easier to use
64862         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64863         AT_FUNC_F2 to be undefined.
64864         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64865         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64866         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64867         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64868         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64869         Likewise.
64870         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64871         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64872         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64873         Likewise.
64875         openat: declare in POSIX headers
64876         * NEWS: Mention this.
64877         * modules/openat (configure.ac): Declare witnesses.
64878         (Depends-on): Add fcntl-h, sys_stat, unistd.
64879         (Include): Mention correct headers.
64880         * modules/fcntl-h (Depends-on): Add link-warning.
64881         (Files): Add openat.m4.
64882         (Makefile.am): Substitute witnesses.
64883         * modules/sys_stat (Files, Makefile.am): Likewise.
64884         * modules/unistd (Files, Makefile.am): Likewise.
64885         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64886         (gl_OPENAT_DEFAULTS): New macro.
64887         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64890         (SYS_STAT_H): Remove unused variable.
64891         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64892         * lib/fcntl--.h (includes): Remove unneeded header.
64893         * lib/openat-safer.c (includes): Likewise.
64894         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64895         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64896         appropriate headers.
64897         (__OPENAT_PREFIX): Delete.
64898         * lib/fcntl.in.h (openat): Provide declaration.
64899         (AT_FDCWD): Fix Solaris bug.
64900         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64901         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64902         * lib/fchmodat.c (includes):  Adjust to find declaration.
64903         * lib/fchownat.c (includes): Likewise.
64904         * lib/mkdirat.c (includes): Likewise.
64905         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64906         still visible.
64908 2009-09-02  Eric Blake  <ebb9@byu.net>
64910         errno: use consistently
64911         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64912         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64913         * lib/canonicalize.c (ELOOP): Likewise.
64914         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64915         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64916         * lib/lchown.c (EOPNOTSUPP): Likewise.
64917         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64918         * lib/savewd.c (ESTALE): Likewise.
64919         * lib/settime.c (ENOSYS): Likewise.
64920         * lib/utimens.c (ENOSYS): Likewise.
64921         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64922         * lib/chdir-safer.c (ELOOP): Likewise.
64923         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64924         * modules/c-stack (Depends-on): Add errno.
64925         * modules/canonicalize (Depends-on): Likewise.
64926         * modules/chdir-safer (Depends-on): Likewise.
64927         * modules/fdopendir (Depends-on): Likewise.
64928         * modules/inet_ntop (Depends-on): Likewise.
64929         * modules/inet_pton (Depends-on): Likewise.
64930         * modules/lchown (Depends-on): Likewise.
64931         * modules/openat (Depends-on): Likewise.
64932         * modules/savewd (Depends-on): Likewise.
64933         * modules/settime (Depends-on): Likewise.
64934         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64936         fts: avoid leaking fds
64937         * modules/fts (Depends-on): Add cloexec.
64938         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64939         flag.
64941         fts: make directory fds more robust
64942         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64943         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64945         backupfile, chdir-long, fts, savedir: make safer
64946         * lib/backupfile.c (includes): Use "dirent--.h", since
64947         numbered_backup can write to stderr during readdir.
64948         * lib/savedir.c (includes): Likewise.
64949         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64950         emulation can write to stderr on failure.
64951         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64952         * lib/getcwd.c: Document why opendir_safer is unused.
64953         * lib/glob.c: Likewise.
64954         * lib/scandir.c: Likewise.
64955         * lib/openat-proc.c: Likewise, for open_safer.
64956         * modules/backupfile (Depends-on): Add dirent-safer.
64957         * modules/savedir (Depends-on): Likewise.
64958         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64959         * modules/chdir-long (Depends-on): Add openat-safer.
64961         openat-safer: new module
64962         * modules/openat-safer: New file.
64963         * lib/openat-safer.c: Likewise.
64964         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64965         * lib/fcntl-safer.h (openat_safer): Declare.
64966         * lib/fcntl--.h (openat): Override.
64967         * MODULES.html.sh (File descriptor based I/O): Mention it.
64968         * lib/openat.h: Add double-inclusion guards.
64969         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64970         "fcntl--.h", so we can implement openat.
64971         * modules/openat-safer-tests: New test.
64972         * tests/test-openat-safer.c: New file.
64974         dirent-safer: new module
64975         * modules/dirent-safer: New file.
64976         * lib/dirent--.h: Likewise.
64977         * lib/dirent-safer.h: Likewise.
64978         * lib/opendir-safer.c: Likewise.
64979         * m4/dirent-safer.m4: Likewise.
64980         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64981         * modules/dirent-safer-tests: New test.
64982         * tests/test-dirent-safer.c: New file.
64983         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64985         fdopendir: optimize on mingw
64986         * lib/unistd.in.h (_gl_directory_name): New prototype.
64987         * lib/fchdir.c (_gl_directory_name): Implement it.
64988         (fchdir): Use it to simplify implementation.
64989         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64990         fchdir, when available, to avoid calling [f]chdir().
64992         fdopendir: split into its own module
64993         * lib/openat.c (fdopendir): Move...
64994         * lib/fdopendir.c: ...into new file.
64995         * modules/fdopendir: New module.
64996         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64997         * modules/openat (Depends-on): Add fdopendir.
64998         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64999         fdopendir here.
65000         * modules/savedir (Depends-on): Only need fdopendir, not full
65001         openat.
65002         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
65003         * lib/openat.h (fdopendir): Drop prototype.
65004         * lib/dirent.in.h (fdopendir): Provide prototype.
65005         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
65006         * modules/dirent (Makefile.am): Substitute them.
65007         * MODULES.html.sh (File system functions): Mention it.
65008         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
65009         * modules/fdopendir-tests: New file.
65010         * tests/test-fdopendir.c: Likewise.
65012         fchdir: use more consistent macro convention
65013         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
65014         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
65015         REPLACE_FCHDIR, rather than relying on config.h macros.
65016         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
65017         inside a single make-time REPLACE_FCHDIR block, rather than using
65018         the config.h FCHDIR_REPLACEMENT.
65019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
65020         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
65021         Manage fstat replacement.
65022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65023         REPLACE_FCHDIR.
65024         * modules/sys_stat (Files): Add m4/unistd_h.m4.
65025         (Makefile.am): Substitute REPLACE_FCHDIR.
65026         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
65027         FCHDIR_REPLACEMENT.
65028         * lib/dup-safer.c (dup_safer): Likewise.
65029         * lib/dup2.c (rpl_dup2): Likewise.
65030         * lib/dup3.c (rpl_dup3): Likewise.
65031         * lib/open.c (rpl_open): Likewise.
65033         fchdir: simplify error handling, and support dup3
65034         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
65035         stdbool, malloc-posix, realloc-posix.
65036         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
65037         (ensure_dirs_slot): Return false on allocation failure.
65038         (rpl_dup2): Delete.
65039         (_gl_register_dup): New function.
65040         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
65041         (_gl_register_fd): Close fd on allocation failure.
65042         * lib/fcntl.in.h (_gl_register_fd): Update signature.
65043         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
65044         prototype.
65045         (rpl_dup2_fchdir): Delete prototype.
65046         * lib/open.c (open): Update caller.
65047         * lib/dup2.c (dup2): Track fchdir metadata.
65048         * lib/dup3.c (dup3): Likewise.
65049         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
65050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
65052 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65054         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
65055         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
65056         don't pass arguments to AC_OUTPUT.
65058 2009-09-02  Bruno Haible  <bruno@clisp.org>
65060         * modules/mkdtemp (License): Relicense under LGPLv2+.
65061         Reported by Paolo Bonzini.
65063 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65065         Replace uses of obsolete autoconf macros in Jim's modules.
65066         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
65067         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
65068         can evoke a warning from autoconf when run with -Wobsolete
65069         enabled.  They were declared obsolete for good reasons (see
65070         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
65071         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
65072         should not continue using the deprecated macros.
65073         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
65074         obsolete Autoconf macros with modern counterparts.
65075         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65076         * m4/dos.m4 (gl_AC_DOS): Likewise.
65077         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
65078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
65079         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
65080         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
65081         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
65082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
65083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
65084         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
65085         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65086         Likewise.
65087         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
65088         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65089         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
65090         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
65091         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65092         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65094 2009-09-01  Eric Blake  <ebb9@byu.net>
65096         fchdir: fix off-by-one bug in previous patch
65097         * lib/fchdir.c (rpl_fstat): Use correct bounds.
65098         (_gl_unregister_fd): Delete useless if.
65100 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
65102         maint.mk: sort the list of syntax-check rules
65103         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
65104         easier to get a sense of progress when the rules are run sequentially
65105         and take a long time.
65107 2009-09-01  Simon Josefsson  <simon@josefsson.org>
65109         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
65110         * modules/netinet_in: Likewise.
65111         * modules/sys_file: Likewise.
65112         * modules/sys_ioctl: Likewise.
65113         * modules/sys_select: Likewise.
65114         * modules/sys_socket: Likewise.
65115         * modules/sys_stat: Likewise.
65116         * modules/sys_time: Likewise.
65117         * modules/sys_times: Likewise.
65118         * modules/sys_utsname: Likewise.
65119         * modules/sys_wait: Likewise.
65121 2009-09-01  Jim Meyering  <meyering@redhat.com>
65123         fts: help ensure that return values are not ignored
65124         * lib/fts_.h (__GNUC_PREREQ): Define.
65125         (__attribute_warn_unused_result__): Define.
65126         (fts_children, fts_close, fts_open, fts_read): Declare with
65127         __attribute_warn_unused_result__.
65129         fts: fts_close now fails also when closing a dir file descriptor fails
65130         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65131         and propagate to caller, along with errno.
65133         announce-gen: correct formatting in --help output
65134         * build-aux/announce-gen (usage): Move the one-line description in
65135         --help output "up", to where it belongs, just after Usage:.
65137 2009-08-31  Eric Blake  <ebb9@byu.net>
65139         fchdir: port to mingw
65140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65141         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65142         opened, then use a substitute.
65143         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65144         replacement.
65145         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65146         (_gl_register_fd): No need to check stat if open already filters
65147         all directories.
65148         (fchdir): Fix error condition to match POSIX.
65149         * modules/fchdir (Depends-on): Add sys_stat.
65150         * doc/posix-functions/open.texi (open): Document the limitation.
65151         * modules/fchdir-tests: New file.
65152         * tests/test-fchdir.c: Likewise.
65154         canonicalize: allow cross-testing from cygwin to mingw
65155         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65156         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65157         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65158         Likewise.
65159         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65160         target does not support symlinks.
65161         * tests/test-canonicalize-lgpl.sh: Likewise.
65163         chown: avoid compilation warning on mingw
65164         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65165         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65166         mingw.
65167         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65168         * modules/chown (Depends-on): Add errno.
65170 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65172         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65173         command.
65175 2009-08-31  Jim Meyering  <meyering@redhat.com>
65177         canonicalize: remove useless initialization
65178         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65179         initialization of local, "end".
65181 2009-08-30  Bruno Haible  <bruno@clisp.org>
65183         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65184         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65185         ENOSYS.
65187 2009-08-30  Bruno Haible  <bruno@clisp.org>
65189         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65190         /usr/xpg4/bin/tr when it exists.
65191         * tests/test-pipe-filter-gi1.sh: Likewise.
65193 2009-08-30  Bruno Haible  <bruno@clisp.org>
65195         Work around deficient /usr/bin/id program on Solaris.
65196         * tests/test-file-has-acl.sh (ID): New variable.
65197         * tests/test-set-mode-acl.sh (ID): Likewise.
65198         * tests/test-copy-acl.sh (ID): Likewise.
65199         * tests/test-copy-file.sh (ID): Likewise.
65201 2009-08-30  Bruno Haible  <bruno@clisp.org>
65203         New module 'xstriconveh'.
65204         * lib/xstriconveh.h: New file.
65205         * lib/xstriconveh.c: New file.
65206         * modules/xstriconveh: New file.
65208 2009-08-30  Bruno Haible  <bruno@clisp.org>
65210         Make it easier to use mem_cd_iconveh.
65211         * lib/striconveh.h (iconveh_t): New type.
65212         (iconveh_open, iconveh_close): New declarations.
65213         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65214         with a single 'const iconveh_t *' argument.
65215         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65216         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65217         with a single 'const iconveh_t *' argument.
65218         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65219         * tests/test-striconveh.c (main): Update.
65220         * NEWS: Mention the change.
65222 2009-08-30  Bruno Haible  <bruno@clisp.org>
65224         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65225         problem.
65227 2009-08-30  Bruno Haible  <bruno@clisp.org>
65229         Work around iconv_open problem on Solaris.
65230         * lib/iconv_open-solaris.gperf: New file.
65231         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65232         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65233         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65234         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65235         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65236         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65238 2009-08-29  Jim Meyering  <meyering@redhat.com>
65240         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65241         * top/maint.mk (cvs-check): Remove target; it was just an alias
65242         to the better-named vc-diff-check.
65243         (maintainer-distcheck): Remove rule.  It was used only from
65244         the (alpha/beta/major) target, and all of its commands but one
65245         were coreutils-specific.
65246         (vc-dist): Remove rule.
65247         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65248         Run vc-diff-check, not vc-dist.
65249         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65251 2009-08-27  Bruno Haible  <bruno@clisp.org>
65253         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65254         of 0.
65256 2009-08-27  Bruno Haible  <bruno@clisp.org>
65258         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65259         compilers.
65260         * doc/func.texi: Document the SunPRO C bug.
65262 2009-08-27  Bruno Haible  <bruno@clisp.org>
65264         Fix link error on Solaris.
65265         * tests/test-parse-duration.c (xstrdup): Remove function.
65267 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65269         ignore-value: handle pointer types, too
65270         * lib/ignore-value.h (__attribute__): Remove definition.
65271         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65272         of a more concise and more-often effective "(void) i" statement.
65273         (ignore_ptr): New function to suppress warnings from functions that
65274         return pointers, and to make it explicit that one function doesn't
65275         handle all cases.
65277 2009-08-25  Bruno Haible  <bruno@clisp.org>
65279         dup2: work around a Linux bug.
65280         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65281         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65282         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65283         Reported by Simon Josefsson.
65285 2009-08-25  Jim Meyering  <meyering@redhat.com>
65287         libguestfs uses gnulib
65288         * users.txt: Add libguestfs.
65290 2009-08-24  Eric Blake  <ebb9@byu.net>
65292         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65293         * lib/pipe2.c (includes): Add binary-io.h.
65294         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65296 2009-08-24  Bruno Haible  <bruno@clisp.org>
65298         Tolerate declared but missing accept4 syscall.
65299         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65300         available.
65301         * lib/sys_socket.in.h (accept4): If the function is already present,
65302         override it.
65303         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65304         * modules/accept4 (Makefile.am): Compile accept4.c always.
65305         Reported by Paolo Bonzini and Eric Blake.
65307 2009-08-23  Bruno Haible  <bruno@clisp.org>
65309         New module 'accept4'.
65310         * lib/sys_socket.in.h (accept4): New declaration.
65311         * lib/accept4.c: New file.
65312         * m4/accept4.m4: New file.
65313         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65314         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65315         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65316         HAVE_ACCEPT4.
65317         * modules/accept4: New file.
65318         * doc/glibc-functions/accept4.texi: Mention the new module.
65320 2009-08-24  Jim Meyering  <meyering@redhat.com>
65322         progname: also set global program_invocation_name, when possible
65323         Before this change, a libtool-enabled program that calls glibc's
65324         error function would report the program name as
65325         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65326         * modules/progname (configure.ac): Check for a declaration of
65327         program_invocation_name.
65328         * lib/progname.c:  Include <errno.h>.
65329         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65330         Set program_invocation_name.
65332 2009-08-23  Bruno Haible  <bruno@clisp.org>
65334         * lib/dup3.c: Include <string.h>.
65336 2009-08-23  Bruno Haible  <bruno@clisp.org>
65338         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65339         * lib/pipe2.c (pipe2): Likewise.
65340         Suggested by Eric Blake.
65342 2009-08-23  Bruno Haible  <bruno@clisp.org>
65344         Tolerate declared but missing dup3 syscall.
65345         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65346         * lib/unistd.in.h (dup3): If the function is already present,
65347         override it.
65348         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65349         * modules/dup3 (Makefile.am): Compile dup3.c always.
65350         Reported by Paolo Bonzini.
65352 2009-08-23  Bruno Haible  <bruno@clisp.org>
65354         Tolerate declared but missing pipe2 syscall.
65355         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65356         available.
65357         * lib/unistd.in.h (pipe2): If the function is already present,
65358         override it.
65359         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65360         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65361         Reported by Paolo Bonzini.
65363 2009-08-23  Bruno Haible  <bruno@clisp.org>
65365         * lib/pipe2.c (pipe2): Move #ifs inside function.
65367 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65369         quotearg: document limitations of quote_these_too
65370         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65371         those limitations are created.
65372         * lib/quotearg.h (set_char_quoting): Document that digits and
65373         letters that are special after backslash are not permitted.
65374         (quotearg_char): Cross-reference set_char_quoting documentation.
65376 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65378         quotearg: implement custom_quoting_style
65379         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65380         right_quote fields.
65381         (set_custom_quoting): New public function.
65382         (quotearg_buffer_restyled): Add left_quote and right_quote
65383         arguments, handle them very much like locale quoting, and update
65384         all uses.
65385         (quotearg_n_custom): New public function.
65386         (quotearg_n_custom_mem): New public function.
65387         (quotearg_custom): New public function.
65388         (quotearg_custom_mem): New public function.
65389         * lib/quotearg.h: Prototype and document new public functions.
65390         (enum quoting_style): For escape_quoting_style and
65391         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65392         ignored even though they're otherwise like c_quoting_style.
65393         Add custom_quoting_style member and document with comparison to
65394         clocale_quoting_style.
65395         * tests/test-quotearg.c (custom_quotes): New array.
65396         (custom_results): New array.
65397         (main): Extend to test custom quoting.
65399 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65401         quotearg: fix right quote escaping when it's in quote_these_too
65402         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65403         quote, be sure to prepend only one backslash.
65404         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65405         (main): Test it.
65407 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65409         quotearg-tests: test escaping of embedded locale quotes
65410         * tests/test-quotearg.c (struct result_strings): Add member for
65411         new input.
65412         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65413         (inputs): Add new input.
65414         (results_g): Add expected results.
65415         (flag_results): Likewise.
65416         (locale_results): Likewise.
65417         (compare_strings): Check those.
65419 2009-08-23  Bruno Haible  <bruno@clisp.org>
65421         Tests for module 'dup3'.
65422         * modules/dup3-tests: New file.
65423         * tests/test-dup3.c: New file.
65425         New module 'dup3'.
65426         * lib/unistd.in.h (dup3): New declaration.
65427         * lib/dup3.c: New file.
65428         * m4/dup3.m4: New file.
65429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65430         HAVE_DUP3.
65431         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65432         * modules/dup3: New file.
65433         * doc/glibc-functions/dup3.texi: Mention the new module.
65435 2009-08-23  Bruno Haible  <bruno@clisp.org>
65437         Tweak the dup2 test.
65438         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65439         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65440         the test file is still empty. Fix argument order of lseek.
65442 2009-08-23  Bruno Haible  <bruno@clisp.org>
65444         Avoid test link errors when the modules getopt-gnu, gettext are used.
65445         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65448 2009-08-23  Bruno Haible  <bruno@clisp.org>
65450         Fix getdtablesize() on mingw.
65451         * lib/getdtablesize.c (getdtablesize): Implement differently.
65452         * lib/unistd.in.h (getdtablesize): Improve comment.
65454 2009-08-23  Bruno Haible  <bruno@clisp.org>
65456         New module 'mkostemp'.
65457         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65458         * lib/stdlib.in.h (mksotemp): New declaration.
65459         * lib/mkostemp.c: New file, from glibc with modifications.
65460         * lib/tempname.h (GT_FILE): Remove outdated comment.
65461         (gen_tempname): Add flags argument.
65462         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65463         (__GT_FILE): Map to 1.
65464         (small_open, large_open): Remove macros.
65465         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65466         * lib/mkstemp.c (mkstemp): Update.
65467         * lib/mkdtemp.c (mkdtemp): Likewise.
65468         * m4/mkostemp.m4: New file.
65469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65470         HAVE_MKOSTEMP.
65471         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65472         HAVE_MKOSTEMP.
65473         * modules/mkostemp: New file, based on modules/mkstemp.
65474         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65475         * NEWS: Mention the change.
65477 2009-08-23  Bruno Haible  <bruno@clisp.org>
65479         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65480         Reported by Eric Blake.
65482 2009-08-23  Bruno Haible  <bruno@clisp.org>
65484         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65485         Reported by Eric Blake.
65487 2009-08-23  Bruno Haible  <bruno@clisp.org>
65489         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65490         * modules/pipe2 (Depends-on): Likewise.
65492 2009-08-23  Eric Blake  <ebb9@byu.net>
65494         fcntl-h: add O_TTY_INIT support
65495         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65496         * tests/test-fcntl-h.c (o): Test it.
65497         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65499         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65500         * modules/fcntl: Move <fcntl.h> header replacement...
65501         * modules/fcntl-h: ...to new name, so as not to collide with
65502         like-named function.
65503         * tests/test-fcntl.c: Rename...
65504         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65505         * modules/fcntl-tests: Rename...
65506         * modules/fcntl-h-tests: ...to this.  Update test file name.
65507         * modules/chdir-long (Depends-on): Update clients.
65508         * modules/chdir-safer (Depends-on): Likewise.
65509         * modules/fcntl-safer (Depends-on): Likewise.
65510         * modules/fts (Depends-on): Likewise.
65511         * modules/mkancesdirs (Depends-on): Likewise.
65512         * modules/mkdir-p (Depends-on): Likewise.
65513         * modules/open (Depends-on): Likewise.
65514         * modules/savewd (Depends-on): Likewise.
65515         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65516         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65518 2009-08-22  Bruno Haible  <bruno@clisp.org>
65520         * modules/binary-io (License): Relicense under LGPL.
65521         * modules/pipe2 (License): Likewise.
65523 2009-08-22  Bruno Haible  <bruno@clisp.org>
65525         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65526         return value.
65527         * lib/pipe-filter-gi.c (filter_init): Likewise.
65528         Reported by Eric Blake.
65530 2009-08-22  Bruno Haible  <bruno@clisp.org>
65532         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65533         * modules/pipe (Depends-on): Add pipe2.
65535 2009-08-22  Bruno Haible  <bruno@clisp.org>
65537         Tests for module 'pipe2'.
65538         * modules/pipe2-tests: New file.
65539         * tests/test-pipe2.c: New file.
65541         New module 'pipe2'.
65542         * lib/unistd.in.h (pipe2): New declaration.
65543         * lib/pipe2.c: New file.
65544         * m4/pipe2.m4: New file.
65545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65546         HAVE_PIPE2.
65547         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65548         * modules/pipe2: New file.
65549         * doc/glibc-functions/pipe2.texi: Mention the new module.
65551 2009-08-22  Bruno Haible  <bruno@clisp.org>
65553         Reference some new glibc functions.
65554         * doc/glibc-functions/accept4.texi: New file.
65555         * doc/glibc-functions/dup3.texi: New file.
65556         * doc/glibc-functions/mkostemp.texi: New file.
65557         * doc/glibc-functions/pipe2.texi: New file.
65558         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65559         (Glibc sys/socket.h): Refer to accept4.
65560         (Glibc unistd.h): Refer to dup3, pipe2.
65561         Reported by Eric Blake.
65563 2009-08-22  Jim Meyering  <meyering@redhat.com>
65564             Bruno Haible  <bruno@clisp.org>
65566         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65567         This makes it so packages using automake-1.11's silent-rules option
65568         can print e.g., a single "GEN    configmake.h" line, rather than
65569         the 30+ statements that perform the job.  If you want to see the
65570         actual commands, you can still run "make V=1".
65571         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65572         so that make output is abbreviated when those variables are defined
65573         appropriately.
65574         * modules/argz: Likewise.
65575         * modules/arpa_inet: Likewise.
65576         * modules/byteswap: Likewise.
65577         * modules/configmake: Likewise.
65578         * modules/dirent: Likewise.
65579         * modules/errno: Likewise.
65580         * modules/fcntl: Likewise.
65581         * modules/float: Likewise.
65582         * modules/fnmatch: Likewise.
65583         * modules/getopt-posix: Likewise.
65584         * modules/glob: Likewise.
65585         * modules/iconv_open: Likewise.
65586         * modules/inttypes: Likewise.
65587         * modules/localcharset: Likewise.
65588         * modules/locale: Likewise.
65589         * modules/math: Likewise.
65590         * modules/netdb: Likewise.
65591         * modules/netinet_in: Likewise.
65592         * modules/poll: Likewise.
65593         * modules/posix_spawnp-tests: Likewise.
65594         * modules/sched: Likewise.
65595         * modules/search: Likewise.
65596         * modules/selinux-h: Likewise.
65597         * modules/signal: Likewise.
65598         * modules/spawn: Likewise.
65599         * modules/stdarg: Likewise.
65600         * modules/stdbool: Likewise.
65601         * modules/stddef: Likewise.
65602         * modules/stdint: Likewise.
65603         * modules/stdio: Likewise.
65604         * modules/stdlib: Likewise.
65605         * modules/string: Likewise.
65606         * modules/strings: Likewise.
65607         * modules/sys_file: Likewise.
65608         * modules/sys_ioctl: Likewise.
65609         * modules/sys_select: Likewise.
65610         * modules/sys_socket: Likewise.
65611         * modules/sys_stat: Likewise.
65612         * modules/sys_time: Likewise.
65613         * modules/sys_times: Likewise.
65614         * modules/sys_utsname: Likewise.
65615         * modules/sys_wait: Likewise.
65616         * modules/sysexits: Likewise.
65617         * modules/time: Likewise.
65618         * modules/unistd: Likewise.
65619         * modules/wchar: Likewise.
65620         * modules/wctype: Likewise.
65622 2009-08-22  Jim Meyering  <meyering@redhat.com>
65624         announce-gen: detect write failure
65625         * build-aux/announce-gen: Add Coda at end.
65626         Remove equivalent-but-more-verbose block at top.
65628 2009-08-19  Akim Demaille  <demaille@gostai.com>
65630         bootstrap: --help to stdout.
65631         * bootstrap (usage): Don't send --help to stderr.
65632         Use a here doc instead of a long string.
65634 2009-08-21  Eric Blake  <ebb9@byu.net>
65636         test-popen-safer: split from test-popen
65637         * tests/test-popen.c (main): Move...
65638         * tests/test-popen.h: ...into new file.
65639         * tests/test-popen-safer2.c: New file.
65640         * modules/popen-tests (Files): Add test-popen.h.
65641         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65642         Suggested by Bruno Haible.
65644         test-fcntl-safer: split from test-open
65645         * tests/test-open.c (main): Move...
65646         * tests/test-open.h: ...into new file.
65647         * tests/test-fcntl-safer.c: New file.
65648         * modules/open-tests (Files): Add test-open.h.
65649         * modules/fcntl-safer-tests: New file.
65650         Suggested by Bruno Haible.
65652         test-fopen-safer: split from test-fopen
65653         * tests/test-fopen.c (main): Move...
65654         * tests/test-fopen.h: ...into new file.
65655         * tests/test-fopen-safer.c: New file.
65656         * modules/fopen-tests (Files): Add test-fopen.h.
65657         * modules/fopen-safer-tests: New file.
65658         Suggested by Bruno Haible.
65660 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65662         popen-safer: test O_CLOEXEC at run-time.
65663         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65665 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65667         fcntl: move more flags to the header
65668         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65669         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65670         * lib/fcntl.in.h: Do both things here.
65672 2009-08-21  Jim Meyering  <meyering@redhat.com>
65674         consistently remove $@-t before redirecting to it
65675         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65676         * modules/alloca-opt: Likewise.
65677         * modules/byteswap: Likewise.
65678         * modules/fnmatch: Likewise.
65679         * modules/getopt-posix: Likewise.
65680         * modules/glob: Likewise.
65681         * modules/poll: Likewise.
65682         * modules/posix_spawnp-tests: Likewise.
65683         * modules/sys_socket: Likewise.
65684         * modules/sysexits: Likewise.
65686 2009-08-21  Eric Blake  <ebb9@byu.net>
65688         popen: simplify access to original popen
65689         * lib/popen.c (rpl_popen): No need to worry about popen being a
65690         macro.
65691         Reported by Bruno Haible.
65693 2009-08-20  Eric Blake  <ebb9@byu.net>
65695         build: avoid some compiler warnings
65696         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65697         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65698         type.
65699         (new_exclude_segment, excluded_file_pattern_p)
65700         (excluded_file_name_p): Reduce scope.
65701         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65702         old-style declaration.
65704 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65706         * tests/test-exclude1.sh: Handle Windows EOL.
65707         * tests/test-exclude2.sh: Likewise.
65708         * tests/test-exclude3.sh: Likewise.
65709         * tests/test-exclude4.sh: Likewise.
65710         * tests/test-exclude5.sh: Likewise.
65711         * tests/test-exclude6.sh: Likewise.
65712         * tests/test-exclude7.sh: Likewise.
65714 2009-08-19  Akim Demaille  <demaille@gostai.com>
65716         bootstrap: find sha1sum when named gsha1sum.
65717         * bootstrap (find_tool): New.
65718         ($SHA1SUM): New.
65719         Use it.
65721 2009-08-20  Jim Meyering  <meyering@redhat.com>
65723         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65724         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65725         expression that converts "." in a file name to "\." in the resulting
65726         regexp.  Start with a dummy statement, so that prior shell variable
65727         definitions are expanded portably.  Reported by Simon Josefsson.
65729 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65731         Fix polling for writeability of a screen buffer.
65732         * lib/poll.c: Distinguish input and screen buffers for the
65733         Win32 implementation.
65734         * lib/select.c: Likewise.
65736 2009-08-19  Eric Blake  <ebb9@byu.net>
65738         popen-safer: prevent popen from clobbering std descriptors
65739         * modules/popen-safer: New file.
65740         * lib/popen-safer.c: Likewise.
65741         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65742         * lib/stdio--.h (popen): Provide override.
65743         * lib/stdio-safer.h (popen_safer): Provide declaration.
65744         * tests/test-popen.c (includes): Partially test this.
65745         * modules/popen-safer-tests: New file, for more tests.
65746         * tests/test-popen-safer.c: Likewise.
65747         * MODULES.html.sh (file stream based Input/Output): Mention it.
65749         tests: test some of the *-safer modules
65750         * modules/fopen-safer (Depends-on): Add fopen.
65751         * modules/fcntl-safer (Depends-on): Add fcntl.
65752         * modules/stdlib-safer (Depends-on): Add stdlib.
65753         (configure.ac): Set indicator.
65754         * modules/unistd-safer (configure.ac): Likewise.
65755         * modules/tmpfile-safer (configure.ac): Likewise.
65756         (Depends-on): Add tmpfile.
65757         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65758         active.
65759         * tests/test-fopen.c (includes): Test safer versions when they are
65760         in use.
65761         * tests/test-open.c (includes): Likewise.
65763         popen: fix cygwin 1.5 bug when stdin closed
65764         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65765         * modules/popen: New file.
65766         * modules/popen-tests: Likewise.
65767         * tests/test-popen.c: Likewise.
65768         * m4/popen.m4: Likewise.
65769         * lib/popen.c: Likewise.
65770         * lib/stdio.in.h (popen): New declaration.
65771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65772         * modules/stdio (Makefile.am): Likewise.
65773         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65775 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65777         maint.mk: give full control over update-copyright exclusions
65778         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65779         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65780         (update-copyright): Don't force inclusion of top-level
65781         ChangeLog.  Don't force exclusion of all COPYING files, but make
65782         them the default exclusion instead.
65784 2009-08-16  Bruno Haible  <bruno@clisp.org>
65786         Fix test failures on Solaris 10.
65787         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65788         tests when Solaris iconv() is used.
65789         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65790         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65791         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65792         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65793         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65795 2009-08-16  Bruno Haible  <bruno@clisp.org>
65797         Fix test failures on Solaris 10.
65798         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65799         'tr' program and pass it as first argument.
65800         * tests/test-pipe-filter-gi1.sh: Likewise.
65801         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65802         program as first argument.
65803         * tests/test-pipe-filter-gi1.c (main): Likewise.
65805 2009-08-16  Eric Blake  <ebb9@byu.net>
65807         fpurge: fix previous commits
65808         * modules/fpurge (Makefile.am): Make replacement conditional,
65809         partially reverting 2007-04-29 change; missed in previous
65810         attempt.
65811         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65812         is missing.
65814 2009-08-16  Bruno Haible  <bruno@clisp.org>
65816         Clarify fpurge's effect on the file position.
65817         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65818         * tests/test-fpurge.c (main): Make a second pass for checking the file
65819         position.
65821 2009-08-16  Bruno Haible  <bruno@clisp.org>
65823         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65824         declaration of fpurge is missing.
65825         * tests/test-fpurge.c (main): Check that the file has not more contents
65826         than expected. Close the file before removing it.
65828 2009-08-15  Eric Blake  <ebb9@byu.net>
65830         fpurge: don't wrap working cygwin implementation
65831         * lib/fpurge.c (fpurge): Fix comment typo.
65832         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65833         1.7 to avoid replacement.
65834         * tests/test-fpurge.c (main): Enhance test.
65836 2009-08-15  Eric Blake  <ebb9@byu.net>
65837         and Jim Meyering  <meyering@redhat.com>
65839         test-update-copyright: skip if perl is insufficient
65840         * tests/test-update-copyright.sh: Failure to run maintainer tool
65841         should not cause testsuite failure on cygwin 1.5.
65843 2009-08-14  Eric Blake  <ebb9@byu.net>
65845         doc: mention more functions added in cygwin 1.7.0
65846         * doc/posix-headers/limits.texi (limits.h): Update for recent
65847         cygwin additions.
65848         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65849         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65850         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65851         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65852         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65854 2009-08-14  Eric Blake  <ebb9@byu.net>
65856         maint.mk: simplify update-copyright rule
65857         * top/maint.mk (update-copyright-local): Delete, and document how
65858         to do it in cfg.mk instead.
65859         (update-copyright-exclude-regexp): Delete, and document how to do
65860         it in .x-update-copyright instead.
65861         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65862         exclude ChangeLog.
65864 2009-08-14  Bruno Haible  <bruno@clisp.org>
65866         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65868 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65870         maint.mk: support update-copyright-env
65871         * top/maint.mk (update-copyright-env): Define place-holder.
65872         (update-copyright): Expand $(update-copyright-env) before
65873         invoking update-copyright.
65875 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65877         update-copyright: implement forced reformatting
65878         * build-aux/update-copyright: Implement and document
65879         UPDATE_COPYRIGHT_FORCE.
65880         * tests/test-update-copyright.sh: Test it.
65882 2009-08-14  Eric Blake  <ebb9@byu.net>
65883         and Bruno Haible  <bruno@clisp.org>
65885         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65886         * tests/test-locale.c: Revert previous patch related to NULL.
65887         * tests/test-stdio.c: Likewise.
65888         * tests/test-stdlib.c: Likewise.
65889         * tests/test-string.c: Likewise.
65890         * tests/test-unistd.c: Likewise.
65891         * modules/time-tests (Depends-on): Add verify.
65892         * modules/wchar-tests (Depends-on): Likewise.
65893         * tests/test-time.c: Test for NULL compliance.
65894         * tests/test-wchar.c: Likewise.
65895         * modules/locale (Depends-on): Add stddef.
65896         * modules/stdio (Depends-on): Likewise.
65897         * modules/stdlib (Depends-on): Likewise.
65898         * modules/string (Depends-on): Likewise.
65899         * modules/time (Depends-on): Likewise.
65900         * modules/unistd (Depends-on): Likewise.
65901         * modules/wchar (Depends-on): Likewise.
65902         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65903         * lib/stdlib.in.h (includes): Likewise.
65904         * lib/string.in.h (includes): Likewise.
65905         * lib/time.in.h (includes): Likewise.
65906         * lib/unistd.in.h (includes): Likewise.
65907         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65908         replaced.
65909         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65910         * m4/stddef_h.m4: New file.
65911         * modules/stddef: Likewise.
65912         * lib/stddef.in.h: Likewise.
65913         * modules/stddef-tests: Likewise.
65914         * tests/test-stddef.c: Likewise.
65915         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65916         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65917         * doc/posix-headers/locale.texi (locale.h): Likewise.
65918         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65919         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65920         * doc/posix-headers/string.texi (string.h): Likewise.
65921         * doc/posix-headers/time.texi (time.h): Likewise.
65922         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65923         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65925 2009-08-14  Eric Blake  <ebb9@byu.net>
65927         doc: improve git diff of texinfo files
65928         * .gitattributes: Add rule for *.texi files, with hint on how to
65929         use it.
65930         Copied from m4, and based on a report by Bruno Haible.
65932 2009-08-14  Bruno Haible  <bruno@clisp.org>
65934         Disable multithread support by default on Cygwin 1.5.x for real.
65935         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65937 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65939         update-copyright: much ado about intervals
65940         * build-aux/update-copyright: Implement and document
65941         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65942         of copyright year intervals.
65943         Also, document UPDATE_COPYRIGHT_YEAR.
65944         * tests/test-update-copyright.sh: Test it.
65946         update-copyright: convert 2-digit to 4-digit years
65947         * build-aux/update-copyright: Implement and document.
65948         * tests/test-update-copyright.sh: Update.
65950 2009-08-14  Jim Meyering  <meyering@redhat.com>
65952         test-exclude: avoid coreutils "make check" failure
65953         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65954         just as in test-argmatch.c.
65956 2009-08-13  Eric Blake  <ebb9@byu.net>
65958         test-dup2: fix bad assumption
65959         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65960         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65962         test-version-etc: fix CRLF portability issue
65963         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65964         recognize \r.
65965         * tests/test-argp-version-etc-1.sh: Likewise.
65967         getopt: update client modules
65968         * modules/argp (Depends-on): Use getopt-gnu.
65969         * modules/git-merge-changelog (Depends-on): Likewise.
65970         * modules/long-options (Depends-on): Likewise.
65971         * modules/xstrtol (Depends-on): Likewise.
65973 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65975         * tests/test-version-etc.sh: Don't fail on different
65976         project/version.  Don't fail on CRLF differences.  Rewrite to use
65977         multiple -e instead of multiple sed forks, suggested by Eric Blake
65978         <ebb9@byu.net>.
65979         * tests/test-argp-version-etc-1.sh: Likewise.
65981 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65983         * tests/test-version-etc.sh: Don't fail on different
65984         project/version.
65986 2009-08-12  Bruno Haible  <bruno@clisp.org>
65988         Tests for modules 'getopt-posix', 'getopt-gnu'.
65989         * modules/getopt-posix-tests: New file.
65990         * tests/test-getopt.c: New file.
65991         * tests/test-getopt.h: New file.
65992         * tests/test-getopt_long.h: New file.
65994         New modules 'getopt-posix', 'getopt-gnu'.
65995         * modules/getopt-gnu: New file, renamed from modules/getopt.
65996         * modules/getopt-posix: New file.
65997         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65998         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65999         (gl_GETOPT): Remove macro.
66000         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
66001         Disable the test against BSD systems that declare optreset. Test
66002         against mingw bug. Test against lack of support of optional arguments
66003         on many platforms.
66004         * doc/glibc-headers/getopt.texi: Update module name and list of
66005         relevant platforms.
66006         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
66007         'getopt-gnu' and more portability problems.
66008         * NEWS: Mention the changes.
66010 2009-08-12  Bruno Haible  <bruno@clisp.org>
66012         Ensure that optarg etc. get declared by <unistd.h>.
66013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
66014         AC_USE_SYSTEM_EXTENSIONS.
66015         * modules/getopt (Depends-on): Add 'extensions'.
66017 2009-08-12  Bruno Haible  <bruno@clisp.org>
66019         Avoid test link errors.
66020         * modules/pipe-filter-ii-tests (Makefile.am): Define
66021         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
66022         * modules/pipe-filter-gi-tests (Makefile.am): Define
66023         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
66024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66026 2009-08-12  Bruno Haible  <bruno@clisp.org>
66028         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
66029         gl_GETOPT_SUBSTITUTE before.
66030         (gl_GETOPT): Use it.
66031         * m4/argp.m4 (gl_ARGP): Update.
66032         Reported by Sergey Poznyakoff.
66034         * m4/getopt.m4: Reorder macros.
66035         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
66036         (gl_GETOPT_SUBSTITUTE): Remove macro.
66038 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66040         Minor improvement in gitlog-to-changelog
66042         * build-aux/gitlog-to-changelog: New option `--format' makes
66043         output format string configurable.
66045 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66047         Optimize exclude: use hash tables for non-wildcard patterns.
66049         * lib/exclude.c: Include hash.h and mbuiter.h
66050         (struct exclude_pattern, exclude_segment): New data types.
66051         (struct exclude): Rewrite.
66052         (fnmatch_pattern_has_wildcards): New function.
66053         (new_exclude_segment, free_exclude_segment): New functions.
66054         (excluded_file_pattern_p, excluded_file_name_p): New functions.
66055         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
66056         * lib/exclude.h (is_fnmatch_pattern): New prototype.
66057         * modules/exclude: Depend on hash and mbuiter.
66059         * modules/exclude-tests: New file.
66060         * tests/test-exclude.c: New file.
66061         * tests/test-exclude1.sh: New file.
66062         * tests/test-exclude2.sh: New file.
66063         * tests/test-exclude3.sh: New file.
66064         * tests/test-exclude4.sh: New file.
66065         * tests/test-exclude5.sh: New file.
66066         * tests/test-exclude6.sh: New file.
66067         * tests/test-exclude7.sh: New file.
66069 2009-08-12  Bruno Haible  <bruno@clisp.org>
66071         Ensure that getopt() gets declared by <unistd.h>.
66072         * lib/unistd.in.h: Conditionally include getopt.h.
66073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
66074         Set GNULIB_UNISTD_H_GETOPT.
66075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66076         GNULIB_UNISTD_H_GETOPT.
66077         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
66079 2009-08-12  Bruno Haible  <bruno@clisp.org>
66081         Clarify logic.
66082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
66083         gl_replace_getopt instead of GETOPT_H.
66085 2009-08-12  Bruno Haible  <bruno@clisp.org>
66087         * m4/getopt.m4: Add comments.
66089 2009-08-12  Bruno Haible  <bruno@clisp.org>
66091         Disable multithread support by default on Cygwin 1.5.x.
66092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
66093         set gl_use_threads=no if not specified otherwise.
66095 2009-08-11  Bruno Haible  <bruno@clisp.org>
66097         Avoid compilation error on NetBSD 5.0.
66098         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
66099         * tests/test-stdio.c: Likewise.
66100         * tests/test-stdlib.c: Likewise.
66101         * tests/test-string.c: Likewise.
66102         * tests/test-unistd.c: Likewise.
66103         Reported by Greg Troxel <gdt@ir.bbn.com>
66104         at <https://savannah.gnu.org/support/?106973>.
66106 2009-08-11  Bruno Haible  <bruno@clisp.org>
66108         * modules/dup2-tests (Depends-on): Remove close.
66110         Undo 2009-07-19 commit.
66111         * modules/acl-tests (Depends-on): Remove close.
66112         * modules/binary-io-tests (Depends-on): Likewise.
66113         * modules/closein-tests (Depends-on): Likewise.
66114         * modules/flock-tests (Depends-on): Likewise.
66115         * modules/fsync-tests (Depends-on): Likewise.
66116         * modules/lseek-tests (Depends-on): Likewise.
66117         * modules/pipe-tests (Depends-on): Likewise.
66118         * modules/posix_spawn-tests (Depends-on): Likewise.
66119         * modules/posix_spawnp-tests (Depends-on): Likewise.
66120         * modules/stat-time-tests (Depends-on): Likewise.
66121         * modules/yesno-tests (Depends-on): Likewise.
66123 2009-08-10  Bruno Haible  <bruno@clisp.org>
66125         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66127 2009-08-10  Bruno Haible  <bruno@clisp.org>
66129         Fix a gcc warning.
66130         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66132 2009-08-10  Bruno Haible  <bruno@clisp.org>
66134         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66135         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66136         not only the first time.
66137         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66138         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66139         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66140         is 1, not only the first time.
66142 2009-08-10  Bruno Haible  <bruno@clisp.org>
66144         Make it possible to use module 'gethostname' without module 'close'.
66145         * lib/unistd.in.h (close): Evoke a link error only if
66146         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66148         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66149         * modules/unistd (Makefile.am): Substitute
66150         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66151         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66152         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66153         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66154         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66155         * modules/sys_ioctl (Makefile.am): Substitute
66156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66157         * modules/socket (configure.ac): On native Windows, set
66158         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66159         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66160         Reported by Sam Steingold <sds@gnu.org>.
66162 2009-08-10  Bruno Haible  <bruno@clisp.org>
66164         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66165         * modules/ioctl (configure.ac): Likewise.
66167 2009-08-10  Bruno Haible  <bruno@clisp.org>
66169         Avoid collision between gnulib wrapper and libintl wrapper.
66170         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66171         already defined in intl/printf.c.
66172         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66173         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66175 2009-08-09  Bruno Haible  <bruno@clisp.org>
66177         Make <sys/select.h> really self-contained, also on Solaris 10.
66178         * lib/sys_select.in.h: Include <string.h>.
66179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66180         Solaris 10 problem.
66181         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66182         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66183         Reported by Jim Meyering.
66185 2009-08-09  Bruno Haible  <bruno@clisp.org>
66187         Avoid warnings from 'aclocal' that are due to a use of macro name
66188         AM_XGETTEXT_OPTION that is not defined in automake.
66189         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66190         automake.
66191         * modules/error (configure.ac): Likewise.
66192         * modules/propername (configure.ac): Likewise.
66193         * modules/vasprintf (configure.ac): Likewise.
66194         * modules/verror (configure.ac): Likewise.
66195         * modules/xprintf (configure.ac): Likewise.
66196         * modules/xvasprintf (configure.ac): Likewise.
66198 2009-08-08  Bruno Haible  <bruno@clisp.org>
66200         Avoid compilation error in C++ mode.
66201         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66202         Reported by Sam Steingold <sds@gnu.org>.
66204 2009-08-08  Bruno Haible  <bruno@clisp.org>
66206         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66207         for the various Unix platforms.
66208         * doc/posix-headers/limits.texi: Update platforms list regarding
66209         HOST_NAME_MAX.
66210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66212 2009-08-07  Jim Meyering  <meyering@redhat.com>
66214         selinux-at: fix typo in a comment
66215         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66216         Spotted by Paolo Bonzini.
66218         selinux-at: remove redundant m4 code, add documentation
66219         * modules/selinux-at (configure.ac): Remove redundant code.
66220         LIB_SELINUX is already set via the dependent module, selinux-h.
66221         (Include): Add quotes around selinux-at.h.
66222         * lib/selinux-at.h: Add documentation.
66223         Reported by Bruno Haible in
66224         http://marc.info/?l=gnulib-bug&m=124958988300749
66226 2009-08-07  Bruno Haible  <bruno@clisp.org>
66228         Avoid link error on MacOS X 10.3 and 10.4.
66229         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66230         on non-ELF systems.
66231         * lib/argp-pv.c (argp_program_version): Likewise.
66232         Reported by Simon Josefsson.
66234 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66236         * tests/test-version-etc.sh: Use $EXEEXT.
66238 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66240         update-copyright: update documentation to point to maint.mk
66241         * build-aux/update-copyright: Here.
66243 2009-08-06  Jim Meyering  <meyering@redhat.com>
66245         maint.mk: support update-copyright-local
66246         * top/maint.mk (update-copyright-local): Define place-holder.
66247         (update-copyright): Depend on $(update-copyright-local).
66249 2009-08-06  Jim Meyering  <meyering@redhat.com>
66251         selinux-at: new module
66252         Initially written for coreutils, this module will soon be
66253         used by findutils, too.
66254         * MODULES.html.sh [Misc]: Add selinux-at.
66255         * lib/selinux-at.h: New file, from coreutils.
66256         * lib/selinux-at.c: Likewise.
66257         * modules/selinux-at: Likewise.
66258         (License): Change from LGPL to GPL, since it depends
66259         on the GPL'd openat module.
66261         doc: update README
66262         * README: Remove references to cogito.
66263         Remove cvs-repo-updating instructions from 2007.
66264         Don't imply that CVS is better if you have limited disk space.
66266 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66268         update-copyright: support C-style comments
66269         * build-aux/update-copyright: Implement and document.
66270         * tests/test-update-copyright.sh: Test.
66272 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66274         update-copyright: support omitted "(C)"
66275         * build-aux/update-copyright: Implement and document.  Also,
66276         allow variable whitespace before "(C)".
66277         * tests/test-update-copyright.sh: Test.
66279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66281         update-copyright: don't trip on non-FSF copyright statements
66282         * build-aux/update-copyright: Fix so that the first correctly
66283         formatted FSF copyright statement is recognized no matter what
66284         appears before it.  Update documentation.
66285         * tests/test-update-copyright.sh: Test that.
66287 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66289         update-copyright: clean up code a little
66290         * build-aux/update-copyright: Append "_re" to the name of any
66291         variable holding a regular expression.
66292         Replace "old" and "new" with "stmt" in variable names.
66293         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66294         handled correctly.
66295         Format code more consistently.
66297 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66299         update-copyright-tests: improve portability
66300         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66301         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66303 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66305         update-copyright: support @copyright{} and &copy;
66306         * build-aux/update-copyright: Implement and document.
66307         * tests/test-update-copyright.sh: Test.
66309 2009-08-04  Jim Meyering  <meyering@redhat.com>
66311         update-copyright-tests: correctly test EOL=\r\n handling
66312         * tests/test-update-copyright.sh: Put \r at the end of some lines
66313         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66315         maint.mk: make update-copyright exclusion list more configurable
66316         * top/maint.mk (update-copyright): Default to excluding COPYING,
66317         but allow an override, in case someone does want to update that file.
66319         maint.mk: don't update copyright date in COPYING
66320         * top/maint.mk (update-copyright): Exclude COPYING.
66322         maint.mk: add a copyright-updating rule
66323         * top/maint.mk (update-copyright): New rule.
66324         Derived from coreutils/Makefile.am.
66326         update-copyright: rename some variables
66327         * build-aux/update-copyright: Rename a few variables for clarity.
66328         Tweak syntax.  List Joel E. Denny as coauthor.
66330 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66332         update-copyright: fix bug for 2-digit last year and add tests
66333         * build-aux/update-copyright: Fix bug.
66334         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66335         specified.
66336         * modules/update-copyright-tests: New
66337         * tests/test-update-copyright.sh: New.
66339 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66341         update-copyright: handle leading tabs in line prefix
66342         * build-aux/update-copyright: Count leading tabs as 8 spaces
66343         when computing margin.  This helps with the formatting of
66344         ChangeLogs, for example.
66345         Fix documentation a little.
66347 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66349         update-copyright: support EOL=\r\n
66350         * build-aux/update-copyright: Implement that.
66352 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66354         update-copyright: automatically format copyright statements
66355         * build-aux/update-copyright: Implement that.
66356         Also, be a little more predictable and safer by always failing
66357         when the full copyright format is not perfectly recognized as an
66358         unbroken whole.  Discussed at
66359         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66360         Rewrite documentation.
66362 2009-08-03  Bruno Haible  <bruno@clisp.org>
66364         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66366 2009-08-02  Bruno Haible  <bruno@clisp.org>
66368         Tests for module 'uname'.
66369         * modules/uname-tests: New file.
66370         * tests/test-uname.c: New file.
66372         New module 'uname'.
66373         * lib/uname.c: New file.
66374         * m4/uname.m4: New file.
66375         * modules/uname: New file.
66376         * doc/posix-functions/uname.texi: Mention the new module.
66378 2009-08-02  Bruno Haible  <bruno@clisp.org>
66380         Tests for module 'sys_utsname'.
66381         * modules/sys_utsname-tests: New file.
66382         * tests/test-sys_utsname.c: New file.
66384         New module 'sys_utsname'.
66385         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66386         * m4/sys_utsname_h.m4: New file.
66387         * modules/sys_utsname: New file.
66388         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66390 2009-08-02  Bruno Haible  <bruno@clisp.org>
66392         Implicitly initialize the sockets library.
66393         * lib/gethostname.c: Include sockets.h.
66394         (rpl_gethostname): Invoke gl_sockets_startup.
66395         * lib/socket.c: Include sockets.h.
66396         (rpl_socket): Invoke gl_sockets_startup.
66397         * modules/gethostname (Depends-on): Add sockets.
66398         * modules/socket (Depends-on): Likewise.
66399         * tests/test-poll.c: Don't include sockets.h.
66400         (main): Don't invoke gl_sockets_startup.
66401         * tests/test-select.c: Don't include sockets.h.
66402         (main): Don't invoke gl_sockets_startup.
66404 2009-08-02  Bruno Haible  <bruno@clisp.org>
66406         Allow multiple calls to gl_sockets_startup.
66407         * lib/sockets.c (initialized_sockets_version): New variable.
66408         (gl_sockets_startup): Do nothing if already called for this or a higher
66409         version.
66410         (gl_sockets_cleanup): Reset initialized_sockets_version.
66412 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66414         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66415         different project/version.
66417 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66418             Bruno Haible  <bruno@clisp.org>
66420         Tests for module 'pipe-filter-gi'.
66421         * modules/pipe-filter-gi-tests: New file.
66422         * tests/test-pipe-filter-gi1.sh: New file.
66423         * tests/test-pipe-filter-gi1.c: New file.
66424         * tests/test-pipe-filter-gi2.sh: New file.
66425         * tests/test-pipe-filter-gi2-main.c: New file.
66426         * tests/test-pipe-filter-gi2-child.c: New file.
66428         New module 'pipe-filter-gi'.
66429         * lib/pipe-filter-gi.c: New file.
66430         * modules/pipe-filter-gi: New file.
66432 2009-08-02  Bruno Haible  <bruno@clisp.org>
66433             Paolo Bonzini  <bonzini@gnu.org>
66435         Tests for module 'pipe-filter-ii'.
66436         * modules/pipe-filter-ii-tests: New file.
66437         * tests/test-pipe-filter-ii1.sh: New file.
66438         * tests/test-pipe-filter-ii1.c: New file.
66439         * tests/test-pipe-filter-ii2.sh: New file.
66440         * tests/test-pipe-filter-ii2-main.c: New file.
66441         * tests/test-pipe-filter-ii2-child.c: New file.
66443         New module 'pipe-filter-ii'.
66444         * lib/pipe-filter.h: New file.
66445         * lib/pipe-filter-ii.c: New file.
66446         * lib/pipe-filter-aux.h: New file.
66447         * modules/pipe-filter-ii: New file.
66449 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66451         * lib/gc-libgcrypt.c: Change copyright to FSF.
66452         * lib/gc-gnulib.c: Likewise.
66454 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66456         * lib/gethostname.c: Include limits.h.
66458 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66459             Bruno Haible  <bruno@clisp.org>
66461         Ensure HOST_NAME_MAX as part of the gethostname module.
66462         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66463         define also HOST_NAME_MAX.
66464         * tests/test-gethostname.c: Include <limits.h>.
66465         (main): Check also HOST_NAME_MAX.
66466         * doc/posix-headers/limits.texi: Document the mingw problem.
66468 2009-08-02  Bruno Haible  <bruno@clisp.org>
66470         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66471         Add comments.
66473 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66475         * lib/gethostname.c: Add Windows wrapper.
66476         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66477         * modules/gethostname: Depend on sys_socket & errno, for also
66478         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66479         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66481 2009-07-31  Jim Meyering  <meyering@redhat.com>
66483         getloadavg: fix symbol name in comment
66484         * lib/getloadavg.c: Correct a typo I introduced when adding
66485         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66486         Matt Kraai spotted the problem.
66488 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66490         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66491         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66492         code also if ! defined N_NAME_POINTER.
66493         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66494         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66495         but the n_name member is a 12-byte array.
66497 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66499         update-copyright: generalize comment handling
66500         * build-aux/update-copyright: Handle copyright statements
66501         within more comment styles.
66502         Document usage.
66503         Report any file with an external copyright holder or parse failure.
66505 2009-07-29  Jim Meyering  <meyering@redhat.com>
66507         mktime: correct setting of REPLACE_MKTIME
66508         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66510         update-copyright: new module
66511         * modules/update-copyright: New file.
66512         * build-aux/update-copyright: New file.
66513         * MODULES.html.sh (maint+release support): Add update-copyright.
66515 2009-07-27  Bruno Haible  <bruno@clisp.org>
66517         Fix compilation error when <ctime> is used and mktime is replaced.
66518         * lib/time.in.h (mktime): New declaration.
66519         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66520         REPLACE_MKTIME instead of defining mktime in config.h.
66521         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66522         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66523         Reported by Ross McFarland <rwmcfa1@neces.com>.
66525 2009-07-27  Bruno Haible  <bruno@clisp.org>
66527         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66528         Reported by Matt Kraai <mkraai@beckman.com>.
66530 2009-07-25  Jim Meyering  <meyering@redhat.com>
66532         maint.mk: avoid warnings about missing files
66533         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66534         diagnostic when .prev-version does not exist.
66535         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66536         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66537         nonexistent cfg.mk.
66538         Suggestions from Simon Josefsson.
66540 2009-07-25  Bruno Haible  <bruno@clisp.org>
66542         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66543         defined as macros. Needed on QNX 6.4.1.
66544         Reported by Matt Kraai <mkraai@beckman.com>.
66546 2009-07-23  Jim Meyering  <meyering@redhat.com>
66548         maint.mk: invoke "make dist" with a working value of XZ_OPT
66549         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66551 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66553         Make fseeko.c compile on QNX.
66554         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66556 2009-07-22  Peter Simons  <simons@cryp.to>
66558         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66559         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66560         * lib/md4.h: Likewise.
66561         * lib/md5.h: Likewise.
66562         * lib/sha1.h: Likewise.
66563         * lib/sha256.h: Likewise.
66564         * lib/sha512.h: Likewise.
66566         tests-sha1: don't assign literal string to 'char *' variable
66567         * tests/test-sha1.c (main): Declare locals with "const" to match
66568         attributes of the right hand side.
66570 2009-07-21  Eric Blake  <ebb9@byu.net>
66572         dup2: fix more mingw problems
66573         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66574         fd to itself.
66575         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66576         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66577         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66578         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66579         care of mingw bugs.
66581 2009-07-21  Jim Meyering  <meyering@redhat.com>
66583         vc-list-files: avoid failure when /bin/sh is dash
66584         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66585         On some Debian based systems, /bin/sh is a symlink to dash, and running
66586         this command would omit the "/" following each 'tests' prefix:
66587           dash -x build-aux/vc-list-files -C . tests
66588         That is because bash and dash work differently:
66589           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66590           bash ok
66591           dash odd
66593 2009-07-21  Eric Blake  <ebb9@byu.net>
66595         dup2-tests: test previous patch
66596         * modules/dup2-tests: New file.
66597         * tests/test-dup2.c: Likewise.
66598         * tests/test-open.c (main): Avoid unspecified behavior.
66599         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66600         test.
66602         dup2: work around mingw and cygwin 1.5 bug
66603         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66605         * modules/unistd (Makefile.am): Substitute it.
66606         * lib/unistd.in.h (dup2): Declare the replacement.
66607         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66608         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66609         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66610         * modules/execute (Depends-on): Add dup2.
66611         * modules/fseterr (Depends-on): Likewise.
66612         * modules/pipe (Depends-on): Likewise.
66613         * modules/posix_spawn-internal (Depends-on): Likewise.
66615 2009-07-21  Bruno Haible  <bruno@clisp.org>
66617         * modules/.gitattributes: New file.
66619 2009-07-20  Bruno Haible  <bruno@clisp.org>
66621         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66622         (main): Use it.
66624 2009-07-20  Eric Blake  <ebb9@byu.net>
66626         test-pipe: make a bit more robust.
66627         * tests/test-pipe.c (myerr): Allow error messages regardless of
66628         what we do to stderr.
66629         (test_pipe): Rearrange to avoid deadlock.
66630         (child_main): Try a larger read, to ensure we avoided deadlock.
66631         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66632         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66633         if misused.
66635 2009-07-19  Jim Meyering  <meyering@redhat.com>
66637         fts: avoid false-positive cycle-detection
66638         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66639         for each new command line argument.
66641 2009-07-19  Bruno Haible  <bruno@clisp.org>
66643         Fix build error on mingw with the modules sys_select and unistd.
66644         * modules/acl-tests (Depends-on): Add close.
66645         * modules/binary-io-tests (Depends-on): Likewise.
66646         * modules/closein-tests (Depends-on): Likewise.
66647         * modules/flock-tests (Depends-on): Likewise.
66648         * modules/fsync-tests (Depends-on): Likewise.
66649         * modules/lseek-tests (Depends-on): Likewise.
66650         * modules/pipe-tests (Depends-on): Likewise.
66651         * modules/posix_spawn-tests (Depends-on): Likewise.
66652         * modules/posix_spawnp-tests (Depends-on): Likewise.
66653         * modules/stat-time-tests (Depends-on): Likewise.
66654         * modules/yesno-tests (Depends-on): Likewise.
66656 2009-07-19  Bruno Haible  <bruno@clisp.org>
66658         Unify conditionals.
66659         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66660         macros, not at the compiler macros.
66661         * lib/pipe.c: Likewise.
66662         * lib/execute.c: Likewise.
66663         * lib/spawni.c: Likewise.
66665 2009-07-19  Bruno Haible  <bruno@clisp.org>
66667         Fix handling of closed stdin/stdout/stderr on mingw.
66668         * lib/w32spawn.h: Include unistd.h.
66669         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66670         file descriptor with O_NOINHERIT flag.
66671         (fd_safer_noinherit): New function, based on fd-safer.c.
66672         (dup_safer_noinherit): New function, based on dup-safer.c.
66673         (undup_safer_noinherit): New function.
66674         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66675         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66676         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66677         instead of fd_safer.
66678         * tests/test-pipe.c: Include <windows.h>.
66679         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66680         result.
66682         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66683         from main.
66684         (test_pipe): Pass an extra argument for disambiguation.
66685         (main): Invoke parent_main or child_main.
66687         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66688         consistently.
66690 2009-07-18  Eric Blake  <ebb9@byu.net>
66692         test-pipe: fix mingw build
66693         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66695 2009-07-18  Bruno Haible  <bruno@clisp.org>
66697         * modules/pipe-tests (Makefile.am): Fix typo.
66699 2009-07-18  Eric Blake  <ebb9@byu.net>
66701         error: fix mingw build
66702         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66703         Reported by Bruno Haible.
66705         error: avoid undefined use of stdout
66706         * lib/error.c (error, error_at_line): Check that fd 1 is open
66707         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66708         is handling faults and the close_stdout module wants to report the
66709         detection of closed stdout as an error.
66711 2009-07-17  Eric Blake  <ebb9@byu.net>
66713         pipe: be robust in face of closed fds
66714         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66715         should cause child to misbehave.
66716         * modules/pipe-tests: New module.
66717         * tests/test-pipe.c: New file.
66718         * tests/test-pipe.sh: New file.
66719         Reported by Akim Demaille.
66721 2009-07-14  Bruno Haible  <bruno@clisp.org>
66723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66724         Reported by anonymous kc.
66726 2009-07-07  Jim Meyering  <meyering@redhat.com>
66728         maint.mk: don't look for translatable strings in *.m4 or *.mk
66729         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66730         when searching for translatable strings.
66732 2009-07-05  Jim Meyering  <meyering@redhat.com>
66734         remove superfluous parentheses in STREQ definition
66735         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66736         * lib/getugroups.c (STREQ): Likewise.
66737         * lib/fnmatch.c (STREQ): Likewise.
66738         Spotted by Bruno Haible.
66740 2009-07-04  Jim Meyering  <meyering@redhat.com>
66742         argv-iter: new module
66743         * MODULES.html.sh: Add argv-iter.
66744         * lib/argv-iter.c, lib/argv-iter.h: New files.
66745         * modules/argv-iter: New file.
66746         * modules/argv-iter-tests: New file.
66747         * tests/test-argv-iter.c: Test it.
66749 2009-07-04  Bruno Haible  <bruno@clisp.org>
66751         Fix assertion.
66752         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66753         contains more exact copies of a given entry than file2, leave the extra
66754         copies unpaired rather than aborting.
66755         Reported by Eric Blake.
66757 2009-07-02  Bruno Haible  <bruno@clisp.org>
66759         Speedup git-merge-changelog for git cherry-pick.
66760         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66761         (entries_mapping_get): New function, extracted from compute_mapping.
66762         (entries_mapping_reverse_get): New function.
66763         (compute_mapping): Add a 'full' argument. Return the result in a
66764         'struct entries_mapping'.
66765         (main): Update. Access the mappings through entries_mapping_get.
66766         Reported by Eric Blake.
66768 2009-07-02  Bruno Haible  <bruno@clisp.org>
66770         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66771         best_i.
66773 2009-07-02  Bruno Haible  <bruno@clisp.org>
66775         Speed up approximate search for matching ChangeLog entries.
66776         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66777         argument. Call fstrcmp_bounded instead of fstrcmp.
66778         (compute_mapping, try_split_merged_entry, main): Update callers.
66780 2009-07-02  Bruno Haible  <bruno@clisp.org>
66782         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66784 2009-06-30  Bruno Haible  <bruno@clisp.org>
66786         Reduce the number of uc_is_cased calls.
66787         * lib/unicase.h (casing_suffix_context_t): Add
66788         'first_char_except_ignorable' field.
66789         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66790         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66791         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66792         Update initializer.
66793         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66794         case-ignorable characters.
66795         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66796         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66797         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66798         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66799         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66801 2009-06-30  Bruno Haible  <bruno@clisp.org>
66803         Tests for module 'unicase/ignorable'.
66804         * modules/unicase/ignorable-tests: New file.
66805         * tests/unicase/test-ignorable.c: New file, generated by
66806         gen-uni-tables.
66808         Tests for module 'unicase/cased'.
66809         * modules/unicase/cased-tests: New file.
66810         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66811         * tests/unicase/test-predicate-part1.h: New file, derived from
66812         tests/unictype/test-predicate-part1.h.
66813         * tests/unicase/test-predicate-part2.h: New file, same as
66814         tests/unictype/test-predicate-part2.h.
66816         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66817         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66818         (output_casing_properties): New function.
66819         (main): Call it.
66820         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66821         * lib/unicase/cased.c: Include unictype/bitmap.h.
66822         (uc_is_cased): Define through a bitmap lookup.
66823         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66824         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66825         (uc_is_case_ignorable): Define through a bitmap lookup.
66826         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66827         lib/unictype/bitmap.h.
66828         (Depends-on): Add inline. Clean up.
66829         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66830         lib/unictype/bitmap.h.
66831         (Depends-on): Add inline. Clean up.
66832         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66833         recognition.
66834         * tests/unicase/test-u16-tolower.c (main): Likewise.
66835         * tests/unicase/test-u32-tolower.c (main): Likewise.
66837 2009-06-30  Bruno Haible  <bruno@clisp.org>
66839         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66840         * lib/unicase/u16-casemap.c: Likewise.
66841         * lib/unicase/u32-casemap.c: Likewise.
66843 2009-06-29  Bruno Haible  <bruno@clisp.org>
66845         Define u32_casefold as a wrapper around u32_ct_casefold.
66846         * lib/unicase/u32-casefold.c: Update.
66847         * modules/unicase/u32-casefold (Depends-on): Add
66848         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66849         unicase/empty-suffix-context. Clean up.
66851         Define u16_casefold as a wrapper around u16_ct_casefold.
66852         * lib/unicase/u16-casefold.c: Update.
66853         * modules/unicase/u16-casefold (Depends-on): Add
66854         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66855         unicase/empty-suffix-context. Clean up.
66857         Define u8_casefold as a wrapper around u8_ct_casefold.
66858         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66859         * lib/unicase/u8-casefold.c: Update.
66860         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66861         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66863         Define u32_totitle as a wrapper around u32_ct_totitle.
66864         * lib/unicase/u32-totitle.c: Update.
66865         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66866         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66868         Define u16_totitle as a wrapper around u16_ct_totitle.
66869         * lib/unicase/u16-totitle.c: Update.
66870         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66871         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66873         Define u8_totitle as a wrapper around u8_ct_totitle.
66874         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66875         functions.
66876         (FUNC): Delegate to U_CT_TOTITLE.
66877         * lib/unicase/u8-totitle.c: Update.
66878         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66879         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66881         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66882         invocation.
66883         * modules/unicase/u32-tolower (Depends-on): Add
66884         unicase/empty-prefix-context, unicase/empty-suffix-context.
66886         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66887         invocation.
66888         * modules/unicase/u16-tolower (Depends-on): Add
66889         unicase/empty-prefix-context, unicase/empty-suffix-context.
66891         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66892         * modules/unicase/u8-tolower (Depends-on): Add
66893         unicase/empty-prefix-context, unicase/empty-suffix-context.
66895         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66896         invocation.
66897         * modules/unicase/u32-toupper (Depends-on): Add
66898         unicase/empty-prefix-context, unicase/empty-suffix-context.
66900         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66901         invocation.
66902         * modules/unicase/u16-toupper (Depends-on): Add
66903         unicase/empty-prefix-context, unicase/empty-suffix-context.
66905         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66906         * modules/unicase/u8-toupper (Depends-on): Add
66907         unicase/empty-prefix-context, unicase/empty-suffix-context.
66909         New module 'unicase/u32-ct-casefold'.
66910         * lib/unicase/u32-ct-casefold.c: New file.
66911         * modules/unicase/u32-ct-casefold: New file.
66913         New module 'unicase/u16-ct-casefold'.
66914         * lib/unicase/u16-ct-casefold.c: New file.
66915         * modules/unicase/u16-ct-casefold: New file.
66917         New module 'unicase/u8-ct-casefold'.
66918         * lib/unicase/u8-ct-casefold.c: New file.
66919         * lib/unicase/u-ct-casefold.h: New file, derived from
66920         lib/unicase/u-casefold.h.
66921         * modules/unicase/u8-ct-casefold: New file.
66923         New module 'unicase/u32-ct-totitle'.
66924         * lib/unicase/u32-ct-totitle.c: New file.
66925         * modules/unicase/u32-ct-totitle: New file.
66927         New module 'unicase/u16-ct-totitle'.
66928         * lib/unicase/u16-ct-totitle.c: New file.
66929         * modules/unicase/u16-ct-totitle: New file.
66931         New module 'unicase/u8-ct-totitle'.
66932         * lib/unicase/u8-ct-totitle.c: New file.
66933         * lib/unicase/u-ct-totitle.h: New file, derived from
66934         lib/unicase/u-totitle.h.
66935         * modules/unicase/u8-ct-totitle: New file.
66937         New module 'unicase/u32-ct-tolower'.
66938         * lib/unicase/u32-ct-tolower.c: New file.
66939         * modules/unicase/u32-ct-tolower: New file.
66941         New module 'unicase/u16-ct-tolower'.
66942         * lib/unicase/u16-ct-tolower.c: New file.
66943         * modules/unicase/u16-ct-tolower: New file.
66945         New module 'unicase/u8-ct-tolower'.
66946         * lib/unicase/u8-ct-tolower.c: New file.
66947         * modules/unicase/u8-ct-tolower: New file.
66949         New module 'unicase/u32-ct-toupper'.
66950         * lib/unicase/u32-ct-toupper.c: New file.
66951         * modules/unicase/u32-ct-toupper: New file.
66953         New module 'unicase/u16-ct-toupper'.
66954         * lib/unicase/u16-ct-toupper.c: New file.
66955         * modules/unicase/u16-ct-toupper: New file.
66957         New module 'unicase/u8-ct-toupper'.
66958         * lib/unicase/u8-ct-toupper.c: New file.
66959         * modules/unicase/u8-ct-toupper: New file.
66961         Add context arguments to u*_casemap functions.
66962         * lib/unicase/unicasemap.h: Include unicase.h.
66963         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66964         suffix_context arguments.
66965         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66966         functions.
66967         (FUNC): Add prefix_context and suffix_context arguments. Use
66968         uc_is_cased and uc_is_case_ignorable.
66969         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66970         * lib/unicase/u16-casemap.c: Likewise.
66971         * lib/unicase/u32-casemap.c: Likewise.
66972         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66973         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66974         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66975         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66976         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66977         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66979         New module 'unicase/u32-suffix-context'.
66980         * lib/unicase/u32-suffix-context.c: New file.
66981         * modules/unicase/u32-suffix-context: New file.
66983         New module 'unicase/u16-suffix-context'.
66984         * lib/unicase/u16-suffix-context.c: New file.
66985         * modules/unicase/u16-suffix-context: New file.
66987         New module 'unicase/u8-suffix-context'.
66988         * lib/unicase/u8-suffix-context.c: New file.
66989         * lib/unicase/u-suffix-context.h: New file.
66990         * modules/unicase/u8-suffix-context: New file.
66992         New module 'unicase/empty-suffix-context'.
66993         * lib/unicase/empty-suffix-context.c: New file.
66994         * modules/unicase/empty-suffix-context: New file.
66996         New module 'unicase/u32-prefix-context'.
66997         * lib/unicase/u32-prefix-context.c: New file.
66998         * modules/unicase/u32-prefix-context: New file.
67000         New module 'unicase/u16-prefix-context'.
67001         * lib/unicase/u16-prefix-context.c: New file.
67002         * modules/unicase/u16-prefix-context: New file.
67004         New module 'unicase/u8-prefix-context'.
67005         * lib/unicase/u8-prefix-context.c: New file.
67006         * lib/unicase/u-prefix-context.h: New file.
67007         * lib/unicase/context.h: New file.
67008         * modules/unicase/u8-prefix-context: New file.
67010         New module 'unicase/empty-prefix-context'.
67011         * lib/unicase/empty-prefix-context.c: New file.
67012         * modules/unicase/empty-prefix-context: New file.
67014         New module 'unicase/ignorable'.
67015         * lib/unicase/ignorable.c: New file.
67016         * modules/unicase/ignorable: New file.
67018         New module 'unicase/cased'.
67019         * lib/unicase/caseprop.h: New file.
67020         * lib/unicase/cased.c: New file.
67021         * modules/unicase/cased: New file.
67023         New functions for case mapping of substrings.
67024         * lib/unicase.h (casing_prefix_context_t): New type.
67025         (unicase_empty_prefix_context): New variable.
67026         (u8_casing_prefix_context, u16_casing_prefix_context,
67027         u32_casing_prefix_context, u8_casing_prefixes_context,
67028         u16_casing_prefixes_context, u32_casing_prefixes_context): New
67029         declarations.
67030         (casing_suffix_context_t): New type.
67031         (unicase_empty_suffix_context): New variable.
67032         (u8_casing_suffix_context, u16_casing_suffix_context,
67033         u32_casing_suffix_context, u8_casing_suffixes_context,
67034         u16_casing_suffixes_context, u32_casing_suffixes_context,
67035         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
67036         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
67037         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
67038         declarations.
67040 2009-06-28  Jim Meyering  <meyering@redhat.com>
67042         boostrap: indent only with spaces
67043         * build-aux/bootstrap: Indent only with spaces, never TABs.
67045         bootstrap: split long lines
67046         * build-aux/bootstrap: Keep line length < 80.
67048         bootstrap: sync from coreutils
67049         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
67050         just as autoreconf does.  Verify a list of prerequisite
67051         package-name,version-number pairs if defined in bootstrap.conf.
67052         Refer to README-prereq, if prerequisites are not satisfied.
67054 2009-06-27  Eric Blake  <ebb9@byu.net>
67056         tests: add test for bogus NULL definition
67057         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
67058         * tests/test-stdlib.c: Likewise.
67059         * tests/test-string.c: Likewise.
67060         * tests/test-locale.c: Likewise.
67061         * tests/test-unistd.c: Likewise.
67062         * modules/stdio-tests (Depends-on): Add verify.
67063         * modules/stdlib-tests (Depends-on): Likewise.
67064         * modules/string-tests (Depends-on): Likewise.
67065         * modules/locale-tests (Depends-on): Likewise.
67066         * modules/unistd-tests (Depends-on): Likewise.
67068 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
67070         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
67071         self-explaining comment.
67072         * m4/selinux-selinux-h: Update serial.
67073         (gl_LIBSELINUX): New macro, adding a warning for missing development
67074         packages to code extracted from...
67075         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
67076         Add warning for missing development packages here, too.
67078 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
67080         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
67082 2009-06-25  Eric Blake  <ebb9@byu.net>
67084         version-etc: fix regression
67085         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
67086         gcc.
67087         (version_etc): Use it, to catch bugs with trailing NULL.
67088         * lib/version-etc.c (version_etc_arn): Delete unused argument.
67089         (version_etc_va): Fix logic bug.
67090         * modules/version-etc-tests: Add test.
67091         * tests/test-version-etc.c: New file.
67092         * tests/test-version-etc.sh: Likewise.
67094 2009-06-25  Sam Steingold  <sds@gnu.org>
67096         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
67097         mbtowc declaration.
67099 2009-06-25  Eric Blake  <ebb9@byu.net>
67101         fpurge: migrate into <stdio.h>
67102         * lib/fpurge.h: Delete...
67103         * lib/stdio.in.h (fpurge): ...and declare here, instead.
67104         * lib/fpurge.c (fpurge): Change declaring header.
67105         * modules/fpurge (Files): Drop deleted file.
67106         (Depends-on): Add stdio.
67107         (configure.ac): Set witness.
67108         * modules/stdio (Makefile.am): Support fpurge macros.
67109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67110         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
67111         * lib/fflush.c: Update client.
67112         * tests/test-fpurge.c: Likewise.
67113         * NEWS: Mention the change.
67115 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67117         * lib/argp-version-etc.c (program_authors): Add const
67118         qualifier.
67119         * lib/version-etc.c: Fix typos in the comments.
67120         * modules/argp-version-etc: Depends on version-etc.
67122 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67124         argp-version-etc: new module.
67126         * lib/argp-version-etc.c: New file.
67127         * lib/argp-version-etc.h: New file.
67128         * modules/argp-version-etc: New file.
67129         * modules/argp-version-etc-tests: New file.
67130         * tests/test-argp-version-etc.c: New test.
67131         * tests/test-argp-version-etc-1.sh: New test.
67133 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67135         Provide additional interfaces and documentation for version-etc
67136         module.
67138         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67139         interfaces.
67140         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67141         prototypes.
67143 2009-06-24  Bruno Haible  <bruno@clisp.org>
67145         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67146         HAVE_LIB${NAME} macro.
67147         Reported by Sam Steingold <sds@gnu.org>.
67149 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67151         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67152         needed.
67154 2009-06-21  Bruno Haible  <bruno@clisp.org>
67156         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67157         work.
67158         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67159         together with LIB${NAME}, LTLIB${NAME}.
67160         Reported by Sam Steingold <sds@gnu.org>.
67162 2009-06-20  Jim Meyering  <meyering@redhat.com>
67164         tests: make sc_require_test_exit_idiom more generic
67165         * top/maint.mk (Exit_witness_file): New overridable variable.
67166         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67167         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67169 2009-06-19  Jim Meyering  <meyering@redhat.com>
67171         hash: reverse order of src/dst parameters in an internal interface
67172         * lib/hash.c (transfer_entries): Reverse order of parameters to
67173         put DST before SRC.  Adjust callers.
67175         tests: test-hash: avoid wholesale duplication
67176         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67177         Instead, use a loop and add a single conditional.
67179         tests: test-hash: allow seed selection via a command line argument
67180         * tests/test-hash.c (get_seed): New function.
67181         (main): Use it.
67183 2009-06-19  Eric Blake  <ebb9@byu.net>
67185         hash: avoid memory leak on allocation failure
67186         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67187         failure.  Factor repeated algorithm...
67188         (transfer_entries): ...into new helper routine.
67189         (hash_delete): React to hash_rehash return value.
67191         hash: reduce memory pressure in hash_rehash no-op case
67192         * lib/hash.c (next_prime): Avoid overflow.
67193         (hash_initialize): Factor bucket size computation...
67194         (compute_bucket_size): ...into new helper function.
67195         (hash_rehash): Use new function and open coding to reduce memory
67196         pressure, and avoid a memory leak in USE_OBSTACK code.
67197         Reported by Jim Meyering.
67199 2009-06-18  Eric Blake  <ebb9@byu.net>
67201         hash: make rotation more obvious
67202         * modules/hash (Depends-on): Add bitrotate and stdint.
67203         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67204         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67205         (SIZE_MAX): Rely on headers for definition.
67206         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67207         (raw_hasher): Use rotr_sz.
67208         Suggested by Jim Meyering.
67210         hash: fix memory leak in last patch
67211         * lib/hash.c (hash_rehash): Avoid memory leak.
67213         hash: avoid no-op rehashing
67214         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67216         hash: provide default callback functions
67217         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67218         (hash_initialize): Use them as defaults.
67219         * tests/test-hash.c (main): Test this.
67221         hash: minor optimization
67222         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67223         when possible.
67224         (hash_initialize): Document this promise.
67225         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67226         * tests/test-hash.c (hash_compare_strings): Test this.
67228 2009-06-18  Bruno Haible  <bruno@clisp.org>
67230         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67231         going to be replaced anyway.
67233 2009-06-18  Bruno Haible  <bruno@clisp.org>
67235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67236         in one place.
67237         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67238         be replaced anyway.
67240 2009-06-18  Eric Blake  <ebb9@byu.net>
67242         hash: check for resize before insertion
67243         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67244         threshold before insertion, so that a pathological hash_rehash
67245         that fills every bucket can still trigger another rehash.
67247 2009-06-18  Jim Meyering  <meyering@redhat.com>
67249         hash-tests: add a loop around the small tests
67250         * tests/test-hash.c (main): Repeat small tests with selected
67251         small initial table sizes.
67253 2009-06-17  Eric Blake  <ebb9@byu.net>
67255         hash: minor cleanups
67256         * lib/hash.h (hash_entry): Make opaque, by moving...
67257         * lib/hash.c (hash_entry): ...here.
67258         (hash_insert): Clarify restrictions on what can be inserted.
67259         (hash_get_next): Clarify when it is safe to remove an element
67260         during traversal.
67261         (check_tuning): Skip verification when tuning is known safe.
67262         (hash_initialize): Clarify restrictions on tuning.
67264 2009-06-17  Jim Meyering  <jim@meyering.net>
67265         and Eric Blake  <ebb9@byu.net>
67267         hash-tests: new module
67268         * modules/hash-tests: New file.
67269         * tests/test-hash.c: New file.
67271 2009-06-17  Eric Blake  <ebb9@byu.net>
67273         strstr-simple: document new module
67274         * MODULES.html.sh: Document new module.
67276         strstr, strcasestr: replace on platforms with broken memchr
67277         * modules/strstr: Split into...
67278         * modules/strstr-simple: ...new module that does not care about
67279         performance, but does care about glibc bug.
67280         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67281         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67282         if platform memchr is broken, per Debian bug 521737.
67283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67284         memchr.
67285         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67286         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67287         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67288         * modules/mountlist (Depends-on): Add strstr-simple.
67289         * modules/gen-uni-tables (Depends-on): Likewise.
67290         * modules/argz (Depends-on): Add strstr.
67292 2009-06-17  Bruno Haible  <bruno@clisp.org>
67294         * modules/posix_spawn-internal (Depends-on): Add errno.
67296 2009-06-17  Bruno Haible  <bruno@clisp.org>
67298         Define missing ESTALE on Interix 3.5.
67299         * lib/errno.in.h (ESTALE): Assign a value if missing.
67300         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67302         missing.
67303         * doc/posix-headers/errno.texi: Mention the Interix bug.
67304         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67306 2009-06-15  Eric Blake  <ebb9@byu.net>
67308         memchr, memchr2: add valgrind exception
67309         * lib/memchr.valgrind: New file.
67310         * lib/memchr2.valgrind: New file.
67311         * modules/memchr (Files): Distribute valgrind file.
67312         * modules/memchr2 (Files): Likewise.
67314         docs: memchr is no longer obsolete
67315         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67316         * lib/string.in.h (memchr): Simplify logic.
67318 2009-06-14  Jim Meyering  <meyering@redhat.com>
67320         link-follow: fix the "checking..." message to not mention trailing slash
67321         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67322         never considered trailing slashes.
67324 2009-06-14  Bruno Haible  <bruno@clisp.org>
67326         * m4/memchr.m4: Mention also the bug on IA-64.
67327         * doc/posix-functions/memchr.texi: Likewise.
67329 2009-06-12  Eric Blake  <ebb9@byu.net>
67331         memchr: detect broken x86_64 and alpha implementations
67332         * modules/memchr-tests (Depends-on): Move mmap detection...
67333         * modules/memchr (Depends-on): ...here.
67334         (configure.ac): Set indicator.
67335         * lib/string.in.h (memchr): Declare replacement.
67336         * modules/string (Makefile.am): Trigger replacement.
67337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67338         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67339         bugs.
67340         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67341         * modules/getpagesize (License): Relax license.
67343 2009-06-11  Bruno Haible  <bruno@clisp.org>
67345         * lib/idpriv.h: Add more references.
67347 2009-06-08  Bruno Haible  <bruno@clisp.org>
67349         Tests for module 'idpriv-droptemp'.
67350         * modules/idpriv-droptemp-tests: New file.
67351         * tests/test-idpriv-droptemp.sh: New file.
67352         * tests/test-idpriv-droptemp.su.sh: New file.
67353         * tests/test-idpriv-droptemp.c: New file.
67355         New module 'idpriv-droptemp'.
67356         * lib/idpriv-droptemp.c: New file.
67357         * modules/idpriv-droptemp: New file.
67359 2009-06-08  Bruno Haible  <bruno@clisp.org>
67361         Tests for module 'idpriv-drop'.
67362         * modules/idpriv-drop-tests: New file.
67363         * tests/test-idpriv-drop.sh: New file.
67364         * tests/test-idpriv-drop.su.sh: New file.
67365         * tests/test-idpriv-drop.c: New file.
67367         New module 'idpriv-drop'.
67368         * lib/idpriv.h: New file.
67369         * lib-idpriv-drop.c: New file.
67370         * m4/idpriv.m4: New file.
67371         * modules/idpriv-drop: New file.
67373 2009-06-08  Bruno Haible  <bruno@clisp.org>
67375         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67376         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67377         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67378         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67379         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67380         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67381         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67383 2009-06-08  Eric Blake  <ebb9@byu.net>
67385         test-strstr: use memory fence, when possible
67386         * tests/test-strstr.c (main): Use memory fence, in order to be
67387         more likely to trigger Debian bug 521737.
67388         * modules/strstr-tests (Files): Pull in additional files.
67390         memchr: no longer obsolete, for wider field testing
67391         * modules/memchr (Status, Notice): Delete, this module is no
67392         longer obsolete.
67393         * modules/vasnprintf (Depends-on): Add memchr.
67395 2009-06-07  Jim Meyering  <meyering@redhat.com>
67397         hash: declare some functions with the warn_unused_result attribute
67398         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67400 2009-06-07  Bruno Haible  <bruno@clisp.org>
67402         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67403         Reported by Eric Blake.
67405 2009-06-06  Eric Blake  <ebb9@byu.net>
67407         test-alignof: fix typo with long double
67408         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67409         compiler error.
67411 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67413         Escape non-texinfo { and }s.
67414         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67415         markup error.
67417 2009-06-04  Jim Meyering  <meyering@redhat.com>
67419         gitlog-to-changelog: don't infloop on an empty commit log
67420         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67421         Reported by Boris Petersen <transacid@centerim.org>.
67423 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67425         version-etc: extend for packagers
67426         Add three new configure options, intended for packagers:
67427           --with-packager="packager name"
67428           --with-packager-version="packager-specific version"
67429           --with-packager-bug-reports="packager bug reporting"
67430         An example with coreutils:
67431           $ ./configure \
67432             --with-packager=Gentoo \
67433             --with-packager-bug-report=http://bugs.gentoo.org/ \
67434             --with-packager-version="patchset 1.6"
67435           $ ./src/ls --version | head -n2
67436           ls (GNU coreutils) 7.1-dirty
67437           Packaged by Gentoo (patchset 1.6)
67438         Note that the bug reporting info via --help doesn't show up because
67439         coreutils uses its own custom emit_bug_reporting_address() implementation
67440         in src/system.h.  If it didn't, it'd look like:
67441           $ ./src/ls --help | tail -n4
67442           Report bugs to <bug-coreutils@gnu.org>.
67443           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67444           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67445           General help using GNU software: <http://www.gnu.org/gethelp/>.
67446         * lib/version-etc.c: Print new information, if provided.
67447         * m4/version-etc.m4: New file.
67448         * modules/version-etc (Files): Add m4/version-etc.m4.
67449         (configure.ac): Add gl_VERSION_ETC.
67451 2009-05-31  Bruno Haible  <bruno@clisp.org>
67453         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67454         and 'int64_t'.
67455         * modules/alignof-tests (Dependencies): Add stdint.
67456         Reported by Eric Blake.
67458 2009-05-31  Bruno Haible  <bruno@clisp.org>
67460         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67461         restriction due to compiler bugs.
67462         Reported by Eric Blake.
67464 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67465             Bruno Haible  <bruno@clisp.org>
67467         Fix test-alignof failure.
67468         * lib/alignof.h (alignof_slot): New macro.
67469         (alignof_type): New macro, with the same semantics as the previous
67470         'alignof'.
67471         (alignof): Alias to alignof_slot.
67472         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67473         check that the results are usable as constant expressions.
67475 2009-05-31  Bruno Haible  <bruno@clisp.org>
67477         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67478         * tests/test-memchr.c (main): Check that memchr does not read past the
67479         first occurrence of the byte.
67480         * tests/test-strstr.c (main): Update comment.
67481         Suggested by Eric Blake.
67483 2009-05-30  Bruno Haible  <bruno@clisp.org>
67485         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67486         detail how to use dumpbin.
67487         Reported by David Byron <dbyron@dbyron.com>.
67489 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67491         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67493 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67495         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67497 2009-05-28  Bruno Haible  <bruno@clisp.org>
67499         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67500         build-aux/ files.
67502 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67504         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67506 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67508         * gnulib-tool (sed_transform_main_lib_file)
67509         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67510         regexps.
67512 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67514         * tests/test-strstr.c: Add another self-test.
67515         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67516         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67518 2009-05-23  Bruno Haible  <bruno@clisp.org>
67520         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67521         change.
67523 2009-05-21  Bruno Haible  <bruno@clisp.org>
67525         Simplify use of mode_t varargs.
67526         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67527         uses 'mode_t' or 'int'.
67528         * lib/openat.c (openat): Likewise.
67529         * lib/open-safer.c (open_safer): Likewise.
67530         * m4/mode_t.m4: New file.
67531         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67532         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67533         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67534         * modules/open (Files): Add m4/mode_t.m4.
67535         * modules/openat (Files): Likewise.
67536         * modules/fcntl-safer (Files): Likewise.
67537         Suggested by Eric Blake.
67539 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67541         * doc/glibc-functions/fallocate.texi: New file.
67542         * doc/gnulib.texi: Include it.
67544 2009-05-21  Eric Blake  <ebb9@byu.net>
67545             Bruno Haible  <bruno@clisp.org>
67547         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67548         invocations.
67549         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67551 2009-05-21  Eric Blake  <ebb9@byu.net>
67552             Bruno Haible  <bruno@clisp.org>
67554         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67555         include_next. Fix of 2008-11-20 commit.
67556         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67557         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67558         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67559         NEXT_MATH_H.
67560         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67561         instead of NEXT_MATH_H.
67563 2009-05-21  Bruno Haible  <bruno@clisp.org>
67565         Avoid redefinition warnings for SIZE_MAX.
67566         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67567         Reported by Simon Josefsson.
67569 2009-05-21  Bruno Haible  <bruno@clisp.org>
67571         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67572         AC_CACHE_VAL.
67574 2009-05-20  Bruno Haible  <bruno@clisp.org>
67576         Make zeroptr.h work on mingw.
67577         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67578         mprotect.
67579         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67580         * modules/memchr2-tests (configure.ac): Likewise.
67581         * modules/memcmp-tests (configure.ac): Likewise.
67582         * modules/memmem-tests (configure.ac): Likewise.
67583         * modules/memrchr-tests (configure.ac): Likewise.
67584         Reported by Simon Josefsson.
67586 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67588         * tests/test-glob.c: Include string.h for strcmp prototype.
67590 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67592         * modules/getdelim (Depends-on): Add explicit stdint, although it
67593         was implicitly already pulled in via realloc-posix.
67594         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67596 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67598         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67599         G. Christensen" <tgc@jupiterrise.com>.
67600         * m4/sys_socket_h.m4: Check for sa_family_t.
67601         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67602         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67603         * tests/test-sys_socket.c: Check that sa_family_t works.
67605 2009-05-18  Eric Blake  <ebb9@byu.net>
67607         maint.mk: allow gnulib_dir in VPATH build
67608         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67610 2009-05-15  Jim Meyering  <meyering@redhat.com>
67612         maint.mk: Give gnulib_dir a default definition.
67613         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67614         Thus, most packages no longer need to specify this variable in cfg.mk
67616 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67618         rename.m4: fix typos that would make non-mingw cross-configure fail
67619         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67621 2009-05-13  Eric Blake  <ebb9@byu.net>
67623         mmap-anon: avoid out-of-order autoconf expansion
67624         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67625         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67626         * modules/memchr-tests (Depends-on): Add extensions.
67627         * modules/memchr2-tests (Depends-on): Add extensions.
67628         * modules/memcmp-tests (Depends-on): Add extensions.
67629         * modules/memmem-tests (Depends-on): Add extensions.
67630         * modules/memrchr-tests (Depends-on): Add extensions.
67632 2009-05-13  Bruno Haible  <bruno@clisp.org>
67634         Make some tests ISO C 99 compliant.
67635         * tests/zerosize-ptr.h: New file.
67636         * tests/test-memchr.c: Include zerosize-ptr.h.
67637         (main): Use a zero-size object pointer instead of NULL.
67638         * tests/test-memchr2.c: Include zerosize-ptr.h.
67639         (main): Use a zero-size object pointer instead of NULL.
67640         * tests/test-memcmp.c: Include zerosize-ptr.h.
67641         (main): Use a zero-size object pointer instead of NULL.
67642         * tests/test-memmem.c: Include zerosize-ptr.h.
67643         (main): Use a zero-size object pointer instead of NULL.
67644         * tests/test-memrchr.c: Include zerosize-ptr.h.
67645         (main): Use a zero-size object pointer instead of NULL.
67646         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67647         m4/mmap-anon.m4.
67648         (Depends-on): Add getpagesize.
67649         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67650         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67651         m4/mmap-anon.m4.
67652         (Depends-on): Add getpagesize.
67653         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67654         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67655         m4/mmap-anon.m4.
67656         (Depends-on): Add getpagesize.
67657         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67658         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67659         m4/mmap-anon.m4.
67660         (Depends-on): Add getpagesize.
67661         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67662         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67663         m4/mmap-anon.m4.
67664         (Depends-on): Add getpagesize.
67665         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67667 2009-05-12  Bruno Haible  <bruno@clisp.org>
67669         Tests for module 'alignof'.
67670         * modules/alignof-tests: New file.
67671         * tests/test-alignof.c: New file.
67673 2009-05-12  Bruno Haible  <bruno@clisp.org>
67675         Fix alignof macro.
67676         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67677         vendor compilers that are always correct.
67679 2009-05-12  Bruno Haible  <bruno@clisp.org>
67681         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67682         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67683         not whether its fully works.
67685 2009-05-12  Bruno Haible  <bruno@clisp.org>
67687         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67689 2009-05-12  Jim Meyering  <meyering@redhat.com>
67691         * top/maint.mk: Adjust backslash alignment.
67693 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67695         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67697 2009-05-11  Eric Blake  <ebb9@byu.net>
67699         argp: avoid undefined behavior
67700         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67701         macros.
67703 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67705         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67706         user.name to prevent git commit from complaining.
67708 2009-05-10  Bruno Haible  <bruno@clisp.org>
67710         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67711         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67712         it rewrites every file name only once.
67713         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67715 2009-05-08  Bruno Haible  <bruno@clisp.org>
67717         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67718         instead of 'max'.
67720 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67722         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67723         sockaddr_storage test.
67725 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67727         * modules/sys_socket (Makefile.am): Substitute
67728         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67729         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67730         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67731         * tests/test-sys_socket.c: Check sockaddr_storage.
67733 2009-05-08  Bruno Haible  <bruno@clisp.org>
67735         New module 'alignof'.
67736         * lib/alignof.h: New file.
67737         * modules/alignof: New file.
67739 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67740             Bruno Haible  <bruno@clisp.org>
67742         Fix test-file-has-acl on FreeBSD.
67743         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67744         mask is implicitly added.
67745         * tests/test-file-has-acl.c: Include <signal.h>.
67746         (main): Terminate the test after 5 seconds.
67747         * modules/acl-tests (configure.ac): Check for alarm function.
67749 2009-05-04  Bruno Haible  <bruno@clisp.org>
67751         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67752         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67753         * modules/errno (configure.ac): Drop AC_REQUIRE.
67754         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67755         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67757 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67759         * modules/glob-tests: New module.
67760         * tests/test-glob.c: Add.
67762 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67764         * modules/fnmatch-tests: New module.
67765         * tests/test-fnmatch.c: Add.
67767 2009-05-04  Eric Blake  <ebb9@byu.net>
67769         maint: make the new no-submodule-changes rule VPATH-safe
67770         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67772 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67773             Bruno Haible  <bruno@clisp.org>
67775         acl: Fix infinite loop on FreeBSD.
67776         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67777         of return value from acl_get_entry.
67778         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67779         Likewise.
67781 2009-05-03  Bruno Haible  <bruno@clisp.org>
67783         * lib/acl-internal.h (acl_entries): Clarify return value.
67784         * lib/acl_entries.c (acl_entries): Likewise.
67786 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67788         Bug fix in acl module.
67789         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67791 2009-05-03  Bruno Haible  <bruno@clisp.org>
67793         Create gperf-generated file in the source dir, not in the build dir.
67794         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67795         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67796         * modules/unicase/locale-language (unicase/locale-languages.h):
67797         Likewise.
67798         * modules/unicase/special-casing (unicase/special-casing-table.h):
67799         Likewise.
67800         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67801         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67802         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67803         Reported by Ralf Wildenhues.
67805 2009-05-03  Bruno Haible  <bruno@clisp.org>
67807         * modules/fnmatch (Description, configure.ac): Taken from
67808         fnmatch-posix.
67809         * modules/fnmatch-posix: Turn into a symbolic reference to the
67810         'fnmatch' module, and deprecate.
67811         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67813 2009-05-03  Bruno Haible  <bruno@clisp.org>
67815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67816         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67817         Reported by Ralf Wildenhues.
67819 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67821         * m4/fnmatch.m4: Fix fnmatch re-define.
67823 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67825         priv-set: new module and tests; adapt write-any-file
67826         * lib/priv-set.c: New file.
67827         * lib/priv-set.h: New file.
67828         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67829         * lib/write-any-file.c: Simplify by using priv-set module.
67830         * m4/priv-set.m4: New file.
67831         * modules/priv-set: New file.
67832         * modules/unlinkdir: Add dependency on priv-set module.
67833         * modules/write-any-file: Likewise.
67835         Tests for module 'priv-set'.
67836         * modules/priv-set-tests: New file.
67837         * tests/test-priv-set.c: New file.
67839 2009-05-03  Jim Meyering  <meyering@redhat.com>
67840             Bruno Haible  <bruno@clisp.org>
67842         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67843         use the converted UTF-8 variant of the name instead.
67845 2009-05-03  Jim Meyering  <meyering@redhat.com>
67847         tests: tighten some getdate tests
67848         * tests/test-getdate.c (main): Tighten tests: require equality,
67849         not just greater than.  Set TZ envvar to UTC0.
67851 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67853         getdate: correctly interpret "next monday" when run on a Monday
67854         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67855         that e.g., "next tues" (when run on a tuesday) results in a date
67856         that is one week in the future, and not today's date.
67857         I.e., add a week when the wday is the same as the current one.
67858         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67859         and earlier by Martin Bernreuther and Jan Minář.
67860         * tests/test-getdate.c (main): Check that "next DAY" is always in
67861         the future and that "last DAY" is always in the past.
67863 2009-05-02  Jim Meyering  <meyering@redhat.com>
67865         build: ensure that a release build fails when a submodule is unclean
67866         * top/maint.mk (no-submodule-changes): New rule.
67867         (alpha beta major): Depend on it.
67869 2009-05-02  Bruno Haible  <bruno@clisp.org>
67871         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67873         shell variable gl_fnmatch_required to detect which variant is
67874         requested.
67875         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67876         gl_FUNC_FNMATCH_POSIX.
67877         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67878         exclude fnmatch-posix.
67880 2009-05-02  Bruno Haible  <bruno@clisp.org>
67882         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67883         * modules/mbsrtowcs (License): Change to LGPLv2+.
67884         * modules/strnlen1 (License): Likewise.
67885         Reported by Simon Josefsson.
67887 2009-05-02  Bruno Haible  <bruno@clisp.org>
67889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67890         "cross".
67891         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67892         gnulib-tool was called with option --source-base=lib.
67894 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67896         Use automake *-local hooks without commands, for extensibility.
67897         * modules/localcharset (Makefile.am): Rename install-exec-local
67898         rule to install-exec-localcharset, and make it a prerequisite of
67899         install-exec-local.  Likewise, rename the uninstall-local rule to
67900         uninstall-localcharset, and make it a prerequisite of the former.
67902 2009-05-01  Bruno Haible  <bruno@clisp.org>
67904         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67905         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67906         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67907         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67908         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67909         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67910         m4/locale-zh.m4, m4/codeset.m4.
67912         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67913         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67914         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67915         m4/locale-zh.m4.
67917         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67918         REPLACE_WCRTOMB if mbstate_t must be replaced.
67919         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67920         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67922 2009-05-01  Bruno Haible  <bruno@clisp.org>
67924         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67925         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67926         dngettext, dcngettext, textdomain, bindtextdomain,
67927         bind_textdomain_codeset): Undefine before redefining.
67929 2009-04-30  Bruno Haible  <bruno@clisp.org>
67931         Fix bug introduced on 2009-04-25.
67932         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67933         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67934         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67935         is defined.
67936         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67937         is defined.
67938         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67939         is defined.
67940         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67942 2009-04-28  Bruno Haible  <bruno@clisp.org>
67944         Comment tweaks.
67945         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67946         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67947         * lib/unicase.h (u*_casexfrm): Likewise.
67948         Reported by Paolo Bonzini.
67950 2009-04-28  Bruno Haible  <bruno@clisp.org>
67952         Fix a compilation error.
67953         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67954         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67955         Reported by Jim Meyering.
67957 2009-04-27  Bruno Haible  <bruno@clisp.org>
67959         New module 'libunistring'.
67960         * modules/libunistring: New file.
67961         * m4/libunistring.m4: New file.
67962         * MODULES.html.sh (Unicode string functions): Add it.
67964 2009-04-27  Eric Blake  <ebb9@byu.net>
67966         maint.mk: allow package-specific header to provide <config.h>
67967         * top/maint.mk (sc_require_config_h): New variable.
67968         (sc_require_config_h, sc_require_config_h_first): Use it.
67970 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67972         * top/maint.mk (sc_avoid_if_before_free): Except
67973         useless-if-before-free script.
67975 2009-04-27  Eric Blake  <ebb9@byu.net>
67977         maintainer-makefile: depend on all required helper scripts
67978         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67979         useless-if-before-free.
67980         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67981         version, rather than assuming gnulib checkout is available.
67982         Reported by Simen Josefsson.
67984 2009-04-26  Bruno Haible  <bruno@clisp.org>
67986         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67987         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67988         "../" or "..".
67990 2009-04-26  Bruno Haible  <bruno@clisp.org>
67992         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67993         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67994         AC_LIB_HAVE_LINKFLAGS.
67996 2009-04-26  Bruno Haible  <bruno@clisp.org>
67998         Simplify calling convention of u*_conv_from_encoding.
67999         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
68000         u32_conv_from_encoding): Expect a resultbuf argument and return the
68001         result directly as a pointer.
68002         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
68003         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
68004         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
68005         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
68006         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
68007         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68008         Update.
68009         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
68010         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
68011         * lib/vasnprintf.c (VASNPRINTF): Update.
68012         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
68013         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
68014         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
68015         * NEWS: Mention the change.
68017 2009-04-26  Bruno Haible  <bruno@clisp.org>
68019         Simplify calling convention of u*_conv_to_encoding.
68020         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68021         u32_conv_to_encoding): Expect a resultbuf argument and return the
68022         result directly as a pointer.
68023         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68024         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
68025         freeing scaled_offsets if mem_iconveha failed.
68026         * lib/unicase/u-casexfrm.h (FUNC): Update.
68027         * lib/uninorm/u-normxfrm.h (FUNC): Update.
68028         * lib/vasnprintf.c (VASNPRINTF): Update.
68029         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
68030         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
68031         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
68032         * NEWS: Mention the change.
68034 2009-04-26  Bruno Haible  <bruno@clisp.org>
68036         Avoid test failures on AIX and OSF/1.
68037         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
68038         malloc(0).
68039         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68040         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68041         Likewise.
68042         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
68043         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
68044         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
68045         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
68046         * doc/posix-functions/malloc.texi: Document the portability problem
68047         related to malloc(0).
68049 2009-04-26  Bruno Haible  <bruno@clisp.org>
68051         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
68052         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
68053         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
68055 2009-04-25  Bruno Haible  <bruno@clisp.org>
68057         Avoid link error when creating a namespace clean library.
68058         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
68059         as macro with arguments if already defined as an alias.
68060         * lib/signbitf.c (gl_signbitf): Don't undefine.
68061         * lib/signbitd.c (gl_signbitd): Don't undefine.
68062         * lib/signbitl.c (gl_signbitl): Don't undefine.
68064 2009-04-25  Jim Meyering  <meyering@redhat.com>
68066         vc-list-files: fix another quoting bug
68067         * build-aux/vc-list-files: Avoid sed backslash expansion
68068         of pathological directory names.
68070 2009-04-25  Eric Blake  <ebb9@byu.net>
68072         vc-list-files: fix shell quoting error
68073         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
68074         timestamp.
68076 2009-04-25  Jim Meyering  <meyering@redhat.com>
68078         vc-list-files: restore lost functionality with subdir argument
68079         * build-aux/vc-list-files: When given a non-"." sub-directory
68080         argument, substitute the $dir/ prefix back onto each resulting name.
68081         Otherwise, coreutils' root_tests check would fail.
68083 2009-04-24  Eric Blake  <ebb9@byu.net>
68085         vc-list-files: ignore git symlinks
68086         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
68087         than ls-files, to ignore git symlinks.
68089         maint.mk: import improvements from m4
68090         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
68091         (move_if_change): Delete unused macro.
68092         (news-date-check, vc-diff-check): Support VPATH builds.
68093         (announcement): Likewise.  Split --bootstrap-tools list...
68094         (boostrap-tools): ...into separate list, which can be overridden
68095         in cfg.mk.
68096         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
68097         requiring dependency on useless-if-before-free module.
68098         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
68099         Support VPATH builds.
68101 2009-04-24  Jim Meyering  <meyering@redhat.com>
68103         maint.mk: remove coreutils-specific rules and variables
68104         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
68105         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
68106         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
68108         maint.mk: remove obsolete rule
68109         * top/maint.mk (rel-check): Remove rule.
68110         (WGET, WGETFLAGS): Remove now-unused variables.
68112 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68114         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
68115         consistency.
68117         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
68118         '$(PATH_SEPARATOR)' instead of ':'.
68120 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68122         * lib/getopt1.c (main): Use 'const' for static array.
68124 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68126         * top/maint.mk: Sync with coreutils.
68127         * NEWS: Explain incompatibilities.
68129 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68130             Bruno Haible  <bruno@clisp.org>
68132         Fix cross-compilation results.
68133         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68134         statement, as third argument of AC_TRY_RUN.
68135         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68136         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68137         Likewise.
68138         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68139         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68140         Likewise.
68141         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68142         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68143         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68145 2009-04-20  Bruno Haible  <bruno@clisp.org>
68147         Avoid test failure on mingw.
68148         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68150 2009-04-20  Bruno Haible  <bruno@clisp.org>
68152         Avoid compilation error on mingw.
68153         * modules/localename-tests (Depends-on): Add locale.
68155 2009-04-19  Bruno Haible  <bruno@clisp.org>
68157         Support for building a shared library on Windows platforms.
68158         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68159         (main): Test the presence of UNINORM_NFC here.
68160         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68161         (main): Test the presence of UNINORM_NFD here.
68162         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68163         (main): Test the presence of UNINORM_NFKC here.
68164         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68165         (main): Test the presence of UNINORM_NFKD here.
68167 2009-04-19  Bruno Haible  <bruno@clisp.org>
68169         Avoid a compiler warning.
68170         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68171         Change type of variable 'sequence'.
68173 2009-04-19  Bruno Haible  <bruno@clisp.org>
68175         * modules/configmake (Makefile.am): When the contents of configmake.h
68176         does not change, arrange to preserve its modification time.
68178 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68180         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68181         gettext domain.
68183 2009-04-16  Jim Meyering  <meyering@redhat.com>
68185         useless-if-before-free: improve conversion code
68186         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68187         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68189 2009-04-14  Bruno Haible  <bruno@clisp.org>
68191         * modules/fcntl (Depends-on): Add extensions.
68192         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68194 2009-04-12  Ben Pfaff  <blp@gnu.org>
68196         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68197         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68199 2009-03-20  Ben Pfaff  <blp@gnu.org>
68201         Make rename replace existing destinations on Windows.
68202         * m4/rename.m4: Add test for Mingw.
68203         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68204         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68205         * doc/posix-functions/rename.texi: Document.
68207 2009-04-10  Bruno Haible  <bruno@clisp.org>
68209         New include file "iconveh.h".
68210         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68211         * lib/striconveh.h: Include it.
68212         (enum iconv_ilseq_handler): Remove definition.
68213         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68214         striconveh.h.
68215         * lib/striconveha.c: Include striconveh.h.
68216         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68217         * modules/striconveh (Files): Add lib/iconveh.h.
68218         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68219         lib/striconveh.h.
68221 2009-04-10  Bruno Haible  <bruno@clisp.org>
68223         * lib/uniconv.h: Update comment.
68225 2009-04-10  Bruno Haible  <bruno@clisp.org>
68227         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68228         always.
68229         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68230         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68231         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68232         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68233         "unistring-notinline.h", so that the function gets defined always.
68234         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68235         * lib/unistr/u8-uctomb.c: Likewise.
68236         * lib/unistr/u16-mbtouc.c: Likewise.
68237         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68238         * lib/unistr/u16-uctomb.c: Likewise.
68239         * lib/unistr/u32-mbtouc.c: Likewise.
68240         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68241         * lib/unistr/u32-uctomb.c: Likewise.
68243 2009-04-10  Bruno Haible  <bruno@clisp.org>
68245         Mark 'utime' obsolete.
68246         * modules/utime (Status, Notice): New sections.
68247         Suggested by Jim Meyering.
68249         Fix cross-compile guess for utime test.
68250         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68251         autoconf.
68252         * doc/posix-functions/utime.texi: Give more precisions.
68253         Reported by Jan <ipif@ymail.com>.
68255 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68257         filevercmp: correct today's change
68258         * lib/filevercmp.c: Also handle coreutils' test inputs.
68259         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68261         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68262         for reporting it.
68263         * lib/filevercmp.c: Special handle for "", "." and "..".
68264         * tests/test-filevercmp.c: Enlarge the set suite.
68266 2009-04-07  Jim Meyering  <meyering@redhat.com>
68268         useless-if-before-free: show how to remove braced useless free, too
68269         * build-aux/useless-if-before-free: still only in a comment, though.
68271 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68273         maint.mk: import changes to syntax-check macros from coreutils
68274         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68275         Use them in the relevant macros.
68277 2009-04-06  Bruno Haible  <bruno@clisp.org>
68279         Fix unportable use of bit-fields.
68280         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68281         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68282         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68284 2009-04-06  Bruno Haible  <bruno@clisp.org>
68286         Avoid test failures on AIX and OSF/1.
68287         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68288         that malloc(0) = NULL.
68289         * tests/unicase/test-u8-tolower.c (check): Likewise.
68290         * tests/unicase/test-u8-totitle.c (check): Likewise.
68291         * tests/unicase/test-u8-toupper.c (check): Likewise.
68292         * tests/unicase/test-u16-casefold.c (check): Likewise.
68293         * tests/unicase/test-u16-tolower.c (check): Likewise.
68294         * tests/unicase/test-u16-totitle.c (check): Likewise.
68295         * tests/unicase/test-u16-toupper.c (check): Likewise.
68296         * tests/unicase/test-u32-casefold.c (check): Likewise.
68297         * tests/unicase/test-u32-tolower.c (check): Likewise.
68298         * tests/unicase/test-u32-totitle.c (check): Likewise.
68299         * tests/unicase/test-u32-toupper.c (check): Likewise.
68300         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68301         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68302         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68303         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68304         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68305         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68306         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68307         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68308         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68309         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68310         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68311         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68313 2009-04-05  Bruno Haible  <bruno@clisp.org>
68315         Work around an autoconf limitation.
68316         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68317         comment line if it would be longer than 3 KB.
68319 2009-04-05  Bruno Haible  <bruno@clisp.org>
68321         Avoid test failure with libiconv-1.13.
68322         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68323         of the expected test results.
68325 2009-04-05  Bruno Haible  <bruno@clisp.org>
68327         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68328         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68329         that it should be installed.
68331 2009-04-05  Bruno Haible  <bruno@clisp.org>
68333         * gnulib-tool: New option --copy-file.
68334         (func_usage): Document it.
68335         (func_dest_tmpfilename): Moved out of func_import.
68336         (func_add_file, func_update_file): New functions, extracted from
68337         func_import.
68338         (func_import): Update.
68340 2009-04-05  Karl Berry  <karl@gnu.org>
68342         * README: prominently mention gnulib-tool.
68343         Rearrange sections so getting the code is near the top.
68345 2009-04-05  Bruno Haible  <bruno@clisp.org>
68347         * lib/unicase.h: Mention u*_cmp2.
68348         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68349         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68350         * lib/unicase/ulc-casecmp.c: Likewise.
68351         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68352         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68353         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68354         unistr/u8-cmp.
68355         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68356         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68357         unistr/u16-cmp.
68358         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68359         unistr/u32-cmp.
68361         * lib/uninorm.h: Mention u*_cmp2.
68362         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68363         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68364         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68365         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68366         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68367         unistr/u8-cmp.
68368         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68369         unistr/u16-cmp.
68370         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68371         unistr/u32-cmp.
68373         New module 'unistr/u32-cmp2'.
68374         * lib/unistr/u32-cmp2.c: New file.
68375         * modules/unistr/u32-cmp2: New file.
68377         New module 'unistr/u16-cmp2'.
68378         * lib/unistr/u16-cmp2.c: New file.
68379         * modules/unistr/u16-cmp2: New file.
68381         New module 'unistr/u8-cmp2'.
68382         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68383         * lib/unistr/u8-cmp2.c: New file.
68384         * lib/unistr/u-cmp2.h: New file.
68385         * modules/unistr/u8-cmp2: New file.
68387 2009-04-05  Bruno Haible  <bruno@clisp.org>
68389         * lib/unictype.h (uc_property_is_valid): New macro.
68390         * tests/unictype/test-pr_byname.c (main): Use it.
68392         * lib/unistr.h: Doc fixes.
68393         * lib/uniconv.h: Doc fixes.
68394         * lib/unictype.h: Doc fixes.
68396 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68398         Port coreutils 7.2 to Solaris 8.
68400         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68401         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68402         for Solaris 8.  This is a bit of a hack, as it means it's the
68403         caller's responsibility to add -lnsl if needed, but most likely it
68404         won't be needed since only getaddrinfo uses this and getaddrinfo
68405         isn't needed on Solaris 8.
68407         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68408         problem to Solaris 8 encountered with coreutils 7.2, which
68409         resulted in a message "fnmatch.c:292: warning: passing argument 4
68410         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68411         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68413 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68415         * m4/ld-version-script.m4: Add FIXME comment.
68417 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68419         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68420         SOVERSION variable.
68422 2009-04-02  Bruno Haible  <bruno@clisp.org>
68424         * Makefile (info, html, dvi, pdf): Combine the rules.
68425         Suggested by Jim Meyering.
68427 2009-04-01  Bruno Haible  <bruno@clisp.org>
68429         * Makefile (info, html, dvi, pdf): New targets.
68430         Reported by Reuben Thomas <rrt@sc3d.org>.
68432 2009-04-01  Bruno Haible  <bruno@clisp.org>
68434         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68435         can be put into PATH.
68436         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68438 2009-04-01  Bruno Haible  <bruno@clisp.org>
68440         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68442 2009-04-01  Bruno Haible  <bruno@clisp.org>
68444         Rename module 'visibility'.
68445         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68446         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68447         * doc/gnulib.texi: Update.
68448         * MODULES.html.sh (Misc): Update.
68449         * NEWS: Mention the change.
68451 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68453         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68454         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68455         Eric Blake <ebb9@byu.net> for review.
68456         * MODULES.html.sh: Add lib-msvc-compat.
68457         * doc/gnulib.texi: Link to new section.
68458         * m4/ld-output-def.m4: New file.
68459         * doc/ld-output-def.texi: New file.
68461 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68463         Rename ld-version-script to lib-symbol-versions.  Suggested by
68464         Bruno Haible <bruno@clisp.org>.
68465         * modules/ld-version-script: Renamed to lib-symbol-versions.
68466         * doc/ld-version-script.texi: Fix module name.
68467         * MODULES.html.sh: Add lib-symbol-versions.
68469 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68471         * modules/u64-tests: New file.
68472         * tests/test-u64.c: New file.
68474 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68476         * MODULES.html.sh: Mention u64.
68477         * modules/u64: New module.
68478         * modules/crypto/sha512: Depend on u64 module instead of providing
68479         u64.h.
68481 2009-03-27  Eric Blake  <ebb9@byu.net>
68483         test-strerror: make debugging EAI_SYSTEM easier
68484         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68485         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68486         failure was EAI_SYSTEM.
68488 2009-03-25  Bruno Haible  <bruno@clisp.org>
68490         Fix a problem with --enable-relocatable on Solaris 7.
68491         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68492         since 2008-02-24.
68494 2009-03-25  Eric Blake  <ebb9@byu.net>
68496         test-sockets: avoid gcc warning
68497         * tests/test-sockets.c (main): Silence compiler warning.
68499 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68501         New modules nproc, pthread, contributed by Glen Lenker.
68503         * MODULES.html.sh: Add pthread, nproc.
68504         * lib/nproc.c: New file.
68505         * lib/nproc.h: New file.
68506         * lib/pthread.in.h: New file.
68507         * m4/pthread.m4: New file.
68508         * modules/nproc: New file.
68509         * modules/pthread: New file.
68511 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68513         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68514         New variable.
68516 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68518         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68519         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68520         * tests/test-filevercmp.c: Add tests for backup suffixes.
68522 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68524         * modules/stdlib (Depends-on): Add stdint, needed when defining
68525         struct random_data on, for example, HP-UX 10.20.  Reported by
68526         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68528 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68530         * lib/readline.c (readline): Call fflush on stdout after printing
68531         prompt.
68533 2009-03-20  Bruno Haible  <bruno@clisp.org>
68535         Remove dependency from 'close' module to -lws2_32 on native Windows.
68536         * lib/close-hook.h: New file.
68537         * lib/close-hook.c: New file.
68538         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68539         w32sock.h.
68540         (_gl_close_fd_maybe_socket): Remove function.
68541         (rpl_close): Invoke execute_all_close_hooks instead of
68542         _gl_close_fd_maybe_socket.
68543         * lib/sockets.c: Include close-hook.h, w32sock.h.
68544         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68545         (close_sockets_hook): New variable.
68546         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68547         (gl_sockets_cleanup): Unregister it.
68548         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68549         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68550         * modules/close-hook: New file.
68551         * modules/close (Files): Remove lib/w32sock.h.
68552         (Depends-on): Add close-hook.
68553         (Link): Remove section.
68554         * modules/sockets (Files): Add lib/w32sock.h.
68555         (Depends-on): Add close-hook.
68556         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68557         invocation.
68558         * NEWS: Mention that LIB_CLOSE is gone.
68560 2009-03-23  Eric Blake  <ebb9@byu.net>
68562         signal-tests: test previous patch
68563         * tests/test-signal.c: New file.
68564         * modules/signal-tests: Likewise.
68566         signal.h: always support 'volatile sig_atomic_t'
68567         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68568         (gl_SIGNAL_H_DEFAULTS): Add a default.
68569         * modules/signal (Makefile.am): Substitute if needed.
68570         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68571         users can blindly add volatile.
68572         * doc/posix-headers/signal.texi (signal.h): Document it.
68573         Reported by Matthew Woehlke.
68575 2009-03-23  Jim Meyering  <meyering@redhat.com>
68577         pathmax: PATH_MAX: use pathconf only when available
68578         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68579         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68580         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68581         This avoids a link failure in a PSP cross-compilation environment
68582         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68584         * lib/vasnprintf.c (divide): Fix typo in comment.
68586 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68588         * gnulib-tool (func_filter_filelist): Fix comment.
68590 2009-03-20  Bruno Haible  <bruno@clisp.org>
68592         Make sockets.h self-contained.
68593         * lib/sockets.c: Include sockets.h first.
68594         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68596 2009-03-19  Eric Blake  <ebb9@byu.net>
68598         doc: mention more functions added in cygwin 1.7.0
68599         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68600         addition.
68601         * doc/posix-functions/log2f.texi: Likewise.
68603 2009-03-19  Jim Meyering  <meyering@redhat.com>
68605         fsusage: avoid syntax error due to statement-before-declaration
68606         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68607         after all declarations.  Reported by Matthew Woehlke in
68608         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68610 2009-03-18  Eric Blake  <ebb9@byu.net>
68612         build-aux/compile: sync from automake
68613         * build-aux/compile: New file, from automake.
68614         * config/srclist.txt: Mention build-aux/compile.
68616 2009-03-17  Bruno Haible  <bruno@clisp.org>
68618         * lib/git-merge-changelog.c: Fix typo in comment.
68619         Reported by Reuben Thomas <rrt@sc3d.org>.
68621 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68623         * m4/regex.m4: update and improve help for
68624         --without-included-regex.
68626 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68628         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68629         failure on missing include files.
68631 2009-03-17  Eric Blake  <ebb9@byu.net>
68633         doc: mention more functions added in cygwin 1.7.0
68634         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68635         addition.
68636         * doc/posix-functions/fwscanf.texi: Likewise.
68637         * doc/posix-functions/swprintf.texi: Likewise.
68638         * doc/posix-functions/swscanf.texi: Likewise.
68639         * doc/posix-functions/vfwprintf.texi: Likewise.
68640         * doc/posix-functions/vfwscanf.texi: Likewise.
68641         * doc/posix-functions/vswprintf.texi: Likewise.
68642         * doc/posix-functions/vswscanf.texi: Likewise.
68643         * doc/posix-functions/vwprintf.texi: Likewise.
68644         * doc/posix-functions/vwscanf.texi: Likewise.
68645         * doc/posix-functions/wcscasecmp.texi: Likewise.
68646         * doc/posix-functions/wcsdup.texi: Likewise.
68647         * doc/posix-functions/wcsftime.texi: Likewise.
68648         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68649         * doc/posix-functions/wprintf.texi: Likewise.
68650         * doc/posix-functions/wscanf.texi: Likewise.
68651         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68653 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68655         maint.mk: really add $(AM_MAKEFLAGS)
68656         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68657         was inadvertently omitted in the last commit.
68658         Spotted by Bruno Haible.
68660         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68661         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68662         $(AM_MAKEFLAGS)' rather than plain `make'.
68664         gnulib-tool: execute $MAKE not make
68665         * gnulib-tool: Default $MAKE to 'make'.
68666         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68667         than make.  Initialize $MAKE in the do-autobuild script.
68669         gnulib-tool: use $MAKE not make in generated files
68670         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68671         make, in generated files.  Initialize $MAKE in the do-autobuild
68672         script.
68674         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68676         GNUmakefile: disable parallelism only for multiple, recursive targets
68677         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68678         additions in the Makefile.
68679         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68680         by Automake.
68681         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68682         are listed on the command line and at least one of them is
68683         listed in $(ALL_RECURSIVE_TARGETS).
68685 2009-03-14  Bruno Haible  <bruno@clisp.org>
68687         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68688         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68689         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68690         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68691         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68692         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68693         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68694         unistr/u8-uctomb.
68695         * modules/unistr/u8-strchr (Depends-on): Likewise.
68696         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68697         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68698         unistr/u16-uctomb.
68699         * modules/unistr/u16-strchr (Depends-on): Likewise.
68700         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68702 2009-03-12  Bruno Haible  <bruno@clisp.org>
68704         Work around select() bug on Interix 3.5.
68705         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68706         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68707         * m4/select.m4: New file.
68708         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68709         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68710         * modules/select (Files): Add m4/select.m4.
68711         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68712         * modules/nanosleep (Depends-on): Add select.
68713         * modules/poll (Depends-on): Likewise.
68714         * doc/posix-functions/select.texi: Mention the Interix bug.
68715         Reported by Markus Duft <mduft@gentoo.org>.
68717         * lib/select.c: Renamed from lib/winsock-select.c.
68718         * modules/select (Files): Add lib/select.c, remove
68719         lib/winsock-select.c.
68720         (configure.ac): Update.
68722 2009-03-12  Jim Meyering  <meyering@redhat.com>
68724         avoid gcc warnings about unused macro definitions
68725         * lib/readtokens.c (STREQ): Remove unused definition.
68726         * lib/xmalloc.c (SIZE_MAX): Likewise.
68727         * lib/openat-die.c (N_): Likewise.
68728         * lib/mountlist.c (SIZE_MAX): Remove definition.
68729         Instead, include <stdint.h>.
68730         * lib/readutmp.c: Likewise.
68731         * modules/readutmp (Depends-on): Add stdint.
68732         * modules/mountlist (Depends-on): Add stdint.
68733         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68735 2009-03-10  Bruno Haible  <bruno@clisp.org>
68737         Tests for module 'mbmemcasecoll'.
68738         * modules/mbmemcasecoll-tests: New file.
68739         * tests/test-mbmemcasecoll1.sh: New file.
68740         * tests/test-mbmemcasecoll2.sh: New file.
68741         * tests/test-mbmemcasecoll3.sh: New file.
68742         * tests/test-mbmemcasecoll.c: New file.
68744         New module 'mbmemcasecoll'.
68745         * lib/mbmemcasecoll.h: New file.
68746         * lib/mbmemcasecoll.c: New file.
68747         * modules/mbmemcasecoll: New file.
68749         * tests/test-mbmemcasecmp.h: New file, extracted from
68750         tests/test-mbmemcasecmp.c.
68751         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68752         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68753         (main): Update.
68754         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68756 2009-03-09  Bruno Haible  <bruno@clisp.org>
68758         Tests for module 'mbmemcasecmp'.
68759         * modules/mbmemcasecmp-tests: New file.
68760         * tests/test-mbmemcasecmp1.sh: New file.
68761         * tests/test-mbmemcasecmp2.sh: New file.
68762         * tests/test-mbmemcasecmp3.sh: New file.
68763         * tests/test-mbmemcasecmp.c: New file.
68765         New module 'mbmemcasecmp'.
68766         * lib/mbmemcasecmp.h: New file.
68767         * lib/mbmemcasecmp.c: New file.
68768         * modules/mbmemcasecmp: New file.
68770 2009-03-09  Bruno Haible  <bruno@clisp.org>
68772         Tests for module 'unicase/ulc-casecoll'.
68773         * modules/unicase/ulc-casecoll-tests: New file.
68774         * tests/unicase/test-ulc-casecoll1.sh: New file.
68775         * tests/unicase/test-ulc-casecoll2.sh: New file.
68776         * tests/unicase/test-ulc-casecoll.c: New file.
68778         New module 'unicase/ulc-casecoll'.
68779         * lib/unicase.h (ulc_casecoll): New declaration.
68780         * lib/unicase/ulc-casecoll.c: New file.
68781         * modules/unicase/ulc-casecoll: New file.
68783         New module 'unicase/ulc-casexfrm'.
68784         * lib/unicase.h (ulc_casexfrm): New declaration.
68785         * lib/unicase/ulc-casexfrm.c: New file.
68786         * modules/unicase/ulc-casexfrm: New file.
68788 2009-03-09  Bruno Haible  <bruno@clisp.org>
68790         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68791         invocations.
68793         * m4/mbscasecmp.m4: Remove file.
68794         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68795         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68797         * m4/mbscasestr.m4: Remove file.
68798         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68799         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68801         * m4/mbschr.m4: Remove file.
68802         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68803         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68805         * m4/mbscspn.m4: Remove file.
68806         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68807         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68809         * m4/mbslen.m4: Remove file.
68810         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68811         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68813         * m4/mbsncasecmp.m4: Remove file.
68814         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68815         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68817         * m4/mbsnlen.m4: Remove file.
68818         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68819         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68821         * m4/mbspbrk.m4: Remove file.
68822         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68823         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68825         * m4/mbspcasecmp.m4: Remove file.
68826         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68827         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68829         * m4/mbsrchr.m4: Remove file.
68830         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68831         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68833         * m4/mbssep.m4: Remove file.
68834         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68835         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68837         * m4/mbsspn.m4: Remove file.
68838         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68839         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68841         * m4/mbsstr.m4: Remove file.
68842         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68843         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68845         * m4/mbstok_r.m4: Remove file.
68846         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68847         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68849         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68851         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68852         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68854         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68856 2009-03-08  Bruno Haible  <bruno@clisp.org>
68858         Tests for module 'unicase/ulc-casecmp'.
68859         * modules/unicase/ulc-casecmp-tests: New file.
68860         * tests/unicase/test-ulc-casecmp1.sh: New file.
68861         * tests/unicase/test-ulc-casecmp2.sh: New file.
68862         * tests/unicase/test-ulc-casecmp.c: New file.
68864         New module 'unicase/ulc-casecmp'.
68865         * lib/unicase.h (ulc_casecmp): New declaration.
68866         * lib/unicase/ulc-casecmp.c: New file.
68867         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68868         'const SRC_UNIT *'.
68869         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68870         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68871         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68872         * modules/unicase/ulc-casecmp: New file.
68874         Tests for module 'unicase/u32-is-cased'.
68875         * modules/unicase/u32-is-cased-tests: New file.
68876         * tests/unicase/test-u32-is-cased.c: New file.
68878         Tests for module 'unicase/u16-is-cased'.
68879         * modules/unicase/u16-is-cased-tests: New file.
68880         * tests/unicase/test-u16-is-cased.c: New file.
68882         Tests for module 'unicase/u8-is-cased'.
68883         * modules/unicase/u8-is-cased-tests: New file.
68884         * tests/unicase/test-u8-is-cased.c: New file.
68885         * tests/unicase/test-is-cased.h: New file.
68887         New module 'unicase/u32-is-cased'.
68888         * lib/unicase/u32-is-cased.c: New file.
68889         * modules/unicase/u32-is-cased: New file.
68891         New module 'unicase/u16-is-cased'.
68892         * lib/unicase/u16-is-cased.c: New file.
68893         * modules/unicase/u16-is-cased: New file.
68895         New module 'unicase/u8-is-cased'.
68896         * lib/unicase/u8-is-cased.c: New file.
68897         * lib/unicase/u-is-cased.h: New file.
68898         * modules/unicase/u8-is-cased: New file.
68900         Tests for module 'unicase/u32-is-casefolded'.
68901         * modules/unicase/u32-is-casefolded-tests: New file.
68902         * tests/unicase/test-u32-is-casefolded.c: New file.
68904         Tests for module 'unicase/u16-is-casefolded'.
68905         * modules/unicase/u16-is-casefolded-tests: New file.
68906         * tests/unicase/test-u16-is-casefolded.c: New file.
68908         Tests for module 'unicase/u8-is-casefolded'.
68909         * modules/unicase/u8-is-casefolded-tests: New file.
68910         * tests/unicase/test-u8-is-casefolded.c: New file.
68911         * tests/unicase/test-is-casefolded.h: New file.
68913         New module 'unicase/u32-is-casefolded'.
68914         * lib/unicase/u32-is-casefolded.c: New file.
68915         * modules/unicase/u32-is-casefolded: New file.
68917         New module 'unicase/u16-is-casefolded'.
68918         * lib/unicase/u16-is-casefolded.c: New file.
68919         * modules/unicase/u16-is-casefolded: New file.
68921         New module 'unicase/u8-is-casefolded'.
68922         * lib/unicase/u8-is-casefolded.c: New file.
68923         * modules/unicase/u8-is-casefolded: New file.
68925         Tests for module 'unicase/u32-is-titlecase'.
68926         * modules/unicase/u32-is-titlecase-tests: New file.
68927         * tests/unicase/test-u32-is-titlecase.c: New file.
68929         Tests for module 'unicase/u16-is-titlecase'.
68930         * modules/unicase/u16-is-titlecase-tests: New file.
68931         * tests/unicase/test-u16-is-titlecase.c: New file.
68933         Tests for module 'unicase/u8-is-titlecase'.
68934         * modules/unicase/u8-is-titlecase-tests: New file.
68935         * tests/unicase/test-u8-is-titlecase.c: New file.
68936         * tests/unicase/test-is-titlecase.h: New file.
68938         New module 'unicase/u32-is-titlecase'.
68939         * lib/unicase/u32-is-titlecase.c: New file.
68940         * modules/unicase/u32-is-titlecase: New file.
68942         New module 'unicase/u16-is-titlecase'.
68943         * lib/unicase/u16-is-titlecase.c: New file.
68944         * modules/unicase/u16-is-titlecase: New file.
68946         New module 'unicase/u8-is-titlecase'.
68947         * lib/unicase/u8-is-titlecase.c: New file.
68948         * modules/unicase/u8-is-titlecase: New file.
68950         Tests for module 'unicase/u32-is-lowercase'.
68951         * modules/unicase/u32-is-lowercase-tests: New file.
68952         * tests/unicase/test-u32-is-lowercase.c: New file.
68954         Tests for module 'unicase/u16-is-lowercase'.
68955         * modules/unicase/u16-is-lowercase-tests: New file.
68956         * tests/unicase/test-u16-is-lowercase.c: New file.
68958         Tests for module 'unicase/u8-is-lowercase'.
68959         * modules/unicase/u8-is-lowercase-tests: New file.
68960         * tests/unicase/test-u8-is-lowercase.c: New file.
68961         * tests/unicase/test-is-lowercase.h: New file.
68963         New module 'unicase/u32-is-lowercase'.
68964         * lib/unicase/u32-is-lowercase.c: New file.
68965         * modules/unicase/u32-is-lowercase: New file.
68967         New module 'unicase/u16-is-lowercase'.
68968         * lib/unicase/u16-is-lowercase.c: New file.
68969         * modules/unicase/u16-is-lowercase: New file.
68971         New module 'unicase/u8-is-lowercase'.
68972         * lib/unicase/u8-is-lowercase.c: New file.
68973         * modules/unicase/u8-is-lowercase: New file.
68975         Tests for module 'unicase/u32-is-uppercase'.
68976         * modules/unicase/u32-is-uppercase-tests: New file.
68977         * tests/unicase/test-u32-is-uppercase.c: New file.
68979         Tests for module 'unicase/u16-is-uppercase'.
68980         * modules/unicase/u16-is-uppercase-tests: New file.
68981         * tests/unicase/test-u16-is-uppercase.c: New file.
68983         Tests for module 'unicase/u8-is-uppercase'.
68984         * modules/unicase/u8-is-uppercase-tests: New file.
68985         * tests/unicase/test-u8-is-uppercase.c: New file.
68986         * tests/unicase/test-is-uppercase.h: New file.
68988         New module 'unicase/u32-is-uppercase'.
68989         * lib/unicase/u32-is-uppercase.c: New file.
68990         * modules/unicase/u32-is-uppercase: New file.
68992         New module 'unicase/u16-is-uppercase'.
68993         * lib/unicase/u16-is-uppercase.c: New file.
68994         * modules/unicase/u16-is-uppercase: New file.
68996         New module 'unicase/u8-is-uppercase'.
68997         * lib/unicase/u8-is-uppercase.c: New file.
68998         * modules/unicase/u8-is-uppercase: New file.
69000         New module 'unicase/u32-is-invariant'.
69001         * lib/unicase/u32-is-invariant.c: New file.
69002         * modules/unicase/u32-is-invariant: New file.
69004         New module 'unicase/u16-is-invariant'.
69005         * lib/unicase/u16-is-invariant.c: New file.
69006         * modules/unicase/u16-is-invariant: New file.
69008         New module 'unicase/u8-is-invariant'.
69009         * lib/unicase/u8-is-invariant.c: New file.
69010         * lib/unicase/invariant.h: New file.
69011         * lib/unicase/u-is-invariant.h: New file.
69012         * modules/unicase/u8-is-invariant: New file.
69014         Tests for module 'unicase/u32-casecoll'.
69015         * modules/unicase/u32-casecoll-tests: New file.
69016         * tests/unicase/test-u32-casecoll.c: New file.
69018         Tests for module 'unicase/u16-casecoll'.
69019         * modules/unicase/u16-casecoll-tests: New file.
69020         * tests/unicase/test-u16-casecoll.c: New file.
69022         Tests for module 'unicase/u8-casecoll'.
69023         * modules/unicase/u8-casecoll-tests: New file.
69024         * tests/unicase/test-u8-casecoll.c: New file.
69026         New module 'unicase/u32-casecoll'.
69027         * lib/unicase/u32-casecoll.c: New file.
69028         * modules/unicase/u32-casecoll: New file.
69030         New module 'unicase/u16-casecoll'.
69031         * lib/unicase/u16-casecoll.c: New file.
69032         * modules/unicase/u16-casecoll: New file.
69034         New module 'unicase/u8-casecoll'.
69035         * lib/unicase/u8-casecoll.c: New file.
69036         * lib/unicase/u-casecoll.h: New file.
69037         * modules/unicase/u8-casecoll: New file.
69039         New module 'unicase/u32-casexfrm'.
69040         * lib/unicase/u32-casexfrm.c: New file.
69041         * modules/unicase/u32-casexfrm: New file.
69043         New module 'unicase/u16-casexfrm'.
69044         * lib/unicase/u16-casexfrm.c: New file.
69045         * modules/unicase/u16-casexfrm: New file.
69047         New module 'unicase/u8-casexfrm'.
69048         * lib/unicase/u8-casexfrm.c: New file.
69049         * lib/unicase/u-casexfrm.h: New file.
69050         * modules/unicase/u8-casexfrm: New file.
69052         Tests for module 'unicase/u32-casecmp'.
69053         * modules/unicase/u32-casecmp-tests: New file.
69054         * tests/unicase/test-u32-casecmp.c: New file.
69056         Tests for module 'unicase/u16-casecmp'.
69057         * modules/unicase/u16-casecmp-tests: New file.
69058         * tests/unicase/test-u16-casecmp.c: New file.
69060         Tests for module 'unicase/u8-casecmp'.
69061         * modules/unicase/u8-casecmp-tests: New file.
69062         * tests/unicase/test-u8-casecmp.c: New file.
69063         * tests/unicase/test-casecmp.h: New file.
69065         New module 'unicase/u32-casecmp'.
69066         * lib/unicase/u32-casecmp.c: New file.
69067         * modules/unicase/u32-casecmp: New file.
69069         New module 'unicase/u16-casecmp'.
69070         * lib/unicase/u16-casecmp.c: New file.
69071         * modules/unicase/u16-casecmp: New file.
69073         New module 'unicase/u8-casecmp'.
69074         * lib/unicase/u8-casecmp.c: New file.
69075         * lib/unicase/u-casecmp.h: New file.
69076         * modules/unicase/u8-casecmp: New file.
69078         Tests for module 'unicase/u32-casefold'.
69079         * modules/unicase/u32-casefold-tests: New file.
69080         * tests/unicase/test-u32-casefold.c: New file.
69082         Tests for module 'unicase/u16-casefold'.
69083         * modules/unicase/u16-casefold-tests: New file.
69084         * tests/unicase/test-u16-casefold.c: New file.
69086         Tests for module 'unicase/u8-casefold'.
69087         * modules/unicase/u8-casefold-tests: New file.
69088         * tests/unicase/test-u8-casefold.c: New file.
69090         New module 'unicase/u32-casefold'.
69091         * lib/unicase/u32-casefold.c: New file.
69092         * modules/unicase/u32-casefold: New file.
69094         New module 'unicase/u16-casefold'.
69095         * lib/unicase/u16-casefold.c: New file.
69096         * modules/unicase/u16-casefold: New file.
69098         New module 'unicase/u8-casefold'.
69099         * lib/unicase/u8-casefold.c: New file.
69100         * lib/unicase/u-casefold.h: New file.
69101         * modules/unicase/u8-casefold: New file.
69103         New module 'unicase/tocasefold'.
69104         * lib/unicase/casefold.h: New file.
69105         * lib/unicase/tocasefold.c: New file.
69106         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
69107         * modules/unicase/tocasefold: New file.
69109         Tests for module 'unicase/u32-totitle'.
69110         * modules/unicase/u32-totitle-tests: New file.
69111         * tests/unicase/test-u32-totitle.c: New file.
69113         Tests for module 'unicase/u16-totitle'.
69114         * modules/unicase/u16-totitle-tests: New file.
69115         * tests/unicase/test-u16-totitle.c: New file.
69117         Tests for module 'unicase/u8-totitle'.
69118         * modules/unicase/u8-totitle-tests: New file.
69119         * tests/unicase/test-u8-totitle.c: New file.
69121         New module 'unicase/u32-totitle'.
69122         * lib/unicase/u32-totitle.c: New file.
69123         * modules/unicase/u32-totitle: New file.
69125         New module 'unicase/u16-totitle'.
69126         * lib/unicase/u16-totitle.c: New file.
69127         * modules/unicase/u16-totitle: New file.
69129         New module 'unicase/u8-totitle'.
69130         * lib/unicase/u8-totitle.c: New file.
69131         * lib/unicase/u-totitle.h: New file.
69132         * modules/unicase/u8-totitle: New file.
69134         Tests for module 'unicase/u32-tolower'.
69135         * modules/unicase/u32-tolower-tests: New file.
69136         * tests/unicase/test-u32-tolower.c: New file.
69138         Tests for module 'unicase/u16-tolower'.
69139         * modules/unicase/u16-tolower-tests: New file.
69140         * tests/unicase/test-u16-tolower.c: New file.
69142         Tests for module 'unicase/u8-tolower'.
69143         * modules/unicase/u8-tolower-tests: New file.
69144         * tests/unicase/test-u8-tolower.c: New file.
69146         New module 'unicase/u32-tolower'.
69147         * lib/unicase/u32-tolower.c: New file.
69148         * modules/unicase/u32-tolower: New file.
69150         New module 'unicase/u16-tolower'.
69151         * lib/unicase/u16-tolower.c: New file.
69152         * modules/unicase/u16-tolower: New file.
69154         New module 'unicase/u8-tolower'.
69155         * lib/unicase/u8-tolower.c: New file.
69156         * modules/unicase/u8-tolower: New file.
69158         Tests for module 'unicase/u32-toupper'.
69159         * modules/unicase/u32-toupper-tests: New file.
69160         * tests/unicase/test-u32-toupper.c: New file.
69162         Tests for module 'unicase/u16-toupper'.
69163         * modules/unicase/u16-toupper-tests: New file.
69164         * tests/unicase/test-u16-toupper.c: New file.
69166         Tests for module 'unicase/u8-toupper'.
69167         * modules/unicase/u8-toupper-tests: New file.
69168         * tests/unicase/test-u8-toupper.c: New file.
69170         New module 'unicase/u32-toupper'.
69171         * lib/unicase/u32-toupper.c: New file.
69172         * modules/unicase/u32-toupper: New file.
69174         New module 'unicase/u16-toupper'.
69175         * lib/unicase/u16-toupper.c: New file.
69176         * modules/unicase/u16-toupper: New file.
69178         New module 'unicase/u8-toupper'.
69179         * lib/unicase/u8-toupper.c: New file.
69180         * modules/unicase/u8-toupper: New file.
69182         New module 'unicase/u32-casemap'.
69183         * lib/unicase/u32-casemap.c: New file.
69184         * modules/unicase/u32-casemap: New file.
69186         New module 'unicase/u16-casemap'.
69187         * lib/unicase/u16-casemap.c: New file.
69188         * modules/unicase/u16-casemap: New file.
69190         New module 'unicase/u8-casemap'.
69191         * lib/unicase/unicasemap.h: New file.
69192         * lib/unicase/u8-casemap.c: New file.
69193         * lib/unicase/u-casemap.h: New file.
69194         * modules/unicase/u8-casemap: New file.
69196         New module 'unicase/special-casing'.
69197         * lib/unicase/special-casing.h: New file.
69198         * lib/unicase/special-casing.c: New file.
69199         * lib/unicase/special-casing-table.gperf: New file, generated by
69200         gen-uni-tables.c.
69201         * modules/unicase/special-casing: New file.
69203         Tests for module 'unicase/locale-language'.
69204         * modules/unicase/locale-language-tests: New file.
69205         * tests/unicase/test-locale-language.sh: New file.
69206         * tests/unicase/test-locale-language.c: New file.
69208         New module 'unicase/locale-language'.
69209         * lib/unicase/locale-language.c: New file.
69210         * lib/unicase/locale-languages.gperf: New file.
69211         * modules/unicase/locale-language: New file.
69213         Generate more tables for case conversion and case folding.
69214         * lib/gen-uni-tables.c (SCC_*): New enum items.
69215         (struct special_casing_rule): New type.
69216         (casing_rules, num_casing_rules, allocated_casing_rules): New
69217         variables.
69218         (add_casing_rule, fill_casing_rules): New functions.
69219         (struct casefold_rule): New type.
69220         (casefolding_rules, num_casefolding_rules,
69221         allocated_casefolding_rules): New variables.
69222         (fill_casefolding_rules): New function.
69223         (unicode_casefold): New variable.
69224         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69225         sort_casing_rules, output_casing_rules): New functions.
69226         (main): Accept to more arguments: SpecialCasing.txt and
69227         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69228         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69229         Output mapping for casefolding.
69231         * lib/unicase.h: Include stdbool.h, uninorm.h.
69232         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69233         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69234         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69235         arguments.
69236         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69237         resultp arguments.
69238         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69239         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69240         resultp arguments.
69241         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69242         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69243         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69244         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69245         declarations.
69246         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69248 2009-03-08  Bruno Haible  <bruno@clisp.org>
69250         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69251         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69252         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69253         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69255 2009-03-07  Bruno Haible  <bruno@clisp.org>
69257         Adjust u*_normcmp, u*_normcoll API.
69258         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69259         u16_normcoll, u32_normcoll): Change failure conventions.
69260         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69261         errno and return -1.
69262         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69264 2009-03-07  Bruno Haible  <bruno@clisp.org>
69266         Tests for module 'uninorm/u32-normcoll'.
69267         * modules/uninorm/u32-normcoll-tests: New file.
69268         * tests/uninorm/test-u32-normcoll.c: New file.
69270         Tests for module 'uninorm/u16-normcoll'.
69271         * modules/uninorm/u16-normcoll-tests: New file.
69272         * tests/uninorm/test-u16-normcoll.c: New file.
69274         Tests for module 'uninorm/u8-normcoll'.
69275         * modules/uninorm/u8-normcoll-tests: New file.
69276         * tests/uninorm/test-u8-normcoll.c: New file.
69278 2009-03-07  Bruno Haible  <bruno@clisp.org>
69280         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69281         tests/uninorm/test-u32-normcmp.c.
69282         * tests/uninorm/test-u32-normcmp.c: Include it.
69283         (test_nonascii): New function, extracted from main. Add some more
69284         tests.
69285         (main): Invoke test_ascii and test_nonascii.
69286         * modules/uninorm/u32-normcmp-tests (Files): Add
69287         tests/uninorm/test-u32-normcmp.h.
69288         (Depends-on): Remove uninorm/u32-normcmp.
69290         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69291         tests/uninorm/test-u16-normcmp.c.
69292         * tests/uninorm/test-u16-normcmp.c: Include it.
69293         (test_nonascii): New function, extracted from main. Add some more
69294         tests.
69295         (main): Invoke test_ascii and test_nonascii.
69296         * modules/uninorm/u16-normcmp-tests (Files): Add
69297         tests/uninorm/test-u16-normcmp.h.
69298         (Depends-on): Remove uninorm/u16-normcmp.
69300         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69301         tests/uninorm/test-u8-normcmp.c.
69302         * tests/uninorm/test-u8-normcmp.c: Include it.
69303         (test_nonascii): New function, extracted from main. Add some more
69304         tests.
69305         (main): Invoke test_ascii and test_nonascii.
69306         * modules/uninorm/u8-normcmp-tests (Files): Add
69307         tests/uninorm/test-u8-normcmp.h.
69308         (Depends-on): Remove uninorm/u8-normcmp.
69310 2009-03-07  Bruno Haible  <bruno@clisp.org>
69312         New module 'uninorm/u32-normcoll'.
69313         * lib/uninorm/u32-normcoll.c: New file.
69314         * modules/uninorm/u32-normcoll: New file.
69316         New module 'uninorm/u16-normcoll'.
69317         * lib/uninorm/u16-normcoll.c: New file.
69318         * modules/uninorm/u16-normcoll: New file.
69320         New module 'uninorm/u8-normcoll'.
69321         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69322         declarations.
69323         * lib/uninorm/u8-normcoll.c: New file.
69324         * lib/uninorm/u-normcoll.h: New file.
69325         * modules/uninorm/u8-normcoll: New file.
69327         New module 'uninorm/u32-normxfrm'.
69328         * lib/uninorm/u32-normxfrm.c: New file.
69329         * modules/uninorm/u32-normxfrm: New file.
69331         New module 'uninorm/u16-normxfrm'.
69332         * lib/uninorm/u16-normxfrm.c: New file.
69333         * modules/uninorm/u16-normxfrm: New file.
69335         New module 'uninorm/u8-normxfrm'.
69336         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69337         declarations.
69338         * lib/uninorm/u8-normxfrm.c: New file.
69339         * lib/uninorm/u-normxfrm.h: New file.
69340         * modules/uninorm/u8-normxfrm: New file.
69342 2009-03-07  Bruno Haible  <bruno@clisp.org>
69344         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69345         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69346         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69348 2009-03-07  Bruno Haible  <bruno@clisp.org>
69350         New module 'memxfrm'.
69351         * lib/memxfrm.h: New file.
69352         * lib/memxfrm.c: New file.
69353         * modules/memxfrm: New file.
69355 2009-03-07  Bruno Haible  <bruno@clisp.org>
69357         New module 'memcmp2'.
69358         * lib/memcmp2.h: New file.
69359         * lib/memcmp2.c: New file.
69360         * modules/memcmp2: New file.
69362 2009-03-07  Bruno Haible  <bruno@clisp.org>
69364         Tests for module 'uninorm/decomposing-form'.
69365         * modules/uninorm/decomposing-form-tests: New file.
69366         * tests/uninorm/test-decomposing-form.c: New file.
69368         New module 'uninorm/decomposing-form'.
69369         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69370         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69371         Add 'decomposing_variant' field.
69372         * lib/uninorm/decomposing-form.c: New file.
69373         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69374         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69375         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69376         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69377         * modules/uninorm/decomposing-form: New file.
69378         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69379         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69381 2009-03-07  Bruno Haible  <bruno@clisp.org>
69383         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69384         strings.
69386 2009-03-06  Bruno Haible  <bruno@clisp.org>
69388         Tests for module 'uninorm/u32-normcmp'.
69389         * tests/uninorm/test-u32-normcmp.c: New file.
69390         * modules/uninorm/u32-normcmp-tests: New file.
69392         Tests for module 'uninorm/u16-normcmp'.
69393         * tests/uninorm/test-u16-normcmp.c: New file.
69394         * modules/uninorm/u16-normcmp-tests: New file.
69396         Tests for module 'uninorm/u8-normcmp'.
69397         * tests/uninorm/test-u8-normcmp.c: New file.
69398         * modules/uninorm/u8-normcmp-tests: New file.
69400         New module 'uninorm/u32-normcmp'.
69401         * lib/uninorm/u32-normcmp.c: New file.
69402         * modules/uninorm/u32-normcmp: New file.
69404         New module 'uninorm/u16-normcmp'.
69405         * lib/uninorm/u16-normcmp.c: New file.
69406         * modules/uninorm/u16-normcmp: New file.
69408         New module 'uninorm/u8-normcmp'.
69409         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69410         declarations.
69411         * lib/uninorm/u8-normcmp.c: New file.
69412         * lib/uninorm/u-normcmp.h: New file.
69413         * modules/uninorm/u8-normcmp: New file.
69415 2009-03-06  Bruno Haible  <bruno@clisp.org>
69417         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69418         Reported by Eric Blake.
69420 2009-03-06  Eric Blake  <ebb9@byu.net>
69421             Bruno Haible  <bruno@clisp.org>
69423         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69424         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69425         condition.
69426         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69427         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69428         condition.
69429         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69431 2009-03-06  Eric Blake  <ebb9@byu.net>
69433         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69434         to avoid compiler warnings.
69435         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69437 2009-03-05  Bruno Haible  <bruno@clisp.org>
69439         * tests/test-ftell.c (main): Disable test beyond end of file on
69440         FreeMiNT.
69441         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69443 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69445         * lib/filevercmp.c: Move hidden files up in ordering.
69446         * tests/test-filevercmp.c: Add tests for hidden files.
69448 2009-03-04  Bruno Haible  <bruno@clisp.org>
69450         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69451         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69452         AM_CFLAGS.
69453         Reported by Simon Josefsson.
69455 2009-03-03  Bruno Haible  <bruno@clisp.org>
69457         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69458         Reported by Simon Josefsson.
69460         * doc/ld-version-script.texi: Update node reference.
69462 2009-03-03  Bruno Haible  <bruno@clisp.org>
69464         * modules/visibility (License): Change to 'unlimited'.
69465         Suggested by Simon Josefsson.
69467 2009-03-03  Jim Meyering  <meyering@redhat.com>
69469         unlinkdir: cannot_unlink_dir may modify process state
69470         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69471         it's neither thread-safe nor appropriate for use in a library.
69473 2009-03-03  Eric Blake  <ebb9@byu.net>
69475         test-closein: silence test under Darwin
69476         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69477         care if it dies from EPIPE or EBADF.
69479 2009-03-03  Bruno Haible  <bruno@clisp.org>
69481         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69482         earlier.
69483         * doc/visibility.texi: Fix @node and @section.
69485 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69487         * doc/gnulib.texi: Link to sections for ld version script and
69488         visibility.
69489         * doc/visibility.texi: Add @node and @section.
69490         * modules/ld-version-script: New module.
69491         * m4/ld-version-script.m4: New file.
69492         * doc/ld-version-script.texi: New file.
69494 2009-03-02  David Lutterkort  <lutter@redhat.com>
69496         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69499 2009-03-02  Bruno Haible  <bruno@clisp.org>
69501         * doc/visibility.texi: Mention libtool's -export-symbols option.
69503 2009-03-02  Jim Meyering  <meyering@redhat.com>
69505         announce-gen: new option: --no-print-checksums
69506         * build-aux/announce-gen (usage): Describe it.
69507         (print_checksums): Print a newline here, not in the [*] footnote.
69508         (main): Honor it.
69510 2009-03-01  Bruno Haible  <bruno@clisp.org>
69512         Use socklen_t in the native Windows replacements prototypes.
69513         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69514         instead of 'int'.
69515         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69516         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69517         * modules/getsockopt (Depends-on): Add socklen.
69518         * modules/setsockopt (Depends-on): Add socklen.
69520 2009-03-01  Bruno Haible  <bruno@clisp.org>
69522         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69523         least 4.2.
69525 2009-03-01  Eric Blake  <ebb9@byu.net>
69526             Bruno Haible  <bruno@clisp.org>
69528         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69529         error messages.
69530         * lib/wait-process.c (wait_subprocess): Omit error message about
69531         deadly signal sent to the child of termsigp != NULL.
69533 2009-03-01  Eric Blake  <ebb9@byu.net>
69535         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69537 2009-03-01  Bruno Haible  <bruno@clisp.org>
69539         Avoid a gcc warning.
69540         * tests/test-sched.c (b): Make global.
69541         Reported by Eric Blake.
69543 2009-01-19  Martin Lambers  <marlam@marlam.de>
69545         Provide POSIX semantics for socket timeout options on W32.
69546         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69547         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69548         * modules/setsockopt: Depend on sys_time module for struct timeval.
69549         * modules/getsockopt: Depend on sys_time module for struct timeval.
69551 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69553         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69554         __USE_GNU, for consistency with netdb.in.h.
69555         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69557 2009-03-01  Bruno Haible  <bruno@clisp.org>
69559         More support for FreeMiNT.
69560         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69561         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69563 2009-03-01  Bruno Haible  <bruno@clisp.org>
69565         More support for FreeMiNT.
69566         * lib/fpurge.c (fpurge): Correct last commit.
69567         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69569 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69571         Fix unportable awk script in vc-list-files.
69572         * build-aux/vc-list-files: In the replacement awk script, use
69573         substr with a second argument of 1, not zero.
69574         Report by Simon Josefsson.
69576 2009-02-28  Bruno Haible  <bruno@clisp.org>
69578         More support for FreeMiNT.
69579         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69580         to FreeMiNT today.
69581         * lib/fwriting.c (fwriting): Likewise.
69582         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69584 2009-02-28  Bruno Haible  <bruno@clisp.org>
69586         * tests/test-freadseek.c (main): Disable test beyond end of file on
69587         FreeMiNT.
69588         * tests/test-ftello.c (main): Likewise.
69589         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69591 2009-02-28  Bruno Haible  <bruno@clisp.org>
69593         Add tentative support for FreeMiNT.
69594         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69595         * lib/fpurge.c (fpurge): Likewise.
69596         * lib/freadable.c (freadable): Likewise.
69597         * lib/freading.c (freading): Likewise.
69598         * lib/freadptr.c (freadptr): Likewise.
69599         * lib/freadseek.c (freadptrinc): Likewise.
69600         * lib/fseeko.c (rpl_fseeko): Likewise.
69601         * lib/fseterr.c (fseterr): Likewise.
69602         * lib/fwritable.c (fwritable): Likewise.
69603         * lib/fwriting.c (fwriting): Likewise.
69604         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69605         Hourihane.
69606         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69608 2009-02-28  Bruno Haible  <bruno@clisp.org>
69610         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69611         SIGCHLD.
69612         Reported by Jim Meyering.
69614 2009-02-28  Bruno Haible  <bruno@clisp.org>
69616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69617         Mention the results of these tests on various platforms.
69618         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69619         order.
69620         * doc/posix-functions/printf.texi: Likewise.
69621         * doc/posix-functions/snprintf.texi: Likewise.
69622         * doc/posix-functions/sprintf.texi: Likewise.
69623         * doc/posix-functions/vfprintf.texi: Likewise.
69624         * doc/posix-functions/vprintf.texi: Likewise.
69625         * doc/posix-functions/vsnprintf.texi: Likewise.
69626         * doc/posix-functions/vsprintf.texi: Likewise.
69627         * doc/glibc-functions/obstack_printf.texi: Likewise.
69628         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69630 2009-02-28  Bruno Haible  <bruno@clisp.org>
69632         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69633         Reported by Loïc Minier <lool@dooz.org>.
69635 2009-02-27  Bruno Haible  <bruno@clisp.org>
69637         * gnulib-tool (func_import): Make the sed expression used to create the
69638         sed script for updating the .gitignore file POSIX compliant.
69639         Reported by Eric Blake.
69641 2009-02-27  Bruno Haible  <bruno@clisp.org>
69643         * gnulib-tool (sed): Don't alias as "sed --posix".
69644         Reported by Eric Blake.
69646 2009-02-27  Bruno Haible  <bruno@clisp.org>
69648         Avoid test link errors.
69649         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69650         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69651         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69652         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69655 2009-02-27  Bruno Haible  <bruno@clisp.org>
69657         Avoid spurious "(cached)" in configure output.
69658         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69659         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69660         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69661         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69662         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69663         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69664         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69665         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69666         Reported by Eric Blake.
69668 2009-02-27  Eric Blake  <ebb9@byu.net>
69670         printf: fix regression in previous patch
69671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69673 2009-02-27  Bruno Haible  <bruno@clisp.org>
69675         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69676         value.
69677         * lib/stdint.in.h: Likewise.
69678         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69680 2009-02-27  Eric Blake  <ebb9@byu.net>
69682         doc: mention more functions added in cygwin 1.7.0
69683         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69684         addition.
69685         * doc/posix-functions/open_wmemstream.texi: Likewise.
69686         * doc/posix-functions/wcsnlen.texi: Likewise.
69687         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69688         * doc/posix-functions/wcstod.texi: Likewise.
69689         * doc/posix-functions/wcstof.texi: Likewise.
69690         * doc/posix-functions/wcstoimax.texi: Likewise.
69691         * doc/posix-functions/wcstok.texi: Likewise.
69692         * doc/posix-functions/wcstoumax.texi: Likewise.
69694         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69696         * doc/posix-functions/fprintf.texi: Update.
69697         * doc/posix-functions/printf.texi: Update.
69698         * doc/posix-functions/snprintf.texi: Update.
69699         * doc/posix-functions/sprintf.texi: Update.
69700         * doc/posix-functions/vfprintf.texi: Update.
69701         * doc/posix-functions/vprintf.texi: Update.
69702         * doc/posix-functions/vsnprintf.texi: Update.
69703         * doc/posix-functions/vsprintf.texi: Update.
69704         * doc/glibc-functions/obstack_printf.texi: Update.
69705         * doc/glibc-functions/obstack_vprintf.texi: Update.
69707 2009-02-26  Eric Blake  <ebb9@byu.net>
69709         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69710         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69711         compilation bug by using runtime conversion.
69712         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69713         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69714         * modules/ceill-tests (Files): Use nan.h.
69715         * modules/floorl-tests (Files): Likewise.
69716         * modules/frexpl-tests (Files): Likewise.
69717         * modules/isnanl-tests (Files): Likewise.
69718         * modules/ldexpl-tests (Files): Likewise.
69719         * modules/roundl-tests (Files): Likewise.
69720         * modules/truncl-tests (Files): Likewise.
69721         * tests/test-ceill.c (main): Use a working NaN.
69722         * tests/test-floorl.c (main): Likewise.
69723         * tests/test-frexpl.c (main): Likewise.
69724         * tests/test-isnan.c (test_long_double): Likewise.
69725         * tests/test-isnanl.h (main): Likewise.
69726         * tests/test-ldexpl.h (main): Likewise.
69727         * tests/test-roundl.h (main): Likewise.
69728         * tests/test-truncl.h (main): Likewise.
69729         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69731 2009-02-26  Eric Blake  <ebb9@byu.net>
69732             Bruno Haible  <bruno@clisp.org>
69734         Work around a *printf bug with %ls on Solaris.
69735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69736         precision is specified, sprintf stops converting the wide string
69737         argument when the number of bytes that have been produced by this
69738         conversion equals or exceeds the precision.
69739         * doc/posix-functions/fprintf.texi: Update.
69740         * doc/posix-functions/printf.texi: Update.
69741         * doc/posix-functions/snprintf.texi: Update.
69742         * doc/posix-functions/sprintf.texi: Update.
69743         * doc/posix-functions/vfprintf.texi: Update.
69744         * doc/posix-functions/vprintf.texi: Update.
69745         * doc/posix-functions/vsnprintf.texi: Update.
69746         * doc/posix-functions/vsprintf.texi: Update.
69747         * doc/glibc-functions/obstack_printf.texi: Update.
69748         * doc/glibc-functions/obstack_vprintf.texi: Update.
69750 2009-02-26  Eric Blake  <ebb9@byu.net>
69752         stdlib: favor compiler check of random.h
69753         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69754         to avoid an ObjC random.h installed by Swarm.
69756 2009-02-26  Bruno Haible  <bruno@clisp.org>
69758         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69759         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69760         Reported by Gary V. Vaughan <gary@gnu.org>.
69762 2009-02-26  Bruno Haible  <bruno@clisp.org>
69764         Fix *printf behaviour regarding the %ls directive.
69765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69766         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69767         NEED_PRINTF_DIRECTIVE_LS.
69768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69769         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69771         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69772         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69773         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69774         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69779         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69783         * doc/posix-functions/fprintf.texi: Update.
69784         * doc/posix-functions/printf.texi: Update.
69785         * doc/posix-functions/snprintf.texi: Update.
69786         * doc/posix-functions/sprintf.texi: Update.
69787         * doc/posix-functions/vfprintf.texi: Update.
69788         * doc/posix-functions/vprintf.texi: Update.
69789         * doc/posix-functions/vsnprintf.texi: Update.
69790         * doc/posix-functions/vsprintf.texi: Update.
69791         * doc/glibc-functions/obstack_printf.texi: Update.
69792         * doc/glibc-functions/obstack_vprintf.texi: Update.
69793         Reported by Eric Blake.
69795 2009-02-25  Bruno Haible  <bruno@clisp.org>
69797         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69798         with known value.
69799         Reported by Gary V. Vaughan <gary@gnu.org>.
69801 2009-02-25  Bruno Haible  <bruno@clisp.org>
69803         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69804         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69805         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69806         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69807         Reported by Gary V. Vaughan <gary@gnu.org>.
69809 2009-02-25  Bruno Haible  <bruno@clisp.org>
69811         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69812         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69813         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69814         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69815         Reported by Gary V. Vaughan <gary@gnu.org>.
69817 2009-02-25  Eric Blake  <ebb9@byu.net>
69819         tests: skip fseek/ftell tests if ungetc is broken
69820         * m4/ungetc.m4: New file.
69821         * modules/fseek-tests: Split test, so ungetc dependency is
69822         separate from rest of test.
69823         * modules/fseeko-tests: Likewise.
69824         * modules/ftell-tests: Likewise.
69825         * modules/ftello-tests: Likewise.
69826         * tests/test-fseek.c (main): Isolate ungetc dependency.
69827         * tests/test-fseeko.c (main): Likewise.
69828         * tests/test-ftell.c (main): Likewise.
69829         * tests/test-ftello.c (main): Likewise.
69830         * tests/test-fseek2.sh: New file.
69831         * tests/test-fseeko2.sh: Likewise.
69832         * tests/test-ftell2.sh: Likewise.
69833         * tests/test-ftello2.sh: Likewise.
69835 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69837         test-getaddrinfo: fix usage of skip return code 77
69838         * tests/test-gettaddrinfo.c: Return skip code 77 only
69839         for first occurrence of skip (4x77 is not 77)
69841 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69843         strtod: avoid C99 decl-after-statement
69844         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69846 2009-02-24  Eric Blake  <ebb9@byu.net>
69848         strtod: detect HP-UX 11.31 bug
69849         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69850         Reported by Gary V. Vaughan.
69852 2009-02-23  Bruno Haible  <bruno@clisp.org>
69854         Fix invalid read past end of memory block.
69855         * lib/vasnprintf.c (DCHAR_SET): Define.
69856         (local_wcslen): Define only when needed.
69857         (local_strnlen, local_wcsnlen): New functions.
69858         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69859         directives that involve a conversion ourselves.
69860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69861         wcsnlen, mbrtowc, wcrtomb.
69862         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69863         * tests/test-vasprintf-posix.c (test_function): Likewise.
69864         * tests/test-snprintf-posix.h (test_function): Likewise.
69865         * tests/test-sprintf-posix.h (test_function): Likewise.
69866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69868 2009-02-22  Bruno Haible  <bruno@clisp.org>
69870         Implement new clarified decomposition of Hangul syllables.
69871         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69872         of type LTV, return only a pairwise decomposition.
69873         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69874         Likewise.
69875         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69876         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69877         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69879 2009-02-22  Bruno Haible  <bruno@clisp.org>
69881         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69882         zero-length results and shrink excess allocated memory.
69883         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69884         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69885         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69886         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69887         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69888         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69889         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69890         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69891         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69892         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69893         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69894         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69896 2009-02-21  Bruno Haible  <bruno@clisp.org>
69898         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69899         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69900         spaces after a period. Put a space between a macro name and its
69901         argument list. Trivial rewordings.
69902         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69903         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69904         (main): Return 0 explicitly.
69906 2009-02-21  Bruno Haible  <bruno@clisp.org>
69908         Tests for module 'uninorm/filter'.
69909         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69910         * modules/uninorm/filter-tests: New file.
69912         New module 'uninorm/filter'.
69913         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69914         uninorm_filter_flush, uninorm_filter_free): New declarations.
69915         * lib/uninorm/uninorm-filter.c: New file.
69916         * modules/uninorm/filter: New file.
69918 2009-02-21  Bruno Haible  <bruno@clisp.org>
69920         Tests for module 'uninorm/nfkc'.
69921         * tests/uninorm/test-nfkc.c: New file.
69922         * tests/uninorm/test-u8-nfkc.c: New file.
69923         * tests/uninorm/test-u16-nfkc.c: New file.
69924         * tests/uninorm/test-u32-nfkc.c: New file.
69925         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69926         * tests/uninorm/test-u32-nfkc-big.c: New file.
69927         * modules/uninorm/nfkc-tests: New file.
69929         New module 'uninorm/nfkc'.
69930         * lib/uninorm/nfkc.c: New file.
69931         * modules/uninorm/nfkc: New file.
69933         Tests for module 'uninorm/nfkd'.
69934         * tests/uninorm/test-nfkd.c: New file.
69935         * tests/uninorm/test-u8-nfkd.c: New file.
69936         * tests/uninorm/test-u16-nfkd.c: New file.
69937         * tests/uninorm/test-u32-nfkd.c: New file.
69938         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69939         * tests/uninorm/test-u32-nfkd-big.c: New file.
69940         * modules/uninorm/nfkd-tests: New file.
69942         New module 'uninorm/nfkd'.
69943         * lib/uninorm/nfkd.c: New file.
69944         * modules/uninorm/nfkd: New file.
69946         Tests for module 'uninorm/nfc'.
69947         * tests/uninorm/test-nfc.c: New file.
69948         * tests/uninorm/test-u8-nfc.c: New file.
69949         * tests/uninorm/test-u16-nfc.c: New file.
69950         * tests/uninorm/test-u32-nfc.c: New file.
69951         * tests/uninorm/test-u32-nfc-big.sh: New file.
69952         * tests/uninorm/test-u32-nfc-big.c: New file.
69953         * modules/uninorm/nfc-tests: New file.
69955         New module 'uninorm/nfc'.
69956         * lib/uninorm/nfc.c: New file.
69957         * modules/uninorm/nfc: New file.
69959         Tests for module 'uninorm/nfd'.
69960         * tests/uninorm/test-nfd.c: New file.
69961         * tests/uninorm/test-u8-nfd.c: New file.
69962         * tests/uninorm/test-u16-nfd.c: New file.
69963         * tests/uninorm/test-u32-nfd.c: New file.
69964         * tests/uninorm/test-u32-nfd-big.sh: New file.
69965         * tests/uninorm/test-u32-nfd-big.c: New file.
69966         * tests/uninorm/test-u32-normalize-big.h: New file.
69967         * tests/uninorm/test-u32-normalize-big.c: New file.
69968         * tests/uninorm/NormalizationTest.txt: New file, created from
69969         Unicode 5.1.0 NormalizationTest.txt.
69970         * modules/uninorm/nfd-tests: New file.
69972         New module 'uninorm/nfd'.
69973         * lib/uninorm/nfd.c: New file.
69974         * modules/uninorm/nfd: New file.
69976         New module 'uninorm/u32-normalize'.
69977         * lib/uninorm/u32-normalize.c: New file.
69978         * modules/uninorm/u32-normalize: New file.
69980         New module 'uninorm/u16-normalize'.
69981         * lib/uninorm/u16-normalize.c: New file.
69982         * modules/uninorm/u16-normalize: New file.
69984         New module 'uninorm/u8-normalize'.
69985         * lib/uninorm/u8-normalize.c: New file.
69986         * lib/uninorm/normalize-internal.h: New file.
69987         * lib/uninorm/u-normalize-internal.h: New file.
69988         * modules/uninorm/u8-normalize: New file.
69990         New module 'uninorm/decompose-internal'.
69991         * lib/uninorm/decompose-internal.c: New file.
69992         * modules/uninorm/decompose-internal: New file.
69994         Tests for module 'uninorm/composition'.
69995         * tests/uninorm/test-composition.c: New file.
69996         * modules/uninorm/composition-tests: New file.
69998         New module 'uninorm/composition'.
69999         * lib/uninorm/composition.c: New file.
70000         * lib/uninorm/composition-table.gperf: New file, generated by
70001         gen-uni-tables.
70002         * modules/uninorm/composition: New file.
70004         Tests for module 'uninorm/compat-decomposition'.
70005         * tests/uninorm/test-compat-decomposition.c: New file.
70006         * modules/uninorm/compat-decomposition-tests: New file.
70008         New module 'uninorm/compat-decomposition'.
70009         * lib/uninorm/decompose-internal.h: New file.
70010         * lib/uninorm/compat-decomposition.c: New file.
70011         * modules/uninorm/compat-decomposition: New file.
70013         Tests for module 'uninorm/canonical-decomposition'.
70014         * tests/uninorm/test-canonical-decomposition.c: New file.
70015         * modules/uninorm/canonical-decomposition-tests: New file.
70017         New module 'uninorm/canonical-decomposition'.
70018         * lib/uninorm/canonical-decomposition.c: New file.
70019         * modules/uninorm/canonical-decomposition: New file.
70021         Tests for module 'uninorm/decomposition'.
70022         * tests/uninorm/test-decomposition.c: New file.
70023         * modules/uninorm/decomposition-tests: New file.
70025         New module 'uninorm/decomposition'.
70026         * lib/uninorm/decomposition.c: New file.
70027         * modules/uninorm/decomposition: New file.
70029         New module 'uninorm/decomposition-table'.
70030         * lib/uninorm/decomposition-table.h: New file.
70031         * lib/uninorm/decomposition-table.c: New file.
70032         * lib/uninorm/decomposition-table1.h: New file, generated by
70033         gen-uni-tables.
70034         * lib/uninorm/decomposition-table2.h: New file, generated by
70035         gen-uni-tables.
70036         * modules/uninorm/decomposition-table: New file.
70038         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
70039         (UC_DECOMP_*): New enumeration items.
70040         (get_decomposition): New function.
70041         (struct decomp_table): New type.
70042         (output_decomposition, output_decomposition_tables): New functions.
70043         (unicode_composition_exclusions): New variable.
70044         (fill_composition_exclusions, debug_output_composition_tables): New
70045         functions.
70046         (main): Accept one more argument. Invoke fill_composition_exclusions.
70047         Output decomposition and composition tables.
70049         New module 'uninorm/base'.
70050         * lib/uninorm.h: New file.
70051         * lib/unictype.h: Update comment.
70052         * modules/uninorm/base: New file.
70054 2009-02-21  David Lutterkort  <lutter@redhat.com>
70056         Tests for module 'safe-alloc'.
70057         * tests/test-safe-alloc.c: New file.
70058         * modules/safe-alloc-tests: New file.
70060         New module 'safe-alloc'.
70061         * lib/safe-alloc.h: New file.
70062         * lib/safe-alloc.c: New file.
70063         * m4/safe-alloc.m4: New file.
70064         * modules/safe-alloc: New file.
70065         * doc/safe-alloc.texi: New file.
70066         * doc/gnulib.texi: Include it.
70067         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
70068         safe-alloc.
70070 2009-02-18  Bruno Haible  <bruno@clisp.org>
70072         Fix link error on non-glibc systems.
70073         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
70074         variable.
70075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70077 2009-02-18  Jim Meyering  <meyering@redhat.com>
70079         fts: avoid used-uninitialized error due to recent change
70080         * lib/fts.c (fts_read): Guard uses of the new member,
70081         parent->fts_n_dirs_remaining, since it's not relevant for
70082         the parent of a directory specified on the command-line.
70084 2009-02-17  James Youngman  <jay@gnu.org>
70085             Bruno Haible  <bruno@clisp.org>
70087         * m4/include_next.m4: Reformulate comment.
70089 2009-02-16  Jim Meyering  <meyering@redhat.com>
70091         fts: add #if guards so that the fts_lgpl module still builds
70092         * lib/fts.c: Guard just-added hash-table-using parts with
70093         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
70094         Reported by Simon Josefsson.
70096 2009-02-15  Bruno Haible  <bruno@clisp.org>
70098         * modules/array-mergesort-tests: New file.
70099         * tests/test-array-mergesort.c: New file.
70101         New module 'array-mergesort'.
70102         * modules/array-mergesort: New file.
70103         * lib/array-mergesort.h: New file.
70105 2009-02-15  Bruno Haible  <bruno@clisp.org>
70107         Fix 2009-02-07 commit.
70108         * lib/gen-uni-tables.c (output_predicate, output_category,
70109         output_combclass, output_bidi_category, output_decimal_digit,
70110         output_digit, output_numeric, output_mirror, output_scripts,
70111         output_ident_category, output_simple_mapping): Fix format directives.
70112         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
70114 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
70116         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
70117         fixes are available from IBM.
70119 2009-02-13  Jim Meyering  <meyering@redhat.com>
70121         fts: arrange not to stat non-directories in more cases
70122         This makes GNU find (when it doesn't need to stat each file)
70123         *much* more efficient at traversing reiserfs file systems.
70124         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70125         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70126         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70127         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70128         (leaf_optimization_applies): New function.
70129         (LCO_hash, LCO_compare): New helper functions.
70130         (link_count_optimize_ok): New function.
70131         (fts_stat): Initialize new member (if dir).
70132         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70133         we've just stat'ed a directory.  Skip the stat call when possible.
70134         ---
70135         Note this AFS-related exchange:
70136         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70137         and note find's pioctl call in find/fstype.c.
70138         But that is necessary only if you want to enable the
70139         optimization for AFS, and for now, I don't.
70141         fts: move a function definition "up" (no semantic change)
70142         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70143         "up" to precede upcoming use of a related function.
70145 2009-02-11  Jim Meyering  <meyering@redhat.com>
70147         fts: correct internal computation of nlinks (optimization-related)
70148         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70149         whether the current entry is a directory, so don't test it.
70151 2009-02-10  Bruno Haible  <bruno@clisp.org>
70153         Tests for module 'uniwbrk/ulc-wordbreaks'.
70154         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70155         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70156         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70158         Tests for module 'uniwbrk/u32-wordbreaks'.
70159         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70160         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70162         Tests for module 'uniwbrk/u16-wordbreaks'.
70163         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70164         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70166         Tests for module 'uniwbrk/u8-wordbreaks'.
70167         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70168         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70170 2009-02-10  Bruno Haible  <bruno@clisp.org>
70172         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70173         property.
70174         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70175         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70176         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70178 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70180         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70181         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70183 2009-02-10  Bruno Haible  <bruno@clisp.org>
70185         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70186         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70187         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70188         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70189         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70190         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70192 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70194         * lib/sockets.h (gl_fd_to_handle): New function.
70196         * tests/test-sockets.c: Call gl_fd_to_handle.
70198 2009-02-09  Bruno Haible  <bruno@clisp.org>
70200         * doc/havelib.texi: Document the conventions on bi-arch systems.
70202 2009-02-08  Bruno Haible  <bruno@clisp.org>
70204         Document the AC_LIB_LINKFLAGS macro.
70205         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70206         * doc/gnulib.texi: Include it.
70208 2009-02-08  Bruno Haible  <bruno@clisp.org>
70210         Fix wrong order of sections, compared to TOC.
70211         * doc/gnulib.texi: Include relocatable-maint.texi after the
70212         "Regular expressions" node, not before.
70214 2009-02-08  Bruno Haible  <bruno@clisp.org>
70216         Tests for module 'unicase/totitle'.
70217         * modules/unicase/totitle-tests: New file.
70219         Tests for module 'unicase/tolower'.
70220         * modules/unicase/tolower-tests: New file.
70222         Tests for module 'unicase/toupper'.
70223         * modules/unicase/toupper-tests: New file.
70224         * tests/unicase/test-mapping-part1.h: New file.
70225         * tests/unicase/test-mapping-part2.h: New file.
70227         New module 'unicase/totitle'.
70228         * modules/unicase/totitle: New file.
70229         * lib/unicase/totitle.c: New file.
70231         New module 'unicase/tolower'.
70232         * modules/unicase/tolower: New file.
70233         * lib/unicase/tolower.c: New file.
70235         New module 'unicase/toupper'.
70236         * modules/unicase/toupper: New file.
70237         * lib/unicase/toupper.c: New file.
70238         * lib/unicase/simple-mapping.h: New file.
70240         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70241         (mapping_table): New structure.
70242         (output_simple_mapping): New function.
70243         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70244         * modules/gen-uni-tables (Description): Update.
70245         * lib/unicase/toupper.h: New file, automatically generated by
70246         gen-uni-tables.
70247         * lib/unicase/tolower.h: New file, automatically generated by
70248         gen-uni-tables.
70249         * lib/unicase/totitle.h: New file, automatically generated by
70250         gen-uni-tables.
70251         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70252         gen-uni-tables.
70253         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70254         gen-uni-tables.
70255         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70256         gen-uni-tables.
70258         New module 'unicase/base'.
70259         * modules/unicase/base: New file.
70260         * lib/unicase.h: New file.
70262 2009-02-08  Bruno Haible  <bruno@clisp.org>
70264         New module 'uniwbrk/ulc-wordbreaks'.
70265         * modules/uniwbrk/ulc-wordbreaks: New file.
70266         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70268         New module 'uniwbrk/u32-wordbreaks'.
70269         * modules/uniwbrk/u32-wordbreaks: New file.
70270         * lib/uniwbrk/u32-wordbreaks.c: New file.
70272         New module 'uniwbrk/u16-wordbreaks'.
70273         * modules/uniwbrk/u16-wordbreaks: New file.
70274         * lib/uniwbrk/u16-wordbreaks.c: New file.
70276         New module 'uniwbrk/u8-wordbreaks'.
70277         * modules/uniwbrk/u8-wordbreaks: New file.
70278         * lib/uniwbrk/u8-wordbreaks.c: New file.
70279         * lib/uniwbrk/u-wordbreaks.h: New file.
70281         New module 'uniwbrk/table'.
70282         * modules/uniwbrk/table: New file.
70283         * lib/uniwbrk/wbrktable.h: New file.
70284         * lib/uniwbrk/wbrktable.c: New file.
70286         New module 'uniwbrk/wordbreak-property'.
70287         * modules/uniwbrk/wordbreak-property: New file.
70288         * lib/uniwbrk/wordbreak-property.c: New file.
70290         * lib/gen-uni-tables.c (WBP_*): New enum items.
70291         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70292         (unicode_org_wbp): New variable.
70293         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70294         New functions.
70295         (wbp_table): New structure.
70296         (output_wbp, output_wbrk_tables): New functions.
70297         (main): Accept additional argument. Invoke fill_org_wbp,
70298         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70299         output_wbrk_tables.
70300         * modules/gen-uni-tables (Description): Update.
70301         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70302         gen-uni-tables.
70304         New module 'uniwbrk/base'.
70305         * modules/uniwbrk/base: New file.
70306         * lib/uniwbrk.h: New file.
70308 2009-02-08  Bruno Haible  <bruno@clisp.org>
70310         Update to Unicode 5.1.0.
70311         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70312         U+2185..U+2188.
70313         (is_property_default_ignorable_code_point): Don't include characters
70314         of category Cc or Cs and not-a-characters.
70315         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70316         U+0D79, U+109E, U+109F, U+A60C.
70317         * lib/unictype/bidi_of.h: Regenerated.
70318         * lib/unictype/blocks.h: Regenerated.
70319         * lib/unictype/categ_C.h: Regenerated.
70320         * lib/unictype/categ_Cf.h: Regenerated.
70321         * lib/unictype/categ_Cn.h: Regenerated.
70322         * lib/unictype/categ_L.h: Regenerated.
70323         * lib/unictype/categ_Ll.h: Regenerated.
70324         * lib/unictype/categ_Lm.h: Regenerated.
70325         * lib/unictype/categ_Lo.h: Regenerated.
70326         * lib/unictype/categ_Lu.h: Regenerated.
70327         * lib/unictype/categ_M.h: Regenerated.
70328         * lib/unictype/categ_Mc.h: Regenerated.
70329         * lib/unictype/categ_Me.h: Regenerated.
70330         * lib/unictype/categ_Mn.h: Regenerated.
70331         * lib/unictype/categ_N.h: Regenerated.
70332         * lib/unictype/categ_Nd.h: Regenerated.
70333         * lib/unictype/categ_Nl.h: Regenerated.
70334         * lib/unictype/categ_No.h: Regenerated.
70335         * lib/unictype/categ_P.h: Regenerated.
70336         * lib/unictype/categ_Pd.h: Regenerated.
70337         * lib/unictype/categ_Pe.h: Regenerated.
70338         * lib/unictype/categ_Pf.h: Regenerated.
70339         * lib/unictype/categ_Pi.h: Regenerated.
70340         * lib/unictype/categ_Po.h: Regenerated.
70341         * lib/unictype/categ_Ps.h: Regenerated.
70342         * lib/unictype/categ_S.h: Regenerated.
70343         * lib/unictype/categ_Sk.h: Regenerated.
70344         * lib/unictype/categ_Sm.h: Regenerated.
70345         * lib/unictype/categ_So.h: Regenerated.
70346         * lib/unictype/categ_of.h: Regenerated.
70347         * lib/unictype/combining.h: Regenerated.
70348         * lib/unictype/ctype_alnum.h: Regenerated.
70349         * lib/unictype/ctype_alpha.h: Regenerated.
70350         * lib/unictype/ctype_graph.h: Regenerated.
70351         * lib/unictype/ctype_lower.h: Regenerated.
70352         * lib/unictype/ctype_print.h: Regenerated.
70353         * lib/unictype/ctype_punct.h: Regenerated.
70354         * lib/unictype/ctype_upper.h: Regenerated.
70355         * lib/unictype/decdigit.h: Regenerated.
70356         * lib/unictype/digit.h: Regenerated.
70357         * lib/unictype/mirror.h: Regenerated.
70358         * lib/unictype/numeric.h: Regenerated.
70359         * lib/unictype/pr_alphabetic.h: Regenerated.
70360         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70361         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70362         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70363         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70364         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70365         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70366         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70367         * lib/unictype/pr_combining.h: Regenerated.
70368         * lib/unictype/pr_dash.h: Regenerated.
70369         * lib/unictype/pr_decimal_digit.h: Regenerated.
70370         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70371         * lib/unictype/pr_deprecated.h: Regenerated.
70372         * lib/unictype/pr_diacritic.h: Regenerated.
70373         * lib/unictype/pr_extender.h: Regenerated.
70374         * lib/unictype/pr_format_control.h: Regenerated.
70375         * lib/unictype/pr_grapheme_base.h: Regenerated.
70376         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70377         * lib/unictype/pr_grapheme_link.h: Regenerated.
70378         * lib/unictype/pr_id_continue.h: Regenerated.
70379         * lib/unictype/pr_id_start.h: Regenerated.
70380         * lib/unictype/pr_ideographic.h: Regenerated.
70381         * lib/unictype/pr_ignorable_control.h: Regenerated.
70382         * lib/unictype/pr_lowercase.h: Regenerated.
70383         * lib/unictype/pr_math.h: Regenerated.
70384         * lib/unictype/pr_numeric.h: Regenerated.
70385         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70386         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70387         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70388         * lib/unictype/pr_other_id_continue.h: Regenerated.
70389         * lib/unictype/pr_other_lowercase.h: Regenerated.
70390         * lib/unictype/pr_other_math.h: Regenerated.
70391         * lib/unictype/pr_punctuation.h: Regenerated.
70392         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70393         * lib/unictype/pr_soft_dotted.h: Regenerated.
70394         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70395         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70396         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70397         * lib/unictype/pr_uppercase.h: Regenerated.
70398         * lib/unictype/pr_xid_continue.h: Regenerated.
70399         * lib/unictype/pr_xid_start.h: Regenerated.
70400         * lib/unictype/pr_zero_width.h: Regenerated.
70401         * lib/unictype/scripts.h: Regenerated.
70402         * lib/unictype/scripts_byname.gperf: Regenerated.
70403         * lib/unictype/sy_java_ident.h: Regenerated.
70404         * lib/unilbrk/lbrkprop1.h: Regenerated.
70405         * lib/unilbrk/lbrkprop2.h: Regenerated.
70406         * tests/unictype/test-categ_C.c: Regenerated.
70407         * tests/unictype/test-categ_Cf.c: Regenerated.
70408         * tests/unictype/test-categ_Cn.c: Regenerated.
70409         * tests/unictype/test-categ_L.c: Regenerated.
70410         * tests/unictype/test-categ_Ll.c: Regenerated.
70411         * tests/unictype/test-categ_Lm.c: Regenerated.
70412         * tests/unictype/test-categ_Lo.c: Regenerated.
70413         * tests/unictype/test-categ_Lu.c: Regenerated.
70414         * tests/unictype/test-categ_M.c: Regenerated.
70415         * tests/unictype/test-categ_Mc.c: Regenerated.
70416         * tests/unictype/test-categ_Me.c: Regenerated.
70417         * tests/unictype/test-categ_Mn.c: Regenerated.
70418         * tests/unictype/test-categ_N.c: Regenerated.
70419         * tests/unictype/test-categ_Nd.c: Regenerated.
70420         * tests/unictype/test-categ_Nl.c: Regenerated.
70421         * tests/unictype/test-categ_No.c: Regenerated.
70422         * tests/unictype/test-categ_P.c: Regenerated.
70423         * tests/unictype/test-categ_Pd.c: Regenerated.
70424         * tests/unictype/test-categ_Pe.c: Regenerated.
70425         * tests/unictype/test-categ_Pf.c: Regenerated.
70426         * tests/unictype/test-categ_Pi.c: Regenerated.
70427         * tests/unictype/test-categ_Po.c: Regenerated.
70428         * tests/unictype/test-categ_Ps.c: Regenerated.
70429         * tests/unictype/test-categ_S.c: Regenerated.
70430         * tests/unictype/test-categ_Sk.c: Regenerated.
70431         * tests/unictype/test-categ_Sm.c: Regenerated.
70432         * tests/unictype/test-categ_So.c: Regenerated.
70433         * tests/unictype/test-ctype_alnum.c: Regenerated.
70434         * tests/unictype/test-ctype_alpha.c: Regenerated.
70435         * tests/unictype/test-ctype_graph.c: Regenerated.
70436         * tests/unictype/test-ctype_lower.c: Regenerated.
70437         * tests/unictype/test-ctype_print.c: Regenerated.
70438         * tests/unictype/test-ctype_punct.c: Regenerated.
70439         * tests/unictype/test-ctype_upper.c: Regenerated.
70440         * tests/unictype/test-decdigit.h: Regenerated.
70441         * tests/unictype/test-digit.h: Regenerated.
70442         * tests/unictype/test-numeric.h: Regenerated.
70443         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70444         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70445         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70446         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70447         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70448         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70449         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70450         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70451         * tests/unictype/test-pr_combining.c: Regenerated.
70452         * tests/unictype/test-pr_dash.c: Regenerated.
70453         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70454         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70455         * tests/unictype/test-pr_deprecated.c: Regenerated.
70456         * tests/unictype/test-pr_diacritic.c: Regenerated.
70457         * tests/unictype/test-pr_extender.c: Regenerated.
70458         * tests/unictype/test-pr_format_control.c: Regenerated.
70459         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70460         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70461         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70462         * tests/unictype/test-pr_id_continue.c: Regenerated.
70463         * tests/unictype/test-pr_id_start.c: Regenerated.
70464         * tests/unictype/test-pr_ideographic.c: Regenerated.
70465         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70466         * tests/unictype/test-pr_lowercase.c: Regenerated.
70467         * tests/unictype/test-pr_math.c: Regenerated.
70468         * tests/unictype/test-pr_numeric.c: Regenerated.
70469         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70470         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70471         Regenerated.
70472         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70473         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70474         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70475         * tests/unictype/test-pr_other_math.c: Regenerated.
70476         * tests/unictype/test-pr_punctuation.c: Regenerated.
70477         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70478         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70479         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70480         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70481         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70482         * tests/unictype/test-pr_uppercase.c: Regenerated.
70483         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70484         * tests/unictype/test-pr_xid_start.c: Regenerated.
70485         * tests/unictype/test-pr_zero_width.c: Regenerated.
70487         Update to Unicode 5.1.0.
70488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70489         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70490         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70491         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70492         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70493         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70494         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70495         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70496         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70497         (nonspacing_table_ind): Update.
70498         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70500         Update to Unicode 5.1.0.
70501         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70502         code transform.
70503         * lib/uniname/uniname.c (unicode_character_name,
70504         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70505         * lib/uniname/uninames.h: Regenerated.
70506         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70508 2009-02-07  Bruno Haible  <bruno@clisp.org>
70510         Merge gen-ctype and gen-lbrk into a single program.
70511         * lib/gen-uni-tables.c: New file, incorporating
70512         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70513         Add directory prefixes to the names of the generated files.
70514         * lib/unictype/gen-ctype.c: Remove file.
70515         * lib/unilbrk/gen-lbrk.c: Remove file.
70516         * modules/gen-uni-tables: New file.
70517         * modules/unictype/gen-ctype: Remove file.
70518         * modules/unilbrk/gen-lbrk: Remove file.
70520 2009-02-07  Bruno Haible  <bruno@clisp.org>
70522         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70524         New module 'unistr/u32-strcoll'.
70525         * modules/unistr/u32-strcoll: New file.
70526         * lib/unistr/u32-strcoll.c: New file.
70528         New module 'unistr/u16-strcoll'.
70529         * modules/unistr/u16-strcoll: New file.
70530         * lib/unistr/u16-strcoll.c: New file.
70532         New module 'unistr/u8-strcoll'.
70533         * modules/unistr/u8-strcoll: New file.
70534         * lib/unistr/u8-strcoll.c: New file.
70535         * lib/unistr/u-strcoll.h: New file.
70537 2009-02-07  Bruno Haible  <bruno@clisp.org>
70539         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70540         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70541         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70542         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70543         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70544         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70546 2009-02-07  Bruno Haible  <bruno@clisp.org>
70548         Make 64-bit clean.
70549         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70550         output_combclass, output_bidi_category, output_decimal_digit,
70551         output_digit, output_numeric, output_mirror, output_scripts,
70552         output_ident_category): Use proper width specifier in format strings.
70554 2009-02-07  Bruno Haible  <bruno@clisp.org>
70556         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70557         failure behaviour.
70559 2009-02-07  Jim Meyering  <meyering@redhat.com>
70561         regex: avoid compilation failure with upcoming gcc-4.4
70562         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70563         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70564         "... error: integer overflow in preprocessor expression".
70566 2009-02-05  Ben Pfaff  <blp@gnu.org>
70568         Fix link errors on Windows when close module is used.
70569         * modules/close: Add $(LIB_CLOSE) to Link section.
70570         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70571         $(LIB_CLOSE) on Windows.
70573 2009-02-05  Jim Meyering  <meyering@redhat.com>
70575         still avoid unused-parameter warnings, but do it cleanly
70576         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70577         (get_fs_usage): Cast to void instead.
70578         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70579         (dev_from_mount_options, read_file_system_list): Cast to void.
70580         Prompted by Bruno Haible.
70582 2009-02-04  Jim Meyering  <meyering@redhat.com>
70584         fsusage.c: correct copyright year
70585         * lib/fsusage.c: Reflect year in which the change is pushed into
70587         avoid misc. warnings
70588         * lib/fsusage.c (UNUSED_PARAM): Define.
70589         (get_fs_usage): Mark parameter "disk" as unused.
70590         * lib/getugroups.c (getgrent): Use "void" in prototype.
70591         * lib/mountlist.c: Mark unused parameters.
70592         (read_file_system_list): Declare a local with "const".
70593         * lib/nanosleep.c (getnow): Declare static.
70594         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70596         dirfd: set errno upon failure
70597         * lib/dirfd.c: Include <errno.h>.
70598         Set errno to ENOTSUP when returning -1.
70599         * modules/dirfd (Depends-on): Add errno.
70600         Suggested by John Kodis <kodis@comcast.net>.
70602 2009-02-01  Bruno Haible  <bruno@clisp.org>
70604         Don't assume sizeof (long) >= sizeof (void *).
70605         * lib/memcmp.c: Include stdint.h.
70606         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70607         srcp2 to 'const byte *'.
70608         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70609         types to uintptr_t.
70610         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70611         * modules/memcmp (Depends-on): Add stdint.
70612         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70614 2009-01-30  Eric Blake  <ebb9@byu.net>
70616         fix more require-before-expand issues
70617         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70618         expand, AC_PROG_AWK.
70619         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70621 2009-01-28  Eric Blake  <ebb9@byu.net>
70623         version-etc: use consistent URL formatting
70624         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70625         Improve formatting.  Use fputs for string without %.
70627 2009-01-28  Jim Meyering  <meyering@redhat.com>
70629         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70630         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70631         "underquoted definition of NAME" from autoconf-2.59.
70633 2009-01-28  Bruno Haible  <bruno@clisp.org>
70635         * doc/gnulib.texi: Add "Obsolete modules" to index.
70637 2009-01-28  Jim Meyering  <meyering@redhat.com>
70639         useless-if-before-free: recognize more variants
70640         * build-aux/useless-if-before-free: Also recognize e.g.,
70641         if (NULL != p) free (p);
70643 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70645         test-getaddrinfo: skip (don't fail) this test when there's no network
70646         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70647         on the presumption that it means you lack network access.
70649 2009-01-26  Jim Meyering  <meyering@redhat.com>
70651         fflush: avoid warnings on modern systems
70652         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70653         pos and result, into scopes where they're used.
70655 2009-01-26  Eric Blake  <ebb9@byu.net>
70657         Silence warning reintroduced by recent extensions patch.
70658         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70659         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70660         autoconf.
70662         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70663         * m4/00gnulib.m4: New file.
70664         * gnulib-tool (func_get_filelist): Always use it.
70665         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70666         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70668 2009-01-25  Bruno Haible  <bruno@clisp.org>
70670         Make test-quotearg work on MacOS X and AIX.
70671         * tests/test-quotearg.sh: New file.
70672         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70673         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70674         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70675         include <libintl.h>.
70676         (fake_locale): Remove variable.
70677         (gettext, dgettext, dcgettext): Remove functions.
70678         (main): Instead of setting a fake locale, set a real locale. Call
70679         textdomain and bindtextdomain.
70680         * modules/quotearg-tests (Files): Add the new files.
70681         (Depends-on): Add gettext, setenv, unsetenv.
70682         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70683         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70684         Augment TESTS_ENVIRONMENT.
70686 2009-01-25  Bruno Haible  <bruno@clisp.org>
70688         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70689         fr_FR.ISO8859-1 locale on MacOS X.
70690         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70691         ja_JP.eucJP locale on MacOS X.
70692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70693         zh_CN.GB18030 locale on MacOS X.
70695 2009-01-25  Bruno Haible  <bruno@clisp.org>
70697         Avoid link errors on MacOS X 10.3.
70698         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70699         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70701 2009-01-25  Bruno Haible  <bruno@clisp.org>
70703         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70704         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70705         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70706         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70707         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70708         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70709         posix_spawnattr_init, posix_spawnattr_setsigmask,
70710         posix_spawnattr_setflags, posix_spawnattr_destroy.
70712         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70713         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70714         * modules/execute (Files): Remove m4/posix_spawn.m4.
70715         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70716         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70717         posix_spawnattr_init, posix_spawnattr_setsigmask,
70718         posix_spawnattr_setflags, posix_spawnattr_destroy.
70720 2009-01-25  Bruno Haible  <bruno@clisp.org>
70722         * lib/glthread/threadlib.c: Include <stdlib.h>.
70724 2009-01-25  Bruno Haible  <bruno@clisp.org>
70726         * lib/glthread/threadlib.c (dummy): New declaration.
70728 2009-01-25  Bruno Haible  <bruno@clisp.org>
70730         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70731         multibyte characters also for the GB18030 encoding. Don't crash when
70732         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70734 2009-01-25  Bruno Haible  <bruno@clisp.org>
70736         Avoid redefining 'struct random_data' on OSF/1 5.1.
70737         * lib/stdlib.in.h: Include <random.h> if it exists.
70738         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70739         HAVE_RANDOM_H. Include <random.h> when testing whether
70740         'struct random_data' exists.
70741         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70743 2009-01-25  Bruno Haible  <bruno@clisp.org>
70745         Don't install charset.alias on MacOS X >= 10.3.
70746         * lib/localcharset.c (DARWIN7): New macro.
70747         (get_charset_aliases): Hardcode the result for Darwin7.
70748         * modules/localcharset (install-exec-local): Don't install
70749         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70751 2009-01-25  Bruno Haible  <bruno@clisp.org>
70753         Don't install charset.alias on mingw and Cygwin.
70754         * modules/localcharset (install-exec-local): Don't install
70755         charset.alias on mingw and Cygwin, if the file does not yet exist.
70756         The result for these platforms is hardcoded in localcharset.c.
70758 2009-01-25  Bruno Haible  <bruno@clisp.org>
70760         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70762         before requiring AC_USE_SYSTEM_EXTENSIONS.
70764 2009-01-25  Jim Meyering  <meyering@redhat.com>
70766         c-strtod: avoid warnings
70767         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70768         "assignment discards qualifiers from pointer target type" warnings.
70770 2009-01-24  Bruno Haible  <bruno@clisp.org>
70772         Add support for non-UTF-8 locales on MacOS X.
70773         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70774         canonical encodings. For Darwin 7 and newer, don't map traditional
70775         encodings to UTF-8.
70776         Reported by Vincent Lefevre <vincent@vinc17.org>
70777         at <http://savannah.gnu.org/bugs/?25235>.
70779 2009-01-24  Bruno Haible  <bruno@clisp.org>
70781         * doc/gnulib.texi (Obsolete modules): New section.
70782         Reported by Mike Frysinger <vapier@gentoo.org>.
70784 2009-01-24  Bruno Haible  <bruno@clisp.org>
70786         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70787         (%.dvi): New rule.
70789 2009-01-24  Bruno Haible  <bruno@clisp.org>
70791         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70792         Reported by Eric Blake.
70794 2009-01-24  Bruno Haible  <bruno@clisp.org>
70796         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70797         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70798         Reported by Gary V. Vaughan <gary@gnu.org>.
70800 2009-01-24  Bruno Haible  <bruno@clisp.org>
70802         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70804 2009-01-23  Bruno Haible  <bruno@clisp.org>
70806         Make c-strtod, c-strtold usable in libraries.
70807         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70808         (C_STRTOD): Call strdup instead of xstrdup.
70809         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70810         * modules/c-strtold (Depends-on): Likewise.
70811         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70812         * NEWS: Mention the change.
70813         Reported by Michael Gold <mgold@ncf.ca>.
70815 2009-01-23  Jim Meyering  <meyering@redhat.com>
70817         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70818         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70819         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70821 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70823         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70824         GNU CoreUtils.
70825         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70826         * modules/version-etc (Description): Update.
70828 2009-01-22  Bruno Haible  <bruno@clisp.org>
70830         Cache the C locale object.
70831         * lib/c-strtod.c (c_locale_cache): New variable.
70832         (c_locale): New function.
70833         (C_STRTOD): Use it, and don't call freelocale.
70834         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70835         Suggested by Paolo Bonzini.
70837 2009-01-21  Bruno Haible  <bruno@clisp.org>
70839         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70840         conditions other than overflow.
70842 2009-01-21  Bruno Haible  <bruno@clisp.org>
70844         * lib/c-strtod.c: Include errno.h.
70845         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70846         value from STRTOD_L and STRTOD.
70848 2009-01-21  Bruno Haible  <bruno@clisp.org>
70849         and Jim Meyering  <meyering@redhat.com>
70851         nanosleep: skip configure test (fail it) for apple universal builds
70852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70853         universal builds, assume that nanosleep does not work.
70854         * modules/nanosleep (Depends-on): Add multiarch.
70856         mktime: skip configure test (fail it) for apple universal builds
70857         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70858         universal builds, assume that mktime does not work.
70859         * modules/mktime (Depends-on): Add multiarch.
70861 2009-01-21  Eric Blake  <ebb9@byu.net>
70863         multiarch: avoid expand-before-require warning
70864         * modules/multiarch (configure.ac): Require, rather than expand,
70865         gl_MULTIARCH.
70866         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70867         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70868         enforce that all clients require it.  Partial reversion of
70869         2008-12-29 patch.
70871         error: avoid expand-before-require warning
70872         * modules/errno (configure.ac): Require, rather than expand,
70873         gl_HEADER_ERRNO_H.
70874         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70875         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70876         enforce that all clients require it.
70878         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70879         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70880         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70881         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70883 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70885         Revert:
70886         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70888         regex: do not depend on obsolete modules.
70889         * modules/regex: Remove memcmp and memmove.
70891 2009-01-20  Bruno Haible  <bruno@clisp.org>
70893         Make the 'link' module link on Windows NT 4.
70894         * lib/link.c (_WIN32_WINNT): Don't define.
70895         (CreateHardLinkFuncType): New type.
70896         (CreateHardLinkFunc, initialized): New variables.
70897         (initialize): New function.
70898         (link): Invoke CreateHardLink indirectly through the function pointer.
70900 2009-01-20  Bruno Haible  <bruno@clisp.org>
70902         Fix compilation failure on mingw.
70903         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70905 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70907         * doc/c-strtod.texi: Mention a couple of restrictions.
70909 2009-01-20  Jim Meyering  <meyering@redhat.com>
70911         gettimeofday: move more declarations out of functions
70912         * lib/gettimeofday.c: Move extern declarations of tzset and
70913         gmtime out of containing functions.  Prompted by Bruno Haible.
70915 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70917         regex: do not depend on obsolete modules.
70918         * modules/regex: Remove memcmp and memmove.
70920 2009-01-19  Bruno Haible  <bruno@clisp.org>
70922         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70923         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70924         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70925         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70926         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70928 2009-01-19  Bruno Haible  <bruno@clisp.org>
70930         * tests/test-link.c: Include <errno.h>.
70931         (main): Exit with code 77 when a hard link cannot be created due to
70932         the file system.
70933         * tests/test-link.sh: Skip test when a hard link cannot be created due
70934         to the file system.
70935         Suggested by Eric Blake.
70937 2009-01-19  Martin Lambers  <marlam@marlam.de>
70939         * modules/link-tests: New file.
70940         * tests/test-link.sh: New file.
70941         * tests/test-link.c: New file.
70943 2009-01-19  Eric Blake  <ebb9@byu.net>
70945         doc: mention another function added in cygwin 1.7.0
70946         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70947         Another new function in cygwin 1.7.
70949 2009-01-19  Bruno Haible  <bruno@clisp.org>
70951         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70952         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70953         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70954         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70955         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70956         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70957         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70958         * m4/md4.m4 (gl_MD4): Likewise.
70959         * m4/md5.m4 (gl_MD5): Likewise.
70960         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70961         * m4/sha1.m4 (gl_SHA1): Likewise.
70962         * m4/sha256.m4 (gl_SHA256): Likewise.
70963         * m4/sha512.m4 (gl_SHA512): Likewise.
70965 2009-01-19  Bruno Haible  <bruno@clisp.org>
70967         * modules/uniname/uniname-tests (Depends-on): Add progname.
70968         * tests/uniname/test-uninames.c: Include progname.h.
70969         (main): Call set_program_name.
70971         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70972         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70973         (main): Call set_program_name.
70975         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70976         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70977         (main): Call set_program_name.
70979         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70980         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70981         (main): Call set_program_name.
70983         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70984         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70985         (main): Call set_program_name.
70987         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70988         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70989         (main): Call set_program_name.
70991         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70992         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70993         (main): Call set_program_name.
70995         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70996         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70997         (main): Call set_program_name.
70999         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
71000         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
71001         (main): Call set_program_name.
71003 2009-01-19  Eric Blake  <ebb9@byu.net>
71005         test-unistd: test previous patch
71006         * tests/test-unistd.c: Test *_FILENO macros.
71008         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
71009         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71010         Guarantee a definition.
71011         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
71012         * modules/unistd-safer (Depends-on): Add dependency on unistd.
71013         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
71014         * lib/dup-safer.c (STDERR_FILENO): Likewise.
71015         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71016         Likewise.
71017         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
71018         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
71019         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71020         Likewise.
71021         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
71022         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
71023         (STDERR_FILENO): Likewise.
71024         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
71025         (STDERR_FILENO): Likewise.
71026         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
71027         (STDERR_FILENO): Likewise.
71028         Reported by Elbert Pol.
71030 2009-01-19  Eric Blake  <ebb9@byu.net>
71032         doc: mention more functions added in cygwin 1.7.0
71033         * doc/posix-functions/abort.texi (abort): Update wording related
71034         to cygwin.
71035         * doc/posix-functions/daylight.texi (daylight): Likewise.
71036         * doc/posix-functions/optarg.texi (optarg): Likewise.
71037         * doc/posix-functions/optarg.texi (opterr): Likewise.
71038         * doc/posix-functions/optarg.texi (optind): Likewise.
71039         * doc/posix-functions/optarg.texi (optopt): Likewise.
71040         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
71041         worked in 1.5.x, and was withdrawn in 1.7.
71042         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
71043         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
71044         cygwin versions.
71045         * doc/posix-functions/perror.texi (perror): Likewise.
71046         * doc/posix-functions/printf.texi (printf): Likewise.
71047         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
71048         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
71049         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
71050         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
71051         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
71052         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
71053         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71054         Likewise.
71055         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71056         Likewise.
71057         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
71058         this function.
71059         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
71060         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
71061         Likewise.
71062         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
71063         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
71064         * doc/posix-functions/confstr.texi (confstr): Likewise.
71065         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
71066         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
71067         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
71068         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
71069         * doc/posix-functions/fputws.texi (fputws): Likewise.
71070         * doc/posix-functions/fwide.texi (fwide): Likewise.
71071         * doc/posix-functions/getwc.texi (getwc): Likewise.
71072         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
71073         * doc/posix-functions/putwc.texi (putwc): Likewise.
71074         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
71075         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
71076         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
71077         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
71078         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
71079         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
71080         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
71081         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
71082         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
71083         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
71084         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
71086 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71088         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
71089         * lib/ioctl.c: Include <sys/ioctl.h>.
71091 2009-01-19  Simon Josefsson  <simon@josefsson.org>
71093         * modules/getdate-tests (Depends-on): Add progname.
71094         * tests/test-getdate.c: Use progname module, to avoid link errors
71095         on non-glibc systems.
71097 2009-01-18  Simon Josefsson  <simon@josefsson.org>
71099         * modules/filenamecat-tests (Depends-on): Add progname.
71100         * modules/fstrcmp-tests (Depends-on): Likewise.
71102         * tests/test-filenamecat.c: Use progname module, to avoid link
71103         errors on non-glibc systems.
71104         * tests/test-fstrcmp.c: Likewise.
71106 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71108         gettimeofday: avoid warning: nested extern declaration of 'localtime'
71109         * lib/gettimeofday.c: Move extern declaration out of function.
71111 2009-01-18  Bruno Haible  <bruno@clisp.org>
71113         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
71114         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
71115         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
71117 2009-01-18  Bruno Haible  <bruno@clisp.org>
71119         * lib/strftime.c (MEMPCPY): Remove unused macro.
71120         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
71122 2009-01-18  Martin Lambers  <marlam@marlam.de>
71124         New module 'link'.
71125         * lib/unistd.in.h (link): New declaration.
71126         * lib/link.c: New file.
71127         * m4/link.m4: New file.
71128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71129         HAVE_LINK.
71130         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71131         * modules/link: New file.
71132         * doc/posix-functions/link.texi: Mention the new module.
71134 2009-01-18  Bruno Haible  <bruno@clisp.org>
71136         * tests/test-avltree_list.c (main): Call set_program_name.
71137         * tests/test-avltree_oset.c (main): Likewise.
71138         * tests/test-obstack-printf.c: Include progname.h.
71139         (main): Call set_program_name.
71140         * tests/test-quotearg.c: Include progname.h.
71141         (main): Call set_program_name.
71142         * tests/test-xmemdup0.c: Include progname.h.
71143         (main): Call set_program_name.
71145 2009-01-18  Bruno Haible  <bruno@clisp.org>
71147         New module 'alphasort'.
71148         * lib/dirent.in.h (alphasort): New declaration.
71149         * lib/alphasort.c: New file, from glibc with modifications.
71150         * m4/alphasort.m4: New file.
71151         * modules/alphasort: New file.
71152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71153         HAVE_ALPHASORT.
71154         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71155         HAVE_ALPHASORT.
71156         * doc/posix-functions/alphasort.texi: Mention the new module and the
71157         portability problems.
71159 2009-01-18  Bruno Haible  <bruno@clisp.org>
71161         New module 'scandir'.
71162         * lib/dirent.in.h (scandir): New declaration.
71163         * lib/scandir.c: New file, from glibc with modifications.
71164         * m4/scandir.m4: New file.
71165         * modules/scandir: New file.
71166         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71167         HAVE_SCANDIR.
71168         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71169         HAVE_SCANDIR.
71170         * doc/posix-functions/scandir.texi: Mention the new module and the
71171         portability problems.
71173 2009-01-17  Bruno Haible  <bruno@clisp.org>
71175         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71176         Update documentation.
71177         (func_remove_suffix): Escape all dots in the suffix. Update
71178         documentation.
71179         (func_filter_filelist): Update documentation.
71180         Reported by Ralf Wildenhues.
71182 2009-01-17  Bruno Haible  <bruno@clisp.org>
71184         * modules/dprintf-posix-tests: New file.
71185         * tests/test-dprintf-posix.sh: New file.
71186         * tests/test-dprintf-posix.c: New file.
71188         New modules 'dprintf', 'dprintf-posix'.
71189         * lib/stdio.in.h (dprintf): New declaration.
71190         * lib/dprintf.c: New file.
71191         * m4/dprintf.m4: New file.
71192         * m4/dprintf-posix.m4: New file.
71193         * modules/dprintf: New file.
71194         * modules/dprintf-posix: New file.
71195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71196         HAVE_DPRINTF, REPLACE_DPRINTF.
71197         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71198         HAVE_DPRINTF, REPLACE_DPRINTF.
71199         * doc/posix-functions/dprintf.texi: Mention the new modules.
71201 2009-01-17  Bruno Haible  <bruno@clisp.org>
71203         * modules/vdprintf-posix-tests: New file.
71204         * tests/test-vdprintf-posix.sh: New file.
71205         * tests/test-vdprintf-posix.c: New file.
71207         New modules 'vdprintf', 'vdprintf-posix'.
71208         * lib/stdio.in.h (vdprintf): New declaration.
71209         * lib/vdprintf.c: New file.
71210         * m4/vdprintf.m4: New file.
71211         * m4/vdprintf-posix.m4: New file.
71212         * modules/vdprintf: New file.
71213         * modules/vdprintf-posix: New file.
71214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71215         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71216         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71217         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71218         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71220 2009-01-17  Bruno Haible  <bruno@clisp.org>
71222         Fix replacement of fopen on mingw.
71223         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71224         mingw.
71226 2009-01-17  Bruno Haible  <bruno@clisp.org>
71228         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71229         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71231 2009-01-17  Bruno Haible  <bruno@clisp.org>
71233         Avoid test-fflush2.sh failure on mingw.
71234         * tests/test-fflush2.c: Include binary-io.h.
71235         (main): Put standard input into binary mode.
71236         * modules/fflush-tests (Depends-on): Add binary-io.
71238 2009-01-17  Bruno Haible  <bruno@clisp.org>
71240         * lib/wchar.in.h: In another particular situation, include only the
71241         system's <wchar.h> file.
71242         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71243         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71244         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71246 2009-01-17  Bruno Haible  <bruno@clisp.org>
71248         Support for stripping executables in --enable-relocatable.
71249         * build-aux/install-reloc: Expect one more argument, or an environment
71250         variable RELOC_STRIP_PROG. If set, strip the destination program and
71251         its wrapper.
71252         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71253         RELOC_STRIP_PROG.
71254         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71255         to set RELOCATABLE_STRIP.
71256         * NEWS: Mention the new Makefile requirement.
71258 2009-01-17  Bruno Haible  <bruno@clisp.org>
71260         * build-aux/install-reloc: Remove debugging information left over by
71261         C compiler on MacOS X.
71263 2009-01-17  Bruno Haible  <bruno@clisp.org>
71265         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71266         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71267         _NSGetExecutablePath.
71269 2009-01-16  Jim Meyering  <meyering@redhat.com>
71271         strerror: avoid warnings about discarding "const"
71272         * lib/strerror.c (rpl_strerror): Instead of returning a const
71273         string from each and every "case", use a variable, and add a single
71274         cast after the switch.
71276 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71278         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71280 2009-01-16  Bruno Haible  <bruno@clisp.org>
71282         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71283         array initializer syntax that also works in C++ mode.
71284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71286 2009-01-16  Jim Meyering  <meyering@redhat.com>
71288         poll: suppress a warning
71289         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71290         to ignore "...unsigned expression < 0 is always false" warnings.
71292 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71294         poll: remove declarations of unused variables
71295         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71296         sockbuf and optlen.
71298 2009-01-15  Bruno Haible  <bruno@clisp.org>
71300         Make fflush-after-ungetc POSIX compliant on BSD systems.
71301         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71302         (clear_ungetc_buffer): Implement also for other systems.
71303         (rpl_fflush): On glibc systems, invoke
71304         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71305         clear_ungetc_buffer after fetching the stream's position, not before.
71307 2009-01-15  Bruno Haible  <bruno@clisp.org>
71309         Make fflush-after-ungetc POSIX compliant on glibc systems.
71310         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71311         after ungetc.
71312         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71313         (rpl_fflush): On glibc systems, simply call the system's fflush
71314         function after clearing the ungetc buffer.
71315         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71316         Instead, lseek only to the end of file, then use the system's fseeko
71317         for the rest. On glibc systems, reset the EOF indicator bit.
71319 2009-01-15  Jim Meyering  <meyering@redhat.com>
71321         openmp.m4: revert quote-adding change, for portability to older autoconf
71322         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71323         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71324         Simon Josefsson noticed the problem when using autoconf-2.61.
71326 2009-01-15  Bruno Haible  <bruno@clisp.org>
71328         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71329         * tests/test-fflush2.c (ASSERT): Always fail.
71330         (main): Add two tests for fflush() after ungetc(), taking into account
71331         the Austin Group's clarification.
71332         Suggested by Eric Blake.
71334 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71336         mktime.m4: remove K&R-style function prototypes
71337         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71338         for the Sun C++ compiler.
71340 2009-01-14  Bruno Haible  <bruno@clisp.org>
71342         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71343         while including <wchar.h>.
71344         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71345         the system's <wchar.h> file.
71346         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71348 2009-01-14  Bruno Haible  <bruno@clisp.org>
71350         * m4/csharp.m4: Don't mention gettext on the serial number line.
71351         * m4/csharpexec.m4: Likewise.
71352         * m4/eaccess.m4: Likewise.
71353         * m4/javaexec.m4: Likewise.
71354         * m4/sig_atomic_t.m4: Likewise.
71355         * m4/tmpdir.m4: Likewise.
71356         * m4/intldir.m4: Bump gettext version.
71357         * m4/lib-ld.m4: Likewise.
71359 2009-01-14  Bruno Haible  <bruno@clisp.org>
71361         * lib/progname.c (set_program_name): Add more comments.
71362         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71364 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71366         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71367         were sys/stat.h does not define it.
71369 2009-01-14  Jim Meyering  <meyering@redhat.com>
71371         many *.m4 files: improve m4 quoting
71372         99% of this change was performed by running the following commands:
71373         git ls-files | grep '\.m4$' | xargs perl -pi \
71374           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71375           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71376           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71377           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71378         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71379         The remainder were to add Copyright dates, increment serial numbers,
71380         undo some changes in comments, exclude m4/intl.m4, and add quotes
71381         around the "1" in ",1" where the unusual spacing prohibited the
71382         above regexps from doing the job.  For more details, see
71383         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71384         * m4/acl.m4: Modified.
71385         * m4/afs.m4: Likewise.
71386         * m4/alloca.m4: Likewise.
71387         * m4/argp.m4: Likewise.
71388         * m4/argz.m4: Likewise.
71389         * m4/atexit.m4: Likewise.
71390         * m4/bison-i18n.m4: Likewise.
71391         * m4/bison.m4: Likewise.
71392         * m4/byteswap.m4: Likewise.
71393         * m4/c-stack.m4: Likewise.
71394         * m4/c-strtod.m4: Likewise.
71395         * m4/calloc.m4: Likewise.
71396         * m4/canonicalize-lgpl.m4: Likewise.
71397         * m4/chown.m4: Likewise.
71398         * m4/clock_time.m4: Likewise.
71399         * m4/codeset.m4: Likewise.
71400         * m4/copy-file.m4: Likewise.
71401         * m4/csharp.m4: Likewise.
71402         * m4/csharpcomp.m4: Likewise.
71403         * m4/csharpexec.m4: Likewise.
71404         * m4/d-ino.m4: Likewise.
71405         * m4/d-type.m4: Likewise.
71406         * m4/dirfd.m4: Likewise.
71407         * m4/double-slash-root.m4: Likewise.
71408         * m4/eaccess.m4: Likewise.
71409         * m4/eealloc.m4: Likewise.
71410         * m4/environ.m4: Likewise.
71411         * m4/errno_h.m4: Likewise.
71412         * m4/euidaccess.m4: Likewise.
71413         * m4/execute.m4: Likewise.
71414         * m4/fatal-signal.m4: Likewise.
71415         * m4/fchdir.m4: Likewise.
71416         * m4/fcntl_h.m4: Likewise.
71417         * m4/fileblocks.m4: Likewise.
71418         * m4/filenamecat.m4: Likewise.
71419         * m4/findprog.m4: Likewise.
71420         * m4/flexmember.m4: Likewise.
71421         * m4/fnmatch.m4: Likewise.
71422         * m4/fopen.m4: Likewise.
71423         * m4/fpending.m4: Likewise.
71424         * m4/fprintf-posix.m4: Likewise.
71425         * m4/free.m4: Likewise.
71426         * m4/frexp.m4: Likewise.
71427         * m4/frexpl.m4: Likewise.
71428         * m4/fsusage.m4: Likewise.
71429         * m4/ftruncate.m4: Likewise.
71430         * m4/gc-camellia.m4: Likewise.
71431         * m4/gc-random.m4: Likewise.
71432         * m4/gc.m4: Likewise.
71433         * m4/getaddrinfo.m4: Likewise.
71434         * m4/getcwd-abort-bug.m4: Likewise.
71435         * m4/getcwd-path-max.m4: Likewise.
71436         * m4/getdate.m4: Likewise.
71437         * m4/getdomainname.m4: Likewise.
71438         * m4/getgroups.m4: Likewise.
71439         * m4/gethostname.m4: Likewise.
71440         * m4/gethrxtime.m4: Likewise.
71441         * m4/getline.m4: Likewise.
71442         * m4/getloadavg.m4: Likewise.
71443         * m4/getndelim2.m4: Likewise.
71444         * m4/getpass.m4: Likewise.
71445         * m4/gettext.m4: Likewise.
71446         * m4/gettime.m4: Likewise.
71447         * m4/gettimeofday.m4: Likewise.
71448         * m4/gnulib-common.m4: Likewise.
71449         * m4/group-member.m4: Likewise.
71450         * m4/host-os.m4: Likewise.
71451         * m4/iconv.m4: Likewise.
71452         * m4/iconv_open.m4: Likewise.
71453         * m4/inet_ntop.m4: Likewise.
71454         * m4/inet_pton.m4: Likewise.
71455         * m4/inline.m4: Likewise.
71456         * m4/intldir.m4: Likewise.
71457         * m4/intlmacosx.m4: Likewise.
71458         * m4/intmax.m4: Likewise.
71459         * m4/intmax_t.m4: Likewise.
71460         * m4/inttypes.m4: Likewise.
71461         * m4/inttypes_h.m4: Likewise.
71462         * m4/inttypes-pri.m4: Likewise.
71463         * m4/isapipe.m4: Likewise.
71464         * m4/isnand.m4: Likewise.
71465         * m4/isnanf.m4: Likewise.
71466         * m4/isnanl.m4: Likewise.
71467         * m4/javacomp.m4: Likewise.
71468         * m4/javaexec.m4: Likewise.
71469         * m4/jm-winsz1.m4: Likewise.
71470         * m4/jm-winsz2.m4: Likewise.
71471         * m4/lchown.m4: Likewise.
71472         * m4/lcmessage.m4: Likewise.
71473         * m4/ldexpl.m4: Likewise.
71474         * m4/lib-ld.m4: Likewise.
71475         * m4/lib-link.m4: Likewise.
71476         * m4/libsigsegv.m4: Likewise.
71477         * m4/link-follow.m4: Likewise.
71478         * m4/localcharset.m4: Likewise.
71479         * m4/locale-fr.m4: Likewise.
71480         * m4/locale-ja.m4: Likewise.
71481         * m4/locale-tr.m4: Likewise.
71482         * m4/locale-zh.m4: Likewise.
71483         * m4/lock.m4: Likewise.
71484         * m4/longlong.m4: Likewise.
71485         * m4/ls-mntd-fs.m4: Likewise.
71486         * m4/lstat.m4: Likewise.
71487         * m4/malloc.m4: Likewise.
71488         * m4/mathl.m4: Likewise.
71489         * m4/mbrtowc.m4: Likewise.
71490         * m4/mbstate_t.m4: Likewise.
71491         * m4/mbswidth.m4: Likewise.
71492         * m4/memchr.m4: Likewise.
71493         * m4/memcmp.m4: Likewise.
71494         * m4/memcpy.m4: Likewise.
71495         * m4/memmem.m4: Likewise.
71496         * m4/memmove.m4: Likewise.
71497         * m4/mempcpy.m4: Likewise.
71498         * m4/memrchr.m4: Likewise.
71499         * m4/memset.m4: Likewise.
71500         * m4/minmax.m4: Likewise.
71501         * m4/mkdir-slash.m4: Likewise.
71502         * m4/mkdtemp.m4: Likewise.
71503         * m4/mktime.m4: Likewise.
71504         * m4/mmap-anon.m4: Likewise.
71505         * m4/mountlist.m4: Likewise.
71506         * m4/nanosleep.m4: Likewise.
71507         * m4/nls.m4: Likewise.
71508         * m4/nocrash.m4: Likewise.
71509         * m4/open.m4: Likewise.
71510         * m4/openat.m4: Likewise.
71511         * m4/openmp.m4: Likewise.
71512         * m4/pathmax.m4: Likewise.
71513         * m4/perl.m4: Likewise.
71514         * m4/physmem.m4: Likewise.
71515         * m4/pipe.m4: Likewise.
71516         * m4/po.m4: Likewise.
71517         * m4/poll.m4: Likewise.
71518         * m4/posixtm.m4: Likewise.
71519         * m4/posixver.m4: Likewise.
71520         * m4/printf-frexp.m4: Likewise.
71521         * m4/printf-frexpl.m4: Likewise.
71522         * m4/printf-posix.m4: Likewise.
71523         * m4/printf-posix-rpl.m4: Likewise.
71524         * m4/printf.m4: Likewise.
71525         * m4/progtest.m4: Likewise.
71526         * m4/putenv.m4: Likewise.
71527         * m4/readline.m4: Likewise.
71528         * m4/readlink.m4: Likewise.
71529         * m4/readutmp.m4: Likewise.
71530         * m4/realloc.m4: Likewise.
71531         * m4/regex.m4: Likewise.
71532         * m4/relocatable.m4: Likewise.
71533         * m4/relocatable-lib.m4: Likewise.
71534         * m4/rename-dest-slash.m4: Likewise.
71535         * m4/rename.m4: Likewise.
71536         * m4/rmdir-errno.m4: Likewise.
71537         * m4/rmdir.m4: Likewise.
71538         * m4/roundf.m4: Likewise.
71539         * m4/roundl.m4: Likewise.
71540         * m4/rpmatch.m4: Likewise.
71541         * m4/save-cwd.m4: Likewise.
71542         * m4/selinux-selinux-h.m4: Likewise.
71543         * m4/setenv.m4: Likewise.
71544         * m4/settime.m4: Likewise.
71545         * m4/sig2str.m4: Likewise.
71546         * m4/sig_atomic_t.m4: Likewise.
71547         * m4/signalblocking.m4: Likewise.
71548         * m4/signbit.m4: Likewise.
71549         * m4/sigpipe.m4: Likewise.
71550         * m4/sockets.m4: Likewise.
71551         * m4/sockpfaf.m4: Likewise.
71552         * m4/st_dm_mode.m4: Likewise.
71553         * m4/stat-time.m4: Likewise.
71554         * m4/stdbool.m4: Likewise.
71555         * m4/stdint.m4: Likewise.
71556         * m4/stdint_h.m4: Likewise.
71557         * m4/stpcpy.m4: Likewise.
71558         * m4/stpncpy.m4: Likewise.
71559         * m4/strcase.m4: Likewise.
71560         * m4/strchrnul.m4: Likewise.
71561         * m4/strcspn.m4: Likewise.
71562         * m4/strdup.m4: Likewise.
71563         * m4/strftime.m4: Likewise.
71564         * m4/strndup.m4: Likewise.
71565         * m4/strnlen.m4: Likewise.
71566         * m4/strpbrk.m4: Likewise.
71567         * m4/strptime.m4: Likewise.
71568         * m4/strsep.m4: Likewise.
71569         * m4/strtod.m4: Likewise.
71570         * m4/strtoimax.m4: Likewise.
71571         * m4/strtok_r.m4: Likewise.
71572         * m4/strtol.m4: Likewise.
71573         * m4/strtoll.m4: Likewise.
71574         * m4/strtoul.m4: Likewise.
71575         * m4/strtoull.m4: Likewise.
71576         * m4/strtoumax.m4: Likewise.
71577         * m4/strverscmp.m4: Likewise.
71578         * m4/threadlib.m4: Likewise.
71579         * m4/timegm.m4: Likewise.
71580         * m4/tm_gmtoff.m4: Likewise.
71581         * m4/tmpdir.m4: Likewise.
71582         * m4/tmpfile.m4: Likewise.
71583         * m4/tzset.m4: Likewise.
71584         * m4/uintmax_t.m4: Likewise.
71585         * m4/unlinkdir.m4: Likewise.
71586         * m4/unlocked-io.m4: Likewise.
71587         * m4/uptime.m4: Likewise.
71588         * m4/userspec.m4: Likewise.
71589         * m4/utimbuf.m4: Likewise.
71590         * m4/utime.m4: Likewise.
71591         * m4/utimes-null.m4: Likewise.
71592         * m4/utimes.m4: Likewise.
71593         * m4/vararrays.m4: Likewise.
71594         * m4/vasnprintf.m4: Likewise.
71595         * m4/vfprintf-posix.m4: Likewise.
71596         * m4/vprintf-posix.m4: Likewise.
71597         * m4/wait-process.m4: Likewise.
71598         * m4/wchar_t.m4: Likewise.
71599         * m4/wint_t.m4: Likewise.
71600         * m4/write-any-file.m4: Likewise.
71601         * m4/yield.m4: Likewise.
71603 2009-01-13  Bruno Haible  <bruno@clisp.org>
71605         Avoid test-copy-file.sh failures when ACL support insufficient.
71606         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71607         TESTS_ENVIRONMENT.
71608         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71609         Reported by Jim Meyering.
71611 2009-01-13  Bruno Haible  <bruno@clisp.org>
71613         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71614         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71615         * modules/unistdio/u8-printf-parse (Files): Likewise.
71616         * modules/unistdio/u32-printf-parse (Files): Likewise.
71617         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71619 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71621         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71622         and m4/inttypes_h.m4 too.
71624 2009-01-12  Eric Blake  <ebb9@byu.net>
71626         tests: IRIX 6.2 cc can't compile -0.0 into .data
71627         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71628         rather than at compile-time.
71629         * tests/test-floorl.c (minus_zero): Likewise.
71630         * tests/test-frexpl.c (minus_zero): Likewise.
71631         * tests/test-isnan.c (minus_zerol): Likewise.
71632         * tests/test-isnanl.h (minus_zero): Likewise.
71633         * tests/test-ldexpl.c (minus_zero): Likewise.
71634         * tests/test-roundl.c (minus_zero): Likewise.
71635         * tests/test-signbit.c (minus_zerol): Likewise.
71636         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71637         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71638         * tests/test-truncl.c (minus_zero): Likewise.
71639         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71640         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71641         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71643 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71645         regex: fix glibc bug 9697
71646         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71647         handling.
71649 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71651         regex: fix glibc bug 697
71652         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71653         being NULL also if there are no backreferences.
71655 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71657         regex: merge glibc changes
71658         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71659         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71660         re_string_skip_chars, re_string_reconstruct): Likewise.
71661         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71663 2009-01-07  Jim Meyering  <meyering@redhat.com>
71665         poll: filter through cppi
71666         * lib/poll.c: Indent cpp directives to reflect nesting.
71668 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71670         poll: don't return uninitialized
71671         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71673 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71675         avoid compile failure on AIX 6.1
71676         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71677         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71679 2009-01-04  Jim Meyering  <meyering@redhat.com>
71681         remove duplicate inclusion of <stdio.h>
71682         * tests/test-fprintf-posix.c: Likewise.
71683         * tests/test-printf-posix.c: Likewise.
71684         * tests/test-snprintf-posix.c: Likewise.
71685         * tests/test-sprintf-posix.c: Likewise.
71686         * tests/test-vasprintf-posix.c: Likewise.
71687         * tests/test-vfprintf-posix.c: Likewise.
71688         * tests/test-vprintf-posix.c: Likewise.
71689         * tests/test-vsnprintf-posix.c: Likewise.
71690         * tests/test-vsprintf-posix.c: Likewise.
71692 2009-01-03  Jim Meyering  <meyering@redhat.com>
71694         gnulib-tool: fix sed-based filtering
71695         * gnulib-tool (func_filter_filelist): Remove extra backslash
71696         in sed_fff_filter definition.
71698 2009-01-02  Jim Meyering  <meyering@redhat.com>
71700         strftime: avoid compilation failure on Solaris 2.6
71701         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71702         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71703         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71704         be available.  Reported by Tom G. Christensen.  Details in
71705         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71707 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71708             Bruno Haible  <bruno@clisp.org>
71710         Speed up gnulib-tool by doing more string processing through shell
71711         built-ins.
71712         * gnulib-tool (fast_func_append): New variable.
71713         (func_remove_prefix, func_remove_suffix): New functions.
71714         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71715         (func_filter_filelist): New function.
71716         (func_get_dependencies): Use func_remove_suffix instead of sed.
71717         (func_get_automake_snippet): Use func_filter_filelist instead of a
71718         subshell and sed invocation.
71720 2009-01-01  Bruno Haible  <bruno@clisp.org>
71722         Fix a security bug.
71723         * gnulib-tool (func_import, import, update): Don't allow the characters
71724         '"', '$', '`', '\' in macro arguments that become part of commands that
71725         are evaluated.
71727 2009-01-01  Bruno Haible  <bruno@clisp.org>
71729         * gnulib-tool (func_reset_sigpipe): Add more comments.
71731 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71733         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71734         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71735         already know the answer.
71737 2009-01-01  Jim Meyering  <meyering@redhat.com>
71739         * lib/version-etc.c (version_etc_va): Update copyright year.
71741 2008-12-30  Bruno Haible  <bruno@clisp.org>
71743         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71744         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71745         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71747 2008-12-29  Eric Blake  <ebb9@byu.net>
71749         multiarch: avoid autoconf AC_REQUIRE bug
71750         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71751         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71752         2.63 and older.
71753         Reported by Bruno Haible, and analyzed in
71754         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71756 2008-12-29  Bruno Haible  <bruno@clisp.org>
71758         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71759         files in subdirectories correctly.
71760         Reported by Ralf Wildenhues.
71762 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71764         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71765         rather than 'join FILE -', for Solaris join.
71767 2008-12-29  Bruno Haible  <bruno@clisp.org>
71769         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71770         quoting.
71771         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71772         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71773         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71774         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71775         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71776         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71777         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71778         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71779         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71780         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71781         * m4/nls.m4 (AM_NLS): Likewise.
71782         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71783         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71784         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71785         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71786         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71787         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71788         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71789         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71790         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71791         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71792         * m4/xsize.m4 (gl_XSIZE): Likewise.
71793         Suggested by Jim Meyering.
71795 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71797         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71798         * lib/parse-duration.c: use a switch instead of cascading if's.
71800 2008-12-29  Eric Blake  <ebb9@byu.net>
71802         wchar.h: supply WEOF on Irix 5.3
71803         * lib/wchar.in.h (wint_t): Also supply WEOF.
71804         * lib/wctype.in.h (wint_t): Likewise.
71805         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71806         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71807         Reported by Tom G. Christensen.
71809 2008-12-26  Bruno Haible  <bruno@clisp.org>
71811         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71812         i486, i586, i686.
71814 2008-12-26  Bruno Haible  <bruno@clisp.org>
71816         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71818 2008-12-26  Bruno Haible  <bruno@clisp.org>
71820         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71821         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71822         not __STDC_CONSTANT_MACROS.
71823         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71825 2008-12-25  Bruno Haible  <bruno@clisp.org>
71827         Add support for universal builds to vasnprintf.
71828         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71829         universal builds, guess no.
71830         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71831         * modules/vasprintf-posix (Depends-on): Likewise.
71832         * modules/fprintf-posix (Depends-on): Likewise.
71833         * modules/vfprintf-posix (Depends-on): Likewise.
71834         * modules/snprintf-posix (Depends-on): Likewise.
71835         * modules/vsnprintf-posix (Depends-on): Likewise.
71836         * modules/sprintf-posix (Depends-on): Likewise.
71837         * modules/vsprintf-posix (Depends-on): Likewise.
71838         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71839         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71840         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71841         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71842         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71843         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71844         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71846         Add support for universal builds to <inttypes.h>.
71847         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71848         _SCNu64_PREFIX): In Apple
71849         universal builds, define directly, using _LP64.
71850         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71851         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71852         * modules/inttypes (Depends-on): Add multiarch.
71853         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71855         Add support for universal builds to <stdint.h>.
71856         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71857         universal builds, define directly, using _LP64.
71858         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71859         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71860         and size_t.
71861         * modules/stdint (Depends-on): Add multiarch.
71862         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71864         New module 'multiarch'.
71865         * modules/multiarch: New file.
71866         * m4/multiarch.m4: New file.
71868 2008-12-25  Bruno Haible  <bruno@clisp.org>
71870         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71872 2008-12-25  Bruno Haible  <bruno@clisp.org>
71874         * modules/btowc (License): Relicense under LGPLv2+.
71875         * modules/mbsinit (License): Likewise.
71876         * modules/mbrtowc (License): Likewise.
71877         * modules/wcrtomb (License): Likewise.
71878         * modules/streq (License): Likewise.
71879         Reported by David Lutterkort <lutter@redhat.com>.
71881 2008-12-23  Bruno Haible  <bruno@clisp.org>
71883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71885 2008-12-23  Bruno Haible  <bruno@clisp.org>
71887         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71889         GETADDRINFO_LIB, not in LIBS.
71890         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71891         * modules/canon-host (Link): Likewise.
71892         * NEWS: Mention the change.
71893         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71894         GETADDRINFO_LIB.
71896 2008-12-22  Bruno Haible  <bruno@clisp.org>
71898         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71899         * doc/posix-functions/iswalpha_l.texi: Likewise.
71900         * doc/posix-functions/iswblank_l.texi: Likewise.
71901         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71902         * doc/posix-functions/iswctype_l.texi: Likewise.
71903         * doc/posix-functions/iswdigit_l.texi: Likewise.
71904         * doc/posix-functions/iswgraph_l.texi: Likewise.
71905         * doc/posix-functions/iswlower_l.texi: Likewise.
71906         * doc/posix-functions/iswprint_l.texi: Likewise.
71907         * doc/posix-functions/iswpunct_l.texi: Likewise.
71908         * doc/posix-functions/iswspace_l.texi: Likewise.
71909         * doc/posix-functions/iswupper_l.texi: Likewise.
71910         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71911         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71912         * doc/posix-functions/open_wmemstream.texi: Likewise.
71913         * doc/posix-functions/swscanf.texi: Likewise.
71914         * doc/posix-functions/towctrans_l.texi: Likewise.
71915         * doc/posix-functions/towlower.texi: Likewise.
71916         * doc/posix-functions/towlower_l.texi: Likewise.
71917         * doc/posix-functions/towupper.texi: Likewise.
71918         * doc/posix-functions/towupper_l.texi: Likewise.
71919         * doc/posix-functions/vfwprintf.texi: Likewise.
71920         * doc/posix-functions/vfwscanf.texi: Likewise.
71921         * doc/posix-functions/vswscanf.texi: Likewise.
71922         * doc/posix-functions/vwprintf.texi: Likewise.
71923         * doc/posix-functions/vwscanf.texi: Likewise.
71924         * doc/posix-functions/wcpcpy.texi: Likewise.
71925         * doc/posix-functions/wcpncpy.texi: Likewise.
71926         * doc/posix-functions/wcscasecmp.texi: Likewise.
71927         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71928         * doc/posix-functions/wcscoll_l.texi: Likewise.
71929         * doc/posix-functions/wcsdup.texi: Likewise.
71930         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71931         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71932         * doc/posix-functions/wcsnlen.texi: Likewise.
71933         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71934         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71935         * doc/posix-functions/wctrans_l.texi: Likewise.
71936         * doc/posix-functions/wctype_l.texi: Likewise.
71937         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71938         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71939         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71940         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71941         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71942         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71943         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71944         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71945         * doc/glibc-functions/wcschrnul.texi: Likewise.
71946         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71947         * doc/glibc-functions/wcstod_l.texi: Likewise.
71948         * doc/glibc-functions/wcstof_l.texi: Likewise.
71949         * doc/glibc-functions/wcstol_l.texi: Likewise.
71950         * doc/glibc-functions/wcstold_l.texi: Likewise.
71951         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71952         * doc/glibc-functions/wcstoq.texi: Likewise.
71953         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71954         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71955         * doc/glibc-functions/wcstouq.texi: Likewise.
71956         * doc/glibc-functions/wmempcpy.texi: Likewise.
71958 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71959             Eric Blake  <ebb9@byu.net>
71960             Paolo Bonzini  <bonzini@gnu.org>
71961             Bruno Haible  <bruno@clisp.org>
71963         Make c-stack work on Haiku.
71964         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71965         (c_stack_action): Use SA_ONSTACK flag.
71967 2008-12-22  Bruno Haible  <bruno@clisp.org>
71969         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71971 2008-12-22  Bruno Haible  <bruno@clisp.org>
71973         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71974         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71975         being overridden.
71976         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71977         New macros.
71978         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71980         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71981         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71983 2008-12-22  Bruno Haible  <bruno@clisp.org>
71985         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71986         from test code.
71988 2008-12-22  Eric Blake  <ebb9@byu.net>
71990         Avoid gcc warnings on cygwin.
71991         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71992         Avoid unused variable.
71993         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71994         Likewise.
71996 2008-12-22  Bruno Haible  <bruno@clisp.org>
71998         Remove HAVE_MBRTOWC conditionals.
71999         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
72000         (mbscasecmp): Assume mbrtowc function.
72001         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
72002         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
72003         * lib/mbschr.c: Include mbuiter.h unconditionally.
72004         (mbschr): Assume mbrtowc function.
72005         * lib/mbscspn.c: Include mbuiter.h unconditionally.
72006         (mbscspn): Assume mbrtowc function.
72007         * lib/mbslen.c: Include mbuiter.h unconditionally.
72008         (mbslen): Assume mbrtowc function.
72009         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
72010         (mbsncasecmp): Assume mbrtowc function.
72011         * lib/mbsnlen.c: Include mbiter.h unconditionally.
72012         (mbsnlen): Assume mbrtowc function.
72013         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
72014         (mbspbrk): Assume mbrtowc function.
72015         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
72016         (mbspcasecmp): Assume mbrtowc function.
72017         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
72018         (mbsrchr): Assume mbrtowc function.
72019         * lib/mbssep.c: Include mbuiter.h unconditionally.
72020         (mbssep): Assume mbrtowc function.
72021         * lib/mbsspn.c: Include mbuiter.h unconditionally.
72022         (mbsspn): Assume mbrtowc function.
72023         * lib/mbsstr.c: Include mbuiter.h unconditionally.
72024         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
72025         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
72026         (mbstok_r): Assume mbrtowc function.
72027         * lib/propername.c: Include mbuiter.h unconditionally.
72028         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
72029         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
72030         (trim2): Assume mbrtowc function.
72031         * lib/mbswidth.c (mbsinit): Remove fallback definition.
72032         (mbsnwidth): Assume mbrtowc function.
72033         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
72034         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
72035         fallback definitions.
72036         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
72038 2008-12-22  Bruno Haible  <bruno@clisp.org>
72040         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
72042 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
72044         * modules/regex: Request emulations for the mb*/wc* functions we need.
72045         * m4/regex.m4: Don't look for those functions here.
72046         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
72048 2008-12-22  Bruno Haible  <bruno@clisp.org>
72050         * modules/fnmatch (Depends-on): Remove duplicated dependency.
72052 2008-12-21  Bruno Haible  <bruno@clisp.org>
72054         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
72055         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
72056         (Include): Remove conditionalization.
72057         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
72058         (Include): Remove conditionalization.
72059         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
72060         (Include): Remove conditionalization.
72061         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
72062         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72063         * NEWS: Mention the change.
72064         Reported by Alan Hourihane <alanh@fairlite.co.uk>
72065         via Sergey Poznyakoff <gray@gnu.org.ua>.
72067 2008-12-21  Bruno Haible  <bruno@clisp.org>
72069         * MODULES.html.sh (Extended multibyte and wide character utilities
72070         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
72071         wcrtomb, wcsrtombs.
72072         (Support for systems lacking POSIX:2008): Add accept, bind, close,
72073         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
72074         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
72075         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
72077 2008-12-21  Bruno Haible  <bruno@clisp.org>
72079         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
72081 2008-12-21  Bruno Haible  <bruno@clisp.org>
72083         * modules/wcsnrtombs-tests: New file.
72084         * tests/test-wcsnrtombs1.sh: New file.
72085         * tests/test-wcsnrtombs2.sh: New file.
72086         * tests/test-wcsnrtombs3.sh: New file.
72087         * tests/test-wcsnrtombs4.sh: New file.
72088         * tests/test-wcsnrtombs.c: New file.
72090         New module 'wcsnrtombs'.
72091         * lib/wchar.in.h (wcsnrtombs): New declaration.
72092         * lib/wcsnrtombs.c: New file.
72093         * lib/wcsrtombs-state.c: New file.
72094         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
72095         (internal_state): Remove variable.
72096         * m4/wcsnrtombs.m4: New file.
72097         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
72098         compilation units.
72099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
72100         HAVE_WCSNRTOMBS.
72101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
72102         HAVE_WCSNRTOMBS.
72103         * modules/wcsnrtombs: New file.
72104         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
72105         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
72107 2008-12-21  Bruno Haible  <bruno@clisp.org>
72109         * modules/wcsrtombs-tests: New file.
72110         * tests/test-wcsrtombs1.sh: New file.
72111         * tests/test-wcsrtombs2.sh: New file.
72112         * tests/test-wcsrtombs3.sh: New file.
72113         * tests/test-wcsrtombs4.sh: New file.
72114         * tests/test-wcsrtombs.c: New file.
72116         New module 'wcsrtombs'.
72117         * lib/wchar.in.h (wcsrtombs): New declaration.
72118         * lib/wcsrtombs.c: New file.
72119         * m4/wcsrtombs.m4: New file.
72120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
72121         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
72123         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72124         * modules/wcsrtombs: New file.
72125         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72126         bugs.
72128 2008-12-21  Bruno Haible  <bruno@clisp.org>
72130         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72131         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72132         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72133         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72134         if not correct.
72135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72136         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72137         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72138         m4/locale-zh.m4, m4/codeset.m4.
72139         * doc/posix-functions/wcrtomb.texi: Document the bug.
72141 2008-12-21  Bruno Haible  <bruno@clisp.org>
72143         Work around a btowc() bug on IRIX 6.5.
72144         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72145         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72146         REPLACE_WTOBC if not.
72147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72148         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72149         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72151 2008-12-21  Bruno Haible  <bruno@clisp.org>
72153         * modules/wcrtomb-tests: New file.
72154         * tests/test-wcrtomb.sh: New file.
72155         * tests/test-wcrtomb.c: New file.
72157         New module 'wcrtomb'.
72158         * lib/wchar.in.h (wcrtomb): New declaration.
72159         * lib/wcrtomb.c: New file.
72160         * m4/wcrtomb.m4: New file.
72161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72162         HAVE_WCRTOMB.
72163         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72164         HAVE_WCRTOMB.
72165         * modules/wcrtomb: New file.
72166         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72168 2008-12-21  Bruno Haible  <bruno@clisp.org>
72170         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72171         * modules/mbsrtowcs (Files): Likewise.
72172         * modules/wctob (Files): Likewise.
72173         * modules/c-strcase-tests (Files): Likewise.
72174         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72175         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72176         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72177         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72178         * modules/vasnprintf-posix-tests (Files): Likewise.
72180 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72182         gitlog-to-changelog: pass all command-line arguments to git-log
72183         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72184         it is sometimes convenient to filter the commits in various ways.
72185         gitlog-to-changelog only allows --since to specify a start date,
72186         but git-log itself supports many other filtering mechanisms.
72187         At the moment, I want to filter by branch name.  Rather than
72188         adding a --branch option to gitlog-to-changelog, it seems more
72189         flexible to simply pass all options directly to git-log and let
72190         git do the work.  Notice that this effectively makes --since a
72191         redundant option for gitlog-to-changelog, but removing it would
72192         require current usage to change since calls would then require
72193         an additional '--'.
72195 2008-12-21  Bruno Haible  <bruno@clisp.org>
72197         * modules/mbsnrtowcs-tests: New file.
72198         * tests/test-mbsnrtowcs1.sh: New file.
72199         * tests/test-mbsnrtowcs2.sh: New file.
72200         * tests/test-mbsnrtowcs3.sh: New file.
72201         * tests/test-mbsnrtowcs4.sh: New file.
72202         * tests/test-mbsnrtowcs.c: New file.
72204         New module 'mbsnrtowcs'.
72205         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72206         * lib/mbsnrtowcs.c: New file.
72207         * lib/mbsrtowcs-state.c: New file.
72208         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72209         (internal_state): Remove variable.
72210         * m4/mbsnrtowcs.m4: New file.
72211         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72212         compilation units.
72213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72214         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72215         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72216         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72217         * modules/mbsnrtowcs: New file.
72218         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72219         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72220         portability problem.
72222 2008-12-21  Bruno Haible  <bruno@clisp.org>
72224         Work around mbsrtowcs bug.
72225         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72226         (gl_FUNC_MBSRTOWCS): Invoke it.
72227         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72228         m4/locale-zh.m4.
72229         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72231 2008-12-21  Bruno Haible  <bruno@clisp.org>
72233         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72235 2008-12-21  Bruno Haible  <bruno@clisp.org>
72237         Update doc for AIX.
72238         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72239         16-bit wchar_t type.
72240         * doc/posix-functions/btowc.texi: Likewise.
72241         * doc/posix-functions/fgetwc.texi: Likewise.
72242         * doc/posix-functions/fgetws.texi: Likewise.
72243         * doc/posix-functions/fputwc.texi: Likewise.
72244         * doc/posix-functions/fputws.texi: Likewise.
72245         * doc/posix-functions/fwide.texi: Likewise.
72246         * doc/posix-functions/fwprintf.texi: Likewise.
72247         * doc/posix-functions/fwscanf.texi: Likewise.
72248         * doc/posix-functions/getwchar.texi: Likewise.
72249         * doc/posix-functions/getwc.texi: Likewise.
72250         * doc/posix-functions/iswalnum.texi: Likewise.
72251         * doc/posix-functions/iswalpha.texi: Likewise.
72252         * doc/posix-functions/iswblank.texi: Likewise.
72253         * doc/posix-functions/iswcntrl.texi: Likewise.
72254         * doc/posix-functions/iswctype.texi: Likewise.
72255         * doc/posix-functions/iswdigit.texi: Likewise.
72256         * doc/posix-functions/iswgraph.texi: Likewise.
72257         * doc/posix-functions/iswlower.texi: Likewise.
72258         * doc/posix-functions/iswprint.texi: Likewise.
72259         * doc/posix-functions/iswpunct.texi: Likewise.
72260         * doc/posix-functions/iswspace.texi: Likewise.
72261         * doc/posix-functions/iswupper.texi: Likewise.
72262         * doc/posix-functions/iswxdigit.texi: Likewise.
72263         * doc/posix-functions/mbrtowc.texi: Likewise.
72264         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72265         * doc/posix-functions/mbstowcs.texi: Likewise.
72266         * doc/posix-functions/mbtowc.texi: Likewise.
72267         * doc/posix-functions/putwchar.texi: Likewise.
72268         * doc/posix-functions/putwc.texi: Likewise.
72269         * doc/posix-functions/swprintf.texi: Likewise.
72270         * doc/posix-functions/tolower.texi: Likewise.
72271         * doc/posix-functions/toupper.texi: Likewise.
72272         * doc/posix-functions/towctrans.texi: Likewise.
72273         * doc/posix-functions/ungetwc.texi: Likewise.
72274         * doc/posix-functions/vswprintf.texi: Likewise.
72275         * doc/posix-functions/wcrtomb.texi: Likewise.
72276         * doc/posix-functions/wcscat.texi: Likewise.
72277         * doc/posix-functions/wcschr.texi: Likewise.
72278         * doc/posix-functions/wcscmp.texi: Likewise.
72279         * doc/posix-functions/wcscoll.texi: Likewise.
72280         * doc/posix-functions/wcscpy.texi: Likewise.
72281         * doc/posix-functions/wcscspn.texi: Likewise.
72282         * doc/posix-functions/wcsftime.texi: Likewise.
72283         * doc/posix-functions/wcslen.texi: Likewise.
72284         * doc/posix-functions/wcsncat.texi: Likewise.
72285         * doc/posix-functions/wcsncmp.texi: Likewise.
72286         * doc/posix-functions/wcsncpy.texi: Likewise.
72287         * doc/posix-functions/wcspbrk.texi: Likewise.
72288         * doc/posix-functions/wcsrchr.texi: Likewise.
72289         * doc/posix-functions/wcsrtombs.texi: Likewise.
72290         * doc/posix-functions/wcsspn.texi: Likewise.
72291         * doc/posix-functions/wcsstr.texi: Likewise.
72292         * doc/posix-functions/wcstod.texi: Likewise.
72293         * doc/posix-functions/wcstof.texi: Likewise.
72294         * doc/posix-functions/wcstoimax.texi: Likewise.
72295         * doc/posix-functions/wcstok.texi: Likewise.
72296         * doc/posix-functions/wcstold.texi: Likewise.
72297         * doc/posix-functions/wcstoll.texi: Likewise.
72298         * doc/posix-functions/wcstol.texi: Likewise.
72299         * doc/posix-functions/wcstombs.texi: Likewise.
72300         * doc/posix-functions/wcstoull.texi: Likewise.
72301         * doc/posix-functions/wcstoul.texi: Likewise.
72302         * doc/posix-functions/wcstoumax.texi: Likewise.
72303         * doc/posix-functions/wcswidth.texi: Likewise.
72304         * doc/posix-functions/wcsxfrm.texi: Likewise.
72305         * doc/posix-functions/wctob.texi: Likewise.
72306         * doc/posix-functions/wctomb.texi: Likewise.
72307         * doc/posix-functions/wctrans.texi: Likewise.
72308         * doc/posix-functions/wctype.texi: Likewise.
72309         * doc/posix-functions/wcwidth.texi: Likewise.
72310         * doc/posix-functions/wmemchr.texi: Likewise.
72311         * doc/posix-functions/wmemcmp.texi: Likewise.
72312         * doc/posix-functions/wmemcpy.texi: Likewise.
72313         * doc/posix-functions/wmemmove.texi: Likewise.
72314         * doc/posix-functions/wmemset.texi: Likewise.
72315         * doc/posix-functions/wprintf.texi: Likewise.
72316         * doc/posix-functions/wscanf.texi: Likewise.
72318 2008-12-21  Bruno Haible  <bruno@clisp.org>
72320         Update doc for HP-UX 11.11.
72321         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72322         in HP-UX version 11.00, not in all versions of HP-UX 11.
72323         * doc/posix-functions/fwide.texi: Likewise.
72324         * doc/posix-functions/fwprintf.texi: Likewise.
72325         * doc/posix-functions/fwscanf.texi: Likewise.
72326         * doc/posix-functions/inet_ntop.texi: Likewise.
72327         * doc/posix-functions/inet_pton.texi: Likewise.
72328         * doc/posix-functions/mbrlen.texi: Likewise.
72329         * doc/posix-functions/mbrtowc.texi: Likewise.
72330         * doc/posix-functions/mbsinit.texi: Likewise.
72331         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72332         * doc/posix-functions/swprintf.texi: Likewise.
72333         * doc/posix-functions/swscanf.texi: Likewise.
72334         * doc/posix-functions/towctrans.texi: Likewise.
72335         * doc/posix-functions/vfwprintf.texi: Likewise.
72336         * doc/posix-functions/vswprintf.texi: Likewise.
72337         * doc/posix-functions/vwprintf.texi: Likewise.
72338         * doc/posix-functions/wcrtomb.texi: Likewise.
72339         * doc/posix-functions/wcsrtombs.texi: Likewise.
72340         * doc/posix-functions/wcsstr.texi: Likewise.
72341         * doc/posix-functions/wctob.texi: Likewise.
72342         * doc/posix-functions/wctrans.texi: Likewise.
72343         * doc/posix-functions/wmemchr.texi: Likewise.
72344         * doc/posix-functions/wmemcmp.texi: Likewise.
72345         * doc/posix-functions/wmemcpy.texi: Likewise.
72346         * doc/posix-functions/wmemmove.texi: Likewise.
72347         * doc/posix-functions/wmemset.texi: Likewise.
72348         * doc/posix-functions/wprintf.texi: Likewise.
72349         * doc/posix-functions/wscanf.texi: Likewise.
72351 2008-12-21  Bruno Haible  <bruno@clisp.org>
72353         Work around a portability problem.
72354         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72355         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72357 2008-12-20  Bruno Haible  <bruno@clisp.org>
72359         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72360         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72361         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72363         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72365         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72366         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72367         set.
72368         (GNULIB_defined_mbstate_t): New macro.
72369         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72370         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72371         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72372         reuses the system's mbrtowc function but works around the bugs.
72373         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72374         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72375         macros.
72376         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72377         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72378         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72379         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72380         REPLACE_MBSINIT if mbsinit needs to be overridden.
72381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72382         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72383         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72384         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72385         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72386         m4/locale-zh.m4.
72387         (Depends): Add mbsinit.
72388         * modules/mbsinit (Depends): Add mbrtowc.
72389         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72391 2008-12-20  Bruno Haible  <bruno@clisp.org>
72393         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72394         so that there are no conversion errors on AIX.
72395         * tests/test-mbsrtowcs.c (main): LIkewise.
72397 2008-12-20  Bruno Haible  <bruno@clisp.org>
72399         Work around wctob bug on Solaris <= 9.
72400         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72401         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72403         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72404         * modules/wctob (Files): Add m4/locale-fr.m4.
72405         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72407 2008-12-20  Bruno Haible  <bruno@clisp.org>
72409         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72410         /dev/null.
72411         * tests/test-select-in.sh: Likewise.
72412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72414 2008-12-20  Bruno Haible  <bruno@clisp.org>
72416         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72417         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72418         Cygwin 1.5.x.
72420 2008-12-20  Bruno Haible  <bruno@clisp.org>
72422         Ensure mbstate_t is defined on HP-UX 11.11.
72423         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72424         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72425         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72426         AC_USE_SYSTEM_EXTENSIONS.
72427         * modules/fnmatch (Depends-on): Add extensions.
72428         * modules/mbrlen (Depends-on): Likewise.
72429         * modules/mbrtowc (Depends-on): Likewise.
72430         * modules/mbsinit (Depends-on): Likewise.
72431         * modules/mbsrtowcs (Depends-on): Likewise.
72432         * modules/mbswidth (Depends-on): Likewise.
72433         * modules/quotearg (Depends-on): Likewise.
72434         * modules/strftime (Depends-on): Likewise.
72436 2008-12-20  Bruno Haible  <bruno@clisp.org>
72438         Ensure wctob is declared on IRIX 6.5.
72439         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72440         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72441         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72443         of HAVE_WCTOB.
72444         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72445         HAVE_WCTOB.
72446         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72448 2008-12-19  Bruno Haible  <bruno@clisp.org>
72450         * modules/mbsrtowcs-tests: New file.
72451         * tests/test-mbsrtowcs1.sh: New file.
72452         * tests/test-mbsrtowcs2.sh: New file.
72453         * tests/test-mbsrtowcs3.sh: New file.
72454         * tests/test-mbsrtowcs4.sh: New file.
72455         * tests/test-mbsrtowcs.c: New file.
72457         New module 'mbsrtowcs'.
72458         * lib/wchar.in.h (mbsrtowcs): New declaration.
72459         * lib/mbsrtowcs.c: New file.
72460         * m4/mbsrtowcs.m4: New file.
72461         * modules/mbsrtowcs: New file.
72462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72463         HAVE_MBSRTOWCS.
72464         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72465         HAVE_MBSRTOWCS.
72466         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72468 2008-12-19  Bruno Haible  <bruno@clisp.org>
72470         New module 'mbrlen'.
72471         * lib/wchar.in.h (mbrlen): New declaration.
72472         * lib/mbrlen.c: New file.
72473         * m4/mbrlen.m4: New file.
72474         * modules/mbrlen: New file.
72475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72476         HAVE_MBRLEN.
72477         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72478         HAVE_MBRLEN.
72479         * doc/posix-functions/mbrlen.texi: Document the new module.
72481 2008-12-19  Bruno Haible  <bruno@clisp.org>
72483         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72484         * modules/mbrtowc (Depends-on): Add verify.
72485         Suggested by Paul Eggert.
72487 2008-12-18  Bruno Haible  <bruno@clisp.org>
72489         * modules/mbsinit-tests: New file.
72490         * tests/test-mbsinit.sh: New file.
72491         * tests/test-mbsinit.c: New file.
72493 2008-12-18  Bruno Haible  <bruno@clisp.org>
72495         * modules/mbrtowc-tests: New file.
72496         * tests/test-mbrtowc1.sh: New file.
72497         * tests/test-mbrtowc2.sh: New file.
72498         * tests/test-mbrtowc3.sh: New file.
72499         * tests/test-mbrtowc4.sh: New file.
72500         * tests/test-mbrtowc.c: New file.
72502         New module 'mbrtowc'.
72503         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72504         mbsinit and mbrtowc.
72505         (mbrtowc): New declaration.
72506         * lib/mbrtowc.c: New file.
72507         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72508         * modules/mbrtowc: New file.
72509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72510         HAVE_MBRTOWC.
72511         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72512         HAVE_MBRTOWC.
72513         * doc/posix-functions/mbrtowc.texi: Document the new module.
72515 2008-12-18  Bruno Haible  <bruno@clisp.org>
72517         New module 'wctob'.
72518         * lib/wchar.in.h (wctob): New declaration.
72519         * lib/wctob.c: New file.
72520         * m4/wctob.m4: New file.
72521         * modules/wctob: New file.
72522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72523         HAVE_WCTOB.
72524         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72525         * doc/posix-functions/wctob.texi: Document the new module.
72527 2008-12-18  Bruno Haible  <bruno@clisp.org>
72529         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72530         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72532 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72534         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72535         G. Christensen" <tgc@jupiterrise.com>.
72537         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72538         G. Christensen" <tgc@jupiterrise.com>.
72540         * lib/flock.c: Need to include string.h.  Reported by "Tom
72541         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72542         <ebb9@byu.net>.
72544 2008-12-18  Bruno Haible  <bruno@clisp.org>
72546         * m4/locale-ja.m4: New file, from GNU gettext.
72548 2008-12-17  Bruno Haible  <bruno@clisp.org>
72550         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72551         Suggested by Eric Blake.
72553 2008-12-17  Bruno Haible  <bruno@clisp.org>
72555         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72557 2008-12-17  Bruno Haible  <bruno@clisp.org>
72559         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72560         * modules/mbsinit (Depends-on): Add verify.
72561         Suggested by Paul Eggert.
72563 2008-12-17  Bruno Haible  <bruno@clisp.org>
72565         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72566         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72567         gl_FUNC_MBRTOWC.
72568         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72569         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72570         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72571         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72572         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72573         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72574         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72575         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72576         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72577         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72578         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72579         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72580         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72581         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72582         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72583         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72584         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72585         * modules/trim (configure.ac): Likewise.
72587 2008-12-17  Bruno Haible  <bruno@clisp.org>
72589         * modules/btowc-tests: New file.
72590         * tests/test-btowc1.sh: New file.
72591         * tests/test-btowc2.sh: New file.
72592         * tests/test-btowc.c: New file.
72594         New module 'btowc'.
72595         * lib/wchar.in.h (btowc): New declaration.
72596         * lib/btowc.c: New file.
72597         * m4/btowc.m4: New file.
72598         * modules/btowc: New file.
72599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72600         HAVE_BTOWC.
72601         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72602         * doc/posix-functions/btowc.texi: Document the new module.
72604 2008-12-17  Bruno Haible  <bruno@clisp.org>
72606         New module 'mbsinit'.
72607         * lib/wchar.in.h (mbsinit): New declaration.
72608         * lib/mbsinit.c: New file.
72609         * m4/mbsinit.m4: New file.
72610         * modules/mbsinit: New file.
72611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72612         HAVE_MBSINIT.
72613         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72614         HAVE_MBSINIT.
72615         * doc/posix-functions/mbsinit.texi: Document the new module.
72617 2008-12-16  Bruno Haible  <bruno@clisp.org>
72619         * lib/unistd.in.h: Add comment.
72620         * tests/test-environ.c: Don't include <stdlib.h>.
72622 2008-12-16  Bruno Haible  <bruno@clisp.org>
72624         * lib/parse-duration.h (parse_duration): Document return value
72625         convention.
72626         * lib/parse-duration.c: Include specification header first. Add
72627         comments.
72628         (_): Remove macro.
72629         (parse_year_month_day, parse_hour_minute_second): Move side effects
72630         outside of strchr call.
72631         (parse_non_iso8601): Move side effects outside of isspace call.
72632         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72633         call.
72635 2008-12-16  Bruno Haible  <bruno@clisp.org>
72637         * tests/test-parse-duration.sh: Produce no output when the test
72638         succeeds.
72640 2008-12-16  Bruno Haible  <bruno@clisp.org>
72642         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72643         expressions.
72645 2008-12-15  Bruno Haible  <bruno@clisp.org>
72647         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72648         * doc/glibc-functions/flistxattr.texi: Likewise.
72649         * doc/glibc-functions/fopencookie.texi: Likewise.
72650         * doc/glibc-functions/fremovexattr.texi: Likewise.
72651         * doc/glibc-functions/fsetxattr.texi: Likewise.
72652         * doc/glibc-functions/getxattr.texi: Likewise.
72653         * doc/glibc-functions/lgetxattr.texi: Likewise.
72654         * doc/glibc-functions/listxattr.texi: Likewise.
72655         * doc/glibc-functions/llistxattr.texi: Likewise.
72656         * doc/glibc-functions/lremovexattr.texi: Likewise.
72657         * doc/glibc-functions/lsetxattr.texi: Likewise.
72658         * doc/glibc-functions/removexattr.texi: Likewise.
72659         * doc/glibc-functions/setxattr.texi: Likewise.
72660         * doc/posix-functions/open_memstream.texi: Likewise.
72662 2008-12-15  Eric Blake  <ebb9@byu.net>
72664         Update doc for cygwin 1.7.
72665         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72666         functions.
72667         * doc/posix-functions/fchmodat.texi: Likewise.
72668         * doc/posix-functions/fchownat.texi: Likewise.
72669         * doc/posix-functions/fdopendir.texi: Likewise.
72670         * doc/posix-functions/fmemopen.texi: Likewise.
72671         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72672         * doc/posix-functions/fstatat.texi: Likewise.
72673         * doc/posix-functions/futimens.texi: Likewise.
72674         * doc/posix-functions/gai_strerror.texi: Likewise.
72675         * doc/posix-functions/getaddrinfo.texi: Likewise.
72676         * doc/posix-functions/getnameinfo.texi: Likewise.
72677         * doc/posix-functions/if_freenameindex.texi: Likewise.
72678         * doc/posix-functions/if_indextoname.texi: Likewise.
72679         * doc/posix-functions/if_nameindex.texi: Likewise.
72680         * doc/posix-functions/if_nametoindex.texi: Likewise.
72681         * doc/posix-functions/insque.texi: Likewise.
72682         * doc/posix-functions/linkat.texi: Likewise.
72683         * doc/posix-functions/llrint.texi: Likewise.
72684         * doc/posix-functions/llrintf.texi: Likewise.
72685         * doc/posix-functions/llrintl.texi: Likewise.
72686         * doc/posix-functions/lockf.texi: Likewise.
72687         * doc/posix-functions/lrintl.texi: Likewise.
72688         * doc/posix-functions/mkdirat.texi: Likewise.
72689         * doc/posix-functions/mkfifoat.texi: Likewise.
72690         * doc/posix-functions/mknodat.texi: Likewise.
72691         * doc/posix-functions/mq_close.texi: Likewise.
72692         * doc/posix-functions/mq_getattr.texi: Likewise.
72693         * doc/posix-functions/mq_notify.texi: Likewise.
72694         * doc/posix-functions/mq_open.texi: Likewise.
72695         * doc/posix-functions/mq_receive.texi: Likewise.
72696         * doc/posix-functions/mq_send.texi: Likewise.
72697         * doc/posix-functions/mq_setattr.texi: Likewise.
72698         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72699         * doc/posix-functions/mq_timedsend.texi: Likewise.
72700         * doc/posix-functions/mq_unlink.texi: Likewise.
72701         * doc/posix-functions/open_memstream.texi: Likewise.
72702         * doc/posix-functions/openat.texi: Likewise.
72703         * doc/posix-functions/posix_fadvise.texi: Likewise.
72704         * doc/posix-functions/posix_fallocate.texi: Likewise.
72705         * doc/posix-functions/posix_madvise.texi: Likewise.
72706         * doc/posix-functions/posix_memalign.texi: Likewise.
72707         * doc/posix-functions/posix_openpt.texi: Likewise.
72708         * doc/posix-functions/readlinkat.texi: Likewise.
72709         * doc/posix-functions/remque.texi: Likewise.
72710         * doc/posix-functions/renameat.texi: Likewise.
72711         * doc/posix-functions/rintl.texi: Likewise.
72712         * doc/posix-functions/sem_unlink.texi: Likewise.
72713         * doc/posix-functions/shm_open.texi: Likewise.
72714         * doc/posix-functions/shm_unlink.texi: Likewise.
72715         * doc/posix-functions/signgam.texi: Likewise.
72716         * doc/posix-functions/sigset.texi: Likewise.
72717         * doc/posix-functions/stpcpy.texi: Likewise.
72718         * doc/posix-functions/stpncpy.texi: Likewise.
72719         * doc/posix-functions/strerror.texi: Likewise.
72720         * doc/posix-functions/strtod.texi: Likewise.
72721         * doc/posix-functions/symlinkat.texi: Likewise.
72722         * doc/posix-functions/unlinkat.texi: Likewise.
72723         * doc/posix-functions/utimensat.texi: Likewise.
72724         * doc/glibc-functions/bindresvport.texi: Likewise.
72725         * doc/glibc-functions/dn_expand.texi: Likewise.
72726         * doc/glibc-functions/exp10.texi: Likewise.
72727         * doc/glibc-functions/exp10f.texi: Likewise.
72728         * doc/glibc-functions/fgetxattr.texi: Likewise.
72729         * doc/glibc-functions/flistxattr.texi: Likewise.
72730         * doc/glibc-functions/fopencookie.texi: Likewise.
72731         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72732         * doc/glibc-functions/fremovexattr.texi: Likewise.
72733         * doc/glibc-functions/fsetxattr.texi: Likewise.
72734         * doc/glibc-functions/getifaddrs.texi: Likewise.
72735         * doc/glibc-functions/getxattr.texi: Likewise.
72736         * doc/glibc-functions/lgetxattr.texi: Likewise.
72737         * doc/glibc-functions/listxattr.texi: Likewise.
72738         * doc/glibc-functions/llistxattr.texi: Likewise.
72739         * doc/glibc-functions/lremovexattr.texi: Likewise.
72740         * doc/glibc-functions/lsetxattr.texi: Likewise.
72741         * doc/glibc-functions/pow10.texi: Likewise.
72742         * doc/glibc-functions/pow10f.texi: Likewise.
72743         * doc/glibc-functions/rcmd_af.texi: Likewise.
72744         * doc/glibc-functions/removexattr.texi: Likewise.
72745         * doc/glibc-functions/res_init.texi: Likewise.
72746         * doc/glibc-functions/res_mkquery.texi: Likewise.
72747         * doc/glibc-functions/res_query.texi: Likewise.
72748         * doc/glibc-functions/res_querydomain.texi: Likewise.
72749         * doc/glibc-functions/res_send.texi: Likewise.
72750         * doc/glibc-functions/rresvport_af.texi: Likewise.
72751         * doc/glibc-functions/setxattr.texi: Likewise.
72752         * doc/glibc-functions/strcasestr.texi: Likewise.
72754 2008-12-15  Bruno Haible  <bruno@clisp.org>
72756         Fix compilation error on OSF/1 4.0.
72757         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72758         <sys/time.h>, simply delegate to the system header.
72759         Reported by Daniel Richard G. <oss@teragram.com>.
72761 2008-12-15  Bruno Haible  <bruno@clisp.org>
72763         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72764         * doc/posix-functions/fchmodat.texi: Likewise.
72765         * doc/posix-functions/fchownat.texi: Likewise.
72766         * doc/posix-functions/fdopendir.texi: Likewise.
72767         * doc/posix-functions/fstatat.texi: Likewise.
72768         * doc/posix-functions/mkdirat.texi: Likewise.
72769         * doc/posix-functions/unlinkat.texi: Likewise.
72771 2008-12-14  Bruno Haible  <bruno@clisp.org>
72773         Update doc for POSIX:2008.
72774         * doc/posix-functions/faccessat.texi: New file.
72775         * doc/posix-functions/fchmodat.texi: New file.
72776         * doc/posix-functions/fchownat.texi: New file.
72777         * doc/posix-functions/fdopendir.texi: New file.
72778         * doc/posix-functions/fstatat.texi: New file.
72779         * doc/posix-functions/futimens.texi: New file.
72780         * doc/posix-functions/linkat.texi: New file.
72781         * doc/posix-functions/mkdirat.texi: New file.
72782         * doc/posix-functions/mkfifoat.texi: New file.
72783         * doc/posix-functions/mknodat.texi: New file.
72784         * doc/posix-functions/open_wmemstream.texi: New file.
72785         * doc/posix-functions/openat.texi: New file.
72786         * doc/posix-functions/psiginfo.texi: New file.
72787         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72788         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72789         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72790         * doc/posix-functions/readlinkat.texi: New file.
72791         * doc/posix-functions/renameat.texi: New file.
72792         * doc/posix-functions/strerror_l.texi: New file.
72793         * doc/posix-functions/symlinkat.texi: New file.
72794         * doc/posix-functions/unlinkat.texi: New file.
72795         * doc/posix-functions/utimensat.texi: New file.
72796         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72798 2008-12-14  Bruno Haible  <bruno@clisp.org>
72800         Update doc for POSIX:2008.
72801         * doc/posix-functions/alphasort.texi: Renamed from
72802         doc/glibc-functions/alphasort.texi.
72803         * doc/posix-functions/dirfd.texi: Renamed from
72804         doc/glibc-functions/dirfd.texi.
72805         * doc/posix-functions/dprintf.texi: Renamed from
72806         doc/glibc-functions/dprintf.texi.
72807         * doc/posix-functions/duplocale.texi: Renamed from
72808         doc/glibc-functions/duplocale.texi.
72809         * doc/posix-functions/fexecve.texi: Renamed from
72810         doc/glibc-functions/fexecve.texi.
72811         * doc/posix-functions/fmemopen.texi: Renamed from
72812         doc/glibc-functions/fmemopen.texi.
72813         * doc/posix-functions/freelocale.texi: Renamed from
72814         doc/glibc-functions/freelocale.texi.
72815         * doc/posix-functions/getdate_err.texi: Renamed from
72816         doc/glibc-functions/getdate_err.texi.
72817         * doc/posix-functions/isalnum_l.texi: Renamed from
72818         doc/glibc-functions/isalnum_l.texi.
72819         * doc/posix-functions/isalpha_l.texi: Renamed from
72820         doc/glibc-functions/isalpha_l.texi.
72821         * doc/posix-functions/isblank_l.texi: Renamed from
72822         doc/glibc-functions/isblank_l.texi.
72823         * doc/posix-functions/iscntrl_l.texi: Renamed from
72824         doc/glibc-functions/iscntrl_l.texi.
72825         * doc/posix-functions/isdigit_l.texi: Renamed from
72826         doc/glibc-functions/isdigit_l.texi.
72827         * doc/posix-functions/isgraph_l.texi: Renamed from
72828         doc/glibc-functions/isgraph_l.texi.
72829         * doc/posix-functions/islower_l.texi: Renamed from
72830         doc/glibc-functions/islower_l.texi.
72831         * doc/posix-functions/isprint_l.texi: Renamed from
72832         doc/glibc-functions/isprint_l.texi.
72833         * doc/posix-functions/ispunct_l.texi: Renamed from
72834         doc/glibc-functions/ispunct_l.texi.
72835         * doc/posix-functions/isspace_l.texi: Renamed from
72836         doc/glibc-functions/isspace_l.texi.
72837         * doc/posix-functions/isupper_l.texi: Renamed from
72838         doc/glibc-functions/isupper_l.texi.
72839         * doc/posix-functions/iswalnum_l.texi: Renamed from
72840         doc/glibc-functions/iswalnum_l.texi.
72841         * doc/posix-functions/iswalpha_l.texi: Renamed from
72842         doc/glibc-functions/iswalpha_l.texi.
72843         * doc/posix-functions/iswblank_l.texi: Renamed from
72844         doc/glibc-functions/iswblank_l.texi.
72845         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72846         doc/glibc-functions/iswcntrl_l.texi.
72847         * doc/posix-functions/iswctype_l.texi: Renamed from
72848         doc/glibc-functions/iswctype_l.texi.
72849         * doc/posix-functions/iswdigit_l.texi: Renamed from
72850         doc/glibc-functions/iswdigit_l.texi.
72851         * doc/posix-functions/iswgraph_l.texi: Renamed from
72852         doc/glibc-functions/iswgraph_l.texi.
72853         * doc/posix-functions/iswlower_l.texi: Renamed from
72854         doc/glibc-functions/iswlower_l.texi.
72855         * doc/posix-functions/iswprint_l.texi: Renamed from
72856         doc/glibc-functions/iswprint_l.texi.
72857         * doc/posix-functions/iswpunct_l.texi: Renamed from
72858         doc/glibc-functions/iswpunct_l.texi.
72859         * doc/posix-functions/iswspace_l.texi: Renamed from
72860         doc/glibc-functions/iswspace_l.texi.
72861         * doc/posix-functions/iswupper_l.texi: Renamed from
72862         doc/glibc-functions/iswupper_l.texi.
72863         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72864         doc/glibc-functions/iswxdigit_l.texi.
72865         * doc/posix-functions/isxdigit_l.texi: Renamed from
72866         doc/glibc-functions/isxdigit_l.texi.
72867         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72868         doc/glibc-functions/mbsnrtowcs.texi.
72869         * doc/posix-functions/mkdtemp.texi: Renamed from
72870         doc/glibc-functions/mkdtemp.texi.
72871         * doc/posix-functions/newlocale.texi: Renamed from
72872         doc/glibc-functions/newlocale.texi.
72873         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72874         doc/glibc-functions/nl_langinfo_l.texi.
72875         * doc/posix-functions/open_memstream.texi: Renamed from
72876         doc/glibc-functions/open_memstream.texi.
72877         * doc/posix-functions/opterr.texi: Renamed from
72878         doc/glibc-functions/opterr.texi.
72879         * doc/posix-functions/optind.texi: Renamed from
72880         doc/glibc-functions/optind.texi.
72881         * doc/posix-functions/optopt.texi: Renamed from
72882         doc/glibc-functions/optopt.texi.
72883         * doc/posix-functions/psignal.texi: Renamed from
72884         doc/glibc-functions/psignal.texi.
72885         * doc/posix-functions/scandir.texi: Renamed from
72886         doc/glibc-functions/scandir.texi.
72887         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72888         doc/glibc-functions/sched_get_priority_min.texi.
72889         * doc/posix-functions/signgam.texi: Renamed from
72890         doc/glibc-functions/signgam.texi.
72891         * doc/posix-functions/stpcpy.texi: Renamed from
72892         doc/glibc-functions/stpcpy.texi.
72893         * doc/posix-functions/stpncpy.texi: Renamed from
72894         doc/glibc-functions/stpncpy.texi.
72895         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72896         doc/glibc-functions/strcasecmp_l.texi.
72897         * doc/posix-functions/strcoll_l.texi: Renamed from
72898         doc/glibc-functions/strcoll_l.texi.
72899         * doc/posix-functions/strfmon_l.texi: Renamed from
72900         doc/glibc-functions/strfmon_l.texi.
72901         * doc/posix-functions/strftime_l.texi: Renamed from
72902         doc/glibc-functions/strftime_l.texi.
72903         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72904         doc/glibc-functions/strncasecmp_l.texi.
72905         * doc/posix-functions/strndup.texi: Renamed from
72906         doc/glibc-functions/strndup.texi.
72907         * doc/posix-functions/strnlen.texi: Renamed from
72908         doc/glibc-functions/strnlen.texi.
72909         * doc/posix-functions/strsignal.texi: Renamed from
72910         doc/glibc-functions/strsignal.texi.
72911         * doc/posix-functions/strxfrm_l.texi: Renamed from
72912         doc/glibc-functions/strxfrm_l.texi.
72913         * doc/posix-functions/timer_gettime.texi: Renamed from
72914         doc/glibc-functions/timer_gettime.texi.
72915         * doc/posix-functions/tolower_l.texi: Renamed from
72916         doc/glibc-functions/tolower_l.texi.
72917         * doc/posix-functions/toupper_l.texi: Renamed from
72918         doc/glibc-functions/toupper_l.texi.
72919         * doc/posix-functions/towctrans_l.texi: Renamed from
72920         doc/glibc-functions/towctrans_l.texi.
72921         * doc/posix-functions/towlower_l.texi: Renamed from
72922         doc/glibc-functions/towlower_l.texi.
72923         * doc/posix-functions/towupper_l.texi: Renamed from
72924         doc/glibc-functions/towupper_l.texi.
72925         * doc/posix-functions/uselocale.texi: Renamed from
72926         doc/glibc-functions/uselocale.texi.
72927         * doc/posix-functions/vdprintf.texi: Renamed from
72928         doc/glibc-functions/vdprintf.texi.
72929         * doc/posix-functions/wcpcpy.texi:
72930         Renamed from doc/glibc-functions/wcpcpy.texi.
72931         * doc/posix-functions/wcpncpy.texi: Renamed from
72932         doc/glibc-functions/wcpncpy.texi.
72933         * doc/posix-functions/wcscasecmp.texi: Renamed from
72934         doc/glibc-functions/wcscasecmp.texi.
72935         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72936         doc/glibc-functions/wcscasecmp_l.texi.
72937         * doc/posix-functions/wcscoll_l.texi: Renamed from
72938         doc/glibc-functions/wcscoll_l.texi.
72939         * doc/posix-functions/wcsdup.texi: Renamed from
72940         doc/glibc-functions/wcsdup.texi.
72941         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72942         doc/glibc-functions/wcsncasecmp.texi.
72943         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72944         doc/glibc-functions/wcsncasecmp_l.texi.
72945         * doc/posix-functions/wcsnlen.texi: Renamed from
72946         doc/glibc-functions/wcsnlen.texi.
72947         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72948         doc/glibc-functions/wcsnrtombs.texi.
72949         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72950         doc/glibc-functions/wcsxfrm_l.texi.
72951         * doc/posix-functions/wctrans_l.texi: Renamed from
72952         doc/glibc-functions/wctrans_l.texi.
72953         * doc/posix-functions/wctype_l.texi: Renamed from
72954         doc/glibc-functions/wctype_l.texi.
72955         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72956         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72957         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72958         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72959         these subsections.
72960         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72961         Remove sections.
72963 2008-12-14  Bruno Haible  <bruno@clisp.org>
72965         Update doc for POSIX:2008.
72966         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72968 2008-12-14  Bruno Haible  <bruno@clisp.org>
72970         Update doc for POSIX:2008.
72971         * doc/pastposix-functions/bcmp.texi: Renamed from
72972         doc/posix-functions/bcmp.texi.
72973         * doc/pastposix-functions/bcopy.texi: Renamed from
72974         doc/posix-functions/bcopy.texi.
72975         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72976         doc/posix-functions/bsd_signal.texi.
72977         * doc/pastposix-functions/bzero.texi: Renamed from
72978         doc/posix-functions/bzero.texi.
72979         * doc/pastposix-functions/ecvt.texi: Renamed from
72980         doc/posix-functions/ecvt.texi.
72981         * doc/pastposix-functions/fcvt.texi: Renamed from
72982         doc/posix-functions/fcvt.texi.
72983         * doc/pastposix-functions/ftime.texi: Renamed from
72984         doc/posix-functions/ftime.texi.
72985         * doc/pastposix-functions/gcvt.texi: Renamed from
72986         doc/posix-functions/gcvt.texi.
72987         * doc/pastposix-functions/getcontext.texi: Renamed from
72988         doc/posix-functions/getcontext.texi.
72989         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72990         doc/posix-functions/gethostbyaddr.texi.
72991         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72992         doc/posix-functions/gethostbyname.texi.
72993         * doc/pastposix-functions/getwd.texi: Renamed from
72994         doc/posix-functions/getwd.texi.
72995         * doc/pastposix-functions/h_errno.texi: Renamed from
72996         doc/posix-functions/h_errno.texi.
72997         * doc/pastposix-functions/index.texi: Renamed from
72998         doc/posix-functions/index.texi.
72999         * doc/pastposix-functions/makecontext.texi: Renamed from
73000         doc/posix-functions/makecontext.texi.
73001         * doc/pastposix-functions/mktemp.texi: Renamed from
73002         doc/posix-functions/mktemp.texi.
73003         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
73004         doc/posix-functions/pthread_attr_getstackaddr.texi.
73005         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
73006         doc/posix-functions/pthread_attr_setstackaddr.texi.
73007         * doc/pastposix-functions/rindex.texi: Renamed from
73008         doc/posix-functions/rindex.texi.
73009         * doc/pastposix-functions/scalb.texi: Renamed from
73010         doc/posix-functions/scalb.texi.
73011         * doc/pastposix-functions/setcontext.texi: Renamed from
73012         doc/posix-functions/setcontext.texi.
73013         * doc/pastposix-functions/swapcontext.texi: Renamed from
73014         doc/posix-functions/swapcontext.texi.
73015         * doc/pastposix-functions/ualarm.texi: Renamed from
73016         doc/posix-functions/ualarm.texi.
73017         * doc/pastposix-functions/usleep.texi: Renamed from
73018         doc/posix-functions/usleep.texi.
73019         * doc/pastposix-functions/vfork.texi: Renamed from
73020         doc/posix-functions/vfork.texi.
73021         * doc/pastposix-functions/wcswcs.texi: Renamed from
73022         doc/posix-functions/wcswcs.texi.
73023         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
73024         (Function Substitutes): Update.
73026 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73028         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
73029         m4/strerror.m4.
73031 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73032             Bruno Haible  <bruno@clisp.org>
73034         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
73036 2008-12-13  Bruno Haible  <bruno@clisp.org>
73038         * modules/strtoull (Depends-on): Remove unistd.
73040 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73042         * modules/strtoull (Depends-on): Add stdlib.
73044 2008-12-11  Simon Josefsson  <simon@josefsson.org>
73046         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
73048 2008-12-10  Jim Meyering  <meyering@redhat.com>
73050         gl_ASSERT: don't say assertions are disabled when they're not
73051         * m4/assert.m4 (gl_ASSERT): Do not make configure report
73052         "checking whether to enable assertions... no", when they are in
73053         fact enabled.  This is solely a bug in the output of configure.
73054         In spite of saying "no", NDEBUG was not defined in that case.
73055         Also, as noted by Eric Blake, leave assertions enabled upon
73056         --enable-assert=INVALID.
73058 2008-12-10  Bruno Haible  <bruno@clisp.org>
73060         Change MODULES.html to refer to POSIX:2008 where possible.
73061         * MODULES.html.sh (POSIX2008_URL): New variable.
73062         (posix_headers): Remove sys/timeb, ucontext.
73063         (posix2001_headers): New variable.
73064         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
73065         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
73066         index, makecontext, mktemp, pthread_attr_getstackaddr,
73067         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
73068         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
73069         (posix2001_functions): New variable.
73070         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
73071         otherwise.
73073 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73075         add missing include to parse-duration.c
73076         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
73077         * modules/parse-duration (Depends-on): Add xalloc.
73079         fix sed script reading maint.mk
73080         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
73081         (syntax-check-rules): Use it.
73083 2008-12-09  Bruno Haible  <bruno@clisp.org>
73085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
73086         MacOS X 10.4/PowerPC.
73087         Reported by Simon Josefsson.
73089 2008-12-08  Jim Meyering  <meyering@redhat.com>
73091         work around mingw's lack of some S_IF definitions
73092         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
73093         Reported by Simon Josefsson.
73095 2008-12-08  Bruno Haible  <bruno@clisp.org>
73097         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
73098         applied to variables. Needed on MacOS X 10.4/PowerPC.
73099         Reported by Simon Josefsson.
73101 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
73102         and Eric Blake  <ebb9@byu.net>
73104         assert: honor --enable-assert
73105         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
73106         order to honor --enable-assert, rather than treating it as a
73107         synonym for --disable-assert.
73109 2008-12-08  Jim Meyering  <meyering@redhat.com>
73111         * lib/posixtm.c: Remove now-useless declaration of mktime.
73113         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
73115 2008-12-07  Bruno Haible  <bruno@clisp.org>
73117         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
73118         test_once): Mark functions as static.
73119         * tests/test-tls.c (test_tls): Likewise.
73121 2008-12-07  Bruno Haible  <bruno@clisp.org>
73123         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73124         iconv_register_autodetect.
73126 2008-12-07  Jim Meyering  <meyering@redhat.com>
73128         posixtm.c: avoid a warning
73129         * lib/posixtm.c (posixtime): Don't initialize tm0.
73130         It's no longer needed to placate gcc4's -Wuninitialized,
73131         and the attempt to placate would elicit a new warning.
73133         unicodeio.c: mark unused parameters
73134         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73135         (fallback_failure_callback): Likewise.
73137 2008-12-07  Bruno Haible  <bruno@clisp.org>
73139         * gnulib-tool (func_create_testdir): When building the tests
73140         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73141         Reported by Simon Josefsson.
73143 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73147 2008-12-06  Bruno Haible  <bruno@clisp.org>
73149         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73150         Suggested by Eric Blake.
73152 2008-12-06  Bruno Haible  <bruno@clisp.org>
73154         Fix a c-stack test failure on MacOS X.
73155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73156         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73157         handler for SIGBUS as well.
73158         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73159         install a signal handler for SIGBUS as well.
73160         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73162 2008-12-06  Bruno Haible  <bruno@clisp.org>
73164         Advocacy documentation.
73165         * doc/gnulib-intro.texi (Benefits): New section.
73166         * doc/gnulib.texi: Update.
73168 2008-12-06  Bruno Haible  <bruno@clisp.org>
73170         Document the 'manywarnings' module.
73171         * doc/manywarnings.texi: New file.
73172         * doc/gnulib.texi: Include it.
73174 2008-12-05  Eric Blake  <ebb9@byu.net>
73176         tests: silence some gcc warnings
73177         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73178         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73179         type mismatches.
73181 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73182             Bruno Haible  <bruno@clisp.org>
73184         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73186 2008-11-29  Jim Meyering  <meyering@redhat.com>
73188         unicodeio.c: mark unused parameters
73189         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73190         (fallback_failure_callback): Likewise.
73192         fts: fix a thinko
73193         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73194         (set_stat_type): Return S_IF*-valued "type" directly.
73195         Prompted by James Youngman's spotting a related bug.
73196         Confirmed by further testing through find.
73198         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73199         * lib/fts.c (D_TYPE): Define.
73200         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73201         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73202         (s_ifmt_shift_bits): New function.
73203         (set_stat_type): New function.
73204         (fts_build): When not calling fts_stat, call set_stat_type
73205         to propagate dirent.d_type info to fts_read caller.
73206         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73207         fts_statp->st_mode type information may be valid.
73209 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73211         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73212         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73213         <sds@gnu.org>.
73215 2008-11-20  Bruno Haible  <bruno@clisp.org>
73217         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73218         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73219         INCLUDE_NEXT.
73220         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73221         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73222         * modules/math (Makefile.am): Substitute
73223         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73224         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73226 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73227             Bruno Haible  <bruno@clisp.org>
73229         * lib/stdint.in.h: Define all type macros so that their expansion is
73230         a single typedef'ed token. Fixes a compilation failure in Boost which
73231         does "using ::int8_t;".
73233 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73235         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73236         gl_MANYWARN_ALL_GCC.
73237         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73238         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73239         * modules/manywarnings: New file.
73240         * MODULES.html.sh: Mention manywarnings module.
73242 2008-11-18  Bruno Haible  <bruno@clisp.org>
73244         * doc/gnulib-tool.texi (Unit tests): New section.
73246 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73248         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73249         paths like 'lib/po/foo.po'.
73251 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73253         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73254         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73256 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73258         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73259         parameter works.
73261 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73263         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73265 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73267         * modules/parse-duration-tests: New file.
73268         * tests/test-parse-duration.sh: New file.
73269         * tests/test-parse-duration.c: New file.
73271         New module 'parse-duration'.
73272         * lib/parse-duration.h: New file.
73273         * lib/parse-duration.c: New file.
73274         * modules/parse-duration: New file.
73276 2008-11-17  Bruno Haible  <bruno@clisp.org>
73278         * tests/test-select-out.sh: Comment out the first pipe test.
73279         Reported by Simon Josefsson.
73281 2008-11-17  Bruno Haible  <bruno@clisp.org>
73283         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73285         gl_HOSTENT.
73287 2008-11-17  Bruno Haible  <bruno@clisp.org>
73289         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73290         -lnetwork and -lnet. Needed for Haiku and BeOS.
73292 2008-11-16  Bruno Haible  <bruno@clisp.org>
73294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73296 2008-11-16  Bruno Haible  <bruno@clisp.org>
73298         Avoid test failure on Haiku.
73299         * tests/test-fsync.c: Include <errno.h>.
73300         (main): Don't require that fsync (0) fails.
73302 2008-11-15  Bruno Haible  <bruno@clisp.org>
73304         New module 'hostent'.
73305         * modules/hostent: New file.
73306         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73308 2008-11-15  Bruno Haible  <bruno@clisp.org>
73310         New module 'servent'.
73311         * modules/servent: New file.
73312         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73314 2008-11-15  Bruno Haible  <bruno@clisp.org>
73316         Avoid generating same test program with two different rules.
73317         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73318         test-frexp to test-frexp-nolibm.
73319         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73320         test-frexpl to test-frexpl-nolibm.
73322 2008-11-15  Bruno Haible  <bruno@clisp.org>
73324         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73325         $(FREXPL_LIBM).
73327 2008-11-15  Bruno Haible  <bruno@clisp.org>
73329         * lib/netdb.in.h: Activate the definitions also when the system's
73330         <netdb.h> has 'struct addrinfo'.
73331         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73332         EAI_OVERFLOW or AI_NUMERICSERV.
73333         * doc/posix-headers/netdb.texi: Document the problem.
73335 2008-11-15  Bruno Haible  <bruno@clisp.org>
73337         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73339         Make the 'sched' module work on platforms where <sched.h> exists but
73340         is incomplete (such as Haiku).
73341         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73342         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73343         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73344         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73345         HAVE_STRUCT_SCHED_PARAM.
73346         * modules/sched (Depends-on): Add include_next.
73347         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73348         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73349         * doc/posix-headers/sched.texi: Document the issue.
73351 2008-11-13  Jim Meyering  <meyering@redhat.com>
73353         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73354         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73355         test would fail due to the difference in the Report bugs to ...
73356         line.  The expected address is empty, "<>", while the actual
73357         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73359 2008-11-12  Bruno Haible  <bruno@clisp.org>
73361         lstat: don't compile lstat.c on systems lacking lstat
73362         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73363         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73364         Reported by Daniel P. Berrange via Jim Meyering.
73366 2008-11-12  Jim Meyering  <meyering@redhat.com>
73368         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73370 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73372         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73373         instead.
73375 2008-11-12  Bruno Haible  <bruno@clisp.org>
73377         * lib/unicodeio.c: Include unistr.h.
73378         (utf8_wctomb): Remove function.
73379         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73381 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73383         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73384         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73385         <bruno@clisp.org>.
73386         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73388 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73390         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73391         * doc/gnulib.texi: Add section for warnings.
73393 2008-11-11  Bruno Haible  <bruno@clisp.org>
73395         * lib/sockets.h: Add a comment.
73397 2008-11-11  Karl Berry  <karl@gnu.org>
73399         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73401 2008-11-11  Eric Blake  <ebb9@byu.net>
73403         fdl.texi: avoid git symlinks
73404         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73406 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73408         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73410 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73412         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73413         (gl_WARN_ADD): Substitute $2 if literal.
73415 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73417         * m4/warning.m4: Remove.
73419 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73421         * m4/warnings.m4: Almost complete rewrite. :-)
73423 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73425         * modules/warnings: New module.
73426         * m4/warnings.m4: New file.
73427         * MODULES.html.sh: Mention warnings module.
73428         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73429         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73431 2008-11-10  Eric Blake  <ebb9@byu.net>
73433         fdl.texi: make a symlink to the latest version
73434         * doc/standards.texi: Revert today's earlier change.
73435         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73436         * doc/fdl.texi: ...and replace this with a symlink to the newer
73437         fdl-1.3.texi.
73439 2008-11-10  Bruno Haible  <bruno@clisp.org>
73441         * tests/test-select-fd.c (main): Accept the result file name as fourth
73442         argument.
73443         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73444         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73446 2008-11-10  Bruno Haible  <bruno@clisp.org>
73448         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73449         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73450         as autoconf-substituted macros.
73451         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73453         gl_NETDB_H_DEFAULTS. Set these variables.
73454         * modules/netdb (Makefile.am): Substitute these variables.
73456 2008-11-10  Eric Blake  <ebb9@byu.net>
73458         standards.texi: include correct file for FDL 1.3
73459         * doc/standards.texi (GNU Free Documentation License): Change
73460         include file to pull in FDL 1.3, not 1.2.
73462         fdl.texi: revert accidental change to license
73463         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73465 2008-11-10  Bruno Haible  <bruno@clisp.org>
73467         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73468         cross-compiling guesses also when the native compile gives no result.
73470 2008-11-10  Bruno Haible  <bruno@clisp.org>
73472         * lib/spawni.c (__spawni): Force variable into the stack.
73474 2008-11-10  Bruno Haible  <bruno@clisp.org>
73476         Add support for Haiku.
73477         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73478         glibc and BeOS, but also on Haiku.
73479         * lib/fpurge.c (fpurge): Likewise.
73480         * lib/freadable.c (freadable): Likewise.
73481         * lib/freadahead.c (freadahead): Likewise.
73482         * lib/freading.c (freading): Likewise.
73483         * lib/freadptr.c (freadptr): Likewise.
73484         * lib/freadseek.c (freadptrinc): Likewise.
73485         * lib/fseeko.c (rpl_fseeko): Likewise.
73486         * lib/fseterr.c (fseterr): Likewise.
73487         * lib/fwritable.c (fwritable): Likewise.
73488         * lib/fwriting.c (fwriting): Likewise.
73489         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73491 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73493         * lib/config.charset: Treat Haiku like BeOS.
73495 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73497         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73498         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73500 2008-11-08  Bruno Haible  <bruno@clisp.org>
73502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73503         AC_CACHE_CHECK.
73505 2008-11-08  Bruno Haible  <bruno@clisp.org>
73507         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73509 2008-11-08  Bruno Haible  <bruno@clisp.org>
73511         * tests/test-select-fd.c: New file.
73512         * tests/test-select-in.sh: New file.
73513         * tests/test-select-out.sh: New file.
73514         * tests/test-select-stdin.c: New file.
73515         * modules/select-tests (Files): Add the new files.
73516         (Depends-on): Add gettimeofday.
73517         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73518         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73519         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73521 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73522             Bruno Haible  <bruno@clisp.org>
73524         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73526 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73528         * build-aux/pmccabe2html: Added support for C++ source files.
73530 2008-11-05  Ben Pfaff  <blp@gnu.org>
73532         Fix lib/close.c build on Windows.
73533         * modules/close (Files): Add lib/w32sock.h.
73535 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73537         Accept Bison's NEWS format.
73538         * build-aux/announce-gen (print_news_deltas): Tweak
73539         $re_prefix.
73541 2008-11-04  Bruno Haible  <bruno@clisp.org>
73543         * modules/random_r (Maintainer): Add glibc.
73545 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73547         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73548         by karl@freefriends.org (Karl Berry).
73549         * doc/alloca.texi: Likewise.
73550         * doc/c-ctype.texi: Likewise.
73551         * doc/c-strcase.texi: Likewise.
73552         * doc/c-strcaseeq.texi: Likewise.
73553         * doc/c-strcasestr.texi: Likewise.
73554         * doc/c-strstr.texi: Likewise.
73555         * doc/c-strtod.texi: Likewise.
73556         * doc/c-strtold.texi: Likewise.
73557         * doc/ctime.texi: Likewise.
73558         * doc/error.texi: Likewise.
73559         * doc/fdl.texi: Likewise.
73560         * doc/gcd.texi: Likewise.
73561         * doc/getdate.texi: Likewise.
73562         * doc/gnulib-intro.texi: Likewise.
73563         * doc/gnulib-tool.texi: Likewise.
73564         * doc/gnulib.texi: Likewise.
73565         * doc/inet_ntoa.texi: Likewise.
73566         * doc/maintain.texi: Likewise.
73567         * doc/make-stds.texi: Likewise.
73568         * doc/quote.texi: Likewise.
73569         * doc/regexprops-generic.texi: Likewise.
73570         * doc/standards.texi: Likewise.
73571         * doc/verify.texi: Likewise.
73572         * doc/visibility.texi: Likewise.
73573         * doc/gnulib.texi (GNU Free Documentation License): Include
73574         fdl-1.3.texi instead of fdl.texi.
73576 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73578         * doc/fdl-1.3.texi: New file, from
73579         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73580         * modules/fdl-1.3: Add.
73581         * MODULES.html.sh: Add fdl-1.3.
73583 2008-11-03  Bruno Haible  <bruno@clisp.org>
73585         Make determination of absolute name of header file work with AIX xlc.
73586         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73587         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73588         preprocessing.
73589         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73590         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73592 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73594         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73595         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73596         <ludo@gnu.org>.
73598 2008-11-02  Bruno Haible  <bruno@clisp.org>
73600         Mark 'strpbrk' obsolete.
73601         * modules/strpbrk (Status, Notice): New sections.
73602         * modules/strtok_r (Depends-on): Add strpbrk.
73604 2008-11-02  Bruno Haible  <bruno@clisp.org>
73606         Mark 'strdup' obsolete.
73607         * modules/strdup (Status, Notice): New sections.
73608         * modules/findprog (Depends-on): Add strdup.
73609         * modules/getaddrinfo (Depends-on): Likewise.
73610         * modules/localename (Depends-on): Likewise.
73611         * modules/relocatable-lib (Depends-on): Likewise.
73612         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73613         * modules/relocatable-prog (Depends-on): Likewise.
73614         * modules/trim (Depends-on): Likewise.
73615         * modules/unictype/gen-ctype (Depends-on): Likewise.
73616         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73618 2008-11-02  Bruno Haible  <bruno@clisp.org>
73620         Mark 'strcspn' obsolete.
73621         * modules/strcspn (Status, Notice): New sections.
73623 2008-11-02  Bruno Haible  <bruno@clisp.org>
73625         Mark 'rmdir' obsolete.
73626         * modules/rmdir (Status, Notice): New sections.
73627         * modules/clean-temp (Depends-on): Add rmdir.
73628         * modules/openat (Depends-on): Likewise.
73630 2008-11-02  Bruno Haible  <bruno@clisp.org>
73632         Mark 'raise' obsolete.
73633         * modules/raise (Status, Notice): New sections.
73634         (Include): Specify <signal.h>.
73635         * modules/stdio (Depends-on): Add raise.
73636         * modules/write (Depends-on): Likewise.
73638 2008-11-02  Bruno Haible  <bruno@clisp.org>
73640         Mark 'memset' obsolete.
73641         * modules/memset (Status, Notice): New sections.
73643 2008-11-02  Bruno Haible  <bruno@clisp.org>
73645         Mark 'memmove' obsolete.
73646         * modules/memmove (Status, Notice): New sections.
73647         * modules/argp (Depends-on): Add memmove.
73648         * modules/argz (Depends-on): Likewise.
73649         * modules/canonicalize (Depends-on): Likewise.
73650         * modules/canonicalize-lgpl (Depends-on): Likewise.
73651         * modules/fts (Depends-on): Likewise.
73652         * modules/getcwd (Depends-on): Likewise.
73653         * modules/human (Depends-on): Likewise.
73654         * modules/regex (Depends-on): Likewise.
73655         * modules/striconveh (Depends-on): Likewise.
73656         * modules/trim (Depends-on): Likewise.
73657         * modules/unistr/u8-move (Depends-on): Likewise.
73658         * modules/unistr/u16-move (Depends-on): Likewise.
73659         * modules/unistr/u32-move (Depends-on): Likewise.
73661 2008-11-02  Bruno Haible  <bruno@clisp.org>
73663         Mark 'memcpy' obsolete.
73664         * modules/memcpy (Status, Notice): New sections.
73666 2008-11-02  Bruno Haible  <bruno@clisp.org>
73668         Mark 'memcmp' obsolete.
73669         * modules/memcmp (Status, Notice): New sections.
73670         * modules/argmatch (Depends-on): Add memchr.
73671         * modules/backupfile (Depends-on): Likewise.
73672         * modules/c-strcasestr (Depends-on): Likewise.
73673         * modules/crypto/des (Depends-on): Likewise.
73674         * modules/csharpcomp (Depends-on): Likewise.
73675         * modules/fnmatch (Depends-on): Likewise.
73676         * modules/git-merge-changelog (Depends-on): Likewise.
73677         * modules/isnand (Depends-on): Likewise.
73678         * modules/isnand-nolibm (Depends-on): Likewise.
73679         * modules/isnanf (Depends-on): Likewise.
73680         * modules/isnanf-nolibm (Depends-on): Likewise.
73681         * modules/isnanl (Depends-on): Likewise.
73682         * modules/isnanl-nolibm (Depends-on): Likewise.
73683         * modules/mbchar (Depends-on): Likewise.
73684         * modules/memcoll (Depends-on): Likewise.
73685         * modules/quotearg (Depends-on): Likewise.
73686         * modules/regex (Depends-on): Likewise.
73687         * modules/relocatable-prog (Depends-on): Likewise.
73688         * modules/same (Depends-on): Likewise.
73689         * modules/signbit (Depends-on): Likewise.
73690         * modules/strcasestr-simple (Depends-on): Likewise.
73691         * modules/unictype/gen-ctype (Depends-on): Likewise.
73692         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73693         * modules/uniname/uniname (Depends-on): Likewise.
73694         * modules/unistr/u8-cmp (Depends-on): Likewise.
73696 2008-11-02  Bruno Haible  <bruno@clisp.org>
73698         Mark 'memchr' obsolete.
73699         * modules/memchr (Status, Notice): New sections.
73700         * modules/argp (Depends-on): Add memchr.
73701         * modules/base64 (Depends-on): Likewise.
73702         * modules/c-strcasestr (Depends-on): Likewise.
73703         * modules/chdir-long (Depends-on): Likewise.
73704         * modules/fnmatch (Depends-on): Likewise.
73705         * modules/getsubopt (Depends-on): Likewise.
73706         * modules/git-merge-changelog (Depends-on): Likewise.
73707         * modules/glob (Depends-on): Likewise.
73708         * modules/strcasestr-simple (Depends-on): Likewise.
73709         * modules/strnlen (Depends-on): Likewise.
73711 2008-11-02  Bruno Haible  <bruno@clisp.org>
73713         Mark 'atexit' obsolete.
73714         * modules/atexit (Status, Notice): New sections.
73715         * modules/chdir-long (Depends-on): Add atexit.
73716         * modules/wait-process (Depends-on): Likewise.
73718 2008-11-02  Bruno Haible  <bruno@clisp.org>
73720         * gnulib-tool: New option --with-obsolete.
73721         (func_usage): Document it.
73722         (func_modules_transitive_closure): Drop obsolete dependencies if
73723         incobsolete is not true.
73724         (func_import): Read and save the incobsolete variable to the cache.
73726 2008-11-02  Bruno Haible  <bruno@clisp.org>
73728         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73729         * gnulib-tool: New option --extract-status.
73730         (func_usage): Document it.
73731         (sed_extract_prog): Recognize it.
73732         (func_get_status): New function.
73734 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73736         * modules/sockets (License): Change from LGPL to LGPLv2+.
73738 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73740         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73742 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73744         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73745         Mention times and sys_times.
73746         * modules/sys_times, modules/sys_times-tests: New modules.
73747         * modules/times, modules/times-tests: Likewise
73748         * m4/sys_times_h.m4: New file.
73749         * lib/sys_times.in.h: Likewise
73750         * lib/times.c: Likewise.
73751         * tests/test-sys_times.c: Likewise.
73752         * tests/test-times.c: Likewise.
73753         * doc/posix-headers/sys_times.texi: Update.
73754         * doc/posix-functions/times.texi: Update.
73756 2008-10-28  Jim Meyering  <meyering@redhat.com>
73758         * modules/tempname (Depends-on): Add lstat.
73760         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73762 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73764         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73765         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73766         using idiom used elsewhere in gnulib.
73768 2008-10-27  Jim Meyering  <meyering@redhat.com>
73770         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73772 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73774         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73775         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73776         programs.
73777         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73779 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73781         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73783 2008-10-27  Bruno Haible  <bruno@clisp.org>
73785         * tests/test-lstat.c: Include <stdio.h>.
73787 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73789         * modules/lstat-tests: New module.
73790         * tests/test-lstat.c: New file.
73792 2008-10-26  Jim Meyering  <meyering@redhat.com>
73794         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73796 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73797             Bruno Haible  <bruno@clisp.org>
73799         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73800         * modules/configmake (Include): Add a note that the include must come
73801         after all system headers.
73802         * lib/javaversion.c: Include configmake.h after all other includes.
73804 2008-10-26  Bruno Haible  <bruno@clisp.org>
73806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73807         HAVE_STRUCT_RANDOM_DATA to 1.
73808         (gl_STDLIB_H): Simplify.
73810 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73812         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73813         substitute HAVE_STRUCT_RANDOM_DATA.
73814         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73815         random_data.
73816         * modules/stdlib (Makefile.am): Substitute
73817         HAVE_STRUCT_RANDOM_DATA.
73819 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73821         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73822         * doc/gnulib-intro.texi (Copyright): Likewise.
73824 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73826         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73827         findings.
73829 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73830             Bruno Haible  <bruno@clisp.org>
73832         * lib/unistd.in.h: Include <winsock2.h>.
73833         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73834         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73835         Provide dummy declarations.
73836         (gethostname): Override.
73837         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73838         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73839         gl_PREREQ_SYS_H_WINSOCK2.
73840         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73841         * doc/posix-functions/gethostname.texi: More details.
73843 2008-10-25  Bruno Haible  <bruno@clisp.org>
73845         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73846         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73847         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73849         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73850         here ...
73851         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73853         gl_UNISTD_H_DEFAULTS.
73855 2008-10-25  Eric Blake  <ebb9@byu.net>
73857         signbit: avoid spurious compiler failure
73858         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73859         declarations inside function.
73861 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73862             Bruno Haible  <bruno@clisp.org>
73864         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73865         * modules/random_r (Depends-on): Add stdint.
73867 2008-10-24  Bruno Haible  <bruno@clisp.org>
73869         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73870         Eggert.
73871         * modules/strerror (License): Likewise.
73873 2008-10-24  Jim Meyering  <meyering@redhat.com>
73875         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73876         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73878 2008-10-24  Eric Blake  <ebb9@byu.net>
73880         getgroups: fix compilation when getgroups is available
73881         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73882         but with <config.h> override of getgroups disabled.
73884 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73886         * doc/gnulib.texi (Header files): Add note about C++ problems.
73887         Explained by Bruno Haible <bruno@clisp.org>.
73889 2008-10-23  Bruno Haible  <bruno@clisp.org>
73891         Define a dummy SA_NODEFER macro on Interix.
73892         * lib/signal.in.h (SA_NODEFER): Define fallback.
73893         Reported by Aleksey Cheusov <cheusov@tut.by> via
73894         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73896 2008-10-23  Bruno Haible  <bruno@clisp.org>
73898         * modules/freadahead (License): Change to LGPLv2+.
73899         Suggested by Simon Josefsson.
73901 2008-10-23  Jim Meyering  <meyering@redhat.com>
73903         random_r: new module
73904         * modules/random_r: New file.
73905         * m4/random_r.m4: New file.
73906         * lib/random_r.c: New file, from glibc.
73907         * modules/random_r-tests: New file.
73908         * tests/test-random_r.c: New file.
73909         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73910          Declare.
73911         (RAND_MAX): Define.
73912         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73913         * modules/stdlib: Substitute them, too.
73914         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73915         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73916         * doc/glibc-functions/random_r.texi: Likewise.
73917         * doc/glibc-functions/setstate_r.texi: Likewise.
73918         * doc/glibc-functions/srandom_r.texi: Likewise.
73919         * config/srclist.txt: Mention it.
73921 2008-10-23  David Lutterkort  <lutter@redhat.com>
73923         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73924         link requirement
73926 2008-10-23  Jim Meyering  <meyering@redhat.com>
73928         selinux-h: mark parameters of stub functions as intentionally unused
73929         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73930         * lib/se-context.in.h: Likewise.
73932 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73934         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73936 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73938         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73940 2008-10-22  Eric Blake  <ebb9@byu.net>
73942         glthread/thread: avoid compiler warning
73943         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73944         Add unreachable abort to silence compiler.
73946 2008-10-22  Eric Blake  <ebb9@byu.net>
73948         netdb: also supply struct addrinfo for cygwin 1.5.x
73949         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73950         older cygwin.
73951         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73952         cygwin.
73953         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73955 2008-10-22  Bruno Haible  <bruno@clisp.org>
73957         * users.txt: Update entry about pspp.
73959 2008-10-21  Bruno Haible  <bruno@clisp.org>
73961         Simplification.
73962         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73963         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73965         Simplification.
73966         * lib/ioctl.c (ioctl): Don't undefine.
73967         * lib/socket.c (socket): Don't undefine.
73969         Remove unused module indicator macros.
73970         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73971         GNULIB_$1 as a C macro.
73973         * doc/posix-functions/close.texi: Undo last change.
73974         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73975         Windows platforms.
73977 2008-10-21  Bruno Haible  <bruno@clisp.org>
73979         Add gethostname() declaration to <unistd.h>.
73980         * lib/unistd.in.h (gethostname): New declaration.
73981         * lib/gethostname.c: Include <unistd.h>.
73982         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73983         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73985         and HAVE_GETHOSTNAME.
73986         * modules/gethostname (Depends-on): Add unistd.
73987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73988         (Include): Specify <unistd.h>.
73989         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73990         HAVE_GETHOSTNAME.
73991         * tests/test-gethostname.c: Include <unistd.h> first.
73993 2008-10-21  Bruno Haible  <bruno@clisp.org>
73995         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73996         * modules/select-tests (Depends-on): Likewise.
73997         Reported by Simon Josefsson.
73999 2008-10-21  Simon Josefsson  <simon@josefsson.org>
74001         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
74002         * lib/accept.c: New file, based on winsock.c.
74003         * lib/bind.c: New file, based on winsock.c.
74004         * lib/connect.c: New file, based on winsock.c.
74005         * lib/getpeername.c: New file, based on winsock.c.
74006         * lib/getsockname.c: New file, based on winsock.c.
74007         * lib/getsockopt.c: New file, based on winsock.c.
74008         * lib/ioctl.c: New file, based on winsock.c.
74009         * lib/listen.c: New file, based on winsock.c.
74010         * lib/recv.c: New file, based on winsock.c.
74011         * lib/recvfrom.c: New file, based on winsock.c.
74012         * lib/send.c: New file, based on winsock.c.
74013         * lib/sendto.c: New file, based on winsock.c.
74014         * lib/setsockopt.c: New file, based on winsock.c.
74015         * lib/shutdown.c: New file, based on winsock.c.
74016         * lib/socket.c: New file, based on winsock.c.
74017         * lib/w32sock.h: New file, based on winsock.c.
74018         * lib/winsock.c: Remove file.
74019         * modules/accept: Likewise.
74020         * modules/bind: Likewise.
74021         * modules/connect: Likewise.
74022         * modules/getpeername: Likewise.
74023         * modules/getsockname: Likewise.
74024         * modules/getsockopt: Likewise.
74025         * modules/ioctl: Likewise.
74026         * modules/listen: Likewise.
74027         * modules/recv: Likewise.
74028         * modules/recvfrom: Likewise.
74029         * modules/send: Likewise.
74030         * modules/sendto: Likewise.
74031         * modules/setsockopt: Likewise.
74032         * modules/shutdown: Likewise.
74033         * modules/socket: Use socket.c instead of winsock.c.
74034         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
74035         * doc/posix-functions/accept.texi: Doc fix.
74036         * doc/posix-functions/bind.texi: Doc fix.
74037         * doc/posix-functions/close.texi: Doc fix.
74038         * doc/posix-functions/connect.texi: Doc fix.
74039         * doc/posix-functions/getpeername.texi: Doc fix.
74040         * doc/posix-functions/getsockname.texi: Doc fix.
74041         * doc/posix-functions/getsockopt.texi: Doc fix.
74042         * doc/posix-functions/ioctl.texi: Doc fix.
74043         * doc/posix-functions/listen.texi: Doc fix.
74044         * doc/posix-functions/recv.texi: Doc fix.
74045         * doc/posix-functions/recvfrom.texi: Doc fix.
74046         * doc/posix-functions/send.texi: Doc fix.
74047         * doc/posix-functions/sendto.texi: Doc fix.
74048         * doc/posix-functions/setsockopt.texi: Doc fix.
74049         * doc/posix-functions/shutdown.texi: Doc fix.
74050         * doc/posix-functions/socket.texi: Doc fix.
74052 2008-10-20  Bruno Haible  <bruno@clisp.org>
74054         Take into account the role of SIGABRT_COMPAT on Windows 2008.
74055         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
74056         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
74057         as an alias for SIGABRT.
74058         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
74059         (sigaction): Map it to SIGABRT.
74060         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
74062 2008-10-20  Bruno Haible  <bruno@clisp.org>
74064         * lib/fts.c: Don't include lstat.h.
74065         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
74067         Move the lstat() declaration to <sys/stat.h>.
74068         * lib/lstat.h: Remove file.
74069         * lib/sys_stat.in.h: Add special invocation convention.
74070         (lstat): New declaration.
74071         * lib/lstat.c (orig_lstat): New function.
74072         (rpl_lstat): Use orig_lstat instead of lstat.
74073         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
74074         AC_C_INLINE. Set REPLACE_LSTAT.
74075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
74076         and REPLACE_LSTAT.
74077         * modules/lstat (Files): Remove lib/lstat.h.
74078         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74079         (Include): Specify <sys/stat.h> instead of lstat.h.
74080         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
74081         REPLACE_LSTAT.
74082         * NEWS: Mention the change.
74084 2008-10-20  Bruno Haible  <bruno@clisp.org>
74086         * modules/posix_spawn-tests: New file.
74087         * tests/test-posix_spawn3.c: New file.
74089 2008-10-20  Bruno Haible  <bruno@clisp.org>
74091         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
74092         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74093         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
74094         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74095         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
74097 2008-10-20  Bruno Haible  <bruno@clisp.org>
74099         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
74100         of posix_spawn on AIX 5.3.
74102 2008-10-20  Bruno Haible  <bruno@clisp.org>
74104         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
74106 2008-10-20  Bruno Haible  <bruno@clisp.org>
74108         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
74109         of AC_LANG_PROGRAM.
74111 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74113         * lib/netdb.in.h: Don't define GNU specific constants until they
74114         are supported or needed.  Reported by Bruno Haible
74115         <bruno@clisp.org>.
74117 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74119         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
74121 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74123         * lib/getaddrinfo.h: Remove file.
74124         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74125         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74126         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74127         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74128         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74129         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74130         * tests/test-getaddrinfo.c: Likewise.
74131         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74132         * NEWS: Mention change.
74134 2008-10-19  Bruno Haible  <bruno@clisp.org>
74136         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74138 2008-10-19  Bruno Haible  <bruno@clisp.org>
74140         * lib/wait-process.c: Include simply <sys/wait.h>.
74141         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74142         WIFSTOPPED): Remove fallback definitions.
74143         * modules/wait-process (Depends-on): Add sys_wait.
74145         New module 'sys_wait'.
74146         * modules/sys_wait: New file.
74147         * lib/sys_wait.in.h: New file, partially copied from
74148         lib/wait-process.c.
74149         * m4/sys_wait_h.m4: New file.
74150         * doc/posix-headers/sys_wait.texi: Mention the new module.
74152 2008-10-19  Bruno Haible  <bruno@clisp.org>
74154         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74156 2008-10-19  Bruno Haible  <bruno@clisp.org>
74158         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74159         * lib/wait-process.c (WAIT_T): Remove type.
74160         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74161         (wait_subprocess): Update.
74163 2008-10-19  Bruno Haible  <bruno@clisp.org>
74165         New module 'atoll'.
74166         * modules/atoll: New file.
74167         * lib/stdlib.in.h (atoll): New declaration.
74168         * lib/atoll.c: New file, from glibc with modifications.
74169         * m4/atoll.m4: New file.
74170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74171         HAVE_ATOLL.
74172         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74173         * doc/posix-functions/atoll.texi: Mention the new module.
74175 2008-10-19  Bruno Haible  <bruno@clisp.org>
74177         Add strtoull() declaration to <stdlib.h>.
74178         * lib/stdlib.in.h (strtoull): New declaration.
74179         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74180         Set HAVE_STRTOULL.
74181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74182         HAVE_STRTOULL.
74183         * modules/strtoull (Depends-on): Add stdlib.
74184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74185         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74186         HAVE_STRTOULL.
74188 2008-10-19  Bruno Haible  <bruno@clisp.org>
74190         Add strtoll() declaration to <stdlib.h>.
74191         * lib/stdlib.in.h (strtoll): New declaration.
74192         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74193         Set HAVE_STRTOLL.
74194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74195         HAVE_STRTOLL.
74196         * modules/strtoll (Depends-on): Add stdlib.
74197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74198         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74200 2008-10-19  Bruno Haible  <bruno@clisp.org>
74202         * modules/bcopy (Depends-on): Add strings.
74203         (Include): Specify <strings.h>.
74205 2008-10-19  Bruno Haible  <bruno@clisp.org>
74207         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74209 2008-10-19  Bruno Haible  <bruno@clisp.org>
74211         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74212         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74213         mingw.
74215 2008-10-19  Bruno Haible  <bruno@clisp.org>
74217         * lib/atanl.c: Don't include isnanl.h.
74218         * lib/cosl.c: Likewise.
74219         * lib/ldexpl.c: Likewise.
74220         * lib/logl.c: Likewise.
74221         * lib/sinl.c: Likewise.
74222         * lib/sqrtl.c: Likewise.
74223         * lib/tanl.c: Likewise.
74225         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74226         * lib/isnanf.h: Remove file.
74227         * lib/isnand.h: Remove file.
74228         * lib/isnanl.h: Remove file.
74229         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74230         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74231         macros.
74232         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74233         HAVE_ISNANF, don't define it as a C macro.
74234         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74235         HAVE_ISNAND, don't define it as a C macro.
74236         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74237         HAVE_ISNANL, don't define it as a C macro.
74238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74239         HAVE_ISNAN[FDL].
74240         * modules/isnanf (Files): Remove lib/isnanf.h.
74241         (Depends-on): Add math.
74242         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74243         (Include): Specify <math.h> instead of isnanf.h.
74244         * modules/isnand (Files): Remove lib/isnand.h.
74245         (Depends-on): Add math.
74246         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74247         (Include): Specify <math.h> instead of isnand.h.
74248         * modules/isnanl (Files): Remove lib/isnanl.h.
74249         (Depends-on): Add math.
74250         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74251         (Include): Specify <math.h> instead of isnanl.h.
74252         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74253         HAVE_ISNAN[FDL].
74254         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74255         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74256         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74257         * NEWS: Mention the change.
74259 2008-10-18  Bruno Haible  <bruno@clisp.org>
74261         Add getusershell(), setusershell(), endusershell() declarations to
74262         <unistd.h>.
74263         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74264         declarations.
74265         * lib/getusershell.c: Include unistd.h.
74266         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74267         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74268         HAVE_GETUSERSHELL.
74269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74270         and HAVE_GETUSERSHELL.
74271         * modules/getusershell (Depends-on): Add unistd, extensions.
74272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74273         (Include): Specify <unistd.h>.
74274         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74275         HAVE_GETUSERSHELL.
74277 2008-10-18  Bruno Haible  <bruno@clisp.org>
74279         Add a getloadavg() declaration to <stdlib.h>.
74280         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74281         getloadavg declaration.
74282         (getloadavg): New declaration.
74283         * lib/getloadavg.c: Include <stdlib.h> first.
74284         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74285         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74286         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74288         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74289         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74290         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74291         (Include): Specify <stdlib.h>.
74292         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74293         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74295 2008-10-18  Bruno Haible  <bruno@clisp.org>
74297         * lib/dirchownmod.c: Don't include lchmod.h.
74299         Move the lchmod() declaration to <sys/stat.h>.
74300         * lib/lchmod.h: Remove file.
74301         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74302         (lchmod): New declaration, moved here from lib/lchown.h.
74303         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74304         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74306         and HAVE_LCHMOD.
74307         * modules/lchmod (Files): Remove lib/lchmod.h.
74308         (Depends-on): Add sys_stat, extensions.
74309         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74310         (Include): Specify <sys/stat.h> instead of lchmod.h.
74311         * modules/sys_stat (Depends-on): Add link-warning.
74312         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74313         definition of GL_LINK_WARNING.
74314         * NEWS: Mention the change.
74316 2008-10-18  Bruno Haible  <bruno@clisp.org>
74318         * lib/fchdir.c: Don't include dirfd.h.
74319         * lib/fts.c: Likewise.
74320         * lib/getcwd.c: Likewise.
74321         * lib/glob.c: Likewise.
74323         Move the dirfd() declaration to <dirent.h>.
74324         * lib/dirfd.h: Remove file.
74325         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74326         (dirfd): New declaration.
74327         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74329         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74330         HAVE_DECL_DIRFD.
74331         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74332         HAVE_DECL_DIRFD.
74333         * modules/dirfd (Files): Remove lib/dirfd.h.
74334         (Depends-on): Add dirent, extensions.
74335         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74336         (Include): Specify <dirent.h> instead of dirfd.h.
74337         * modules/dirent (Depends-on): Add link-warning.
74338         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74339         definition of GL_LINK_WARNING.
74340         * NEWS: Mention the change.
74342 2008-10-18  Bruno Haible  <bruno@clisp.org>
74344         Move the euidaccess() declaration to <unistd.h>.
74345         * lib/euidaccess.h: Remove file.
74346         * lib/unistd.in.h (euidaccess): New declaration.
74347         * lib/euidaccess.c: Don't include euidaccess.h.
74348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74349         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74351         and HAVE_EUIDACCESS.
74352         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74353         (Depends-on): Add unistd.
74354         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74355         (Include): Specify <unistd.h> instead of euidaccess.h.
74356         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74357         HAVE_EUIDACCESS.
74358         * NEWS: Mention the change.
74360 2008-10-18  Bruno Haible  <bruno@clisp.org>
74362         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74364         Move the getdomainname() declaration to <unistd.h>.
74365         * lib/getdomainname.h: Remove file.
74366         * lib/unistd.in.h (getdomainname): New declaration.
74367         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74368         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74369         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74370         HAVE_GETDOMAINNAME.
74371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74372         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74373         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74374         (Depends-on): Add unistd, extensions.
74375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74376         (Includes): Specify <unistd.h> instead of getdomainname.h.
74377         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74378         HAVE_GETDOMAINNAME.
74379         * NEWS: Mention the change.
74381 2008-10-18  Bruno Haible  <bruno@clisp.org>
74383         * modules/dirent: New file.
74384         * m4/dirent_h.m4: New file.
74385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74386         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74387         * modules/fchdir (Files): Remove lib/dirent.in.h.
74388         (Depends-on): Add dirent.
74389         (Makefile.am): Move rules to modules/dirent.
74390         * doc/posix-headers/dirent.texi: Mention the new module.
74392 2008-10-18  Bruno Haible  <bruno@clisp.org>
74394         Avoid -Wunused-parameter warnings in public gnulib header files.
74395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74396         macro.
74397         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74399 2008-10-18  Bruno Haible  <bruno@clisp.org>
74401         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74402         * doc/glibc-functions/error.texi: Mention the module 'error'.
74403         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74404         * doc/glibc-functions/getdomainname.texi: Mention the module
74405         'getdomainname'.
74406         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74407         * doc/glibc-functions/getpagesize.texi: Mention the module
74408         'getpagesize'.
74409         * doc/glibc-functions/getusershell.texi: Mention the module
74410         'getusershell'.
74411         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74412         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74413         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74414         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74415         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74416         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74417         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74418         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74419         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74420         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74421         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74422         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74423         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74424         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74426 2008-10-17  Bruno Haible  <bruno@clisp.org>
74428         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74429         HP-UX and IRIX, use -0.0L.
74430         * tests/test-ceill.c (minus_zero): Likewise.
74431         * tests/test-floorl.c (minus_zero): Likewise.
74432         * tests/test-frexpl.c (minus_zero): Likewise.
74433         * tests/test-isnan.c (minus_zerol): Likewise.
74434         * tests/test-isnanl.h (minus_zero): Likewise.
74435         * tests/test-ldexpl.c (minus_zero): Likewise.
74436         * tests/test-roundl.c (minus_zero): Likewise.
74437         * tests/test-signbit.c (minus_zerol): Likewise.
74438         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74439         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74440         * tests/test-truncl.c (minus_zero): Likewise.
74441         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74442         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74443         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74444         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74446 2008-10-17  Bruno Haible  <bruno@clisp.org>
74448         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74449         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74450         that it gets activated only for gcc >= 3.0.
74451         * lib/dirent.in.h: Likewise.
74452         * lib/errno.in.h: Likewise.
74453         * lib/fcntl.in.h: Likewise.
74454         * lib/float.in.h: Likewise.
74455         * lib/iconv.in.h: Likewise.
74456         * lib/inttypes.in.h: Likewise.
74457         * lib/locale.in.h: Likewise.
74458         * lib/math.in.h: Likewise.
74459         * lib/netdb.in.h: Likewise.
74460         * lib/netinet_in.in.h: Likewise.
74461         * lib/search.in.h: Likewise.
74462         * lib/signal.in.h: Likewise.
74463         * lib/spawn.in.h: Likewise.
74464         * lib/stdarg.in.h: Likewise.
74465         * lib/stdint.in.h: Likewise.
74466         * lib/stdio.in.h: Likewise.
74467         * lib/stdlib.in.h: Likewise.
74468         * lib/string.in.h: Likewise.
74469         * lib/strings.in.h: Likewise.
74470         * lib/sys_file.in.h: Likewise.
74471         * lib/sys_ioctl.in.h: Likewise.
74472         * lib/sys_select.in.h: Likewise.
74473         * lib/sys_socket.in.h: Likewise.
74474         * lib/sys_stat.in.h: Likewise.
74475         * lib/sys_time.in.h: Likewise.
74476         * lib/sysexits.in.h: Likewise.
74477         * lib/time.in.h: Likewise.
74478         * lib/unistd.in.h: Likewise.
74479         * lib/wchar.in.h: Likewise.
74480         * lib/wctype.in.h: Likewise.
74481         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74483 2008-10-17  Jim Meyering  <meyering@redhat.com>
74485         ignore-value: don't depend on inline module
74486         * modules/ignore-value (Depends-on): Remove 'inline'.
74487         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74488         Suggestion from Bruno Haible.
74490 2008-10-17  Bruno Haible  <bruno@clisp.org>
74492         New implementation of condition variables for Win32.
74493         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74494         (gl_linked_waitqueue_t): New type.
74495         (gl_cond_t): Use it.
74496         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74497         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74498         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74499         (glthread_cond_init_func, glthread_cond_wait_func,
74500         glthread_cond_timedwait_func, glthread_cond_signal_func,
74501         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74502         Reimplemented on the basis of gl_linked_waitqueue_t.
74503         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74504         gl_waitqueue_t.
74505         (gl_rwlock_t): Update.
74506         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74508 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74510         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74511         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74513 2008-10-17  Jim Meyering  <meyering@redhat.com>
74515         ignore-value: new module
74516         * modules/ignore-value: New file.
74517         * lib/ignore-value.h: New file.
74518         * MODULES.html.sh (Compiler warning management): New section,
74519         just for this module.  More to come.
74521 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74523         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74524         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74525         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74527 2008-10-16  Jim Meyering  <meyering@redhat.com>
74529         openat-die.c: avoid 'no previous prototype' warning
74530         * lib/openat-die.c: Include "openat.h".
74531         Reported by Reuben Thomas <rrt@sc3d.org>.
74533 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74535         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74536         * lib/netdb.in.h: Fix typo.
74537         Reported by Bruno Haible  <bruno@clisp.org>
74539         * lib/netdb.in.h: Include sys/socket.h for platforms without
74540         netdb.h, to get structures like hostent on MinGW.
74541         * modules/netdb (Depends-on): Add sys_socket.
74543 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74545         * modules/netdb, modules/netdb-tests: New file.
74546         * m4/netdb_h.m4: New file.
74547         * lib/netdb.in.h: Add, currently just an empty file pending
74548         definitions.
74549         * tests/test-netdb.c: New file.
74550         * doc/posix-headers/netdb.texi: Mention that we replace it if
74551         needed.
74552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74553         netdb.
74555 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74557         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74558         with code.
74560 2008-10-13  Bruno Haible  <bruno@clisp.org>
74562         * lib/glthread/cond.c (glthread_cond_wait_func,
74563         glthread_cond_timedwait_func): Add a comment.
74565 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74567         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74568         * tests/test-select.c: Likewise,
74570 2008-10-13  Bruno Haible  <bruno@clisp.org>
74572         * lib/glthread/cond.c (glthread_cond_wait_func,
74573         glthread_cond_timedwait_func): Fix variable name.
74574         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74576 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74578         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74580         struct sockaddr.sa_len.
74581         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74583 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74585         * build-aux/pmccabe2html: Add css and css_url parameters.
74587 2008-10-12  Bruno Haible  <bruno@clisp.org>
74589         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74590         calling aclx_get.
74591         Reported by Rainer Tammer <tammer@tammer.net>.
74593 2008-10-12  Bruno Haible  <bruno@clisp.org>
74595         Use msvcrt aware primitives for creation/termination of Win32 threads.
74596         * lib/glthread/thread.c: Include <process.h>.
74597         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74598         (wrapper_func): Update signature.
74599         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74601 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74602             Bruno Haible  <bruno@clisp.org>
74604         Provide a Win32 implementation of the 'cond' module.
74605         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74606         * lib/glthread/cond.c (glthread_cond_init_func,
74607         glthread_cond_wait_func, glthread_cond_timedwait_func,
74608         glthread_cond_signal_func, glthread_cond_broadcast_func,
74609         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74610         * modules/cond (Dependencies): Add gettimeofday.
74612 2008-10-11  Bruno Haible  <bruno@clisp.org>
74614         Make sleep work on older versions of mingw.
74615         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74616         only whether it exists.
74617         * doc/posix-functions/sleep.texi: Mention the problem with older
74618         versions of mingw.
74620 2008-10-11  Bruno Haible  <bruno@clisp.org>
74622         New module 'shutdown'.
74623         * modules/shutdown: New file.
74624         * lib/sys_socket.in.h (shutdown): New declaration.
74625         * lib/winsock.c (shutdown): New function.
74626         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74627         GNULIB_SHUTDOWN.
74628         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74629         * doc/posix-functions/shutdown.texi: Document the new module.
74631 2008-10-11  Jim Meyering  <meyering@redhat.com>
74633         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74635 2008-10-11  Bruno Haible  <bruno@clisp.org>
74637         New module 'fclose'.
74638         * modules/fclose: New file.
74639         * lib/stdio.in.h (fclose): New declaration.
74640         * lib/fclose.c: New file.
74641         * m4/fclose.m4: New file.
74642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74643         REPLACE_FCLOSE.
74644         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74645         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74646         REPLACE_FCLOSE.
74647         * modules/close (Depends-on): fclose.
74648         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74650 2008-10-11  Bruno Haible  <bruno@clisp.org>
74652         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74653         set errno and don't call _close.
74655 2008-10-10  Bruno Haible  <bruno@clisp.org>
74657         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74658         ACL, not afterwards. Fixes test failure on Cygwin.
74660 2008-10-09  Ben Pfaff  <blp@gnu.org>
74662         * build-aux/announce-gen: Fix gnulib version related part of usage
74663         message.  Die with a useful error message if no tarballs are
74664         found.
74666 2008-10-10  Jim Meyering  <meyering@redhat.com>
74668         bootstrap: use git's --depth=N option only if it's supported
74669         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74670         recognize the --depth option.  Reported by Pádraig Brady.
74672 2008-10-09  Bruno Haible  <bruno@clisp.org>
74674         New module 'ioctl'.
74675         * modules/ioctl: New file.
74676         * lib/sys_socket.in.h (ioctl): Remove declaration.
74677         * lib/winsock.c: Include <sys/ioctl.h>.
74678         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74679         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74680         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74681         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74682         * doc/posix-functions/ioctl.texi: Mention the new module.
74684 2008-10-09  Bruno Haible  <bruno@clisp.org>
74686         New module 'sys_ioctl'.
74687         * lib/sys_ioctl.in.h: New file.
74688         * m4/sys_ioctl_h.m4: New file.
74689         * modules/sys_ioctl: New file.
74690         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74692 2008-10-09  Bruno Haible  <bruno@clisp.org>
74694         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74695         * lib/winsock.c: Include <stdarg.h>.
74696         (rpl_ioctl): Change to second argument 'int' and then varargs.
74698 2008-10-09  Bruno Haible  <bruno@clisp.org>
74700         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74701         when the sys_socket module is present and the system has <winsock2.h>.
74703 2008-10-09  Bruno Haible  <bruno@clisp.org>
74705         * doc/posix-functions/close.texi: Mention module 'close' instead of
74706         module 'sys_socket'.
74708 2008-10-09  Bruno Haible  <bruno@clisp.org>
74710         * doc/glibc-headers/sys_ioctl.texi: New file.
74711         * doc/gnulib.texi: Include it.
74713 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74714             Bruno Haible  <bruno@clisp.org>
74716         Combine the two replacements of 'close'.
74717         * lib/sys_socket.in.h (close): Define to a reminder to include
74718         <unistd.h>.
74719         (_gl_close_fd_maybe_socket): New declaration.
74720         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74721         * lib/winsock.c (close): Remove undefinition.
74722         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74723         needed for the gnulib module 'close'.
74724         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74725         define to an error symbol or to a warning, if suitable.
74726         * lib/close.c: Include <sys/socket.h>.
74727         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74728         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74729         UNISTD_H_HAVE_WINSOCK2_H.
74730         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74732         UNISTD_H_HAVE_WINSOCK2_H.
74733         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74734         (configure.ac): Set a module indicator.
74735         (Makefile.am): Substitute GNULIB_CLOSE.
74736         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74737         * modules/poll-tests (Depends-on): Add close.
74738         * modules/select-tests (Depends-on): Likewise.
74740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74741             Bruno Haible  <bruno@clisp.org>
74743         New module 'close'.
74744         * modules/close: New file.
74745         * lib/unistd.in.h (close): Move declaration out of the
74746         FCHDIR_REPLACEMENT scope.
74747         (_gl_unregister_fd): New declaration.
74748         * lib/close.c: New file.
74749         * lib/fchdir.c (rpl_close): Remove function.
74750         * m4/close.m4: New file.
74751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74752         close.
74753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74754         REPLACE_CLOSE.
74755         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74756         REPLACE_CLOSE.
74757         * modules/fchdir (Depends-on): Add close.
74759 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74760             Bruno Haible  <bruno@clisp.org>
74762         * lib/fcntl.in.h (open): Simplify conditionals.
74763         (_gl_register_fd): New declaration.
74764         * lib/fchdir.c (rpl_open): Remove function.
74765         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74766         also.
74767         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74769         open.
74771 2008-10-09  Jim Meyering  <meyering@redhat.com>
74773         GNUmakefile: use the more name-space-friendly "_version"
74774         * top/GNUmakefile (_dummy): Update.
74775         (_version): Rename from "version".
74777 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74778             Bruno Haible  <bruno@clisp.org>
74780         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74781         rpl_close.
74782         (_gl_register_fd): New function, extracted from rpl_open.
74783         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74784         (rpl_open, rpl_opendir): Use _gl_register_fd.
74786 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74788         Fix organization of 'open' replacement.
74789         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74790         (gl_FUNC_OPEN): Use it.
74791         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74793 2008-10-08  Bruno Haible  <bruno@clisp.org>
74795         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74797 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74799         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74800         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74801         listen).
74803 2008-10-08  Eric Blake  <ebb9@byu.net>
74805         GNUmakefile: add 'make version' target
74806         * top/GNUmakefile (_curr-ver): Split version update rules...
74807         (version): ...into a target.
74809 2008-10-07  Bruno Haible  <bruno@clisp.org>
74811         Use a more portable replacement expression for -0.0L.
74812         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74813         instead of -0.0L. Fix m4 quotation.
74815         * tests/test-signbit.c: Include <float.h>.
74816         (minus_zero): New variable.
74817         (test_signbitl): Use minus_zero instead of -zero.
74818         * modules/signbit-tests (Depends-on): Add float.
74820         * tests/test-ceill.c: Include <float.h>.
74821         (zero): Remove variable.
74822         (minus_zero): New variable.
74823         (main): Use minus_zero instead of -zero.
74824         * modules/ceill-tests (Depends-on): Add float.
74826         * tests/test-floorl.c: Include <float.h>.
74827         (zero): Remove variable.
74828         (minus_zero): New variable.
74829         (main): Use minus_zero instead of -zero.
74830         * modules/floorl-tests (Depends-on): Add float.
74832         * tests/test-roundl.c: Include <float.h>.
74833         (zero): Remove variable.
74834         (minus_zero): New variable.
74835         (main): Use minus_zero instead of -zero.
74836         * modules/roundl-tests (Depends-on): Add float.
74838         * tests/test-truncl.c: Include <float.h>.
74839         (zero): Remove variable.
74840         (minus_zero): New variable.
74841         (main): Use minus_zero instead of -zero.
74842         * modules/truncl-tests (Depends-on): Add float.
74844         * tests/test-frexpl.c (zero): Remove variable.
74845         (minus_zero): New variable.
74846         (main): Use minus_zero instead of -zero.
74847         * modules/frexpl-tests (Depends-on): Add float.
74849         * tests/test-isnan.c (zerol): Remove variable.
74850         (minus_zerol): New variable.
74851         (test_long_double): Use minus_zerol instead of -zerol.
74852         * modules/isnan-tests (Depends-on): Add float.
74854         * tests/test-isnanl.h (zero): Remove variable.
74855         (minus_zero): New variable.
74856         (main): Use minus_zero instead of -zero.
74857         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74858         * modules/isnanl-tests (Depends-on): Add float.
74860         * tests/test-ldexpl.c (zero): Remove variable.
74861         (minus_zero): New variable.
74862         (main): Use minus_zero instead of -zero.
74863         * modules/ldexpl-tests (Depends-on): Add float.
74865         * tests/test-snprintf-posix.h (zerol): Remove variable.
74866         (minus_zerol): New variable.
74867         (test_function): Use minus_zerol instead of -zerol.
74868         * modules/snprintf-posix-tests (Depends-on): Add float.
74869         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74871         * tests/test-sprintf-posix.h (zerol): Remove variable.
74872         (minus_zerol): New variable.
74873         (test_function): Use minus_zerol instead of -zerol.
74874         * modules/sprintf-posix-tests (Depends-on): Add float.
74875         * modules/vsprintf-posix-tests (Depends-on): Add float.
74877         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74878         (minus_zerol): New variable.
74879         (test_function): Use minus_zerol instead of -zerol.
74880         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74882         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74883         (minus_zerol): New variable.
74884         (test_function): Use minus_zerol instead of -zerol.
74885         * modules/vasprintf-posix-tests (Depends-on): Add float.
74887 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74889         * MODULES.html.sh (Support for building documentation): Mention
74890         pmccabe2html.  Sort entries.
74892         Add pmccabe2html module, from gnupdf.
74893         * build-aux/pmccabe.css: New file.
74894         * build-aux/pmccabe2html: New file.
74895         * m4/pmccabe2html.m4: New file.
74896         * modules/pmccabe2html: New file.
74898 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74900         flock: new module
74901         * MODULES.html.sh: Add to list of modules.
74902         * lib/flock.c: flock implementation for Windows and Unix systems
74903         which have fcntl.
74904         * doc/glibc-functions/flock.texi: Update documentation.
74905         * lib/sys_file.in.h: <sys/file.h> header file.
74906         * m4/flock.m4: M4 macros.
74907         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74908         * modules/flock: flock module.
74909         * modules/flock-tests: flock tests module.
74910         * modules/sys_file: sys/file.h module.
74911         * tests/test-flock.c: test suite for flock.
74913 2008-10-06  Jim Meyering  <meyering@redhat.com>
74915         bootstrap: check for LT_INIT more portably still ;-)
74916         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74917         Spotted by Bruno Haible.
74919 2008-10-06  Eric Blake  <ebb9@byu.net>
74921         test-signbit: avoid tripping Irix cc bug on -0.0L
74922         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74923         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74924         entire testsuite consistent and avoids an Irix 6.2 bug.
74926 2008-10-05  Bruno Haible  <bruno@clisp.org>
74927             Jim Meyering  <jim@meyering.net>
74929         Add an option for ignoring EPIPE during close_stdout.
74930         * lib/closeout.h: Include <stdbool.h>.
74931         (close_stdout_set_ignore_EPIPE): New declaration.
74932         * lib/closeout.c: Include <stdbool.h>.
74933         (ignore_EPIPE): New variable.
74934         (close_stdout_set_ignore_EPIPE): New function.
74935         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74936         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74937         failure.
74938         * modules/closeout (Depends-on): Add stdbool.
74940 2008-10-05  Bruno Haible  <bruno@clisp.org>
74942         * modules/accept: New file.
74943         * modules/bind: New file.
74944         * modules/connect: New file.
74945         * modules/getpeername: New file.
74946         * modules/getsockname: New file.
74947         * modules/getsockopt: New file.
74948         * modules/listen: New file.
74949         * modules/recv: New file.
74950         * modules/recvfrom: New file.
74951         * modules/send: New file.
74952         * modules/sendto: New file.
74953         * modules/setsockopt: New file.
74954         * modules/socket: New file.
74955         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74956         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74957         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74958         the particular module is requested. Add a link warning when the
74959         particular module is not requested.
74960         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74961         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74962         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74963         the particular module is requested.
74964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74965         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74966         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74967         * modules/sys_socket (Depends-on): Add link-warning.
74968         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74969         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74970         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74971         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74972         GL_LINK_WARNING.
74973         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74974         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74975         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74976         * doc/posix-functions/getpeername.texi: Mention the new module
74977         'getpeername'.
74978         * doc/posix-functions/getsockname.texi: Mention the new module
74979         'getsockname'.
74980         * doc/posix-functions/getsockopt.texi: Mention the new module
74981         'getsockopt'.
74982         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74983         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74984         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74985         * doc/posix-functions/send.texi: Mention the new module 'send'.
74986         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74987         * doc/posix-functions/setsockopt.texi: Mention the new module
74988         'setsockopt'.
74989         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74990         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74991         listen, connect, accept.
74992         * modules/select-tests (Depends-on): Likewise.
74994 2008-10-05  Bruno Haible  <bruno@clisp.org>
74996         * lib/winsock.c (strerror): Remove unused #undef.
74997         (rpl_close): Remove unused local variable.
74999         * modules/sys_socket (Depends-on); Add errno.
75001 2008-10-05  Bruno Haible  <bruno@clisp.org>
75003         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
75004         (select): Add a link warning when the 'select' module is not used.
75005         * modules/sys_select (Depends-on): Add link-warning.
75006         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
75007         Suggested by Paolo Bonzini.
75009 2008-10-05  Jim Meyering  <meyering@redhat.com>
75011         bootstrap: check for LT_INIT more portably
75012         * build-aux/bootstrap: Avoid using grep -E, since it's not
75013         portable enough.  Suggestion from Bruno Haible.
75015 2008-10-05  Bruno Haible  <bruno@clisp.org>
75017         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
75018         as being fixed by gnulib.
75020 2008-10-05  Bruno Haible  <bruno@clisp.org>
75022         * modules/select-tests: New file, mostly copied from
75023         modules/sys_select-tests.
75024         * tests/test-select.c: New file, mostly copied from
75025         tests/test-sys_select.c.
75026         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
75027         * modules/sys_select-tests (Depends-on): Remove all dependencies.
75028         (Makefile.am): Remove test_sys_select_LDADD.
75030         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
75031         to an undefined symbol, for an error message.
75032         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
75033         (gl_SYS_SELECT_H_DEFAULTS): New macro.
75034         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
75035         winsock-select.c here.
75036         * modules/sys_select (Files): Remove lib/winsock-select.c.
75037         (Depends-on): Remove alloca.
75038         (Makefile.am): Substitute GNULIB_SELECT.
75039         * modules/select: New file.
75040         * doc/posix-functions/select.texi: Update.
75042 2008-10-05  Bruno Haible  <bruno@clisp.org>
75044         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
75045         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
75046         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
75047         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
75048         getdtablesize.
75049         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
75050         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
75052 2008-10-05  Bruno Haible  <bruno@clisp.org>
75054         * modules/getdtablesize-tests: New file.
75055         * tests/test-getdtablesize.c: New file.
75057         New module 'getdtablesize'.
75058         * lib/unistd.in.h (getdtablesize): New declaration.
75059         * lib/getdtablesize.c: New file.
75060         * m4/getdtablesize.m4: New file.
75061         * modules/getdtablesize: New file.
75062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75063         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
75064         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
75065         HAVE_GETDTABLESIZE.
75066         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
75068 2008-10-05  Bruno Haible  <bruno@clisp.org>
75070         * modules/sched (Makefile.am): Fix typo.
75071         Reported by Simon Josefsson.
75073 2008-10-05  Jim Meyering  <meyering@redhat.com>
75075         bootstrap: check for LT_INIT, too
75076         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
75077         are deprecated.  Suggestion from Ralf Wildenhues.
75079 2008-10-05  Bruno Haible  <bruno@clisp.org>
75081         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
75082         overriding them by ours.
75083         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
75085 2008-10-05  Jim Meyering  <meyering@redhat.com>
75087         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
75088         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
75089         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
75091 2008-10-04  Bruno Haible  <bruno@clisp.org>
75093         * modules/dup2 (License): Change to LGPLv2+.
75094         * modules/sleep (License): Likewise.
75095         * modules/perror (License): Likewise.
75096         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
75097         Blake.
75098         * modules/signal (License): Likewise.
75099         * modules/sigprocmask (License): Likewise.
75100         * modules/raise (License): Change to LGPLv2+, with approval by Jim
75101         Meyering.
75103 2008-10-04  Bruno Haible  <bruno@clisp.org>
75105         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
75106         Reported by Rainer Tammer <tammer@tammer.net>.
75108 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
75109             Bruno Haible  <bruno@clisp.org>
75111         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
75112         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
75113         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
75115 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
75117         filevercmp: new module
75118         * lib/filevercmp.h: New function filevercmp comparing version strings.
75119         * lib/filevercmp.c: Implementation of filevercmp function.
75120         * modules/filevercmp: Module metadata.
75121         * tests/test-filevercmp.c: Unit test for new module.
75122         * modules/filevercmp-tests: Unit test metadata.
75123         * MODULES.html.sh: Add filevercmp module.
75125 2008-10-03  Bruno Haible  <bruno@clisp.org>
75127         * lib/c-ctype.h: Add comment.
75128         Reported by Jim Meyering.
75130 2008-10-02  Bruno Haible  <bruno@clisp.org>
75132         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75134 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75136         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75137         name of bootstrap.conf accordingly.
75139 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75141         * build-aux/bootstrap: Install git-merge-changelog configuration
75142         items into .gitconfig if needed.
75144 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75146         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75147         git repository, and initialize/update it accordingly.
75149 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75151         * modules/fsync-tests: New file.
75152         * tests/test-fsync.c: New file.
75154         New module 'fsync'.
75155         * lib/fsync.c: New file.
75156         * m4/fsync.m4: New file.
75157         * modules/fsync: New file.
75158         * lib/unistd.in.h (fsync): New declaration.
75159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75160         GNULIB_FSYNC and HAVE_FSYNC.
75161         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75162         * MODULES.html.sh (posix_functions): Add fsync.
75163         * doc/posix-functions/fsync.texi: Mention the new module.
75165 2008-10-02  Jim Meyering  <meyering@redhat.com>
75167         fts.c: sync with similar code from coreutils' remove.c
75168         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75169         Guard also with "#if defined __linux__", since for now at least,
75170         this code is Linux-kernel-specific.
75172 2008-10-02  Jim Meyering  <meyering@redhat.com>
75174         fts: bug fixes
75175         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75176         Include <sys/vfs.h>, not <sys/statfs.h>.
75178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75179         Include <sys/vfs.h>, not <sys/statfs.h>.
75181 2008-10-01  Bruno Haible  <bruno@clisp.org>
75183         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75185         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75186         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75187         * doc/posix-functions/posix_spawnp.texi: Likewise.
75188         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75189         whether posix_spawn actually works.
75190         * m4/pipe.m4 (gl_PIPE): Likewise.
75191         * modules/execute (Files): Add m4/posix_spawn.m4.
75192         * modules/pipe (Files): Add m4/posix_spawn.m4.
75193         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75195 2008-10-01  Jim Meyering  <meyering@redhat.com>
75197         remove trailing spaces
75198         * NEWS: Likewise.
75199         * lib/poll.c (poll): Likewise.
75200         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75201         * lib/winsock.c (rpl_close): Likewise.
75202         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75203         * modules/yield: Likewise.
75204         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75205         * tests/test-sys_select.c (connect_to_socket): Likewise.
75207         fts.c: adjust a new interface to be more generally useful
75208         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75209         (fts_build): Adjust caller.
75211 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75213         * modules/cond-tests: New file.
75214         * tests/test-cond.c: New file.
75216 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75217             Bruno Haible  <bruno@clisp.org>
75219         * modules/cond (Dependencies): Add errno, time.
75220         * lib/glthread/cond.h: Include <time.h>.
75221         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75222         across platforms.
75224 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75225             Bruno Haible  <bruno@clisp.org>
75227         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75230             Bruno Haible  <bruno@clisp.org>
75232         * modules/tls-tests (Depends-on): Add thread, yield.
75233         (configure.ac): Remove all checks.
75234         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75235         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75236         gl_thread_self): Remove definitions. Include glthread/thread.h and
75237         glthread/yield.h instead.
75238         (test_tls): Pass an additional NULL argument to gl_thread_join.
75240 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75241             Bruno Haible  <bruno@clisp.org>
75243         * modules/lock-tests (Depends-on): Add thread, yield.
75244         (configure.ac): Remove all checks.
75245         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75246         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75247         gl_thread_self): Remove definitions. Include glthread/thread.h and
75248         glthread/yield.h instead.
75249         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75250         additional NULL argument to gl_thread_join.
75252 2008-09-30  Bruno Haible  <bruno@clisp.org>
75254         Fix the Win32 implementation of the 'thread' module.
75255         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75256         pointer type.
75257         (gl_thread_self): Invoke gl_thread_self_func.
75258         (gl_thread_self_func): New declaration.
75259         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75260         (do_init_self_key, init_self_key): New functions.
75261         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75262         Remove some fields.
75263         (running_threads, running_lock): Remove variables.
75264         (get_current_thread_handle): New function.
75265         (gl_thread_self_func, wrapper_func, glthread_create_func,
75266         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75267         simplified.
75269 2008-09-30  Bruno Haible  <bruno@clisp.org>
75271         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75272         files.
75274 2008-09-30  Jim Meyering  <meyering@redhat.com>
75276         fts.m4: correct the test for statfs.f_type
75277         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75278         when checking for statfs.f_type.
75280 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75282         tests: avoid some compiler warnings
75283         * tests/test-memchr.c (main): Pass NULL indirectly.
75284         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75286 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75288         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75289         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75290         exactly specified dayshifts.
75291         (dayshift): New rule.
75292         (rel): Add dayshift.
75293         (relative_time_table) [tomorrow, yesterday, today, now]:
75294         Use tDAY_SHIFT in place of tDAY_UNIT.
75295         * tests/test-getdate.c: Add tests for now-disallowed countable
75296         dayshifts, e.g., "4 yesterday ago".
75298 2008-09-29  Bruno Haible  <bruno@clisp.org>
75300         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75301         * tests/test-posix_spawn1.in.sh: Renamed from
75302         tests/test-posix_spawn.in.sh.
75303         * tests/test-posix_spawn2.c: New file.
75304         * tests/test-posix_spawn2.in.sh: New file.
75305         * modules/posix_spawnp-tests (Files): Update.
75306         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75308 2008-09-29  Bruno Haible  <bruno@clisp.org>
75310         Propagate effects of putenv/setenv/unsetenv to child processes.
75311         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75312         * lib/pipe.c (create_pipe): Likewise.
75314 2008-09-29  Bruno Haible  <bruno@clisp.org>
75316         Enable use of shell scripts as executables in mingw.
75317         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75318         run the program as a shell script.
75319         * lib/pipe.c (create_pipe): Likewise.
75320         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75321         resulting array.
75323 2008-09-29  Eric Blake  <ebb9@byu.net>
75325         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75327 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75329         * doc/posix-functions/accept.texi: Update mingw problems.
75330         * doc/posix-functions/bind.texi: Update mingw problems.
75331         * doc/posix-functions/close.texi: Update mingw problems.
75332         * doc/posix-functions/connect.texi: Update mingw problems.
75333         * doc/posix-functions/getpeername.texi: Update mingw problems.
75334         * doc/posix-functions/getsockname.texi: Update mingw problems.
75335         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75336         * doc/posix-functions/ioctl.texi: Update mingw problems.
75337         * doc/posix-functions/listen.texi: Update mingw problems.
75338         * doc/posix-functions/recv.texi: Update mingw problems.
75339         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75340         * doc/posix-functions/select.texi: Update mingw problems.
75341         * doc/posix-functions/send.texi: Update mingw problems.
75342         * doc/posix-functions/sendto.texi: Update mingw problems.
75343         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75344         * doc/posix-functions/socket.texi: Update mingw problems.
75346 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75347             Bruno Haible  <bruno@clisp.org>
75349         * lib/sys_select.in.h: Include sys/time.h.
75350         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75351         * modules/sys_select: Depend on sys_time.
75352         * tests/test-sys_select.c: Test that sys/select.h defines struct
75353         timeval fully.
75355 2008-09-29  Bruno Haible  <bruno@clisp.org>
75357         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75358         * lib/sys_select.in.h: Likewise.
75360 2008-09-29  Bruno Haible  <bruno@clisp.org>
75362         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75364 2008-09-29  Bruno Haible  <bruno@clisp.org>
75366         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75367         Set LIBSOCKET instead of augmenting LIBS.
75368         * modules/sockets (Link): New section.
75369         * modules/sockets-tests (test_sockets_LDADD): New variable.
75370         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75371         * modules/poll-tests (test_poll_LDADD): New variable.
75372         * NEWS: Document the change.
75374 2008-09-29  Bruno Haible  <bruno@clisp.org>
75376         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75377         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75378         ARPA_INET_H directly.
75379         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75381 2008-09-28  Bruno Haible  <bruno@clisp.org>
75383         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75384         from gl_HEADER_SYS_SOCKET.
75385         (gl_HEADER_SYS_SOCKET): Invoke it.
75386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75388 2008-09-28  Bruno Haible  <bruno@clisp.org>
75390         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75391         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75392         Needed on OSF/1 4.0.
75394 2008-09-28  Bruno Haible  <bruno@clisp.org>
75396         Override open more carefully.
75397         * lib/open.c (orig_open): New function.
75398         (rpl_open): Use orig_open instead of open.
75399         * lib/fcntl.in.h: Add special invocation convention.
75400         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75401         (gl_FUNC_OPEN): Invoke it.
75403         Override freopen more carefully.
75404         * lib/freopen.c (orig_freopen): New function.
75405         (rpl_freopen): Use orig_freopen instead of freopen.
75406         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75407         (gl_FUNC_FREOPEN): Invoke it.
75409         Override fopen more carefully.
75410         * lib/fopen.c (orig_fopen): New function.
75411         (rpl_fopen): Use orig_fopen instead of fopen.
75412         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75413         (gl_FUNC_FOPEN): Invoke it.
75414         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75416 2008-09-28  Bruno Haible  <bruno@clisp.org>
75418         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75419         SIGPIPE.
75421 2008-09-28  Bruno Haible  <bruno@clisp.org>
75423         * tests/test-sigaction.c (handler, main): Disable the check whether
75424         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75425         glibc systems with LinuxThreads.
75427 2008-09-28  Bruno Haible  <bruno@clisp.org>
75429         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75431         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75432         with AIX xlc.
75433         * lib/fcntl.in.h (open): Likewise.
75434         Reported by Rainer Tammer <tammer@tammer.net>.
75436 2008-09-28  Bruno Haible  <bruno@clisp.org>
75438         * modules/posix_spawnp-tests: New file.
75439         * tests/test-posix_spawn.c: New file.
75440         * tests/test-posix_spawn.in.sh: New file.
75442         New module 'posix_spawnp'.
75443         * modules/posix_spawnp: New file.
75444         * lib/spawnp.c: New file, from GNU libc with modifications.
75445         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75447         New module 'posix_spawn'.
75448         * modules/posix_spawn: New file.
75449         * lib/spawn.c: New file, from GNU libc with modifications.
75450         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75452         New module 'posix_spawnattr_destroy'.
75453         * modules/posix_spawnattr_destroy: New file.
75454         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75455         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75456         module.
75458         New module 'posix_spawnattr_setsigmask'.
75459         * modules/posix_spawnattr_setsigmask: New file.
75460         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75461         modifications.
75462         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75463         new module.
75465         New module 'posix_spawnattr_getsigmask'.
75466         * modules/posix_spawnattr_getsigmask: New file.
75467         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75468         modifications.
75469         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75470         new module.
75472         New module 'posix_spawnattr_setsigdefault'.
75473         * modules/posix_spawnattr_setsigdefault: New file.
75474         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75475         modifications.
75476         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75477         new module.
75479         New module 'posix_spawnattr_getsigdefault'.
75480         * modules/posix_spawnattr_getsigdefault: New file.
75481         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75482         modifications.
75483         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75484         new module.
75486         New module 'posix_spawnattr_setschedpolicy'.
75487         * modules/posix_spawnattr_setschedpolicy: New file.
75488         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75489         modifications.
75490         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75491         new module.
75493         New module 'posix_spawnattr_getschedpolicy'.
75494         * modules/posix_spawnattr_getschedpolicy: New file.
75495         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75496         modifications.
75497         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75498         new module.
75500         New module 'posix_spawnattr_setschedparam'.
75501         * modules/posix_spawnattr_setschedparam: New file.
75502         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75503         modifications.
75504         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75505         new module.
75507         New module 'posix_spawnattr_getschedparam'.
75508         * modules/posix_spawnattr_getschedparam: New file.
75509         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75510         modifications.
75511         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75512         new module.
75514         New module 'posix_spawnattr_setpgroup'.
75515         * modules/posix_spawnattr_setpgroup: New file.
75516         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75517         modifications.
75518         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75519         module.
75521         New module 'posix_spawnattr_getpgroup'.
75522         * modules/posix_spawnattr_getpgroup: New file.
75523         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75524         modifications.
75525         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75526         module.
75528         New module 'posix_spawnattr_setflags'.
75529         * modules/posix_spawnattr_setflags: New file.
75530         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75531         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75532         module.
75534         New module 'posix_spawnattr_getflags'.
75535         * modules/posix_spawnattr_getflags: New file.
75536         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75537         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75538         module.
75540         New module 'posix_spawnattr_init'.
75541         * modules/posix_spawnattr_init: New file.
75542         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75543         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75544         module.
75546         New module 'posix_spawn_file_actions_destroy'.
75547         * modules/posix_spawn_file_actions_destroy: New file.
75548         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75549         modifications.
75550         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75551         the new module.
75553         New module 'posix_spawn_file_actions_addopen'.
75554         * modules/posix_spawn_file_actions_addopen: New file.
75555         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75556         modifications.
75557         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75558         the new module.
75560         New module 'posix_spawn_file_actions_adddup2'.
75561         * modules/posix_spawn_file_actions_adddup2: New file.
75562         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75563         modifications.
75564         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75565         the new module.
75567         New module 'posix_spawn_file_actions_addclose'.
75568         * modules/posix_spawn_file_actions_addclose: New file.
75569         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75570         modifications.
75571         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75572         the new module.
75574         New module 'posix_spawn_file_actions_init'.
75575         * modules/posix_spawn_file_actions_init: New file.
75576         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75577         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75578         new module.
75580         New module 'posix_spawn-internal'.
75581         * modules/posix_spawn-internal: New file.
75582         * lib/spawn_int.h: New file, from GNU libc with modifications.
75583         * lib/spawni.c: New file, from GNU libc with modifications.
75584         * m4/posix_spawn.m4: New file.
75586         New module 'spawn'.
75587         * modules/spawn: New file.
75588         * lib/spawn.in.h: New file, from GNU libc with modifications.
75589         * m4/spawn_h.m4: New file.
75590         * doc/posix-headers/spawn.texi: Mention the new module.
75592 2008-09-28  Bruno Haible  <bruno@clisp.org>
75594         * modules/sched-tests: New file.
75595         * tests/test-sched.c: New file.
75597         New module 'sched'.
75598         * modules/sched: New file.
75599         * lib/sched.in.h: New file.
75600         * m4/sched_h.m4: New file.
75601         * doc/posix-headers/sched.texi: Mention the new module.
75603 2008-09-27  Eric Blake  <ebb9@byu.net>
75605         Fix previous patch, and tweak references to $0.
75606         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75607         (func_version, func_gnulib_dir): Don't call this program
75608         gnulib-tool.
75609         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75610         with using $0 in function.
75611         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75612         (func_fatal_error): Reuse the name the user invoked us with.
75614 2008-09-27  Bruno Haible  <bruno@clisp.org>
75616         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75617         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75618         (gl_ICONV_H): Not here.
75619         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75620         instead of assigning ICONV_H directly.
75622         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75624         WCHAR_H directly.
75626 2008-09-27  Bruno Haible  <bruno@clisp.org>
75628         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75629         * modules/arpa_inet (Depends-on): Add link-warning.
75630         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75631         * modules/unistd (Makefile.am): Likewise.
75633 2008-09-26  Bruno Haible  <bruno@clisp.org>
75635         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75636         variables.
75637         (func_version): Essentially copied from gnulib-tool.
75638         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75639         func_readlink): Copied from gnulib-tool.
75641 2008-09-26  Bruno Haible  <bruno@clisp.org>
75643         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75644         invoking git-version-gen.
75646 2008-09-26  Bruno Haible  <bruno@clisp.org>
75648         * posix-modules: Update to directory names changed on 2008-01-19.
75649         Remove commas in output before splitting into words. No more need to
75650         avoid 'ftruncate' since 2007-02-19.
75652 2008-09-26  Bruno Haible  <bruno@clisp.org>
75654         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75656 2008-09-26  Bruno Haible  <bruno@clisp.org>
75658         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75659         * modules/fwriteerror (Depends-on): Add errno.
75661 2008-09-26  Bruno Haible  <bruno@clisp.org>
75663         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75664         * tests/test-vc-list-files-cvs.sh: Likewise.
75666 2008-09-26  Bruno Haible  <bruno@clisp.org>
75668         * doc/posix-headers/sys_resource.texi: Reorder items.
75670 2008-09-26  Jim Meyering  <meyering@redhat.com>
75672         fts: tweak inode comparison function
75673         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75674         inode numbers, as documented.
75676         fts: sort dirent entries on inode number before traversing
75677         This avoids a quadratic, seek-related performance penalty when
75678         operating on a directory containing many entries (measurable at 10k;
75679         3.5 hours at 2 million entries with a cold cache) on certain types
75680         of file systems, including ext3 and ext4, but not tmpfs.
75681         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75682         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75683         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75684         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75685         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75686         (fts_build): Set the stat.st_ino member from D_INO.
75687         If it is likely to be useful, sort dirent entries on inode number.
75689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75690         and the struct statfs.f_type member.
75691         * modules/fts (Depends-on): Add d-ino.
75693 2008-09-26  Bruno Haible  <bruno@clisp.org>
75695         * modules/sigpipe-die (Depends-on): Add sigpipe.
75697         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75698         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75699         and GNULIB_STDIO_H_SIGPIPE are set.
75700         * lib/stdio-write.c: New file.
75701         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75702         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75703         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75704         REPLACE_STDIO_WRITE_FUNCS.
75705         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75706         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75707         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75708         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75709         * modules/stdio (Files): Add lib/stdio-write.c.
75710         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75711         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75712         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75713         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75714         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75715         REPLACE_FPRINTF_POSIX.
75716         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75717         REPLACE_PRINTF_POSIX.
75718         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75719         REPLACE_VFPRINTF_POSIX.
75720         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75721         REPLACE_VPRINTF_POSIX.
75722         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75723         SIGPIPE issue.
75724         * doc/posix-functions/fputc.texi: Likewise.
75725         * doc/posix-functions/fputs.texi: Likewise.
75726         * doc/posix-functions/fwrite.texi: Likewise.
75727         * doc/posix-functions/printf.texi: Likewise.
75728         * doc/posix-functions/putc.texi: Likewise.
75729         * doc/posix-functions/putchar.texi: Likewise.
75730         * doc/posix-functions/puts.texi: Likewise.
75731         * doc/posix-functions/vfprintf.texi: Likewise.
75732         * doc/posix-functions/vprintf.texi: Likewise.
75734         * modules/safe-write (Depends-on): Add write.
75736         * modules/sigpipe-tests: New file.
75737         * tests/test-sigpipe.c: New file.
75738         * tests/test-sigpipe.sh: New file.
75740         * modules/write: New file.
75741         * lib/unistd.in.h: Include <sys/types.h>.
75742         (write): New declaration.
75743         * lib/write.c: New file.
75744         * m4/write.m4: New file.
75745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75746         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75747         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75748         GNULIB_WRITE, REPLACE_WRITE.
75749         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75750         and the SIGPIPE issue.
75752         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75753         (raise): New declaration.
75754         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75755         (ext_signal): New function.
75756         (rpl_raise): New function.
75757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75758         GNULIB_SIGNAL_H_SIGPIPE.
75759         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75760         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75762         * modules/sigpipe: New file.
75763         * m4/sigpipe.m4: New file.
75765 2008-09-25  Derek Price  <derek@ximbiot.com>
75766             Bruno Haible  <bruno@clisp.org>
75768         * gnulib-tool (func_import): Report all license incompatibilities, not
75769         just the first one.
75771 2008-09-25  Bruno Haible  <bruno@clisp.org>
75773         * gnulib-tool (func_import): When computing the edits, consider not
75774         only the Makefile.ams that exist but also those that will be generated.
75776 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75778         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75779         fixes gnulib-tool --test warning about duplicate dependency.
75781 2008-09-25  Bruno Haible  <bruno@clisp.org>
75783         * gnulib-tool: Don't ask the user to perform edits in the generated
75784         Makefile.ams.
75785         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75786         apply to the Makefile.am being generated.
75787         (func_emit_tests_Makefile_am): Execute edits that apply to the
75788         Makefile.am being generated.
75789         (func_import): Setup list of Makefile.am edits before emitting the
75790         Makefile.ams, not at the end.
75791         (func_create_testdir): Update.
75792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75794 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75796         * gnulib-tool (func_import): Store the --tests-base option in the
75797         comment in gnulib-cache.m4.
75799 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75801         * NEWS: Document increased portability that sys_select now provides.
75803         * lib/sys_select.in.h: Install select wrapper.
75804         * lib/sys_socket.in.h: Use more descriptive name when there is no
75805         select wrapper.
75806         * lib/winsock-select.c: New.
75807         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75808         Require gl_HEADER_SYS_SOCKET.
75809         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75810         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75811         * tests/test-sys_select.c: Add functional tests.
75813 2008-09-24  Eric Blake  <ebb9@byu.net>
75815         open, fopen: close fd leak in last patch
75816         * lib/open.c (rpl_open): Close fd before returning error.
75817         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75818         * doc/posix-functions/open.texi (open): Document that Irix also
75819         has the bug.
75820         * doc/posix-functions/fopen.texi (fopen): Likewise.
75821         Reported by Paolo Bonzini.
75823 2008-09-24  Bruno Haible  <bruno@clisp.org>
75825         Ensure that a filename ending in a slash cannot be used to access a
75826         non-directory.
75827         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75828         to check whether it's really a directory.
75829         * lib/fopen.c: Include fcntl.h, unistd.h.
75830         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75831         and fdopen().
75832         * modules/fopen (Depends-on): Add unistd.
75833         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75834         * tests/test-fopen.c (main): Likewise.
75835         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75836         * doc/posix-functions/fopen.texi: Likewise.
75837         Reported by Eric Blake.
75839 2008-09-23  Eric Blake  <ebb9@byu.net>
75841         c-stack: avoid compiler optimizations when provoking overflow
75842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75843         recursion harder to optimize, to ensure a stack overflow occurs.
75844         * tests/test-c-stack.c (recurse): Likewise.
75845         Borrowed from libsigsegv.
75847         c-stack: work around Irix sigaltstack bug
75848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75849         whether sigaltstack uses wrong end of stack_t (copied in part from
75850         libsigsegv).
75851         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75852         Irix bug, without requiring an over-allocation.
75853         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75854         bug.
75856         fopen: document mingw bug on directories
75857         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75858         not allowing a stream visiting a directory, even though reading
75859         from such a stream is not portable.
75861 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75863         * lib/poll.c: Rewrite.
75864         * modules/poll: Depend on alloca.
75866 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75868         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75869         instead define prototypes for a full set of wrappers.  Ensure
75870         that Cygwin does not use the compatibility code, which is only
75871         for MinGW.
75872         * lib/winsock.c: New.
75873         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75874         * modules/sys_socket: Add lib/winsock.c.
75876         * modules/poll-tests: Add errno and perror.
75877         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75879 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75881         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75883 2008-09-23  Bruno Haible  <bruno@clisp.org>
75885         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75886         * doc/glibc-functions/*: Likewise.
75888 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75890         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75891         success.
75893 2008-09-22  Eric Blake  <ebb9@byu.net>
75894             Bruno Haible  <bruno@clisp.org>
75896         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75897         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75898         supply %A but mishandle pseudo-NaN.
75899         Reported by Simon Josefsson.
75901 2008-09-21  Bruno Haible  <bruno@clisp.org>
75903         * tests/test-lock.c (main): Tweak skip message.
75904         * tests/test-tls.c (main): Likewise.
75906 2008-09-21  Bruno Haible  <bruno@clisp.org>
75908         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75909         whether 'struct sigaction' has sa_sigaction here...
75910         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75911         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75913 2008-09-21  Bruno Haible  <bruno@clisp.org>
75915         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75916         section.
75917         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75918         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75919         the new section.
75920         (Support for obsolete systems lacking POSIX:2001): New section.
75921         (String handling <string.h>): Move strdup to the new section.
75922         Suggested by Simon Josefsson and Paolo Bonzini.
75924 2008-09-21  Bruno Haible  <bruno@clisp.org>
75926         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75927         exponents in %e and %g results on 'long double'. Needed for mingw's
75928         improved *printf functions.
75929         * tests/test-vasprintf-posix.c (test_function): Likewise.
75930         * tests/test-snprintf-posix.h (test_function): Likewise.
75931         * tests/test-sprintf-posix.h (test_function): Likewise.
75932         Reported by Eric Blake.
75934 2008-09-21  Bruno Haible  <bruno@clisp.org>
75936         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75937         * tests/test-sprintf-posix.h (test_function): Likewise.
75939 2008-09-21  Bruno Haible  <bruno@clisp.org>
75941         * modules/getpass (Depends-on): Add strdup-posix.
75943         New module 'strdup-posix'.
75944         * modules/strdup-posix: New file.
75945         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75946         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75948         REPLACE_STRDUP.
75949         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75950         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75952         strdup-posix.
75954         * modules/strdup (Depends-on): Remove malloc-posix.
75956 2008-09-20  Bruno Haible  <bruno@clisp.org>
75958         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75959         Wildenhues.
75961 2008-09-20  Bruno Haible  <bruno@clisp.org>
75963         Ensure that wint_t gets defined on IRIX 5.3.
75964         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75965         * lib/wctype.in.h (wint_t): Likewise.
75966         (__wctype_wint_t): Remove type.
75967         (isw*): Use wint_t instead of __wctype_wint_t.
75968         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75969         * modules/wchar (Files): Add m4/wint_t.m4.
75970         (Makefile.am): Substitute HAVE_WINT_T.
75971         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75972         * tests/test-wctype.c: Check that wint_t is defined.
75973         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75974         * doc/posix-headers/wctype.texi: Likewise.
75975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75977 2008-09-18  Bruno Haible  <bruno@clisp.org>
75979         * gnulib-tool (func_exit): Update comment.
75981 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75983         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75984         assumes strdup exists and does not depend on strdup to return
75985         ENOMEM on out of memory conditions.
75987 2008-09-18  Bruno Haible  <bruno@clisp.org>
75989         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75990         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75991         digits for the exponent.
75993 2008-09-18  Jim Meyering  <meyering@redhat.com>
75994             Bruno Haible  <bruno@clisp.org>
75996         * lib/vasnprintf.c (decimal_point_char): Define also if
75997         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75999 2008-09-16  Bruno Haible  <bruno@clisp.org>
76000         and Eric Blake  <ebb9@byu.net>
76002         vasnprintf: support Irix 5.3
76003         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
76004         that mishandle long double infinity.
76005         Reported by Tom G. Christensen.
76007 2008-09-16  Bruno Haible  <bruno@clisp.org>
76009         * doc/glibc-functions/scandir.texi: Mention the function is missing on
76010         Solaris 9.
76011         * doc/glibc-functions/alphasort.texi: Likewise.
76012         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
76014 2008-09-16  Jim Meyering  <meyering@redhat.com>
76016         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
76017         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
76018         a umask modification leak out of a subshell.  Otherwise, the
76019         opensolaris /bin/sh would be accepted and thus cause unwarranted
76020         failures in the coreutils test suite.
76022 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
76024         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
76025         to succeed.
76027 2008-09-16  Jim Meyering  <meyering@redhat.com>
76029         avoid spurious test failure when library is built without ACL support
76030         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76031         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
76032         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
76033         * tests/test-copy-acl.sh: Likewise.
76035 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76037         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
76038         based on character occurrence counts.
76040 2008-09-15  Eric Blake  <ebb9@byu.net>
76042         tests: avoid some compiler warnings
76043         * tests/test-memchr.c (main): Pass NULL indirectly.
76044         * tests/test-closein.c (main): Avoid unused variable.
76046 2008-09-15  Bruno Haible  <bruno@clisp.org>
76048         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
76049         are missing on OpenBSD 4.0 individually.
76050         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76052 2008-09-15  Bruno Haible  <bruno@clisp.org>
76054         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
76055         * doc/posix-functions/strerror.texi: Mention also Cygwin.
76056         * doc/posix-functions/perror.texi: Likewise.
76057         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
76058         is missing.
76059         Reported by Eric Blake.
76061         * lib/errno.in.h: Use replacement values >= 2000.
76062         Reported by Eric Blake.
76064 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76066         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
76067         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
76068         limit.
76069         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
76070         compareseq was aborted.
76072 2008-09-14  Bruno Haible  <bruno@clisp.org>
76074         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
76075         yvec_edit_count.
76076         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
76077         (fstrcmp_bounded): Simplify result computation accordingly.
76079 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76081         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
76082         (fstrcmp): Define in terms of fstrcmp_bounded.
76083         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
76084         lower_bound argument.
76085         Return quickly if the result is certainly < lower_bound.
76086         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
76088 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76090         * lib/diffseq.h (EARLY_ABORT): New macro.
76091         (compareseq): Change return type to bool. Return true when EARLY_ABORT
76092         evaluates to true.
76094 2008-09-14  Bruno Haible  <bruno@clisp.org>
76096         * modules/perror-tests: New file.
76097         * tests/test-perror.sh: New file.
76098         * tests/test-perror.c: New file.
76100         New module 'perror'.
76101         * lib/stdio.in.h (perror): New declaration.
76102         * lib/perror.c: New file.
76103         * m4/perror.m4: New file.
76104         * modules/perror: New file.
76105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
76106         * doc/posix-functions/perror.texi: Mention the perror module.
76107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
76108         REPLACE_PERROR.
76109         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
76110         REPLACE_PERROR.
76112 2008-09-14  Bruno Haible  <bruno@clisp.org>
76114         * modules/stdio (Makefile.am): Reorder to match the order in
76115         lib/stdio.in.h.
76116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76118 2008-09-13  Bruno Haible  <bruno@clisp.org>
76120         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
76122 2008-09-13  Bruno Haible  <bruno@clisp.org>
76124         Extend strerror to cover the added errno values.
76125         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76126         (rpl_strerror): Provide error messages for the added errno values and
76127         for the WSA* values.
76128         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76129         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76130         strerror.
76131         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76132         * modules/strerror (Depends-on): Add errno.
76133         * doc/posix-functions/strerror.texi: Document the change.
76134         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76135         and EOVERFLOW.
76137 2008-09-13  Bruno Haible  <bruno@clisp.org>
76139         * modules/EOVERFLOW: Remove file.
76140         * m4/eoverflow.m4: Remove file.
76141         * modules/EOVERFLOW-tests: Remove file.
76142         * tests/test-EOVERFLOW.c: Remove file.
76143         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76144         * modules/ftell (Depends-on): Likewise.
76145         * modules/getdelim (Depends-on): Likewise.
76146         * modules/getugroups (Depends-on): Likewise.
76147         * modules/poll (Depends-on): Likewise.
76148         * modules/snprintf (Depends-on): Likewise.
76149         * modules/sprintf-posix (Depends-on): Likewise.
76150         * modules/vasnprintf (Depends-on): Likewise.
76151         * modules/vasprintf (Depends-on): Likewise.
76152         * modules/vfprintf-posix (Depends-on): Likewise.
76153         * modules/vsnprintf (Depends-on): Likewise.
76154         * modules/vsprintf-posix (Depends-on): Likewise.
76155         * modules/xvasprintf (Depends-on): Likewise.
76156         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76157         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76158         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76159         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76160         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76161         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76162         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76163         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76164         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76165         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76166         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76167         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76168         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76169         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76170         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76171         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76172         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76173         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76174         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76175         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76176         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76177         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76178         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76179         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76180         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76182         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76183         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76184         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76185         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76186         * MODULES.html.sh: Remove EOVERFLOW.
76187         * NEWS: Mention the change.
76189 2008-09-13  Bruno Haible  <bruno@clisp.org>
76191         * modules/errno-tests: New file.
76192         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76194         * lib/errno.in.h: New file.
76195         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76196         * modules/errno: New file.
76197         * doc/posix-headers/errno.texi: Update documentation.
76198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76200 2008-09-13  Bruno Haible  <bruno@clisp.org>
76202         * tests/test-poll.c: Use #if for native Windows, rather than testing
76203         __MSVCRT__.
76205 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76206             Bruno Haible  <bruno@clisp.org>
76208         * lib/glob.c: Don't include <pwd.h> on native Windows.
76209         (WINDOWS32): New macro.
76210         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76212 2008-09-13  Bruno Haible  <bruno@clisp.org>
76214         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76215         (ETIMEDOUT): Remove macro.
76216         (glthread_cond_timedwait_multithreaded): New declaration.
76217         (glthread_cond_timedwait): Use it.
76218         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76219         (glthread_cond_timedwait_multithreaded): New function.
76221 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76223         * modules/poll-tests: Do not check for io.h.
76224         * tests/test-poll.c: Check for __MSVCRT__ instead.
76226 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76228         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76229         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76230         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76232 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76234         * modules/poll-tests: New.
76235         * tests/test-poll.c: New.
76237 2008-09-12  Eric Blake  <ebb9@byu.net>
76239         frexp: test for NetBSD failure on -0.0
76240         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76241         not all, bugs from NetBSD 3.0 have been fixed.
76242         * doc/posix-functions/frexp.texi (frexp): Document bug.
76243         Reported by Thomas Klausner.
76245         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76246         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76247         literal -0.0.
76248         Reported by Jonathan C. Patschke <jp@centtech.com>.
76250 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76252         * lib/glthread/cond.h: Use dummy implementation also if
76253         USE_WIN32_THREADS.
76255 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76257         * modules/fnmatch-posix (License): Change to LGPLv2+.
76258         * modules/fnmatch-gnu (License): Likewise.
76260 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76262         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76264 2008-09-11  Jim Meyering  <meyering@redhat.com>
76266         * users.txt: Add gtk-vnc.
76268 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76270         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76271         rotate amounts.
76273         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76274         required for 16-bit and 8-bit rotates.
76275         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76276         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76277         UINT8_MAX instead of hard-coded constants.
76278         Suggested by Paul Eggert.
76280 2008-09-07  Bruno Haible  <bruno@clisp.org>
76282         * tests/test-striconveh.c (main): Check behaviour when converting from
76283         UTF-7.
76285         Make striconveh work better with stateful encodings.
76286         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76287         that iconv does not increment the inptr when returning -1/EINVAL.
76289 2008-09-07  Bruno Haible  <bruno@clisp.org>
76291         * build-aux/config.rpath: Update according to libtool-2.2.6.
76292         * build-aux/config.libpath: Likewise.
76294 2008-09-06  Bruno Haible  <bruno@clisp.org>
76296         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76297         * lib/freadptr.c (freadptr): Likewise.
76298         * lib/freadseek.c (freadptrinc): Likewise.
76299         Reported by Simon Josefsson.
76301 2008-09-06  Bruno Haible  <bruno@clisp.org>
76303         * modules/freadptr (License): Change to LGPLv2+.
76304         * modules/freadseek (License): Likewise.
76305         Suggested by Eric Blake.
76307         * modules/memchr2 (License): Change to LGPLv2+.
76308         Approved by Eric Blake.
76310 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76311             Bruno Haible  <bruno@clisp.org>
76313         Make gnulib-tool work with native 'sed' on AIX.
76314         * gnulib-tool (sed_noop): New variable.
76315         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76316         func_add_or_update, func_create_testdir): Use it to initialize sed
76317         script variables.
76318         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76320 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76321             Bruno Haible  <bruno@clisp.org>
76323         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76324         also works after #include directives.
76326 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76328         getdate.y: reject an out-of-range timezone value
76329         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76330         the range [-24...+24].  When specified with only one or two digits,
76331         * tests/test-getdate.c: Tests for the fix.
76332         * doc/getdate.texi: Document this change.
76334 2008-09-03  Bruno Haible  <bruno@clisp.org>
76336         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76338 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76340         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76341         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76342         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76343         Blake <ebb9@byu.net>.
76345         * tests/test-bitrotate.c: Add more test vectors.
76347 2008-09-02  Eric Blake  <ebb9@byu.net>
76349         vasnprintf-posix: handle large precision via %.*d
76350         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76351         when handling it ourselves.
76352         * tests/test-vasnprintf-posix.c (test_function): Add test.
76353         * tests/test-snprintf-posix.h (test_function): Likewise.
76354         * tests/test-sprintf-posix.h (test_function): Likewise.
76355         * tests/test-vasprintf-posix.c (test_function): Likewise.
76356         Reported by Alain Guibert.
76358 2008-09-01  Eric Blake  <ebb9@byu.net>
76360         c-stack: make configure-time check more robust
76361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76362         successful sigaction call.
76363         Reported by Tom G. Christensen.
76365 2008-09-01  Bruno Haible  <bruno@clisp.org>
76367         New module 'findprog-lgpl'.
76368         * modules/findprog-lgpl: New file.
76369         * lib/findprog-lgpl.c: New file.
76370         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76371         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76372         to decide whether to use strdup or xstrdup, concatenated_filename or
76373         xconcatenated_filename.
76375 2008-09-01  Bruno Haible  <bruno@clisp.org>
76377         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76378         'xconcat-filename' (GPL).
76379         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76380         (License): Change to LGPLv2+.
76381         * modules/xconcat-filename: New file.
76382         * lib/concat-filename.h (concatenated_filename): Change specification.
76383         (xconcatenated_filename): New declaration.
76384         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76385         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76386         memory situations.
76387         * lib/xconcat-filename.c: New file.
76388         * NEWS: Mention the change.
76389         * lib/findprog.c: Include concat-filename.h, not filename.h.
76390         (find_in_path): Use xconcatenated_filename instead of
76391         concatenated_filename.
76392         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76393         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76394         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76395         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76396         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76397         instead of concatenated_filename.
76398         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76399         (execute_java_class): Use xconcatenated_filename instead of
76400         concatenated_filename.
76401         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76402         * modules/javacomp (Depends-on): Likewise.
76403         * modules/javaexec (Depends-on): Likewise.
76405 2008-09-01  Bruno Haible  <bruno@clisp.org>
76407         Split module 'filename' into 'filename' and 'concat-filename'.
76408         * modules/filename: Keep only lib/filename.h.
76409         (License): Change to LGPLv2+.
76410         * modules/concat-filename: New file, extracted from modules/filename.
76411         * lib/filename.h (concatenated_filename): Remove declaration.
76412         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76413         * lib/concat-filename.c: Include concat-filename.h.
76414         * NEWS: Mention the change.
76416 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76418         * lib/bitrotate.h (rotl8, rotr8): Add.
76420         * modules/bitrotate (configure.ac): Need
76421         AC_REQUIRE([AC_C_INLINE]).
76422         (Description): Mention stdint.h.  Reported by Bruno Haible
76423         <bruno@clisp.org>.
76425         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76426         Paolo Bonzini <bonzini@gnu.org>.
76428 2008-08-31  Bruno Haible  <bruno@clisp.org>
76430         Assume Solaris specific bi-arch conventions on Solaris systems.
76431         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76432         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76434         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76435         like acl_libdirstem.
76436         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76437         acl_libdirstem.
76438         * NEWS: Mention the change.
76439         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76441 2008-08-31  Jim Meyering  <meyering@redhat.com>
76443         * lib/strftime.h: Add comments describing the two added arguments.
76445         remove duplicate #include directives
76446         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76447         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76449 2008-08-31  Bruno Haible  <bruno@clisp.org>
76451         New module 'sigpipe-die'.
76452         * modules/sigpipe-die: New file.
76453         * lib/sigpipe-die.h: New file.
76454         * lib/sigpipe-die.c: New file.
76455         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76457 2008-08-31  Bruno Haible  <bruno@clisp.org>
76459         Don't override previously installed signal handlers.
76460         * lib/fatal-signal.c (saved_sigactions): New variable.
76461         (uninstall_handlers): Reset the signal to the saved handler, not
76462         to SIG_DFL (except when ignored).
76463         (install_handlers): Save the previous handlers.
76465 2008-08-30  Bruno Haible  <bruno@clisp.org>
76467         * gnulib-tool (func_reset_sigpipe): New function.
76468         (func_get_automake_snippet, func_modules_transitive_closure,
76469         func_import): Invoke it before a join command that reads from stdin,
76470         to avoid "echo: write error: Broken pipe" error messages on stderr.
76471         Reported by Sam Steingold <sds@gnu.org>.
76473 2008-08-30  Bruno Haible  <bruno@clisp.org>
76475         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76476         Code copied from m4/open.m4.
76477         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76478         access and the filename ends in a slash. Code copied from lib/open.c.
76479         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76480         * tests/test-fopen.c (main): Check against bug with trailing slash.
76482 2008-08-29  Bruno Haible  <bruno@clisp.org>
76484         Avoid some "gcc -pedantic" warnings.
76485         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76486         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76487         * lib/dirent.in.h: Likewise.
76488         * lib/fcntl.in.h: Likewise.
76489         * lib/float.in.h: Likewise.
76490         * lib/iconv.in.h: Likewise.
76491         * lib/inttypes.in.h: Likewise.
76492         * lib/locale.in.h: Likewise.
76493         * lib/math.in.h: Likewise.
76494         * lib/netinet_in.in.h: Likewise.
76495         * lib/search.in.h: Likewise.
76496         * lib/signal.in.h: Likewise.
76497         * lib/stdarg.in.h: Likewise.
76498         * lib/stdint.in.h: Likewise.
76499         * lib/stdio.in.h: Likewise.
76500         * lib/stdlib.in.h: Likewise.
76501         * lib/string.in.h: Likewise.
76502         * lib/strings.in.h: Likewise.
76503         * lib/sys_select.in.h: Likewise.
76504         * lib/sys_socket.in.h: Likewise.
76505         * lib/sys_stat.in.h: Likewise.
76506         * lib/sys_time.in.h: Likewise.
76507         * lib/sysexits.in.h: Likewise.
76508         * lib/time.in.h: Likewise.
76509         * lib/unistd.in.h: Likewise.
76510         * lib/wchar.in.h: Likewise.
76511         * lib/wctype.in.h: Likewise.
76512         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76513         * modules/fchdir (Makefile.am): Likewise.
76514         * modules/fcntl (Makefile.am): Likewise.
76515         * modules/float (Makefile.am): Likewise.
76516         * modules/iconv_open (Makefile.am): Likewise.
76517         * modules/inttypes (Makefile.am): Likewise.
76518         * modules/locale (Makefile.am): Likewise.
76519         * modules/math (Makefile.am): Likewise.
76520         * modules/netinet_in (Makefile.am): Likewise.
76521         * modules/search (Makefile.am): Likewise.
76522         * modules/signal (Makefile.am): Likewise.
76523         * modules/stdarg (Makefile.am): Likewise.
76524         * modules/stdint (Makefile.am): Likewise.
76525         * modules/stdio (Makefile.am): Likewise.
76526         * modules/stdlib (Makefile.am): Likewise.
76527         * modules/string (Makefile.am): Likewise.
76528         * modules/strings (Makefile.am): Likewise.
76529         * modules/sys_select (Makefile.am): Likewise.
76530         * modules/sys_socket (Makefile.am): Likewise.
76531         * modules/sys_stat (Makefile.am): Likewise.
76532         * modules/sys_time (Makefile.am): Likewise.
76533         * modules/sysexits (Makefile.am): Likewise.
76534         * modules/time (Makefile.am): Likewise.
76535         * modules/unistd (Makefile.am): Likewise.
76536         * modules/wchar (Makefile.am): Likewise.
76537         * modules/wctype (Makefile.am): Likewise.
76538         Reported by Reuben Thomas <rrt@sc3d.org>.
76540 2008-08-29  Bruno Haible  <bruno@clisp.org>
76542         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76543         any more.
76545 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76547         * MODULES.html.sh (Misc): Add bitrotate.
76549         * modules/bitrotate: New file.
76551         * lib/bitrotate.h: New file.
76553         * modules/bitrotate-tests: New file.
76555         * tests/test-bitrotate.c: New file.
76557         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76558         on the bitrotate module.
76560         * lib/arctwo.c: Use new bitrotate module.
76562 2008-08-29  Jim Meyering  <meyering@redhat.com>
76564         bootstrap: merge changes from coreutils
76565         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76566         of copied files.  Remove a kludge, now that this is fixed.
76567         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76568         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76569         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76571 2008-08-29  Bruno Haible  <bruno@clisp.org>
76573         * MODULES.html.sh: Remove --cvs-urls option.
76575 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76577         maint.mk: adjust to file name change
76578         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76580 2008-08-28  Jim Meyering  <meyering@redhat.com>
76582         * modules/getndelim2 (License): Relicense to LGPLv2+.
76583         Approved by Richard Stallman for the version of 1995, and by
76584         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76586 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76588         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76589         dummy if one is not available.  Do not touch them if
76590         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76591         (getc_maybe_unlocked): New.
76592         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76594 2008-08-26  Eric Blake  <ebb9@byu.net>
76596         doc/INSTALL: resync from autoconf
76597         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76598         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76599         moving...
76600         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76601         * INSTALL: Regenerate.
76602         * INSTALL.ISO: New file.
76603         * INSTALL.UTF-8: Likewise.
76605 2008-08-26  Jim Meyering  <meyering@redhat.com>
76607         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76608         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76609         these definitions conditional, so that they may be overridden, too.
76611 2008-08-26  Bruno Haible  <bruno@clisp.org>
76613         Generate INSTALL file variants with prettier quotes.
76614         * doc/Makefile (INSTALL_PRELUDE): New macro.
76615         (INSTALL): Use it.
76616         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76618 2008-08-26  Bruno Haible  <bruno@clisp.org>
76620         Run makeinfo in an English locale.
76621         * doc/Makefile (MAKEINFO): New variable.
76623 2008-08-26  Bruno Haible  <bruno@clisp.org>
76625         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76626         Suggested by Eric Blake.
76628 2008-08-25  Bruno Haible  <bruno@clisp.org>
76630         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76632 2008-08-25  Eric Blake  <ebb9@byu.net>
76634         c-stack: test that stack overflow can be caught
76635         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76636         that platform allows handling stack overflow; at least OS/2 EMX
76637         has sigaltstack, but crashes before transferring control to
76638         handler on stack overflow.
76639         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76640         check for HAVE_STACK_OVERFLOW_HANDLING.
76641         Reported by Elbert Pol.
76643 2008-08-25  Bruno Haible  <bruno@clisp.org>
76645         * doc/posix-functions/strftime.texi: Fix description of strftime
76646         module.
76648 2008-08-24  Bruno Haible  <bruno@clisp.org>
76650         * tests/uniwidth/test-uc_width2.c: New file.
76651         * tests/uniwidth/test-uc_width2.sh: New file.
76652         * modules/uniwidth/width-tests (Files): Add the new files.
76653         (TESTS): Add uniwidth/test-uc_width2.sh.
76654         (TESTS_ENVIRONMENT): New variable.
76655         (check_PROGRAMS): Add test-uc_width2.
76656         (test_uc_width2_SOURCES): New variable.
76658         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76659         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76660         not 0x00AB.
76661         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76663 2008-08-22  Eric Blake  <ebb9@byu.net>
76665         test-lock, test-tls: mention why a test is skipped
76666         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76667         skipped.
76668         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76670         count-one-bits: relax license
76671         * modules/count-one-bits (License): Relicense to LGPLv2+.
76672         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76674 2008-08-22  Andreas Schwab  <schwab@suse.de>
76676         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76677         Remove spurious space in assignment.
76679 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76681         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76682         Paul Eggert <eggert@CS.UCLA.EDU>.
76684 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76686         * modules/gettext: Add m4/threadlib.m4.
76688 2008-08-19  Eric Blake  <ebb9@byu.net>
76690         test-c-stack: fix compilation failure on FreeBSD 5.0
76691         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76692         headers before <sys/resource.h>.
76693         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76694         the bug.
76695         Reported by Nelson H. F. Beebe.
76697         strverscmp: migrate from "strverscmp.h" to <string.h>
76698         * modules/string (Makefile.am): Add new hooks.
76699         * modules/strverscmp (Files): Remove strverscmp.h.
76700         (Depends-on): Add string.
76701         (configure.ac): Add indicator.
76702         (Include): Mention new header.
76703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76704         defaults.
76705         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76706         results.
76707         * lib/strverscmp.h: Delete.
76708         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76709         * tests/test-strverscmp.c (includes): Adjust client.
76710         * lib/check-version.c (includes): Likewise.
76711         * NEWS: Document the change.
76713         strverscmp: add unit test
76714         * modules/strverscmp-tests: New file.
76715         * tests/test-strverscmp.c: Likewise.
76717 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76719         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76720         regarding Windows crypto stuff, from Mono.
76722 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76724         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76725         if present, for intel RND.  Return error on failures.
76727 2008-08-18  Ben Pfaff  <blp@gnu.org>
76729         gitlog-to-changelog: give better diagnostic for failed pipe-open
76730         * build-aux/gitlog-to-changelog: Improve error message: suggest
76731         that the version of Git may be too old.
76733 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76735         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76736         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76738 2008-08-18  Bruno Haible  <bruno@clisp.org>
76740         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76741         pthread_in_use().
76743 2008-08-18  Bruno Haible  <bruno@clisp.org>
76745         * lib/glthread/threadlib.c: Include <pthread.h>.
76747 2008-08-18  Bruno Haible  <bruno@clisp.org>
76749         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76750         glthread_recursive_lock_* macros.
76751         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76752         Fix syntax error.
76754 2008-08-18  Bruno Haible  <bruno@clisp.org>
76756         * lib/glthread/thread.c: Avoid forcing a context switch right after
76757         thread creation.
76759 2008-08-17  Bruno Haible  <bruno@clisp.org>
76761         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76762         * lib/glthread/thread.h: Provide Win32 specific implementation.
76763         * modules/thread (Files): Add lib/glthread/thread.c.
76764         (Depends-on): Add lock.
76765         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76767 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76769         New module 'yield'.
76770         * modules/yield: New file.
76771         * lib/glthread/yield.h: New file.
76772         * m4/yield.m4: New file.
76773         * MODULES.html.sh (Multithreading): Add yield.
76775 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76777         New module 'thread'.
76778         * modules/thread: New file.
76779         * lib/glthread/thread.h: New file.
76780         * m4/thread.m4: New file.
76781         * MODULES.html.sh (Multithreading): Add thread.
76783 2008-08-17  Bruno Haible  <bruno@clisp.org>
76785         * lib/glthread/lock.h: Include <stdlib.h> always.
76786         * lib/glthread/tls.h: Likewise.
76787         * lib/glthread/cond.h: Likewise.
76789 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76791         New module 'cond'.
76792         * modules/cond: New file.
76793         * lib/glthread/cond.h: New file.
76794         * lib/glthread/cond.c: New file.
76795         * m4/cond.m4: New file.
76796         * MODULES.html.sh (Multithreading): Add cond.
76798 2008-08-16  Eric Blake  <ebb9@byu.net>
76800         c-stack: fix regression on Irix 5.3 from 2008-06-21
76801         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76802         sa_sigaction...
76803         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76804         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76805         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76806         * modules/signal (Makefile.am): Use the value.
76807         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76808         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76809         * doc/posix-headers/signal.texi (signal.h): Document this
76810         portability issue.
76811         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76812         Reported by Tom G. Christensen.
76814 2008-08-17  Bruno Haible  <bruno@clisp.org>
76816         New module 'threadlib'.
76817         * modules/threadlib: New file.
76818         * lib/glthread/threadlib.c: New file, extracted from
76819         lib/glthread/lock.c.
76820         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76821         functions.
76822         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76823         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76824         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76825         macros.
76826         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76827         (gl_DISABLE_THREADS): Remove macro.
76828         * modules/lock (Files): Remove build-aux/config.rpath.
76829         (Depends-on): Remove havelib. Add threadlib.
76830         (configure.ac-early): Remove section.
76831         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76832         * modules/tls (Depends-on): Remove lock. Add threadlib.
76833         (Link): New section, copied from threadlib.
76834         * MODULES.html.sh (Multithreading): Add threadlib.
76836 2008-08-14  Bruno Haible  <bruno@clisp.org>
76838         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76839         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76840         glthread_rwlock_unlock, glthread_rwlock_destroy,
76841         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76842         glthread_recursive_lock_destroy): Define as macros always.
76843         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76844         glthread_lock_lock.
76845         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76846         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76847         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76848         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76849         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76850         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76851         (glthread_recursive_lock_lock_func): Renamed from
76852         glthread_recursive_lock_lock.
76853         (glthread_recursive_lock_unlock_func): Renamed from
76854         glthread_recursive_lock_unlock.
76855         (glthread_recursive_lock_destroy_func): Renamed from
76856         glthread_recursive_lock_destroy.
76858 2008-08-14  Bruno Haible  <bruno@clisp.org>
76860         * lib/glthread/lock.h: Renamed from lib/lock.h.
76861         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76862         * lib/glthread/tls.h: Renamed from lib/tls.h.
76863         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76864         * lib/fstrcmp.c: Update includes.
76865         * lib/strsignal.c: Update includes.
76866         * modules/lock (Files, Makefile.am): Update.
76867         (Include): Change to "glthread/lock.h".
76868         * modules/tls (Files, Makefile.am): Update.
76869         (Include): Change to "glthread/tls.h".
76870         * tests/test-lock.c: Update includes.
76871         * tests/test-tls.c: Update includes.
76872         * NEWS: Mention the renamed header files.
76874 2008-08-11  Jim Meyering  <meyering@redhat.com>
76876         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76878 2008-08-11  Eric Blake  <ebb9@byu.net>
76880         test-c-stack: avoid C99-ism
76881         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76882         before statement.
76883         Reported by Alain Guibert.
76885 2008-08-10  Jim Meyering  <meyering@redhat.com>
76887         ensure that return value of uinttostr et al are not ignored
76888         * lib/inttostr.h (__GNUC_PREREQ): Define.
76889         (__attribute_warn_unused_result__): Define.
76890         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76892 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76894         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76895         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76897 2008-08-07  Jim Meyering  <meyering@redhat.com>
76899         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76901         * modules/mkstemp (License): Relicense under LGPLv2+.
76902         * modules/tempname (License): Likewise.
76904 2008-08-06  Bruno Haible  <bruno@clisp.org>
76906         * lib/poll.c (poll): Further micro-optimization.
76908 2008-08-06  Jim Meyering  <meyering@redhat.com>
76910         inet_pton.c: use locale-independent tolower
76911         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76912         (inet_pton6): Use c_tolower rather than tolower.
76913         * modules/inet_pton (Depends-on): Add c-ctype.
76915 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76917         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76918         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76920 2008-08-06  Jim Meyering  <meyering@redhat.com>
76922         * modules/inet_pton (License): Relicense under LGPLv2+.
76924 2008-08-03  Bruno Haible  <bruno@clisp.org>
76926         Additional non-aborting API for lock and tls.
76927         * lib/lock.h: Include <errno.h>.
76928         (glthread_lock_init): New macro/function.
76929         (gl_lock_init): Define as wrapper around glthread_lock_init.
76930         (glthread_lock_lock): New macro/function.
76931         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76932         (glthread_lock_unlock): New macro/function.
76933         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76934         (glthread_lock_destroy): New macro/function.
76935         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76936         (glthread_rwlock_init): New macro/function.
76937         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76938         (glthread_rwlock_rdlock): New macro/function.
76939         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76940         (glthread_rwlock_wrlock): New macro/function.
76941         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76942         (glthread_rwlock_unlock): New macro/function.
76943         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76944         (glthread_rwlock_destroy): New macro/function.
76945         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76946         (glthread_recursive_lock_init): New macro/function.
76947         (gl_recursive_lock_init): Define as wrapper around
76948         glthread_recursive_lock_init.
76949         (glthread_recursive_lock_lock): New macro/function.
76950         (gl_recursive_lock_lock): Define as wrapper around
76951         glthread_recursive_lock_lock.
76952         (glthread_recursive_lock_unlock): New macro/function.
76953         (gl_recursive_lock_unlock): Define as wrapper around
76954         glthread_recursive_lock_unlock.
76955         (glthread_recursive_lock_destroy): New macro/function.
76956         (gl_recursive_lock_destroy): Define as wrapper around
76957         glthread_recursive_lock_destroy.
76958         (glthread_once): New macro/function.
76959         (gl_once): Define as wrapper around glthread_once.
76960         Update function declarations.
76961         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76962         glthread_rwlock_init. Return error code.
76963         (glthread_rwlock_rdlock_multithreaded): Renamed from
76964         glthread_rwlock_rdlock. Return error code.
76965         (glthread_rwlock_wrlock_multithreaded): Renamed from
76966         glthread_rwlock_wrlock. Return error code.
76967         (glthread_rwlock_unlock_multithreaded): Renamed from
76968         glthread_rwlock_unlock. Return error code.
76969         (glthread_rwlock_destroy_multithreaded): Renamed from
76970         glthread_rwlock_destroy. Return error code.
76971         (glthread_recursive_lock_init_multithreaded): Renamed from
76972         glthread_recursive_lock_init. Return error code.
76973         (glthread_recursive_lock_lock_multithreaded): Renamed from
76974         glthread_recursive_lock_lock. Return error code.
76975         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76976         glthread_recursive_lock_unlock. Return error code.
76977         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76978         glthread_recursive_lock_destroy. Return error code.
76979         (glthread_once_call): Make static.
76980         (glthread_once_multithreaded): Renamed from glthread_once.
76981         * lib/tls.h: Include <errno.h>.
76982         (glthread_tls_key_init): New macro/function.
76983         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76984         (glthread_tls_set): New macro/function.
76985         (gl_tls_set): Define as wrapper around glthread_tls_set.
76986         (glthread_tls_key_destroy): New macro/function.
76987         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76988         Update function declarations.
76989         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76990         glthread_tls_get.
76991         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76993 2008-08-04  Eric Blake  <ebb9@byu.net>
76995         gnumakefile: use space, not TAB, outside of targets
76996         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76998 2008-08-02  Jim Meyering  <meyering@redhat.com>
77000         getdate.y: avoid locale-dependent date parsing failure
77001         In Turkish locales, getdate would fail to recognize keywords
77002         containing a lowercase "i".  The solution is not to rely on
77003         locale-sensitive case-conversion.
77004         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
77005         (lookup_word): Use c_toupper in place of toupper.
77006         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
77007         Reported by Vefa Bicakci <bicave@superonline.com> in
77008         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
77009         * modules/getdate (Depends-on): Add c-ctype.
77011 2008-08-02  Bruno Haible  <bruno@clisp.org>
77013         * gnulib-tool (func_import): When updating or creating a .gitignore
77014         file, prepend each added line with a slash, and ignore leading slashes
77015         from the existing lines.
77016         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77018 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77020         Portability fix for GNU make 3.79.1.
77021         * top/GNUmakefile: Avoid 'else COND', which older GNU make
77022         versions do not understand.
77024 2008-08-01  Bruno Haible  <bruno@clisp.org>
77026         Work around bug of HP-UX 10.20 cc with -0.0 literal.
77027         * tests/test-isnanf.h (zero): New variable.
77028         (main): Avoid literal -0.0f.
77029         * tests/test-isnand.h (zero): New variable.
77030         (main): Avoid literal -0.0.
77031         * tests/test-isnanl.h (zero): New variable.
77032         (main): Avoid literal -0.0L.
77033         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
77034         (test_float, test_double, test_long_double): Avoid literals -0.0f,
77035         -0.0, -0.0L.
77036         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
77037         (test_signbitd): Avoid literal -0.0.
77038         (test_signbitl): Avoid literal -0.0L.
77039         * tests/test-ceilf1.c (zero): New variable.
77040         (main): Avoid literal -0.0f.
77041         * tests/test-ceill.c (zero): New variable.
77042         (main): Avoid literal -0.0L.
77043         * tests/test-floorf1.c (zero): New variable.
77044         (main): Avoid literal -0.0f.
77045         * tests/test-floorl.c (zero): New variable.
77046         (main): Avoid literal -0.0L.
77047         * tests/test-roundf1.c (zero): New variable.
77048         (main): Avoid literal -0.0f.
77049         * tests/test-round1.c (zero): New variable.
77050         (main): Avoid literal -0.0.
77051         * tests/test-roundl.c (zero): New variable.
77052         (main): Avoid literal -0.0L.
77053         * tests/test-truncf1.c (zero): New variable.
77054         (main): Avoid literal -0.0f.
77055         * tests/test-trunc1.c (zero): New variable.
77056         (main): Avoid literal -0.0.
77057         * tests/test-truncl.c (zero): New variable.
77058         (main): Avoid literal -0.0L.
77059         * tests/test-frexp.c (zero): New variable.
77060         (main): Avoid literal -0.0.
77061         * tests/test-frexpl.c (zero): New variable.
77062         (main): Avoid literal -0.0L.
77063         * tests/test-ldexpl.c (zero): New variable.
77064         (main): Avoid literal -0.0L.
77065         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77066         (zerod, zerol): New variables.
77067         (test_function): Avoid literals -0.0, -0.0L.
77068         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77069         (zerod, zerol): New variables.
77070         (test_function): Avoid literals -0.0, -0.0L.
77071         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77072         (zerod, zerol): New variables.
77073         (test_function): Avoid literals -0.0, -0.0L.
77074         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77075         (zerod, zerol): New variables.
77076         (test_function): Avoid literals -0.0, -0.0L.
77077         * tests/test-strtod.c (zero): New variable.
77078         (main): Avoid literal -0.0.
77079         Reported by Jonathan C. Patschke <jp@centtech.com>.
77081 2008-07-31  Jim Meyering  <meyering@redhat.com>
77083         sha256.h: correct definition of SHA224_DIGEST_SIZE
77084         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
77085         Reported by Paulie Pena IV <paulie4@gmail.com>.
77086         Define as 224 / 8, rather than as a literal.
77087         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
77088         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
77089         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
77091 2008-07-31  Bruno Haible  <bruno@clisp.org>
77093         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
77094         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
77095         Reported by Jonathan Patschke <jp@centtech.com>.
77097 2008-07-31  Bruno Haible  <bruno@clisp.org>
77099         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
77100         Reported by Paolo Bonzini <bonzini@gnu.org>.
77102 2008-07-30  Eric Blake  <ebb9@byu.net>
77104         test-strtod: allow compilation without -lm
77105         * tests/test-strtod.c (main): Avoid link dependence on fabs.
77106         Reported by Dennis Clarke <blastwave@gmail.com>.
77108 2008-07-28  Jim Meyering  <meyering@redhat.com>
77110         bootstrap: work also when there are no .po files in po/
77111         * build-aux/bootstrap (update_po_files): Complete the change
77112         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
77114 2008-07-27  Jim Meyering  <meyering@redhat.com>
77116         * users.txt: Add zile.
77118 2008-07-26  Ben Pfaff  <blp@gnu.org>
77120         Add missing dependencies on new m4/exponent[fdl].m4 files.
77121         * modules/isnanf-nolibm: Add m4/exponentf.m4.
77122         * modules/isnand-nolibm: Add m4/exponentd.m4.
77123         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77124         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77125         m4/isnan[fdl].m4, because the macros actually used moved.
77126         Reported by Jim Meyering.
77128 2008-07-14  Ben Pfaff  <blp@gnu.org>
77130         Add isinf module.
77131         * lib/isinf.c: New file.
77132         * lib/math.in.h: Define isinf macro if we have decided to replace
77133         it.
77134         * m4/isinf.m4: New file.
77135         * m4/math_h.m4: Initialize and substitute variables for isinf
77136         module.
77137         * modules/isinf: New file.
77138         * modules/isinf-tests: New file.
77139         * modules/math: Add substitutions for new module.
77140         * tests/test-isinf.c: New file.
77141         * doc/posix-functions/isinf.texi: Mention new module.
77142         * MODULES.html.sh: Mention new module.
77144 2008-07-14  Ben Pfaff  <blp@gnu.org>
77146         Factor out some macros for use by additional modules.
77147         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77148         exponentf.m4.
77149         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77150         exponentd.m4.
77151         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77152         file exponentl.m4.
77153         * m4/exponentf.m4: New file.
77154         * m4/exponentd.m4: New file.
77155         * m4/exponentl.m4: New file.
77156         * modules/isnanf: Use new file m4/exponentf.m4.
77157         * modules/isnand: Use new file m4/exponentd.m4.
77158         * modules/isnanl: Use new file m4/exponentl.m4.
77160 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77162         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77163         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77164         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77165         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77167         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77168         readlink on platforms without PATH_MAX.
77170 2008-07-21  Eric Blake  <ebb9@byu.net>
77172         Warn, not fail, on stale version.
77173         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77175         Don't allow installation with stale devel version number.
77176         * top/GNUmakefile (_is-install-target): New macro.
77177         (_curr-ver): Forbid installation with stale version number.
77179 2008-07-20  Bruno Haible  <bruno@clisp.org>
77181         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77182         TESTS_ENVIRONMENT.
77183         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77185 2008-07-20  Bruno Haible  <bruno@clisp.org>
77187         * lib/c-stack.h (c_stack_action): Add documentation.
77188         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77190 2008-07-20  Bruno Haible  <bruno@clisp.org>
77192         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77193         * modules/readlink (License): Likewise.
77195 2008-07-17  Eric Blake  <ebb9@byu.net>
77197         * modules/c-stack (Link): Fix typo.
77199         Make c-stack use libsigsegv, when available.
77200         * modules/c-stack (Depends-on): Add libsigsegv.
77201         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77202         needed.
77203         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77204         (segv_handler, overflow_handler, c_stack_action)
77205         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77206         implementation when libsigsegv is available, but only when using
77207         the library is necessary.
77208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77209         comment, explaining why XSI check fails on Linux.
77210         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77211         * tests/test-c-stack2.sh: Tweak skip message.
77212         * NEWS: Document new link-time requirements.
77214 2008-07-16  Eric Blake  <ebb9@byu.net>
77216         c-stack: Expose false positives when not using libsigsegv.
77217         * modules/c-stack-tests (Files): Expand test.
77218         * tests/test-c-stack.c (main): Add means to conditionally trigger
77219         non-overflow SIGSEGV.
77220         * tests/test-c-stack2.sh: New file.
77222 2008-07-14  Bruno Haible  <bruno@clisp.org>
77224         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77225         Reported by Eric Blake.
77227 2008-07-14  Sam Steingold  <sds@gnu.org>
77228             Bruno Haible  <bruno@clisp.org>
77230         New module libsigsegv.
77231         * modules/libsigsegv: New file.
77232         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77233         modifications.
77234         * MODULES.html.sh (Signal handling): New section.
77236 2008-07-14  Bruno Haible  <bruno@clisp.org>
77238         * modules/unictype/ctype-* (Description): Add the word "function".
77239         Improves the resulting doc in MODULES.html.
77241 2008-07-12  Ben Pfaff  <blp@gnu.org>
77243         Add longlong module.
77244         * modules/longlong: New file.
77246 2008-07-12  Bruno Haible  <bruno@clisp.org>
77248         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77249         to empty.
77251 2008-07-10  Ben Pfaff  <blp@gnu.org>
77253         Add isnan module.
77254         * doc/posix-functions/isnan.texi: Mention new module.
77255         * lib/math.in.h: Define isnan macro if we have decided to replace
77256         it.
77257         * m4/isnan.m4: New file.
77258         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77259         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77260         also.
77261         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77262         redundancy.
77263         * m4/math_h.m4: Initialize and substitute variables for isnan
77264         module.
77265         * modules/isnan: New file.
77266         * modules/isnan-tests: New file.
77267         * modules/math: Add substitutions for new module.
77268         * tests/test-isnan.c: New file.
77269         * MODULES.html.sh: Mention new module.
77271 2008-07-10  Ben Pfaff  <blp@gnu.org>
77273         Add isnanf module.
77274         * lib/isnanf.m4: New file.
77275         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77276         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77277         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77278         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77279         * modules/isnanf: New file.
77280         * modules/isnanf-tests: New file.
77281         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77282         files.
77283         * tests/test-isnanf-nolibm.c: factored most of its contents into
77284         new file tests/test-isnanf.h.
77285         * tests/test-isnanf.h: New file.
77286         * tests/test-isnanf.c: New file.
77287         * MODULES.html.sh: Mention new module.
77288         * doc/glibc-functions/isnanf.texi: Mention new module.
77290 2008-07-10  Ben Pfaff  <blp@gnu.org>
77292         Add isnand module.
77293         * lib/isnand.h: New file.
77294         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77295         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77296         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77297         functionality also.
77298         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77299         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77300         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77301         * modules/isnand: New file.
77302         * modules/isnand-tests: New file.
77303         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77304         files.
77305         * tests/test-isnand-nolibm.c: factored most of its contents into
77306         new file tests/test-isnand.h.
77307         * tests/test-isnand.h: New file.
77308         * tests/test-isnand.c: New file.
77309         * MODULES.html.sh: Mention new module.
77311 2008-07-10  Ben Pfaff  <blp@gnu.org>
77313         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77314         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77315         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77316         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77317         * modules/isnanf-nolibm: Update references to renamed files.
77318         * modules/isnand-nolibm: Likewise.
77319         * modules/isnanf-nolibm-tests: Likewise.
77320         * modules/isnand-nolibm-tests: Likewise.
77321         * lib/frexp.c: Likewise.
77322         * lib/isfinite.c: Likewise.
77323         * lib/signbitd.c: Likewise.
77324         * lib/signbitf.c: Likewise.
77325         * lib/vasnprintf.c: Likewise.
77326         * tests/test-ceilf1.c: Likewise.
77327         * tests/test-ceilf2.c: Likewise.
77328         * tests/test-floorf1.c: Likewise.
77329         * tests/test-floorf2.c: Likewise.
77330         * tests/test-frexp.c: Likewise.
77331         * tests/test-round1.c: Likewise.
77332         * tests/test-round2.c: Likewise.
77333         * tests/test-roundf1.c: Likewise.
77334         * tests/test-strtod.c: Likewise.
77335         * tests/test-trunc1.c: Likewise.
77336         * tests/test-trunc2.c: Likewise.
77337         * tests/test-truncf1.c: Likewise.
77338         * tests/test-truncf2.c: Likewise.
77339         * NEWS: Mention the renamed header files.
77341 2008-07-11  Jim Meyering  <meyering@redhat.com>
77343         vc-list-files: make the last-resort awk code more portable
77344         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77345         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77346         does not support it.
77348 2008-07-10  Eric Blake  <ebb9@byu.net>
77350         Work with tar's bootstrap.
77351         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77352         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77353         an m4 comment.
77355 2008-07-09  Jim Meyering  <meyering@redhat.com>
77357         posix-shell.m4: fix typo that made this test malfunction
77358         * m4/posix-shell.m4: Remove capitalization in variable name.
77360 2008-07-08  Bruno Haible  <bruno@clisp.org>
77362         * m4/onceonly.m4: Update comments.
77363         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77365 2008-07-04  Jim Meyering  <meyering@redhat.com>
77367         * users.txt: Add vc-dwim.
77368         (bison, coreutils): Use the gitweb URL.
77370 2008-07-03  Jim Meyering  <meyering@redhat.com>
77372         * users.txt: Add libffcall.  From Sam Steingold.
77374 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77376         getdate.y: do not ignore TZ with relative day, month or year offset
77377         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77378         relative-date-handling, since otherwise, the latter would clobber the
77379         sole output (an updated Start value) of the tz-handling block.
77380         * tests/test-getdate.c: Tests for the fix
77382 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77384         Recognize 'foo_LIBRARIES += libgnu.a'.
77385         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77386         makefile snippet has already specified an installation location,
77387         also using '+='.
77389 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77391         getdate.y: factor out common actions
77392         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77393         Use them in place of open-coded actions.
77395 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77397         Add self-test for getdate module.
77398         * modules/getdate-tests: New file.
77399         * tests/test-getdate.c: New file.
77401 2008-06-29  Bruno Haible  <bruno@clisp.org>
77403         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77404         .gitignore.
77405         Reported by Sylvain Beucler <beuc@beuc.net>.
77407 2008-06-29  Bruno Haible  <bruno@clisp.org>
77409         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77410         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77412 2008-06-29  Bruno Haible  <bruno@clisp.org>
77414         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77415         EXTRA_DIST.
77416         Reported by Sylvain Beucler <beuc@beuc.net>.
77418 2008-06-26  Jim Meyering  <meyering@redhat.com>
77420         make several modules depend on the "open" module
77421         This provides slightly increased consistency when opening-for-write
77422         the name of a non-directory spelled with a trailing slash.
77423         * modules/chdir-safer: Likewise.
77424         * modules/chown: Likewise.
77425         * modules/clean-temp: Likewise.
77426         * modules/copy-file: Likewise.
77427         * modules/fchdir: Likewise.
77428         * modules/fcntl-safer: Likewise.
77429         * modules/pipe: Likewise.
77430         * modules/utime: Likewise.
77431         Prompted by Eric Blake and Bruno Haible.
77433 2008-06-24  Andreas Schwab  <schwab@suse.de>
77435         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77436         literals can be used as initializers for global variables.
77438 2008-06-23  Eric Blake  <ebb9@byu.net>
77440         Make gnulib-cache.m4 easier to diff.
77441         * gnulib-tool (func_import): Allow newlines when reading cached
77442         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77444 2008-06-23  Bruno Haible  <bruno@clisp.org>
77446         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77447         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77448         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77449         m4/signalblocking.m4.
77450         (gl_PREREQ_SIGACTION): Don't invoke it.
77451         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77452         gl_PREREQ_SIG_HANDLER_H.
77453         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77454         Don't check for sigaction here.
77456 2008-06-23  Bruno Haible  <bruno@clisp.org>
77458         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77459         (install_handlers): Don't set the SA_RESETHAND flag.
77461 2008-06-23  Bruno Haible  <bruno@clisp.org>
77463         * m4/sigaction.m4: Comment fixes.
77464         * lib/signal.in.h: Likewise.
77466 2008-06-23  Eric Blake  <ebb9@byu.net>
77468         Fix typo.
77469         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77471         Avoid SA_ namespace.
77472         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77473         Reported by Ralf Wildenhues.
77475         Avoid test failure due to SA_RESTORER.
77476         * tests/test-sigaction.c (SA_MASK): New macro.
77477         (main): Avoid failing due to extension flags being set.
77478         Reported by Jim Meyering.
77480         Revert use of sig-handler.h in sigprocmask.c.
77481         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77482         it requires the existence of struct sigaction.
77483         * lib/sigprocmask.c (handler_t): Restore typedef.
77484         (rpl_signal, old_handlers): Use local type.
77486 2008-06-22  Bruno Haible  <bruno@clisp.org>
77488         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77489         conditionally.
77490         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77492 2008-06-22  Bruno Haible  <bruno@clisp.org>
77494         * doc/posix-functions/siginterrupt.texi: Move note.
77496         * lib/signal.in.h (SA_RESTART): New macro.
77497         * lib/sigaction.c: Update comment.
77499         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77501         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77502         (gl_PREREQ_SIGPROCMASK): Invoke it.
77503         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77505         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77507         * lib/sigprocmask.c: Update a comment.
77509 2008-06-21  Eric Blake  <ebb9@byu.net>
77511         Use sigaction module rather than signal().
77512         * modules/c-stack (Depends-on): Add sigaction.
77513         * modules/fatal-signal (Depends-on): Likewise.
77514         * modules/nanosleep (Depends-on): Likewise.
77515         * modules/sigprocmask (Files): Add sig-handler.h.
77516         * modules/sigaction (Files): Likewise.
77517         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77518         Eggert.
77519         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77520         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77521         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77522         (init_fatal_signals): Likewise.
77523         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77524         (siginterrupt): Delete fallback.
77525         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77526         instead.
77527         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77528         siginterrupt.
77530         New module sigaction, for mingw.
77531         * modules/sigaction: New module...
77532         * modules/sigaction-tests: ...and its test.
77533         * m4/sigaction.m4: New file.
77534         * lib/sigaction.c: Likewise.
77535         * tests/test-sigaction.c: Likewise.
77536         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77537         * modules/signal (Makefile.am): Likewise.
77538         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77539         needed.
77540         * doc/posix-headers/signal.texi (signal.h): Mention provided
77541         types.
77542         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77543         that sigaction is preferable.
77544         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77545         module.
77546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77547         sigaction.
77549         Improve robustness of sigprocmask by overriding signal.
77550         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77551         is in use.
77552         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77553         (SIGKILL, SIGSTOP): Provide fallbacks.
77554         (rpl_signal): Implement.
77555         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77556         signal can be called inside handlers.
77558         Fix nanosleep module on mingw.
77559         * modules/nanosleep (Depends-on): Add sys_select.
77560         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77562         Fix licensing of sigprocmask.
77563         * modules/raise (License): Relicense as LGPL.
77565 2008-06-21  Bruno Haible  <bruno@clisp.org>
77567         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77568         result if it contains question marks.
77569         Reported by Michael Geng <linux@michaelgeng.de>.
77571 2008-06-19  Bruno Haible  <bruno@clisp.org>
77573         Fix CVS-ism.
77574         * doc/gnulib.texi: Include updated-stamp.texi.
77575         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77576         (updated-stamp.texi): New rule.
77577         (gnulib.info): Depend on it.
77578         * doc/.gitignore: Add updated-stamp.texi.
77579         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77581 2008-06-19  Bruno Haible  <bruno@clisp.org>
77583         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77584         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77586 2008-06-19  Eric Blake  <ebb9@byu.net>
77588         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77589         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77590         Reported by Stepan Kasal.
77592 2008-06-18  Bruno Haible  <bruno@clisp.org>
77594         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77595         Reported by Eric Blake.
77597 2008-06-18  Eric Blake  <ebb9@byu.net>
77599         Work around cygwin 1.5.25 strsignal bug.
77600         * tests/test-strsignal.c: Allow for const char *.
77601         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77603 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77605         * users.txt: Update URL to article and add author/date
77606         information.
77608 2008-06-17  Bruno Haible  <bruno@clisp.org>
77610         New macro gl_DISABLE_THREADS.
77611         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77612         if the user did not pass --enable-threads or --disable-threads option.
77613         (gl_DISABLE_THREADS): New macro.
77614         Reported by Eric Blake <ebb9@byu.net>.
77616 2008-06-17  Bruno Haible  <bruno@clisp.org>
77618         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77619         when the macro ignores it.
77620         Based on a patch by Eric Blake <ebb9@byu.net>.
77622 2008-06-17  Bruno Haible  <bruno@clisp.org>
77624         * modules/tls (License): Change to LGPLv2+.
77625         Reported by Eric Blake.
77627 2008-06-17  Eric Blake  <ebb9@byu.net>
77629         Simplify c-stack prerequisites.
77630         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77632         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77633         check.
77634         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77635         <sys/resource.h>.
77637         Move c-stack test into testsuite.
77638         * modules/c-stack-tests: New file.
77639         * lib/c-stack.c [DEBUG]: Move test program...
77640         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77641         fail test if sigaltstack is lacking.
77642         * tests/test-c-stack.sh: New driver file.
77644 2008-06-16  Eric Blake  <ebb9@byu.net>
77646         Use raise module consistently.
77647         * modules/fatal-signal (Depends-on): Add raise.
77648         * modules/sigprocmask (Depends-on): Likewise.
77649         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77650         * lib/sigprocmask.c (sigprocmask): Likewise.
77651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77652         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77654         Fix compliance bug in sigpending.
77655         * lib/sigprocmask.c (sigpending): Return pending array via
77656         parameter, not return value.
77658 2008-06-14  Eric Blake  <ebb9@byu.net>
77660         Improve obstack-printf test code.
77661         * tests/test-obstack-printf.c (test_function): Fix comment, and
77662         simplify usage of obstack_* in macros.  Add a test for coverage.
77663         Reported by Bruno Haible.
77665 2008-06-14  Bruno Haible  <bruno@clisp.org>
77667         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77668         array size as a constant, not as a const variable.
77669         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77670         AC_USE_SYSTEM_EXTENSIONS.
77671         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77672         Test whether the obstack_printf function actually exists.
77673         * modules/obstack-printf (Depends-on): Add extensions.
77674         (Include): Remove obstack.h.
77675         * modules/obstack-printf-posix (Depends-on): Add extensions.
77676         (Include): Remove obstack.h.
77678 2008-06-13  Eric Blake  <ebb9@byu.net>
77680         Add obstack-printf and obstack-printf-posix modules.
77681         * modules/obstack-printf: New file.
77682         * modules/obstack-printf-posix: Likewise.
77683         * MODULES.html.sh (Misc): Mention them.
77684         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77685         Likewise.
77686         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77687         Likewise.
77688         * modules/stdio (Makefile.am): Accomodate new modules.
77689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77690         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77691         Declare.
77692         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77693         functions.
77694         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77695         (gl_REPLACE_OBSTACK_PRINTF): New macros
77696         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77697         * tests/test-obstack-printf.c: New file.
77698         * modules/obstack-printf-tests: Likewise.
77699         * modules/obstack-printf-posix-tests: Likewise.
77701 2008-06-11  Bruno Haible  <bruno@clisp.org>
77703         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77704         * lib/open.c: Include errno.h.
77705         (open): Fail when attempting to write to a file that has a trailing
77706         slash.
77707         * tests/test-open.c (main): Test against trailing slash bug.
77708         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77710 2008-06-10  Bruno Haible  <bruno@clisp.org>
77712         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77713         for $? to work inside the trap command, with various /bin/sh-s.
77714         * tests/test-vc-list-files-cvs.sh: Likewise.
77716 2008-06-10  Bruno Haible  <bruno@clisp.org>
77718         * lib/acl-internal.h: Don't include gettext.h here.
77719         * lib/set-mode-acl.c: Include gettext.h here.
77720         * lib/copy-acl.c: Likewise.
77722 2008-06-10  Bruno Haible  <bruno@clisp.org>
77724         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77725         * lib/wait-process.c (wait_subprocess): Likewise.
77726         * lib/execute.h (execute): Add termsigp argument.
77727         * lib/execute.c (execute): Likewise.
77728         * lib/csharpcomp.c (compile_csharp_using_pnet,
77729         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77730         * lib/csharpexec.c (execute_csharp_using_pnet,
77731         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77732         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77733         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77734         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77735         is_jikes_present): Update.
77736         * lib/javaexec.c (execute_java_class): Update.
77737         * lib/javaversion.c (execute_and_read_line): Update.
77738         * NEWS: Document the changes.
77739         Reported by Eric Blake.
77741 2008-06-10  Eric Blake  <ebb9@byu.net>
77743         Add missing include.
77744         * tests/test-strstr.c (includes): Add <signal.h>.
77745         * tests/test-strcasestr.c (includes): Likewise.
77746         * tests/test-memmem.c (includes): Likewise.
77748 2008-06-10  Bruno Haible  <bruno@clisp.org>
77750         * lib/wait-process.c (wait_subprocess): Add an assertion.
77752 2008-06-10  Bruno Haible  <bruno@clisp.org>
77754         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77756 2008-06-10  Bruno Haible  <bruno@clisp.org>
77758         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77759         using alarm().
77760         * tests/test-strcasestr.c (main): Likewise.
77761         * tests/test-strstr.c (main): Likewise.
77763 2008-06-09  Bruno Haible  <bruno@clisp.org>
77765         Work around the Solaris 10 ACE ACLs ABI change.
77766         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77767         declare if ACL_NO_TRIVIAL is present.
77768         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77769         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77770         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77771         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77772         define if ACL_NO_TRIVIAL is present.
77773         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77774         and use the current ABI.
77775         (file_has_acl): Use same #if condition as elsewhere.
77776         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77777         in use, and use the current ABI.
77778         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77779         Reported by Jim Meyering.
77781 2008-06-09  Eric Blake  <ebb9@byu.net>
77783         Work around environments that (stupidly) ignore SIGALRM.
77784         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77785         before using alarm().
77786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77788         Reported by Ian Beckwith <ianb@erislabs.net>.
77790         Produce autobuild blurb earlier in log.
77791         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77793 2008-06-09  Jim Meyering  <meyering@redhat.com>
77794         and Ondřej Vašík  <ovasik@redhat.com>
77796         utimens.c: correct kernel bug work-around
77797         Ondřej Vašík found that the invalid return value of 280 indicates
77798         failure, not success, and the kernel bug we're trying to work
77799         around affects not just the utimensat call, but also the fallback
77800         futimens call.
77801         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77802         not success.
77803         [HAVE_FUTIMENS]: Use the same work-around, here.
77805 2008-06-09  Jim Meyering  <meyering@redhat.com>
77807         add more guards around definition of ACE_-related code
77808         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77809         ALLOW and ACE_OWNER are also defined.
77811 2008-06-08  Bruno Haible  <bruno@clisp.org>
77813         * lib/acl-internal.h: Add me as co-author.
77814         * lib/file-has-acl.c: Likewise.
77815         * lib/set-mode-acl.c: Likewise.
77816         * lib/copy-acl.c: Likewise.
77818 2008-06-08  Bruno Haible  <bruno@clisp.org>
77820         Add support for AIX ACLs.
77821         * lib/acl-internal.h (acl_nontrivial): New declaration.
77822         * lib/file-has-acl.c (acl_nontrivial): New function.
77823         (file_has_acl): Add implementation using AIX 4 ACL API.
77824         * lib/set-mode-acl.c (qset_acl): Likewise.
77825         * lib/copy-acl.c (qcopy_acl): Likewise.
77827 2008-06-08  Bruno Haible  <bruno@clisp.org>
77829         Add support for HP-UX ACLs.
77830         * lib/acl-internal.h (acl_nontrivial): New declaration.
77831         * lib/file-has-acl.c (acl_nontrivial): New function.
77832         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77833         * lib/set-mode-acl.c (qset_acl): Likewise.
77834         * lib/copy-acl.c (qcopy_acl): Likewise.
77836 2008-06-08  Bruno Haible  <bruno@clisp.org>
77838         Add support for Cygwin ACLs.
77839         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77840         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77841         the chmod_or_fchmod call.
77842         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77844 2008-06-08  Bruno Haible  <bruno@clisp.org>
77846         Fix bug with setuid modes in Solaris 10+ code.
77847         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77848         succeeded, when the mode contains some special bits.
77850 2008-06-08  Bruno Haible  <bruno@clisp.org>
77852         Add support for Solaris 7..10 ACLs.
77853         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77854         declarations.
77855         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77856         functions.
77857         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77858         * lib/set-mode-acl.c (qset_acl): Likewise.
77859         * lib/copy-acl.c (qcopy_acl): Likewise.
77861 2008-06-08  Bruno Haible  <bruno@clisp.org>
77863         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77864         declaration.
77865         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77866         (acl_access_nontrivial): Remove MacOS X case.
77867         (file_has_acl): Use acl_extended_nontrivial.
77868         * lib/copy-acl.c (qcopy_acl): Likewise.
77870 2008-06-08  Bruno Haible  <bruno@clisp.org>
77872         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77874 2008-06-08  Jim Meyering  <meyering@redhat.com>
77876         * modules/acl (Maintainer): Add Bruno Haible.
77878 2008-06-07  Bruno Haible  <bruno@clisp.org>
77880         Improve support for Tru64 ACLs.
77881         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77882         ACL on OSF/1.
77884 2008-06-07  Bruno Haible  <bruno@clisp.org>
77886         Add support for MacOS X ACLs.
77887         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77888         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77889         * lib/set-mode-acl.c (qset_acl): Likewise.
77890         * lib/copy-acl.c (qcopy_acl): Likewise.
77892 2008-06-07  Bruno Haible  <bruno@clisp.org>
77894         Fix memory leak introduced on 2008-05-22.
77895         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77896         use.
77898 2008-06-07  Bruno Haible  <bruno@clisp.org>
77900         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77901         to construct an empty ACL.
77903 2008-06-07  Bruno Haible  <bruno@clisp.org>
77905         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77906         precisely.
77907         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77909 2008-06-07  Bruno Haible  <bruno@clisp.org>
77911         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77912         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77914 2008-06-07  Bruno Haible  <bruno@clisp.org>
77916         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77917         regardless of POSIX.
77918         * doc/posix-functions/_longjmp.texi: Likewise.
77919         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77920         SystemV platform in this case.
77922 2008-06-06  Eric Blake  <ebb9@byu.net>
77924         Document abort() bugs.
77925         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77927         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77928         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77929         sigsetjmp.
77930         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77931         siglongjmp, but only as a macro.
77932         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77933         is obsolete.
77934         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77936         Tweak documentation to cover cygwin argz bugs.
77937         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77938         argz bug fix; no code change needed since no cygwin releases
77939         occurred between the last fix and the bug being tested.
77940         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77941         module and recently fixed cygwin bugs.
77942         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77943         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77944         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77945         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77946         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77947         Likewise.
77948         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77949         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77950         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77951         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77952         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77953         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77954         Likewise.
77956         Avoid gcc warning on cygwin.
77957         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77958         !ACL_NO_TRIVIAL]: Avoid unused variable.
77960 2008-06-05  Eric Blake  <ebb9@byu.net>
77962         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77963         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77964         git-version-gen fails to come up with a version.
77965         Reported by Simon Josefsson.
77967 2008-06-05  Jim Meyering  <meyering@redhat.com>
77968             Paul Eggert  <eggert@cs.ucla.edu>
77970         utimens.c: work around a probable Linux kernel bug
77971         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77972         appears to be a kernel bug that causes utimensat to return 280
77973         instead of 0, indicating success.
77975 2008-06-04  Bruno Haible  <bruno@clisp.org>
77977         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77978         2008-06-01 commit.
77980 2008-06-04  Bruno Haible  <bruno@clisp.org>
77982         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77983         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77984         (file_has_acl): Use it. Save errno afterwards.
77985         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77987 2008-06-03  Bruno Haible  <bruno@clisp.org>
77989         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77990         draft code. Simplify #ifs.
77991         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77992         Put Solaris code after POSIX-draft code. Fix comments regarding
77993         Solaris 10, HP-UX. Mention Cygwin.
77994         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77996 2008-06-03  Eric Blake  <ebb9@byu.net>
77998         Provide fallback for older kernels.
77999         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
78000         Provide runtime fallback if kernel lacks support.
78001         Reported by Mike Frysinger.
78003 2008-06-02  Bruno Haible  <bruno@clisp.org>
78005         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
78006         it exists.
78008 2008-06-02  Bruno Haible  <bruno@clisp.org>
78010         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
78011         * lib/copy-acl.c (qcopy_acl): Update comment.
78013 2008-06-02  Bruno Haible  <bruno@clisp.org>
78015         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
78016         like ACL APIs.
78018 2008-06-02  Bruno Haible  <bruno@clisp.org>
78020         * tests/test-file-has-acl.sh: Use different code for Cygwin.
78021         * tests/test-set-mode-acl.sh: Likewise.
78022         * tests/test-copy-acl.sh: Likewise.
78023         * tests/test-copy-file.sh: Likewise.
78025 2008-06-02  Bruno Haible  <bruno@clisp.org>
78027         * tests/test-file-has-acl.sh: Remove unused code.
78029 2008-06-01  Bruno Haible  <bruno@clisp.org>
78031         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
78032         (copy_acl): Just a wrapper around qcopy_acl that emits the error
78033         messages.
78034         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
78036 2008-06-01  Bruno Haible  <bruno@clisp.org>
78038         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
78039         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
78040         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
78041         APIs.
78042         * modules/acl-tests (configure.ac): Remove tests now contained in
78043         m4/acl.m4.
78045 2008-06-02  Jim Meyering  <meyering@redhat.com>
78047         announce-gen: use a better key-server host name
78048         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
78049         it may be more consistently reliable.  Suggested by Werner Koch
78050         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
78052 2008-06-01  Bruno Haible  <bruno@clisp.org>
78054         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
78055         Reported by Voroskoi Andras <voroskoi@gmail.com>.
78057 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
78059         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
78061 2008-06-01  Bruno Haible  <bruno@clisp.org>
78063         New ACL tests.
78064         * tests/test-file-has-acl.sh: New file.
78065         * tests/test-file-has-acl.c: New file.
78066         * tests/test-set-mode-acl.sh: New file.
78067         * tests/test-set-mode-acl.c: New file.
78068         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
78069         * tests/test-copy-acl.c: New file.
78070         * modules/acl-tests: New file, based on modules/copy-file-tests.
78071         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
78072         (Depends-on): Add acl-tests.
78073         (configure.ac): Remove checks.
78074         (Makefile.am): Don't create test-sameacls program here any more.
78076 2008-06-01  Bruno Haible  <bruno@clisp.org>
78078         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
78079         * tests/test-sameacls.c: Include progname.h.
78080         (main): Invoke set_program_name. Portability fixes for MacOS X,
78081         Solaris, HP-UX.
78083 2008-06-01  Bruno Haible  <bruno@clisp.org>
78085         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
78086         function.
78087         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
78089 2008-06-01  Bruno Haible  <bruno@clisp.org>
78091         * modules/rpmatch (Depends-on): Add strdup.
78093 2008-06-01  Bruno Haible  <bruno@clisp.org>
78095         * lib/pipe.c: Include unistd-safer.h.
78096         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
78097         * modules/pipe (Depends-on): Add unistd-safer.
78099 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78101         * modules/autobuild (configure.ac): Call AB_INIT.
78103 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78105         * tests/test-getaddrinfo.c: Don't print debug messages by default.
78106         Suggested by Bruno Haible <bruno@clisp.org>.
78108 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78110         * tests/test-base64.c: Cast size_t to unsigned long when invoking
78111         printf.  Use %lu instead of %d.  Reported by Bruno Haible
78112         <bruno@clisp.org>.
78114 2008-05-29  Eric Blake  <ebb9@byu.net>
78116         Prefer new POSIX 200x interfaces over futimesat.
78117         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
78118         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
78119         when available.
78120         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
78122 2008-05-28  Bruno Haible  <bruno@clisp.org>
78124         * modules/stpcpy (License): Change to LGPLv2+.
78125         Requested by David Lutterkort <dlutter@redhat.com>.
78127 2008-05-27  Bruno Haible  <bruno@clisp.org>
78129         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78130         current mingw.
78131         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78133 2008-05-27  Bruno Haible  <bruno@clisp.org>
78135         * modules/iconv_open (Link): New section, from module 'iconv'.
78136         * modules/striconv (Link): Likewise.
78137         * modules/striconveh (Link): Likewise.
78138         * modules/xstriconv (Link): Likewise.
78139         * modules/unicodeio (Link): Likewise.
78140         * modules/propername (Link): Likewise.
78141         Reported by Jim Meyering.
78143 2008-05-26  Jim Meyering  <meyering@redhat.com>
78145         sha256: do not artificially restrict buffer length to be < 2^32
78146         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78147         uint32_t to size_t.
78148         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78149         to match.
78151         avoid unaligned access errors, e.g., on sparc
78152         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78153         direct access through a possibly-unaligned uint64* pointer.
78154         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78155         direct access through a possibly-unaligned uint32* pointer.
78156         Prompted by this patch from Tom "spot" Callaway:
78157         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78159         sha512.c: fix typo in comment
78160         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78162 2008-05-25  Bruno Haible  <bruno@clisp.org>
78164         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78165         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78166         (Makefile.am): Update lib_SOURCES.
78168 2008-05-25  Bruno Haible  <bruno@clisp.org>
78170         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78172 2008-05-25  Jim Meyering  <meyering@redhat.com>
78174         useless-if-before-free: freed expr may have white-space differences
78175         * build-aux/useless-if-before-free: Recognize cases in which the
78176         freed expression differs from the tested one in embedded white
78177         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78178         $1 was used, so we can't make any regexp shy.  Improved tests now
78179         detect this.
78181         useless-if-before-free: accept white space in the expression.
78182         * build-aux/useless-if-before-free: For now, any white space
78183         in the expression must be identical in the free argument.
78185         useless-if-before-free: efficiency tweak
78186         * build-aux/useless-if-before-free: Make the expression-matching
78187         regexp "shy".
78188         Make the *outer* regexp shy, not the expr-matching one.
78190         update code-in-comment to accept cast of free arg
78191         * build-aux/useless-if-before-free: Update regexp.
78193 2008-05-25  Bruno Haible  <bruno@clisp.org>
78195         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78196         * modules/copy-file-tests (Files, Makefile.am): Update.
78197         * tests/test-copy-file.c (func_test_copy): Update.
78199 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78201         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78203 2008-05-23  Bruno Haible  <bruno@clisp.org>
78205         Improve support for ACLs on OSF/1.
78206         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78207         Remove fallback for unknown flavors of ACLs.
78209 2008-05-22  Bruno Haible  <bruno@clisp.org>
78211         Add support for ACLs on OSF/1.
78212         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78213         replacements.
78214         (acl_free_text): New macro fallback.
78215         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78216         acl_free.
78217         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78218         acl_free_text function. Require AC_C_INLINE.
78220 2008-05-22  Bruno Haible  <bruno@clisp.org>
78222         Make copy_acl work on MacOS X 10.5.
78223         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78224         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78225         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78226         If MODE_INSIDE_ACL, don't assume that every system has the same text
78227         representation for ACLs as FreeBSD.
78228         * lib/copy-acl.c (copy_acl): Add support for platforms with
78229         !MODE_INSIDE_ACL.
78230         * lib/file-has-acl.c (file_has_acl): Likewise.
78231         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78232         FreeBSD, MacOS X, or IRIX, respectively.
78234 2008-05-22  Bruno Haible  <bruno@clisp.org>
78236         * lib/acl.h: Don't include <sys/acl.h>.
78237         (GETACLCNT): Move fallback to lib/acl-internal.h.
78238         * lib/acl-internal.h: Include <sys/acl.h> here.
78239         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78241 2008-05-22  Bruno Haible  <bruno@clisp.org>
78243         Split off copy_acl function to separate file.
78244         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78245         * lib/acl.c (copy_acl): Moved function to separate file.
78246         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78247         * modules/acl (Files): Add lib/copy-acl.c.
78248         (Makefiles.am): Augment lib_SOURCES.
78250 2008-05-22  Bruno Haible  <bruno@clisp.org>
78252         * modules/copy-file-tests: New file.
78253         * tests/test-copy-file.sh: New file.
78254         * tests/test-copy-file.c: New file.
78255         * tests/test-copy-file-sameacls.c: New file.
78257 2008-05-22  Eric Blake  <ebb9@byu.net>
78259         Avoid gcc warning.
78260         * tests/test-memcmp.c (main): Pass NULL indirectly.
78262 2008-05-21  Bruno Haible  <bruno@clisp.org>
78264         Add reference doc about ACLs.
78265         * doc/acl-resources.txt: New file.
78266         * doc/acl-cygwin.txt: New file.
78268 2008-05-21  Bruno Haible  <bruno@clisp.org>
78270         Avoid one more warning from gcc.
78271         * lib/vasnprintf.c (IF_LINT): Update comments.
78272         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78274 2008-05-21  Jim Meyering  <meyering@redhat.com>
78276         avoid a warning from gcc
78277         * lib/vasnprintf.c (IF_LINT): Define.
78278         (scale10_round_decimal_long_double):
78279         Use it to avoid a "may be used uninitialized" warning.
78280         (scale10_round_decimal_double): Likewise.
78282 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78284         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78285         declared.
78287 2008-05-20  Bruno Haible  <bruno@clisp.org>
78289         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78290         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78292 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78294         * modules/memcmp-tests: New file.
78295         * tests/test-memcmp.c: New file.
78297 2008-05-19  Bruno Haible  <bruno@clisp.org>
78299         * modules/propername (Notice, configure.ac): Put quoted "..." into
78300         --keyword option.
78301         * lib/propername.h: Update comments accordingly.
78302         Reported by Eric Blake.
78304 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78306         * modules/getpass-gnu (Depends-on): Add fseeko.
78308 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78310         * modules/base64-tests: New file.
78312 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78314         * lib/base64.c (base64_decode_ctx): If a decode context structure
78315         was passed in use it to ignore newlines.  If a context structure
78316         was _not_ passed in, continue to treat newlines as garbage (this
78317         is the historical behavior).  Formerly base64_decode.
78318         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78319         takes a decode context structure.
78320         * lib/base64.h (base64_decode): Macro for four-argument calls.
78321         (base64_decode_alloc): Likewise.
78322         * lib/base64.c (base64_decode_ctx): If a decode context structure
78323         was passed in use it to ignore newlines.  If a context structure
78324         was _not_ passed in, continue to treat newlines as garbage (this
78325         is the historical behavior).  Formerly base64_decode.
78326         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78327         takes a decode context structure.
78328         * lib/base64.h (base64_decode): Macro for four-argument calls.
78329         (base64_decode_alloc): Likewise.
78331 2008-05-19  Jim Meyering  <meyering@redhat.com>
78333         avoid a warning from gcc
78334         * lib/trim.c (IF_LINT): Define.
78335         (trim2): Use it to avoid a "may be used uninitialized" warning.
78337         Fix doc typo.
78338         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78340 2008-05-19  Bruno Haible  <bruno@clisp.org>
78342         * doc/glibc-functions/getpass.texi: Document limits of other
78343         implementations.
78345 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78346             Bruno Haible <bruno@clisp.org>
78348         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78350 2008-05-18  Bruno Haible  <bruno@clisp.org>
78352         * modules/propername: New file, from GNU gettext.
78353         * lib/propername.h: New file, from GNU gettext.
78354         * lib/propername.c: New file, from GNU gettext.
78355         * MODULES.html.sh (Internationalization functions): Add propername.
78357 2008-05-16  Jim Meyering  <meyering@redhat.com>
78358             Bruno Haible  <bruno@clisp.org>
78360         Avoid some warnings from "gcc -Wshadow".
78361         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78363 2008-05-15  Eric Blake  <ebb9@byu.net>
78365         Extend previous patch to cygwin 1.7.0.
78366         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78367         fast implementation in cygwin >= 1.7.0.
78368         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78371 2008-05-15  Bruno Haible  <bruno@clisp.org>
78373         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78374         implementation in glibc >= 2.9.
78375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78378 2008-05-15  Bruno Haible  <bruno@clisp.org>
78380         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78381         (Unicode string functions): Add unilbrk/*.
78382         Reported by Karl Berry.
78384 2008-05-15  Eric Blake  <ebb9@byu.net>
78386         Fix violation of <stdbool.h> replacement in regex.
78387         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78388         * lib/regexec.c (re_search_internal): Likewise.
78389         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78391 2008-05-15  Jim Meyering  <meyering@redhat.com>
78393         avoid distracting test output when git or cvs is not found
78394         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78395         * tests/test-vc-list-files-git.sh: Likewise.
78397 2008-05-15  Eric Blake  <ebb9@byu.net>
78399         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78400         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78401         glibc version.
78402         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78403         * doc/posix-functions/strstr.texi (strstr): Likewise.
78404         * lib/str-two-way.h (MAX): Sychronize with glibc.
78406 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78408         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78409         opr.ctx_type.
78410         (calc_first): Initialize constraint field.
78411         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78412         Fix grammar.
78413         (duplicate_node): Merge constraint field for all node types.
78414         (calc_eclosure_iter): Look at constraint field for all node types.
78415         * lib/regex_internal.c (create_cd_newstate): Don't look at
78416         opr.ctx_type.
78418 2008-05-14  Bruno Haible  <bruno@clisp.org>
78420         Help GCC to do better code generation.
78421         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78422         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78423         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78424         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78425         Declare with attribute 'malloc' if supported.
78427 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78429         use "echo STR|wc -c" rather than unportable "expr length STR"
78430         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78431         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78433 2008-05-14  Jim Meyering  <meyering@redhat.com>
78435         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78436         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78437         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78438         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78439         via Collin Lasse.
78441 2008-05-14  Eric Blake  <ebb9@byu.net>
78443         Avoid quadratic growth in gl_LIBSOURCES.
78444         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78445         Suggested by Bruno Haible.
78447         Test xmemdup0.
78448         * modules/xmemdup0-tests: New file.
78449         * tests/test-xmemdup0.c: Likewise.
78451 2008-05-13  Eric Blake  <ebb9@byu.net>
78453         Split xmemdup0 into its own module.
78454         * modules/xmemdup0: New file.
78455         * lib/xmemdup0.h: Likewise.
78456         * lib/xmemdup0.c: Likewise.
78457         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78458         * lib/xalloc.h (xmemdup0): Remove.
78459         * lib/xmalloc.c (xmemdup0): Likewise.
78461 2008-05-13  Eric Blake  <ebb9@byu.net>
78462             Bruno Haible  <bruno@clisp.org>
78464         Reduce number of forks required during autoconf.
78465         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78466         and gl_LIBSOURCES_DIR.
78467         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78468         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78469         m4_syscmd per file.
78470         <m4_foreach_w>: Move...
78471         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78473 2008-05-13  Eric Blake  <ebb9@byu.net>
78475         * gnulib-tool: Fix various comment typos.
78477 2008-05-12  Bruno Haible  <bruno@clisp.org>
78479         Tailor the linebreaking algorithm.
78480         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78482 2008-05-12  Bruno Haible  <bruno@clisp.org>
78484         Update to Unicode 5.0.0.
78485         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78486         LBP_JV, LBP_JT. Redistribute values.
78487         (unilbrk_table): Change size.
78488         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78489         Unicode TR#14 rev. 22.
78490         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78491         LBP_JV, LBP_JT. Redistribute values.
78492         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78493         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78494         Update.
78495         * lib/unilbrk/lbrkprop1.h: Regenerated.
78496         * lib/unilbrk/lbrkprop2.h: Regenerated.
78497         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78498         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78499         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78500         Likewise.
78501         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78502         Likewise.
78503         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78504         result.
78505         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78506         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78507         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78508         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78509         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78510         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78512 2008-05-11  Bruno Haible  <bruno@clisp.org>
78514         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78516 2008-05-11  Bruno Haible  <bruno@clisp.org>
78518         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78519         * modules/unilbrk/gen-lbrk: New file.
78521 2008-05-11  Bruno Haible  <bruno@clisp.org>
78523         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78524         * m4/sha512.m4 (gl_SHA512): Likewise.
78526 2008-05-11  Jim Meyering  <meyering@redhat.com>
78528         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78529         * modules/crypto/sha256: New file.
78530         * modules/crypto/sha512: Likewise.
78531         * lib/sha256.c: Likewise.
78532         * lib/sha256.h: Likewise.
78533         * lib/sha512.c: Likewise.
78534         * lib/sha512.h: Likewise.
78535         * lib/u64.h: Likewise.
78536         * m4/sha256.m4: Likewise.
78537         * m4/sha512.m4: Likewise.
78538         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78540 2008-05-10  Bruno Haible  <bruno@clisp.org>
78542         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78543         (Input/Output <stdio.h>): Add xprintf.
78544         (Signal handling <signal.h>): Add strsignal.
78545         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78546         (Core language properties): Add func.
78547         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78548         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78549         strings.
78550         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78551         (Input/output): New section.
78552         (File system functions): Add openat-die, stat-macros.
78553         (Networking functions): Add sockets.
78554         (Unicode string functions): Add unictype/*.
78555         (Support for building libraries and executables): Add gperf.
78556         (Support for building documentation): Add agpl-3.0.
78557         (Misc): Add nocrash.
78559 2008-05-10  Bruno Haible  <bruno@clisp.org>
78561         * modules/unictype/gen-ctype: New file.
78563 2008-05-10  Jim Meyering  <meyering@redhat.com>
78565         Make chdir-safer.c more efficient on a system with no symlinks.
78566         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78567         also if ELOOP is zero.  Suggested by Bruno Haible.
78569         Make chdir-safer.c slightly safer.
78570         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78571         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78573         Avoid compile failure on systems without ELOOP (like mingw).
78574         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78575         Reported by Bruno Haible.
78577 2008-05-10  Bruno Haible  <bruno@clisp.org>
78579         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78580         (is_utf8_encoding): Use a case-insensitive comparison.
78581         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78582         streq.
78584 2008-05-10  Bruno Haible  <bruno@clisp.org>
78586         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78587         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78588         * lib/unilbrk/ulc-common.h (iconv_string_length,
78589         iconv_string_keeping_offsets): Remove declarations.
78590         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78591         Don't include <iconv.h>, streq.h, xsize.h.
78592         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78593         conversion.
78594         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78595         <iconv.h>, streq.h, xsize.h.
78596         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78597         conversion.
78598         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78599         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78600         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78601         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78603 2008-05-10  Bruno Haible  <bruno@clisp.org>
78605         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78606         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78608         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78609         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78611         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78612         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78614         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78615         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78617         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78618         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78620         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78621         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78623         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78624         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78626         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78627         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78629 2008-05-10  Bruno Haible  <bruno@clisp.org>
78631         Split up 'linebreak' module.
78632         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78633         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78634         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78635         modifications.
78636         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78637         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78638         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78639         lib/linebreak.c.
78640         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78641         lib/linebreak.c.
78642         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78643         lib/linebreak.c.
78644         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78645         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78646         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78647         lib/linebreak.c.
78648         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78649         lib/linebreak.c.
78650         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78651         lib/linebreak.c.
78652         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78653         lib/linebreak.c.
78654         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78655         lib/linebreak.c.
78656         * modules/unilbrk/base: New file.
78657         * modules/unilbrk/tables: New file.
78658         * modules/unilbrk/u8-possible-linebreaks: New file.
78659         * modules/unilbrk/u16-possible-linebreaks: New file.
78660         * modules/unilbrk/u32-possible-linebreaks: New file.
78661         * modules/unilbrk/ulc-common: New file.
78662         * modules/unilbrk/ulc-possible-linebreaks: New file.
78663         * modules/unilbrk/u8-width-linebreaks: New file.
78664         * modules/unilbrk/u16-width-linebreaks: New file.
78665         * modules/unilbrk/u32-width-linebreaks: New file.
78666         * modules/unilbrk/ulc-width-linebreaks: New file.
78667         * lib/linebreak.h: Remove file.
78668         * lib/linebreak.c: Remove file.
78669         * m4/linebreak.m4: Remove file.
78670         * modules/linebreak: Remove file.
78671         * NEWS: Mention the changes.
78673 2008-05-09  Eric Blake  <ebb9@byu.net>
78675         Add xmemdup0.
78676         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78677         implementation.
78678         * lib/xmalloc.c (xmemdup0): New C implementation.
78680 2008-05-08  Bruno Haible  <bruno@clisp.org>
78682         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78684 2008-05-07  Eric Blake  <ebb9@byu.net>
78686         Support cross-compilation of <wctype.h>.
78687         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78688         AC_CACHE_CHECK.
78690 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78692         * build-aux/vc-list-files: Add support for bzr.
78694 2008-05-03  Jim Meyering  <meyering@redhat.com>
78696         avoid failed assertion with tight malloc
78697         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78699 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78701         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78702         are needed from arpa/inet.h.
78703         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78704         Reported by Bruno Haible.
78706 2008-05-02  Jim Meyering  <meyering@redhat.com>
78708         avoid compilation error on FreeBSD 6
78709         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78711 2008-05-01  Jim Meyering  <meyering@redhat.com>
78713         useless-if-before-free: correct --help's exit status description
78714         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78715         for one or more matches, etc.  Reported by Bruno Haible.
78717         vc-list-files: make the stand-alone gnulib test work
78718         * modules/vc-list-files-tests (configure.ac):
78719         Define and AC_SUBST abs_aux_dir.
78720         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78721         $(abs_top_srcdir) to each script and having each of them
78722         duplicate the work of setting PATH, set PATH here, using
78723         the new variable, abs_aux_dir instead.
78724         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78725         * tests/test-vc-list-files-git.sh: Likewise.
78726         Reported by Bruno Haible.
78728 2008-05-01  Bruno Haible  <bruno@clisp.org>
78730         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78731         reallocation. Rename 'done' to 'found_delimiter'.
78733 2008-05-01  Jim Meyering  <meyering@redhat.com>
78735         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78736         * build-aux/vc-list-files: Use `...`, not $(...).
78738 2008-04-30  Jim Meyering  <meyering@redhat.com>
78740         add tests for vc-list-files
78741         * modules/vc-list-files-tests: New module.
78742         * tests/test-vc-list-files-cvs.sh: New file.
78743         * tests/test-vc-list-files-git.sh: New file.
78745         avoid a warning from gcc
78746         * lib/getndelim2.c (IF_LINT): Define.
78747         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78749         vc-list-files: work properly with build-aux/cvsu, too
78750         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78751         to all cvs-based clauses.
78753         vc-list-files: work properly in the CVS+awk case, too
78754         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78756         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78757         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78758         take more than one file argument, so .  Add quotes, just in case $dir
78759         ever contains a shell meta-character.  Prompted by Soren Hansen in
78760         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78762 2008-04-29  Eric Blake  <ebb9@byu.net>
78764         Optimize getndelim2 to use block operations when possible.
78765         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78766         freadseek, and memchr2.
78767         * lib/getndelim2.c (getndelim2): Use them for block reads.
78769 2008-04-29  Bruno Haible  <bruno@clisp.org>
78771         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78772         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78773         * modules/inet_ntop (Depends-on): Add extensions.
78774         * modules/inet_pton (Depends-on): Likewise.
78775         Reported by Simon Josefsson.
78777 2008-04-29  Jim Meyering  <meyering@redhat.com>
78779         When the is more than one match in a block, match all of them.
78780         * build-aux/useless-if-before-free: Iterate through each block
78781         until there are no more matches.
78783         Fix broken useless-if-before-free script.
78784         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78785         the expression to match cast of argument to free-like function.
78787 2008-04-29  Eric Blake  <ebb9@byu.net>
78789         Use new header.
78790         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78792 2008-04-29  Jim Meyering  <meyering@redhat.com>
78794         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78795         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78796         by gnulib to exist and to declare e.g., inet_ntop.
78797         Don't include "inet_ntop.h", now removed.
78799         * m4/arpa_inet_h.m4: Remove trailing blanks.
78801 2008-04-29  Eric Blake  <ebb9@byu.net>
78803         Silence valgrind on safe reads beyond potential array bounds.
78804         * lib/rawmemchr.valgrind: New file.
78805         * lib/strchrnul.valgrind: Likewise.
78806         * modules/rawmemchr (Files): Distribute new file.
78807         * modules/strchrnul (Files): Likewise.
78808         Suggested by Bruno Haible.
78810 2008-04-29  Bruno Haible  <bruno@clisp.org>
78812         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78813         (inet_ntop, inet_pton): Change portability warning's wording.
78814         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78815         Invoke gl_CHECK_NEXT_HEADERS.
78816         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78817         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78818         set ARPA_INET_H.
78819         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78820         * modules/arpa_inet (Description): No longer only for systems that
78821         lack it.
78822         (Depends-on): Add include_next.
78823         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78824         HAVE_ARPA_INET_H.
78826 2008-04-29  Jim Meyering  <meyering@redhat.com>
78828         * modules/mkdir (License): Re-license as LGPLv2+.
78830 2008-04-29  Bruno Haible  <bruno@clisp.org>
78832         * modules/rawmemchr (Maintainer): Set to Eric.
78833         * modules/strchrnul (Maintainer): Likewise.
78835 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78837         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78838         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78840         * modules/arpa_inet (arpa/inet.h): Use them.
78842 2008-04-28  Eric Blake  <ebb9@byu.net>
78844         Test getndelim2.
78845         * modules/getndelim2-tests: New file.
78846         * tests/test-getndelim2.c: Likewise.
78847         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78848         stream.
78849         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78851         * MODULES.html.sh: Document new module.
78853 2008-04-20  Bruno Haible  <bruno@clisp.org>
78855         * lib/c-stack.c (die): Use raise.
78856         * modules/c-stack (Depends-on): Add raise.
78858 2008-04-28  Bruno Haible  <bruno@clisp.org>
78860         Expect rpmatch to be declared.
78861         * lib/yesno.c (rpmatch): Remove declaration.
78863         Declare rpmatch.
78864         * lib/stdlib.in.h (rpmatch): New declaration.
78865         * lib/rpmatch.c: Include <stdlib.h> first.
78866         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78867         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78869         HAVE_RPMATCH.
78870         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78872         (Include): Set to <stdlib.h>.
78873         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78874         HAVE_RPMATCH.
78875         * NEWS: Document the change.
78877 2008-04-28  Bruno Haible  <bruno@clisp.org>
78879         Change rpmatch to use nl_langinfo when appropriate.
78880         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78881         (N_): New macro.
78882         (localized_pattern): New function/macro.
78883         (try): Remove match, nomatch arguments. Copy the pattern into safe
78884         memory before caching it.
78885         (rpmatch): Use localized_pattern. Add translator comments.
78886         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78887         Suggested by Eric Blake.
78888         * modules/rpmatch (Depends-on): Add stdbool.
78890 2008-04-28  Eric Blake  <ebb9@byu.net>
78892         Add rawmemchr module, matching glibc.
78893         * modules/string (Makefile.am): New indicator.
78894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78895         * lib/string.in.h (rawmemchr): Declare when appropriate.
78896         * modules/rawmemchr: New file.
78897         * m4/rawmemchr.m4: Likewise.
78898         * lib/rawmemchr.c: Likewise.
78899         * modules/rawmemchr-tests: Likewise.
78900         * tests/test-rawmemchr.c: Likewise.
78901         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78902         module.
78903         * modules/strchrnul (Depends-on): Add rawmemchr.
78904         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78906         Whitespace cleanup.
78907         * tests/test-strchrnul.c: Reindent.
78908         * lib/strchrnul.c: Likewise.
78910         Optimize and test strchrnul.
78911         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78912         * modules/strchrnul-tests: New file.
78913         * tests/test-strchrnul.c: Likewise.
78915         Remove intprops dependency.
78916         * modules/memchr (Depends-on): Remove intprops.
78917         * modules/memrchr (Depends-on): Likewise.
78918         * modules/memchr2 (Depends-on): Likewise.
78919         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78920         * lib/memrchr.c (__memrchr): Likewise.
78921         * lib/memrchr2.c (memchr2): Likewise.
78922         Reported by Simon Josefsson.
78924 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78926         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78927         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78929 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78931         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78933         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78935         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78937         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78938         declarations.
78939         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78941         * m4/inet_pton.m4: Don't check for header files.
78943         * m4/inet_ntop.m4: Don't check for header files.
78945 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78947         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78948         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78949         trigger for cygwin).
78950         Reported by Bruno Haible  <bruno@clisp.org>.
78952 2008-04-28  Bruno Haible  <bruno@clisp.org>
78954         * doc/posix-functions/strdup.texi: Mention mingw problem.
78956 2008-04-27  Bruno Haible  <bruno@clisp.org>
78958         * modules/stat-time-tests (Depends-on): Add sleep.
78959         * tests/test-stat-time.c (force_unlink): New function.
78960         (cleanup): Use it.
78961         (test_mtime): Remove the ctime related tests.
78962         (test_ctime): New function, containing the ctime related tests.
78963         (main): Call test_ctime, except on native Windows platforms.
78965 2008-04-27  Bruno Haible  <bruno@clisp.org>
78967         * lib/rpmatch.c (rpmatch): Add some comments.
78968         Reported by James Youngman <jay@gnu.org>.
78970 2008-04-27  Bruno Haible  <bruno@clisp.org>
78972         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78973         quiet NaNs.
78975 2008-04-27  Bruno Haible  <bruno@clisp.org>
78977         Make test-yesno.sh work on mingw.
78978         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78979         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78980         (main): Set stdin to binary mode.
78981         * modules/yesno-tests (Depends-on): Add binary-io.
78983 2008-04-27  Bruno Haible  <bruno@clisp.org>
78985         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78986         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78987         argument that lie outside the IEEE 854 domain.
78988         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78989         (gl_ISFINITE): Use it.
78990         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78992 2008-04-27  Bruno Haible  <bruno@clisp.org>
78994         Allow local renaming in config.h.
78995         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78997 2008-04-27  Bruno Haible  <bruno@clisp.org>
78999         * lib/memchr.c (__memchr): Change type of 'i'.
79000         * lib/memchr2.c (memchr2): Likewise.
79002 2008-04-26  Eric Blake  <ebb9@byu.net>
79003         and Bruno Haible  <bruno@clisp.org>
79005         Optimize and test memrchr.
79006         * modules/memrchr (Depends-on): Add intprops.
79007         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
79008         * modules/memrchr-tests: New file.
79009         * tests/test-memrchr.c: New file.
79011 2008-04-26  Bruno Haible  <bruno@clisp.org>
79013         Add tentative support for DragonFly BSD.
79014         * lib/stdio-impl.h: Add macros for DragonFly BSD.
79015         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
79016         fp.
79017         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79018         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
79019         * lib/fpurge.c (fpurge): Likewise.
79020         * lib/freadable.c (freaadable): Likewise.
79021         * lib/freadahead.c (freadahead): Likewise.
79022         * lib/freading.c (freading): Likewise.
79023         * lib/freadptr.c (freadptr): Likewise.
79024         * lib/freadseek.c (freadptrinc): Likewise.
79025         * lib/fseeko.c (fseeko): Likewise.
79026         * lib/fseterr.c (fseterr): Likewise.
79027         * lib/fwritable.c (fwritable): Likewise.
79028         * lib/fwriting.c (fwriting): Likewise.
79030 2008-04-26  Bruno Haible  <bruno@clisp.org>
79032         * lib/stdio-impl.h: New file.
79033         * lib/fbufmode.c: Include stdio-impl.h.
79034         (fbufmode): Use fp_, remove redundant #defines.
79035         * lib/fflush.c: Include stdio-impl.h.
79036         (clear_ungetc_buffer): Remove redundant #defines.
79037         * lib/fpurge.c: Include stdio-impl.h.
79038         (fpurge): Remove redundant #defines.
79039         * lib/freadable.c: Include stdio-impl.h.
79040         (freadable): Remove redundant #defines.
79041         * lib/freadahead.c: Include stdio-impl.h.
79042         (freadahead): Remove redundant #defines.
79043         * lib/freading.c: Include stdio-impl.h.
79044         (freading): Remove redundant #defines.
79045         * lib/freadptr.c: Include stdio-impl.h.
79046         (freadptr): Remove redundant #defines.
79047         * lib/freadseek.c: Include stdio-impl.h.
79048         (freadptrinc): Remove redundant #defines.
79049         * lib/fseeko.c: Include stdio-impl.h.
79050         (rpl_fseeko): Remove redundant #defines.
79051         * lib/fseterr.c: Include stdio-impl.h.
79052         (fseterr): Remove redundant #defines.
79053         * lib/fwritable.c: Include stdio-impl.h.
79054         (fwritable: Remove redundant #defines.
79055         * lib/fwriting.c: Include stdio-impl.h.
79056         (fwriting): Remove redundant #defines.
79057         * modules/fbufmode (Files): Add lib/stdio-impl.h.
79058         * modules/fflush (Files): Likewise.
79059         * modules/fpurge (Files): Likewise.
79060         * modules/freadable (Files): Likewise.
79061         * modules/freadahead (Files): Likewise.
79062         * modules/freading (Files): Likewise.
79063         * modules/freadptr (Files): Likewise.
79064         * modules/freadseek (Files): Likewise.
79065         * modules/fseeko (Files): Likewise.
79066         * modules/fseterr (Files): Likewise.
79067         * modules/fwritable (Files): Likewise.
79068         * modules/fwriting (Files): Likewise.
79070 2008-04-26  Bruno Haible  <bruno@clisp.org>
79072         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79073         restore_seek_optimization, update_fpos_cache): New functions, extracted
79074         from rpl_fflush.
79075         (rpl_fflush): Use them.
79076         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
79077         (gl_REPLACE_FFLUSH): Use it.
79079 2008-04-26  Bruno Haible  <bruno@clisp.org>
79081         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
79082         on Solaris.
79083         * tests/test-xstrtoimax.sh: Likewise.
79084         * tests/test-xstrtoumax.sh: Likewise.
79085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79087 2008-04-26  Bruno Haible  <bruno@clisp.org>
79089         * modules/memchr-tests: New file.
79090         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
79092 2008-04-26  Eric Blake  <ebb9@byu.net>
79093             Bruno Haible  <bruno@clisp.org>
79095         * lib/memchr.c: Include intprops.h.
79096         (__memchr): Optimize parallel detection of matching bytes. Rename local
79097         variables. Add explanatory comments.
79099 2008-04-26  Bruno Haible  <bruno@clisp.org>
79101         Fix module 'memchr', broken since 2000-10-28.
79102         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
79104 2008-04-26  Bruno Haible  <bruno@clisp.org>
79106         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
79107         comments.
79109 2008-04-25  Eric Blake  <ebb9@byu.net>
79111         Use native fstatat on cygwin 1.7.0.
79112         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
79113         first.
79115 2008-04-23  Eric Blake  <ebb9@byu.net>
79117         Improve memchr2 performance.
79118         * lib/memchr2.c (memchr2): Further optimize parallel detection of
79119         NUL bytes.
79120         * modules/memchr2 (Depends-on): Use intprops.h.
79122 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79124         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79125         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79126         <blp@cs.stanford.edu>.
79128 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79130         * lib/arpa_inet.in.h: New file.
79132         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79133         (Makefile.am): Sed in substitute header file.
79135         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79136         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79138         * modules/inet_ntop (configure.ac): Use
79139         gl_ARPA_INET_MODULE_INDICATOR.
79141         * modules/inet_pton (configure.ac): Use
79142         gl_ARPA_INET_MODULE_INDICATOR.
79144 2008-04-22  Jim Meyering  <meyering@redhat.com>
79146         * modules/verify (License): Re-license as LGPLv2+.
79148 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79150         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79151         parameter to void* as per POSIX standard (MinGW uses char*).
79153 2008-04-21  Bruno Haible  <bruno@clisp.org>
79155         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79156         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79157         Define to replacements if REPLACE_ISWCNTRL is 1.
79158         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79159         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79160         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79161         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79162         what it fixes.
79163         * doc/posix-functions/iswalpha.texi: Likewise.
79164         * doc/posix-functions/iswblank.texi: Likewise.
79165         * doc/posix-functions/iswcntrl.texi: Likewise.
79166         * doc/posix-functions/iswdigit.texi: Likewise.
79167         * doc/posix-functions/iswgraph.texi: Likewise.
79168         * doc/posix-functions/iswlower.texi: Likewise.
79169         * doc/posix-functions/iswprint.texi: Likewise.
79170         * doc/posix-functions/iswpunct.texi: Likewise.
79171         * doc/posix-functions/iswspace.texi: Likewise.
79172         * doc/posix-functions/iswupper.texi: Likewise.
79173         * doc/posix-functions/iswxdigit.texi: Likewise.
79174         Reported by Alain Guibert.
79176 2008-04-21  Bruno Haible  <bruno@clisp.org>
79178         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79179         Patch by Alain Guibert.
79181 2008-04-21  Bruno Haible  <bruno@clisp.org>
79183         Fix test failures on mingw.
79184         * tests/test-xstrtol.c (print_no_progname): New function.
79185         (main): Install it in error_print_progname hook.
79186         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79187         * tests/test-xstrtoimax.sh: Likewise.
79188         * tests/test-xstrtoumax.sh: Likewise.
79190 2008-04-21  Bruno Haible  <bruno@clisp.org>
79192         Fix test failure on mingw.
79193         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79195 2008-04-21  Bruno Haible  <bruno@clisp.org>
79197         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79198         Actually assign a value.
79200 2008-04-20  Bruno Haible  <bruno@clisp.org>
79202         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79203         take 2.
79204         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79205         'canonicalize-lgpl' module is also used.
79206         * lib/canonicalize-lgpl.c: Undo last change.
79207         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79209 2008-04-20  Bruno Haible  <bruno@clisp.org>
79211         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79212         config.h. Provide _mkdir based fallback for mingw.
79213         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79214         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79215         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79216         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79217         rather than defining mkdir in config.h.
79218         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79219         (gl_SYS_STAT_H_DEFAULTS): New macro.
79220         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79221         HAVE_IO_H any more.
79222         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79223         HAVE_DECL_MKDIR and HAVE_IO_H.
79225 2008-04-20  Bruno Haible  <bruno@clisp.org>
79227         * lib/isapipe.c: Port to native Windows platforms.
79229 2008-04-20  Bruno Haible  <bruno@clisp.org>
79231         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79233 2008-04-21  Eric Blake  <ebb9@byu.net>
79235         Work around preprocessors that don't handle UINTMAX_MAX.
79236         * lib/memchr2.c (memchr2): Avoid embedded #if.
79237         Reported by Alain Guibert, fix suggested by Bruno Haible.
79239 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79241         * doc/posix-functions/strftime.texi (strftime): Explain better
79242         Windows incompatibility.  Suggested by Micah Cowan
79243         <micah@cowan.name>.
79245 2008-04-20  Bruno Haible  <bruno@clisp.org>
79247         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79248         unistr/u8-mblen.
79250 2008-04-20  Bruno Haible  <bruno@clisp.org>
79252         Fix test failure on platforms with non-GNU iconv.
79253         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79254         (U_TO_U8): Use it, rather than u16_to_u8.
79255         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79256         units at the end of the input string.
79257         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79259 2008-04-20  Bruno Haible  <bruno@clisp.org>
79261         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79262         when the resulting length is 0.
79263         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79265 2008-04-20  Bruno Haible  <bruno@clisp.org>
79267         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79268         works.
79269         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79271 2008-04-20  Bruno Haible  <bruno@clisp.org>
79273         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79274         * modules/tsearch-tests (configure.ac): Test for initstate function.
79276 2008-04-20  Bruno Haible  <bruno@clisp.org>
79278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79279         for nlink_t if missing.
79280         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79282 2008-04-19  Bruno Haible  <bruno@clisp.org>
79284         Work around snprintf bug on Linux libc5.
79285         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79287         gl_SNPRINTF_SIZE1.
79288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79289         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79290         that test failed.
79291         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79292         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79293         * modules/snprintf (Files): Add m4/printf.m4.
79294         * modules/vsnprintf (Files): Likewise.
79295         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79296         * doc/posix-functions/vsnprintf.texi: Likewise.
79298 2008-04-19  Bruno Haible  <bruno@clisp.org>
79300         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79301         from 0.0058 to less than 10^-7.
79303 2008-04-19  Bruno Haible  <bruno@clisp.org>
79305         Fix rounding when a precision is given.
79306         * lib/vasnprintf.c (is_borderline): New function.
79307         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79308         9...9x.
79309         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79310         %e, %g.
79311         * tests/test-vasprintf-posix.c (test_function): Likewise.
79312         * tests/test-snprintf-posix.h (test_function): Likewise.
79313         * tests/test-sprintf-posix.h (test_function): Likewise.
79314         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79315         * tests/test-printf-posix.h (test_function): Likewise.
79316         * tests/test-printf-posix.output: Update.
79317         Reported by John Darrington <john@darrington.wattle.id.au> via
79318         Ben Pfaff <blp@cs.stanford.edu>.
79320 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79322         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79323         Suggested by Bruno Haible <bruno@clisp.org>.
79325 2008-04-17  Bruno Haible  <bruno@clisp.org>
79327         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79328         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79329         implementation.
79330         Patch by Bruce Merry <bmerry@gmail.com>.
79332 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79334         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79335         doesn't work under Windows.
79337 2008-04-16  Bruno Haible  <bruno@clisp.org>
79339         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79340         New macros.
79341         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79342         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79343         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79344         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79345         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79346         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79347         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79348         macros.
79349         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79350         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79351         Northern Sotho, Uighur.
79353 2008-04-16  Bruno Haible  <bruno@clisp.org>
79355         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79356         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79357         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79358         Reported by Daniel Bergström <daniel@octocode.com>.
79360 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79361             Bruno Haible  <bruno@clisp.org>
79363         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79364         function.
79365         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79366         New functions, mostly extracted from gl_locale_name_default.
79367         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79369 2008-04-16  Eric Blake  <ebb9@byu.net>
79371         Adjust strtod detection to catch glibc 2.7 bug.
79372         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79373         Reported by John Gatewood Ham.
79375 2008-04-16  Bruno Haible  <bruno@clisp.org>
79377         Add tentative support for Linux libc5.
79378         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79379         * lib/fpurge.c (fpurge): Likewise.
79380         * lib/freadable.c (freadable): Likewise.
79381         * lib/freadahead.c (freadahead): Likewise.
79382         * lib/freading.c (freading): Likewise.
79383         * lib/freadptr.c (freadptr): Likewise.
79384         * lib/freadseek.c (freadptrinc): Likewise.
79385         * lib/fseeko.c (rpl_fseeko): Likewise.
79386         * lib/fseterr.c (fseterr): Likewise.
79387         * lib/fwritable.c (fwritable): Likewise.
79388         * lib/fwriting.c (fwriting): Likewise.
79389         Reported by Alain Guibert <alguibert+bts@free.fr>.
79391 2008-04-15  Bruno Haible  <bruno@clisp.org>
79393         * modules/mathl (configure.ac): Define module indicator.
79395 2008-04-15  Bruno Haible  <bruno@clisp.org>
79397         * lib/logl.c (logl): Remove unused variables.
79399 2008-04-15  Bruno Haible  <bruno@clisp.org>
79401         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79402         fails.
79404 2008-04-15  Bruno Haible  <bruno@clisp.org>
79406         * lib/trim.c (trim2): Fix argument of isspace() macro.
79408 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79410         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79411         to 0.
79412         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79414 2008-04-14  Bruno Haible  <bruno@clisp.org>
79416         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79417         AC_LANG_PROGRAM argument.
79418         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79419         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79421         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79422         * m4/math_h.m4 (gl_MATH_H): Likewise.
79423         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79425         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79426         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79427         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79428         * m4/regex.m4 (gl_REGEX): Likewise.
79429         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79430         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79432         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79434         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79438 2008-04-14  Jim Meyering  <meyering@redhat.com>
79440         test-strtod: fix typos: s/abs/fabs/
79441         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79443 2008-04-13  Bruno Haible  <bruno@clisp.org>
79445         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79446         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79447         module is also used and while not building the reloc-wrapper.
79449 2008-04-13  Bruno Haible  <bruno@clisp.org>
79451         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79453 2008-04-13  Bruno Haible  <bruno@clisp.org>
79455         Fix AIX compilation failure introduced on 2008-04-02.
79456         * tests/test-frexp.c (exp): Undefine before redefining.
79457         * tests/test-frexpl.c (exp): Likewise.
79459 2008-04-13  Bruno Haible  <bruno@clisp.org>
79461         Work around a HP-UX stdio bug.
79462         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79463         * tests/test-ftello.c (main): Likewise.
79464         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79465         * doc/posix-functions/ftello.texi: Likewise.
79467 2008-04-13  Bruno Haible  <bruno@clisp.org>
79469         Make test-signbit pass on HP-UX/hppa.
79470         * tests/test-signbit.c (minus_zerol): New variable.
79471         (test_signbitl): Use it.
79473 2008-04-13  Bruno Haible  <bruno@clisp.org>
79475         Make truncl work on OSF/1 4.0.
79476         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79477         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79478         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79480         HAVE_DECL_TRUNCL.
79481         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79482         HAVE_DECL_TRUNCL.
79483         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79485 2008-04-13  Bruno Haible  <bruno@clisp.org>
79487         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79489 2008-04-13  Bruno Haible  <bruno@clisp.org>
79491         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79492         expression, so as to avoid HP-UX 11 cc compiler bug.
79494 2008-04-13  Bruno Haible  <bruno@clisp.org>
79496         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79498 2008-04-13  Bruno Haible  <bruno@clisp.org>
79500         * lib/git-merge-changelog.c: Remove empty declaration outside of
79501         functions.
79503 2008-04-13  Bruno Haible  <bruno@clisp.org>
79505         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79507 2008-04-13  Bruno Haible  <bruno@clisp.org>
79509         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79510         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79512         also if it exists but lacks definitions of the SHUT_* macros.
79513         * modules/sys_socket (Description): Update.
79514         Reported by Elbert Pol <e.pol@chello.nl>.
79516 2008-04-13  Bruno Haible  <bruno@clisp.org>
79518         * lib/localcharset.c (OS2): Don't redefine if already defined.
79519         Reported by Elbert Pol <e.pol@chello.nl>.
79521 2008-04-13  Bruno Haible  <bruno@clisp.org>
79523         * lib/binary-io.h [__EMX__]: Include <io.h>.
79524         Reported by Elbert Pol <e.pol@chello.nl>.
79526 2008-04-12  Bruno Haible  <bruno@clisp.org>
79528         * lib/fpucw.h: Enable the definitions also for x86_64.
79529         Needed for NetBSD/x86_64.
79530         Reported by Thomas Klausner <tk@giga.or.at>.
79532 2008-04-12  Bruno Haible  <bruno@clisp.org>
79534         * tests/test-strtod.c: Include isnand.h.
79535         (main): Use isnand instead of isnan.
79536         Reported by Jim Meyering.
79538 2008-04-12  Bruno Haible  <bruno@clisp.org>
79540         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79541         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79543 2008-04-12  Jim Meyering  <meyering@redhat.com>
79545         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79547 2008-04-12  Bruno Haible  <bruno@clisp.org>
79549         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79550         Reported by Elbert Pol <e.pol@chello.nl>.
79552 2008-04-12  Eric Blake  <ebb9@byu.net>
79554         Work around Solaris 10 math.h bug.
79555         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79556         (gl_MATH_H_DEFAULTS): Set up default.
79557         * modules/math (Makefile.am): Replace new indicators.
79558         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79559         * tests/test-math.c (main): Test this.
79560         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79561         * doc/posix-headers/math.texi (math.h): Mention bug.
79562         Reported by Nelson H. F. Beebe and Jim Meyering.
79564 2008-04-11  Bruno Haible  <bruno@clisp.org>
79566         Adapt to future versions of Apple GCC.
79567         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79568         Reported by Peter O'Gorman <peter@pogma.com>.
79570 2008-04-11  Bruno Haible  <bruno@clisp.org>
79572         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79574 2008-04-11  Bruno Haible  <bruno@clisp.org>
79576         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79578         * modules/getaddrinfo-tests (Makefile.am): Define
79579         test_getaddrinfo_LDADD.
79581 2008-04-11  Bruno Haible  <bruno@clisp.org>
79583         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79584         (init): Fix syntax error.
79585         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79586         is declared.
79588 2008-04-11  Bruno Haible  <bruno@clisp.org>
79590         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79591         * modules/glob (Depends-on): Add stdbool.
79593 2008-04-11  Bruno Haible  <bruno@clisp.org>
79595         * lib/trim.c: Include <string.h>.
79597 2008-04-11  Eric Blake  <ebb9@byu.net>
79599         Avoid compile failure on OS/2.
79600         * lib/regex_internal.h (internal_function): Disable optimization
79601         on OS/2 (__EMX__), where it caused compiler error.
79602         Reported by Elbert Pol.
79604 2008-04-11  Bruno Haible  <bruno@clisp.org>
79606         Flush the standard error stream before aborting. Needed on mingw.
79607         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79608         * tests/test-array_list.c (ASSERT): Likewise.
79609         * tests/test-array_oset.c (ASSERT): Likewise.
79610         * tests/test-avltree_list.c (ASSERT): Likewise.
79611         * tests/test-avltree_oset.c (ASSERT): Likewise.
79612         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79613         * tests/test-binary-io.c (ASSERT): Likewise.
79614         * tests/test-byteswap.c (ASSERT): Likewise.
79615         * tests/test-c-ctype.c (ASSERT): Likewise.
79616         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79617         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79618         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79619         * tests/test-c-strstr.c (ASSERT): Likewise.
79620         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79621         * tests/test-canonicalize.c (ASSERT): Likewise.
79622         * tests/test-carray_list.c (ASSERT): Likewise.
79623         * tests/test-ceilf1.c (ASSERT): Likewise.
79624         * tests/test-ceilf2.c (ASSERT): Likewise.
79625         * tests/test-ceill.c (ASSERT): Likewise.
79626         * tests/test-count-one-bits.c (ASSERT): Likewise.
79627         * tests/test-fbufmode.c (ASSERT): Likewise.
79628         * tests/test-fflush2.c (ASSERT): Likewise.
79629         * tests/test-floorf1.c (ASSERT): Likewise.
79630         * tests/test-floorf2.c (ASSERT): Likewise.
79631         * tests/test-floorl.c (ASSERT): Likewise.
79632         * tests/test-fopen.c (ASSERT): Likewise.
79633         * tests/test-fpending.c (ASSERT): Likewise.
79634         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79635         * tests/test-fpurge.c (ASSERT): Likewise.
79636         * tests/test-freadable.c (ASSERT): Likewise.
79637         * tests/test-freadahead.c (ASSERT): Likewise.
79638         * tests/test-freading.c (ASSERT): Likewise.
79639         * tests/test-freadptr.c (ASSERT): Likewise.
79640         * tests/test-freadptr2.c (ASSERT): Likewise.
79641         * tests/test-freadseek.c (ASSERT): Likewise.
79642         * tests/test-freopen.c (ASSERT): Likewise.
79643         * tests/test-frexp.c (ASSERT): Likewise.
79644         * tests/test-frexpl.c (ASSERT): Likewise.
79645         * tests/test-fseek.c (ASSERT): Likewise.
79646         * tests/test-fseeko.c (ASSERT): Likewise.
79647         * tests/test-fstrcmp.c (ASSERT): Likewise.
79648         * tests/test-ftell.c (ASSERT): Likewise.
79649         * tests/test-ftello.c (ASSERT): Likewise.
79650         * tests/test-func.c (ASSERT): Likewise.
79651         * tests/test-fwritable.c (ASSERT): Likewise.
79652         * tests/test-fwriting.c (ASSERT): Likewise.
79653         * tests/test-getdelim.c (ASSERT): Likewise.
79654         * tests/test-getline.c (ASSERT): Likewise.
79655         * tests/test-i-ring.c (ASSERT): Likewise.
79656         * tests/test-iconv-utf.c (ASSERT): Likewise.
79657         * tests/test-iconv.c (ASSERT): Likewise.
79658         * tests/test-isfinite.c (ASSERT): Likewise.
79659         * tests/test-isnand.c (ASSERT): Likewise.
79660         * tests/test-isnanf.c (ASSERT): Likewise.
79661         * tests/test-isnanl.h (ASSERT): Likewise.
79662         * tests/test-ldexpl.c (ASSERT): Likewise.
79663         * tests/test-linked_list.c (ASSERT): Likewise.
79664         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79665         * tests/test-localename.c (ASSERT): Likewise.
79666         * tests/test-lseek.c (ASSERT): Likewise.
79667         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79668         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79669         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79670         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79671         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79672         * tests/test-mbschr.c (ASSERT): Likewise.
79673         * tests/test-mbscspn.c (ASSERT): Likewise.
79674         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79675         * tests/test-mbspbrk.c (ASSERT): Likewise.
79676         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79677         * tests/test-mbsrchr.c (ASSERT): Likewise.
79678         * tests/test-mbsspn.c (ASSERT): Likewise.
79679         * tests/test-mbsstr1.c (ASSERT): Likewise.
79680         * tests/test-mbsstr2.c (ASSERT): Likewise.
79681         * tests/test-mbsstr3.c (ASSERT): Likewise.
79682         * tests/test-memchr2.c (ASSERT): Likewise.
79683         * tests/test-memmem.c (ASSERT): Likewise.
79684         * tests/test-open.c (ASSERT): Likewise.
79685         * tests/test-printf-frexp.c (ASSERT): Likewise.
79686         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79687         * tests/test-printf-posix.c (ASSERT): Likewise.
79688         * tests/test-quotearg.c (ASSERT): Likewise.
79689         * tests/test-rbtree_list.c (ASSERT): Likewise.
79690         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79691         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79692         * tests/test-round1.c (ASSERT): Likewise.
79693         * tests/test-roundf1.c (ASSERT): Likewise.
79694         * tests/test-roundl.c (ASSERT): Likewise.
79695         * tests/test-signbit.c (ASSERT): Likewise.
79696         * tests/test-sleep.c (ASSERT): Likewise.
79697         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79698         * tests/test-snprintf.c (ASSERT): Likewise.
79699         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79700         * tests/test-stat-time.c (ASSERT): Likewise.
79701         * tests/test-strcasestr.c (ASSERT): Likewise.
79702         * tests/test-strerror.c (ASSERT): Likewise.
79703         * tests/test-striconv.c (ASSERT): Likewise.
79704         * tests/test-striconveh.c (ASSERT): Likewise.
79705         * tests/test-striconveha.c (ASSERT): Likewise.
79706         * tests/test-strsignal.c (ASSERT): Likewise.
79707         * tests/test-strstr.c (ASSERT): Likewise.
79708         * tests/test-strtod.c (ASSERT): Likewise.
79709         * tests/test-trunc1.c (ASSERT): Likewise.
79710         * tests/test-trunc2.c (ASSERT): Likewise.
79711         * tests/test-truncf1.c (ASSERT): Likewise.
79712         * tests/test-truncf2.c (ASSERT): Likewise.
79713         * tests/test-truncl.c (ASSERT): Likewise.
79714         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79715         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79716         * tests/test-vasnprintf.c (ASSERT): Likewise.
79717         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79718         * tests/test-vasprintf.c (ASSERT): Likewise.
79719         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79720         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79721         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79722         * tests/test-vsnprintf.c (ASSERT): Likewise.
79723         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79724         * tests/test-wcwidth.c (ASSERT): Likewise.
79725         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79726         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79727         * tests/test-xvasprintf.c (ASSERT): Likewise.
79728         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79729         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79730         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79731         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79732         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79733         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79734         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79735         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79736         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79737         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79738         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79739         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79740         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79741         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79742         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79743         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79744         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79745         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79746         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79747         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79748         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79749         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79750         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79751         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79752         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79753         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79754         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79755         * tests/unictype/test-combining.c (ASSERT): Likewise.
79756         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79757         * tests/unictype/test-digit.c (ASSERT): Likewise.
79758         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79759         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79760         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79761         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79762         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79763         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79764         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79765         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79766         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79767         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79768         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79769         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79770         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79771         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79772         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79773         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79774         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79775         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79776         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79777         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79778         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79779         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79780         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79781         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79782         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79783         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79784         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79785         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79786         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79787         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79788         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79789         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79790         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79791         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79792         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79793         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79794         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79795         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79796         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79797         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79798         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79799         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79800         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79801         Reported by Eric Blake.
79803 2008-04-11  Bruno Haible  <bruno@clisp.org>
79805         * lib/wchar.in.h: Tweak comment.
79807 2008-04-11  Bruno Haible  <bruno@clisp.org>
79809         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79810         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79811         gl_COMMON.
79812         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79814 2008-04-11  Bruno Haible  <bruno@clisp.org>
79816         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79818 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79820         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79821         of attempting to use non-existing /dev/*random.  Based on patch
79822         from Adam Strzelecki <ono@java.pl> in
79823         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79825 2008-04-08  Bruno Haible  <bruno@clisp.org>
79827         Add tentative support for emx+gcc.
79828         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79829         * lib/fpurge.c (fpurge): Likewise.
79830         * lib/freadable.c (freadable): Likewise.
79831         * lib/freadahead.c (freadahead): Likewise.
79832         * lib/freading.c (freading): Likewise.
79833         * lib/freadptr.c (freadptr): Likewise.
79834         * lib/freadseek.c (freadptrinc): Likewise.
79835         * lib/fseeko.c (rpl_fseeko): Likewise.
79836         * lib/fseterr.c (fseterr): Likewise.
79837         * lib/fwritable.c (fwritable): Likewise.
79838         * lib/fwriting.c (fwriting): Likewise.
79839         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79841 2008-04-09  Eric Blake  <ebb9@byu.net>
79843         Avoid some autoconf warnings.
79844         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79845         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79846         * m4/afs.m4 (gl_AFS): Likewise.
79847         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79848         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79850         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79851         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79852         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79853         (AC_CHECK_DECLS_ONCE): Likewise.
79854         Rename file...
79855         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79856         gnulib-tool requires autoconf 2.59 or better.
79857         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79859 2008-04-08  Eric Blake  <ebb9@byu.net>
79861         Use 'git describe --match' if present (added in git 1.5.5).
79862         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79863         if possible.
79865 2008-04-08  Bruno Haible  <bruno@clisp.org>
79867         Add tentative support for OpenServer.
79868         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79869         _ptr, _cnt.
79870         * lib/fpurge.c (fpurge): Likewise.
79871         * lib/freadable.c (freadable): Likewise.
79872         * lib/freadahead.c (freadahead): Likewise.
79873         * lib/freading.c (freading): Likewise.
79874         * lib/freadptr.c (freadptr): Likewise.
79875         * lib/freadseek.c (freadptrinc): Likewise.
79876         * lib/fseeko.c (rpl_fseeko): Likewise.
79877         * lib/fseterr.c (fseterr): Likewise.
79878         * lib/fwritable.c (fwritable): Likewise.
79879         * lib/fwriting.c (fwriting): Likewise.
79880         Reported by Roger Cornelius <rac@tenzing.org> and
79881         Brian K. White <brian@aljex.com>.
79883 2008-04-06  Jim Meyering  <meyering@redhat.com>
79885         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79887 2008-04-06  Bruno Haible  <bruno@clisp.org>
79889         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79890         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79891         * tests/test-printf-posix.sh: Likewise.
79892         * tests/test-vfprintf-posix.sh: Likewise.
79893         * tests/test-vprintf-posix.sh: Likewise.
79894         * tests/test-xprintf-posix.sh: Likewise.
79896 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79898         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79899         hide error from 'ls', needed on OS/2.
79900         Report by Elbert Pol <elbert.pol@gmail.com>.
79902 2008-04-04  Eric Blake  <ebb9@byu.net>
79904         Make test-fseeko.c failures meaningful.
79905         * tests/test-fseeko.c: Print line number on failure.
79906         * tests/test-fseek.c: Likewise.
79907         Reported by Nelson H. F. Beebe.
79909         Improve strtod bug detection check.
79910         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79911         required for Solaris 10.
79912         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79914 2008-04-04  Bruno Haible  <bruno@clisp.org>
79916         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79917         by m4/setenv.m4.
79919 2008-04-03  Eric Blake  <ebb9@byu.net>
79921         Ensure sane .version contents.
79922         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79923         version string.
79924         * build-aux/git-version-gen: Improve documentation.
79926         Make GNU make output nicer.
79927         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79928         MAKECMDGOALS to enforce message for all command line targets.  Set
79929         srcdir for use in maint.mk.
79931         Another maintainer tweak.
79932         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79933         a target that regenerates version.
79935 2008-04-03  Jim Meyering  <meyering@redhat.com>
79937         vc-list-files: don't cause coreutils "make po-check" failure
79938         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79940 2008-04-03  Eric Blake  <ebb9@byu.net>
79942         Allow VPATH usage of vc-list-files.
79943         * build-aux/vc-list-files (scriptversion): Add timestamp.
79944         (options): Add --help, --version, -C.
79945         (CVS): Support installed cvsu.
79947 2008-04-02  Bruno Haible  <bruno@clisp.org>
79949         Avoid some "statement with no effect" warnings from gcc.
79950         * tests/test-wctype.c (main): Explicitly ignore unused values.
79951         Reported by Jim Meyering.
79953 2008-04-02  Jim Meyering  <meyering@redhat.com>
79955         Avoid some warnings from "gcc -Wshadow".
79956         * tests/test-frexp.c (exp): Define to a different identifier.
79957         * tests/test-frexpl.c (exp): Likewise.
79959 2008-04-03  Jim Meyering  <meyering@redhat.com>
79961         bootstrap: remove dangling *.[ch] symlinks from lib
79962         * build-aux/bootstrap [dangling symlink removal]: Move find's
79963         -depth option to precede all others, to avoid a warning.
79964         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79966 2008-04-02  Bruno Haible  <bruno@clisp.org>
79968         Avoid some warnings from "gcc -Wshadow".
79969         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79970         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79971         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79972         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79973         Reported by Jim Meyering.
79975 2008-04-01  Bruno Haible  <bruno@clisp.org>
79977         Fix test to work on IRIX 6.5 with cc.
79978         * tests/test-math.c (numeric_equal): New function.
79979         (main): Use it.
79981 2008-04-01  Bruno Haible  <bruno@clisp.org>
79983         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79985 2008-04-01  Bruno Haible  <bruno@clisp.org>
79987         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79988         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79989         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79990         (Depends-on): Remove math.
79992         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79993         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79994         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79995         (Depends-on): Remove math.
79997         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79998         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79999         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
80000         (Depends-on): Remove math.
80001         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
80002         (Depends-on): Remove math.
80004         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
80005         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80006         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
80007         (Depends-on): Remove math.
80008         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
80009         (Depends-on): Remove math.
80011         * tests/test-round1.c: Include nan.h.
80012         (main): Use NaNd instead of NAN.
80013         * modules/round-tests (Files): Add tests/nan.h.
80015         * tests/test-trunc1.c: Include nan.h.
80016         (main): Use NaNd instead of NAN.
80017         * modules/trunc-tests (Files): Add tests/nan.h.
80019         * tests/test-roundf1.c: Include nan.h.
80020         (main): Use NaNf instead of NAN.
80021         * modules/roundf-tests (Files): Add tests/nan.h.
80023         * tests/test-truncf1.c: Include nan.h.
80024         (main): Use NaNf instead of NAN.
80025         * modules/truncf-tests (Files): Add tests/nan.h.
80027         * tests/test-ceilf1.c: Include nan.h.
80028         (main): Use NaNf instead of NAN.
80029         * modules/ceilf-tests (Files): Add tests/nan.h.
80031         * tests/test-floorf1.c: Include nan.h.
80032         (main): Use NaNf instead of NAN.
80033         * modules/floorf-tests (Files): Add tests/nan.h.
80035         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
80036         (main): Use NaNf instead of NAN.
80037         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
80039         * tests/test-isnand.c: Include nan.h instead of <math.h>.
80040         (main): Use NaNd instead of NAN.
80041         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
80043         * tests/test-frexp.c: Include nan.h.
80044         (main): Use NaNd instead of NAN.
80045         * modules/frexp-tests (Files): Add tests/nan.h.
80047         * lib/isnan.c: Don't include <math.h>.
80048         (FUNC): Don't use NAN macro.
80049         * modules/isnand-nolibm (Depends-on): Remove math.
80050         * modules/isnanf-nolibm (Depends-on): Remove math.
80051         * modules/isnanl (Depends-on): Remove math.
80052         * modules/isnanl-nolibm (Depends-on): Remove math.
80054         * tests/nan.h: New file.
80056 2008-04-01  Eric Blake  <ebb9@byu.net>
80058         Fix typos.
80059         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
80060         values to be the right type.
80062         For now, cater to gnulib strtod inaccuracies.
80063         * tests/test-strtod.c (main): Allow 1-ulp error on expected
80064         fractional results.  While not as nice from a QoI perspective, it
80065         is a quicker patch than correctly implementing decimal to binary
80066         rounding.
80068 2008-03-31  Eric Blake  <ebb9@byu.net>
80070         Guarantee a definition of NAN.
80071         * lib/math.in.h (NAN): Define if missing.
80072         * tests/test-math.c (main): Test it.
80073         * doc/posix-headers/math.texi (math.h): Document this.
80074         * lib/isnan.c (rpl_isnand): Use it.
80075         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
80076         * tests/test-floorf1.c (NaN): Likewise.
80077         * tests/test-frexp.c (NaN): Likewise.
80078         * tests/test-isnand.c (NaN): Likewise.
80079         * tests/test-isnanf.c (NaN): Likewise.
80080         * tests/test-round1.c (NaN): Likewise.
80081         * tests/test-roundf1.c (NaN): Likewise.
80082         * tests/test-snprintf-posix.h (NaN): Likewise.
80083         * tests/test-sprintf-posix.h (NaN): Likewise.
80084         * tests/test-trunc1.c (NaN): Likewise.
80085         * tests/test-truncf1.c (NaN): Likewise.
80086         * tests/test-vasnprintf-posix.c (NaN): Likewise.
80087         * tests/test-vasprintf-posix.c (NaN): Likewise.
80088         * modules/isnand-nolibm (Depends-on): Add math.
80089         * modules/isnanf-nolibm (Depends-on): Likewise.
80090         * modules/isnanl (Depends-on): Likewise.
80091         * modules/isnanl-nolibm (Depends-on): Likewise.
80092         * modules/snprintf-posix-tests (Depends-on): Likewise.
80093         * modules/sprintf-posix-tests (Depends-on): Likewise.
80094         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
80095         * modules/vsprintf-posix-tests (Depends-on): Likewise.
80096         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
80097         * modules/vasprintf-posix-tests (Depends-on): Likewise.
80099 2008-03-31  Bruno Haible  <bruno@clisp.org>
80101         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
80102         * doc/posix-functions/strtod.texi: Likewise.
80104 2008-03-31  Bruno Haible  <bruno@clisp.org>
80106         * tests/test-strtod.c (main): Don't use C99 syntax.
80108 2008-03-31  Bruno Haible  <bruno@clisp.org>
80110         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
80111         Reported by Eric Blake.
80113 2008-03-31  Jim Meyering  <meyering@redhat.com>
80115         Don't compare actual signbit return values.
80116         * tests/test-strtod.c (main): Rather, compare only their
80117         zero/non-zero nature.
80119 2008-03-31  Eric Blake  <ebb9@byu.net>
80121         More strtod documentation.
80122         * doc/posix-functions/strtod.texi (strtod): Interpret more test
80123         failures as distinct bugs.
80125 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80127         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80128         Problem reported by Erik Benada in
80129         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80131 2008-03-30  Bruno Haible  <bruno@clisp.org>
80133         * tests/test-strtod.c: Add comments about which assertion fails on which
80134         platform.
80135         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80137 2008-03-30  Eric Blake  <ebb9@byu.net>
80139         Test signbit behavior on zeros.
80140         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80141         (test_signbitd, test_signbitl): Likewise.
80143         More strtod touchups.
80144         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80145         sign of negative underflow, for now.  Use .5, not .1.
80146         * doc/posix-functions/strtod.texi (strtod): Mention these
80147         limitations.
80148         Reported by Jim Meyering.
80150 2008-03-30  Bruno Haible  <bruno@clisp.org>
80152         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80153         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80155 2008-03-30  Bruno Haible  <bruno@clisp.org>
80157         Avoid failure when attempting to return empty iconv results on some
80158         platforms.
80159         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80160         allocation, don't report ENOMEM when the resulting string is empty.
80162 2008-03-30  Bruno Haible  <bruno@clisp.org>
80164         Fix buffer overrun.
80165         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80166         Don't consider the width for tmp_length. Check count against tmp_length
80167         before doing the padding. Ensure enough allocation during padding.
80169 2008-03-30  Eric Blake  <ebb9@byu.net>
80171         strtod touchups.
80172         * lib/strtod.c (strtod): Avoid compiler warnings.
80173         Reported by Jim Meyering.
80175 2008-03-30  Bruno Haible  <bruno@clisp.org>
80177         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80178         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80179         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80180         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80181         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80182         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80183         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80184         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80186         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80187         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80188         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80189         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80190         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80191         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80192         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80193         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80195         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80196         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80197         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80198         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80199         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80200         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80201         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80202         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80204         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80205         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80207         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80208         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80210         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80211         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80213         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80215         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80217         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80219         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80221         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80223         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80225         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80227         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80229         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80230         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80231         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80232         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80233         (Depends-on): Add EOVERFLOW.
80234         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80235         (Depends-on): Add EOVERFLOW.
80236         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80237         (Depends-on): Add EOVERFLOW.
80238         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80239         (Depends-on): Add EOVERFLOW.
80240         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80241         (Depends-on): Add EOVERFLOW.
80242         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80243         (Depends-on): Add EOVERFLOW.
80244         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80245         (Depends-on): Add EOVERFLOW.
80246         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80247         (Depends-on): Add EOVERFLOW.
80249         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80251         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80253         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80255         * modules/snprintf (Depends-on): Add EOVERFLOW.
80257         * lib/poll.c (EOVERFLOW): Remove fallback.
80258         * modules/poll (Depends-on): Add EOVERFLOW.
80260         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80261         * modules/getugroups (Depends-on): Add EOVERFLOW.
80263         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80264         * modules/getdelim (Depends-on): Add EOVERFLOW.
80266         * lib/ftell.c (EOVERFLOW): Remove fallback.
80267         * modules/ftell (Depends-on): Add EOVERFLOW.
80269         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80271         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80273         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80275         * modules/EOVERFLOW-tests: New file.
80276         * tests/test-EOVERFLOW.c: New file.
80278         * modules/EOVERFLOW: New file.
80279         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80281 2008-03-30  Bruno Haible  <bruno@clisp.org>
80283         Fix bug introduced on 2007-06-10.
80284         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80285         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80287 2008-03-30  Bruno Haible  <bruno@clisp.org>
80289         Improve freadseek's efficiency after ungetc.
80290         * lib/freadseek.c: Include freadahead.h.
80291         (freadptrinc): New function, extracted from freadseek.
80292         (freadseek): Use it in a loop. Use freadahead to determine the number
80293         of loop iterations.
80294         * modules/freadseek (Depends-on): Add freadahead.
80295         (configure.ac): Require AC_C_INLINE.
80297 2008-03-30  Bruno Haible  <bruno@clisp.org>
80299         * lib/freadseek.c (freadseek): Don't ignore the return value of
80300         freadptr.
80302 2008-03-29  Eric Blake  <ebb9@byu.net>
80304         Add hex float support.
80305         * modules/strtod (Depends-on): Add c-ctype.
80306         (Link): Mention POW_LIB.
80307         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80308         whitespace between 'e' and exponent.
80309         * tests/test-strtod.c (main): Enable hex float tests.
80310         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80311         now provides.
80313         Document various strtod bugs, with some fixes.
80314         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80315         "-0x", "inf", "nan", and hex constants.
80316         * doc/posix-functions/atof.texi (atof): Likewise.
80317         * modules/stdlib (Makefile.am): Support strtod.
80318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80319         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80320         detect additional strtod bugs.
80321         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80322         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80323         bool where appropriate.  Parse 'inf' and 'nan'.
80324         * tests/test-strtod.c: New file.
80325         * modules/strtod (Depends-on): Add stdbool, stdlib.
80326         (configure.ac): Turn on module indicator.
80327         * modules/strtod-tests: New module.
80329 2008-03-29  Eric Blake  <ebb9@byu.net>
80331         Fix ftell on mingw.
80332         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80333         * modules/ftell-tests (Depends-on): Add binary-io.
80334         * modules/ftello-tests (Depends-on): Likewise.
80335         * tests/test-ftell.c (main): Enhance test to cover behavior after
80336         ungetc.  Enforce binary mode.
80337         * tests/test-ftello.c (main): Likewise.
80339         Pass test-freadseek on cygwin.
80340         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80341         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80342         ungetc buffer.
80344         * tests/test-fflush2.c (main): Fix typo.
80346 2008-03-29  Bruno Haible  <bruno@clisp.org>
80348         * tests/test-fflush2.c (main): Temporarily disable the contents of
80349         this test.
80350         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80351         Reported by Eric Blake.
80353 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80355         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80356         (GC_SHA224_DIGEST_SIZE): Add.
80358         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80359         (gc_hash_digest_length): Likewise.
80360         (gc_hash_buffer): Likewise.
80362 2008-03-25  Bruno Haible  <bruno@clisp.org>
80364         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80365         detail which gettext release to use.
80366         Reported by Simon Josefsson.
80368 2008-03-26  Jim Meyering  <meyering@redhat.com>
80370         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80371         * modules/gnumakefile (clean-GNUmakefile): Also, use
80372         test ... && ... || : syntax rather than if-then ... fi.
80374         gnumakefile: Don't double-quote-expand $(VPATH) value.
80375         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80377 2008-03-24  Eric Blake  <ebb9@byu.net>
80379         Alter GNUmakefile to install into top directory.
80380         * modules/maintainer-makefile: Split, and add dependency...
80381         * modules/gnumakefile: to this new module.
80382         * build-aux/GNUmakefile: Move...
80383         * top/GNUmakefile: ...here.
80384         * build-aux/maint.mk: Move...
80385         * top/maint.mk: ...here.
80386         * MODULES.html.sh (Support for maintaining...): Document new
80387         module.
80389 2008-03-23  Bruno Haible  <bruno@clisp.org>
80391         * gnulib-tool: New options --vc-files, --no-vc-files.
80392         (func_usage): Document them.
80393         (vc_files): New variable.
80394         (func_import): Consider vc_files.
80395         (func_create_testdir): Set vc_files to empty.
80396         Suggested by Jim Meyering and Karl Berry.
80398 2008-03-23  Bruno Haible  <bruno@clisp.org>
80400         Fix regex compilation error on HP-UX 11.
80401         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80402         * modules/regex (Files): Add m4/mbstate_t.m4.
80403         Reported by Ton Voon <ton.voon@altinity.com>.
80405 2008-03-23  Bruno Haible  <bruno@clisp.org>
80407         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80409 2008-03-23  Eric Blake  <ebb9@byu.net>
80410             Bruno Haible  <bruno@clisp.org>
80412         Install files from top/ in the destination directory.
80413         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80414         augmentation also for the files from top/.
80415         (func_import, func_create_testdir): Rewrite file names:
80416         top/filename -> filename.
80418 2008-03-23  Bruno Haible  <bruno@clisp.org>
80420         Tweak "gnulib --version" output.
80421         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80423 2008-03-23  Bruno Haible  <bruno@clisp.org>
80425         Tweak "gnulib --version" output.
80426         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80427         rather than contents of ChangeLog, when possible.
80429 2008-03-21  Eric Blake  <ebb9@byu.net>
80431         More --version tweaks.
80432         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80433         date of last ChangeLog entry.
80435 2008-03-21  Jim Meyering  <meyering@redhat.com>
80437         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80439 2008-03-20  Eric Blake  <ebb9@byu.net>
80441         VPATH fix.
80442         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80444 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80446         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80447         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80449 2008-03-20  Eric Blake  <ebb9@byu.net>
80451         Sync GNUmakefile with coreutils.
80452         * build-aux/GNUmakefile (have-Makefile): Rename...
80453         (_have-Makefile): ...to this, for namespace consideration.
80454         (GNUmakefile.cfg): Include, if present.
80455         (_autoreconf): Define a default.
80456         (_is-dist-target): New rule for rebuilds to pick up intra-release
80457         version.
80458         (maint-cfg.mk): Rename...
80459         (cfg.mk): ...to this.
80461 2008-03-18  Jim Meyering  <meyering@redhat.com>
80463         New script and module: mktempd
80464         * MODULES.html.sh (maint+release support): Add mktempd.
80465         * build-aux/mktempd: New file.
80466         * modules/mktempd: New file.
80468 2008-03-15  Jim Meyering  <meyering@redhat.com>
80470         Undo last change.
80471         * lib/sha1.c, lib/md5.c: 63 != ~63.
80472         Reported by Andreas Schwab.
80474         sha1.c, md5.c: Hoist a redundant expression.
80475         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80476         "ctx->buflen" only once, before calling *_process_block.
80477         * lib/md5.c (md5_process_bytes): Likewise.
80479 2008-03-14  Eric Blake  <ebb9@byu.net>
80481         Bump copyright year in files generated by gnulib-tool.
80482         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80483         gnulib-tool, rather than hard-coding it.
80485         Fix 'gnulib-tool --version' output to work with git.
80486         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80487         (startup): ...here.
80488         (func_version): Use it to invoke git-version-gen, rather than
80489         relying on CVS keyword expansion.  Modernize wording.
80490         (cvsdatestamp, last_checkin_date, version): Kill unused
80491         variables.
80493 2008-03-12  Jim Meyering  <meyering@redhat.com>
80495         Recognize optional cast of the argument to free.
80496         * build-aux/useless-if-before-free: Update regexps.
80498         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80500 2008-03-11  Bruno Haible  <bruno@clisp.org>
80502         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80503         by a single package.
80504         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80505         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80506         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80507         Reported by Sam Steingold <sds@gnu.org>.
80509 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80511         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80512         repositories.
80514 2008-03-11  Bruno Haible  <bruno@clisp.org>
80516         Avoid conflicts between local macro definitions.
80517         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80518         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80520 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80521             Bruno Haible  <bruno@clisp.org>
80523         Make va_copy work with some version of xlc on AIX 5.1.
80524         * lib/stdarg.in.h: New file.
80525         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80526         On AIX, use a <stdarg.h> file substitute.
80527         * modules/stdarg (Files): Add lib/stdarg.in.h.
80528         (Depends-on): Add include_next.
80529         (Makefile.am): Build a stdarg.h substitute if requested.
80530         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80532 2008-03-10  Bruno Haible  <bruno@clisp.org>
80534         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80535         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80536         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80538 2008-03-10  Bruno Haible  <bruno@clisp.org>
80540         * modules/stdlib (Depends-on): Add include_next, remove
80541         absolute-header.
80543 2008-03-09  Bruno Haible  <bruno@clisp.org>
80545         * lib/freadahead.h (freadahead): Document more precisely.
80546         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80547         the sum of both buffer sizes.
80548         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80549         * NEWS: Document the change.
80551 2008-03-09  Bruno Haible  <bruno@clisp.org>
80553         Extend freadptr to return also the buffer size.
80554         * lib/freadptr.h (freadptr): Add sizep argument.
80555         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80556         (freadptr): Add sizep argument. Determine buffer size like freadahead
80557         does.
80558         * tests/test-freadptr.c: Don't include freadahead.h.
80559         (main): Adapt for new calling convention of freadptr.
80560         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80561         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80562         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80563         tests/test-freadptr2.sh.
80564         (Depends): Remove freadahead.
80565         (TESTS): Add test-freadptr2.sh.
80566         (check_PROGRAMS): Add test-freadptr2.
80568 2008-03-09  Bruno Haible  <bruno@clisp.org>
80570         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80571         Report and solution by Simon Josefsson.
80573 2008-03-06  Bruno Haible  <bruno@clisp.org>
80575         Make fflush after ungetc work on BSD platforms.
80576         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80577         * tests/test-fflush2.c: New file.
80578         * tests/test-fflush2.sh: New file.
80579         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80580         tests/test-fflush2.c.
80581         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80582         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80584 2008-03-06  Eric Blake  <ebb9@byu.net>
80586         Likewise for ftello.
80587         * modules/ftello (Dependencies): Add extensions.
80588         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80590 2008-03-06  Bruno Haible  <bruno@clisp.org>
80592         * modules/fseeko (Dependencies): Add extensions.
80593         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80594         Needed on glibc systems.
80596 2008-03-06  Bruno Haible  <bruno@clisp.org>
80598         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80599         email address.
80600         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80602 2008-03-06  Bruno Haible  <bruno@clisp.org>
80604         * users.txt: Add libgnupdf.
80606 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80608         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80609         (Header File Substitutes, Function Substitutes,
80610         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80611         (Build robot for gnulib): Fix typo.
80613 2008-03-06  Bruno Haible  <bruno@clisp.org>
80615         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80616         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80618 2008-03-06  Bruno Haible  <bruno@clisp.org>
80620         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80621         * doc/gnulib.texi: Include it.
80623 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80625         * modules/func (License): Change license to unlimited; there was
80626         no LGPL parts in the module anyway.
80628 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80630         * modules/__func__: Renamed to modules/func.
80631         * modules/__func__-tests: Renamed to modules/func-tests.
80632         * tests/test-__func__.c: Renamed to tests/test-func.c.
80633         * m4/__func__.m4: Renamed to m4/func.m4.
80634         * doc/gnulib.texi (__func__): Section renamed to func.
80635         Suggested by Eric Blake <ebb9@byu.net>.
80637 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80639         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80640         about __func__.  Make example self-contained.  Suggested by Eric
80641         Blake <ebb9@byu.net>.
80643         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80644         Suggested by Eric Blake <ebb9@byu.net>.
80646 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80648         * modules/__func__: New file.
80649         * modules/__func__-tests: New file.
80650         * tests/test-__func__.c: New file.
80651         * m4/__func__.m4: New file.
80652         * doc/gnulib.texi (__func__): Document __func__ module.
80654 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80656         * modules/byteswap (License): Re-license as LGPLv2+.
80658 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80660         * doc/Makefile: Add pdf target.
80662 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80664         * modules/inline (License): Use 'unlimited', since there are only
80665         *.m4 files in this module.
80667 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80668             Bruno Haible  <bruno@clisp.org>
80670         Add support for HP C 7.1 on OpenVMS 8.3.
80671         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80673 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80675         Update VMS specifics.
80676         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80678 2008-03-02  Jim Meyering  <meyering@redhat.com>
80680         Remove the last dependency on the "free" module.
80681         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80682         Reported by Bob Proulx.
80684         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80686         Remove useless "if" tests before free.  Deprecate "free" module.
80687         * doc/posix-functions/free.texi: Mention that this
80688         module is no longer useful.
80689         * modules/free (Notice): Say this module is obsolete.
80690         * modules/readutmp (Depends-on): Remove free.
80691         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80692         * lib/putenv.c (putenv): Likewise.
80693         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80694         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80695         * tests/test-c-strcasestr.c (main): Likewise.
80696         * tests/test-c-strstr.c (main): Likewise.
80697         * tests/test-mbscasestr1.c (main): Likewise.
80698         * tests/test-mbscasestr2.c (main): Likewise.
80699         * tests/test-mbsstr1.c (main): Likewise.
80700         * tests/test-mbsstr2.c (main): Likewise.
80701         * tests/test-memmem.c (main): Likewise.
80702         * tests/test-strcasestr.c (main): Likewise.
80703         * tests/test-striconv.c (main): Likewise.
80704         * tests/test-striconveh.c (main): Likewise.
80705         * tests/test-striconveha.c (main): Likewise.
80706         * tests/test-strstr.c (main): Likewise.
80708         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80710         bootstrap: sync from coreutils again
80711         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80713 2008-03-01  Jim Meyering  <meyering@redhat.com>
80715         bootstrap: sync from coreutils
80716         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80717         also when the target doesn't exist.
80719 2008-03-01  Eric Blake  <ebb9@byu.net>
80721         Fix bugs in last patch.
80722         * lib/memchr2.c (memchr2): Fix typo.
80723         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80724         extension.
80725         Reported by Bruce Korb.
80727         New module 'memchr2'.
80728         * modules/memchr2: New file.
80729         * modules/memchr2-tests: Likewise.
80730         * lib/memchr2.h: Likewise.
80731         * lib/memchr2.c: Likewise, based on memchr.c.
80732         * tests/test-memchr2.c: New test.
80733         * MODULES.html.sh (String handling): Add memchr2.
80735 2008-02-29  Bruno Haible  <bruno@clisp.org>
80737         * modules/freadseek-tests: New file.
80738         * tests/test-freadseek.sh: New file.
80739         * tests/test-freadseek.c: New file.
80741         New module 'freadseek'.
80742         * modules/freadseek: New file.
80743         * lib/freadseek.h: New file.
80744         * lib/freadseek.c: New file.
80745         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80747 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80749         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80750         wydawca.
80752         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80753         program_invocation_name and program_invocation_short_name are
80754         present.
80756 2008-02-28  Bruno Haible  <bruno@clisp.org>
80758         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80759         * tests/test-freadptr.sh: Also test non-seekable stdin.
80761 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80763         * build-aux/bootstrap (source_base, m4_base)
80764         (doc_base, tests_base): New variables.
80765         (gnulib_tool_options): Do not hardcode base directories, use
80766         the above variables instead.
80768 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80770         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80772 2008-02-28  Bruno Haible  <bruno@clisp.org>
80774         * modules/freadptr-tests: New file.
80775         * tests/test-freadptr.sh: New file.
80776         * tests/test-freadptr.c: New file.
80778         New module 'freadptr'.
80779         * modules/freadptr: New file.
80780         * lib/freadptr.h: New file.
80781         * lib/freadptr.c: New file.
80782         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80784 2008-02-26  Karl Berry  <karl@freefriends.org>
80786         Sync from Libtool:
80787         * libltdl/argz.c (argz_add, argz_count): New functions.
80788         * libltdl/argz.in.h: Declare them.
80789         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80791 2008-02-22  Bruno Haible  <bruno@clisp.org>
80793         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80794         is a pointer type.  Needed for HP-UX 10.
80795         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80796         * doc/posix-functions/gmtime_r.texi: Likewise.
80797         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80799 2008-02-24  Bruno Haible  <bruno@clisp.org>
80801         * modules/environ-tests: New file.
80802         * tests/test-environ.c: New file.
80804         New module 'environ'.
80805         * modules/environ: New file.
80806         * lib/unistd.in.h (environ): New declaration.
80807         * m4/environ.m4: New file.
80808         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80809         after use.
80810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80811         HAVE_DECL_ENVIRON.
80812         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80813         HAVE_DECL_ENVIRON.
80814         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80815         wrong claim that 'environ' is missing on some systems.
80816         * modules/execute (Depends-on): Add environ.
80817         * lib/execute.c (environ): Remove fallback declaration.
80818         * modules/pipe (Depends-on): Add environ.
80819         * lib/pipe.c (environ): Remove fallback declaration.
80820         * modules/setenv (Depends-on): Add environ.
80821         * lib/setenv.c (environ): Remove fallback declaration.
80822         * modules/unsetenv (Depends-on): Add environ.
80823         * lib/unsetenv.c (environ): Remove fallback declaration.
80824         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80825         m4/environ.m4.
80826         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80827         (gl_PREREQ_UNSETENV): Likewise.
80829 2008-02-24  Bruno Haible  <bruno@clisp.org>
80831         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80833 2008-02-20  Bob Proulx  <bob@proulx.com>
80835         Enable use of older two part flavor 'git describe'.
80836         * build-aux/git-version-gen: If using the older two part flavor of
80837         git version then recreate the third part now present in the
80838         newer three part flavor of git describe.
80840 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80842         * lib/fts.c (fts_build): Typo correction to comment.
80844 2008-02-17  Bruno Haible  <bruno@clisp.org>
80846         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80847         generating no-op conflicts.
80849 2008-02-17  Bruno Haible  <bruno@clisp.org>
80851         Speed up by 10%.
80852         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80853         result_entries, rather than an index-based loop.
80855 2008-02-17  Bruno Haible  <bruno@clisp.org>
80857         Speed up by 25%.
80858         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80859         'hashcode_cached'.
80860         (entry_create): New function.
80861         (entry_hashcode): Use the cached hashcode if possible.
80862         (read_changelog_file, try_split_merged_entry): Use entry_create.
80864 2008-02-17  Bruno Haible  <bruno@clisp.org>
80866         Speed up from O(n^2) to O(n) for long ChangeLog files.
80867         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80868         (read_changelog_file): Change implementation of entries_reversed list
80869         to rbtreehash.
80870         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80872 2008-02-17  Bruno Haible  <bruno@clisp.org>
80874         New option --split-merged-entry.
80875         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80876         (find_paragraph_end, try_split_merged_entry): New functions.
80877         (long_options): Add option --split-merged-entry.
80878         (usage): Document option --split-merged-entry.
80879         (main): Implement option --split-merged-entry.
80880         Reported by Eric Blake.
80882 2008-02-17  Bruno Haible  <bruno@clisp.org>
80884         * lib/git-merge-changelog.c: Include c-strstr.h.
80885         (main): Support the "git pull --rebase" situation.
80886         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80887         Reported by Eric Blake.
80889 2008-02-16  Eric Blake  <ebb9@byu.net>
80891         Avoid doubling \ in common case of "c-maybe" quoting style.
80892         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80893         eliding outer quotes.
80894         * lib/quotearg.h: Document this.
80895         * tests/test-quotearg.c (result_strings, inputs, results_g)
80896         (flag_results, locale_results): Test it by adding a new string to
80897         each test group.
80898         (compare_strings): Test new string.
80900 2008-02-13  Eric Blake  <ebb9@byu.net>
80902         Avoid trigraph quoting in default output.
80903         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80904         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80905         unless explicitly requested.
80906         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80908 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80910         Don't rely on signed integer overflowing to negative value.
80911         * lib/getugroups.c (getugroups): Include <limits.h>.
80912         Instead, compare against INT_MAX, and increment only if the test passes.
80914 2008-02-13  Jim Meyering  <meyering@redhat.com>
80915         and Eric Blake  <ebb9@byu.net>
80917         Avoid shadowing warning and compile errors on Linux.
80918         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80919         forwarding macros on Linux.
80920         (dcgettext): Define a stub, for Linux.
80921         (results_g, main): Avoid warnings.
80923 2008-02-12  Eric Blake  <ebb9@byu.net>
80925         Silence warning in last patch.
80926         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80928         Quotearg part 4: add tests, fix c-maybe colon quoting.
80929         * lib/quotearg.h: Improve documentation.
80930         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80931         escapes when adding outer quotes.  When quoting trigraphs, use
80932         valid C notation.  When quoting NUL, omit extra characters if next
80933         character is not digit.  Alter prototype.
80934         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80935         callers.
80936         * modules/quotearg-tests: New module.
80937         * tests/test-quotearg.c: New test.
80939 2008-02-07  Eric Blake  <ebb9@byu.net>
80941         Quotearg part 3: add flag to control outer quote elision.
80942         * lib/quotearg.h (c_maybe_quoting_style): New style.
80943         (enum quoting_flags): Better documentation of flags.
80944         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80945         c-maybe style.
80946         (quotearg_buffer_restyled): Handle new flag to elide outer
80947         quotes.
80949         Quotearg part 2: add flag that can control NUL elision.
80950         * lib/quotearg.h (set_quoting_flags): New prototype.
80951         * lib/quotearg.c (struct quoting_options): Add flag field.
80952         (set_quoting_flags): New function.
80953         (quotearg_buffer_restyled): Add flags parameter.
80954         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80955         (quotearg_n_options): Set the flag, since length cannot be
80956         returned.
80957         (quoting_options_from_style): Default flags correctly.
80959         Quotearg part 1: more wrappers, restore quotearg_char state.
80960         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80961         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80962         (quotearg_colon_mem): New wrappers.
80963         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80964         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80965         functions.
80966         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80967         (quotearg_colon_mem): New functions.
80969 2008-02-11  Bruno Haible  <bruno@clisp.org>
80971         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80972         library in the current directory: it does not work with parallel make.
80973         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80975 2008-02-11  Bruno Haible  <bruno@clisp.org>
80977         * .gitattributes: New file.
80979 2008-02-11  Jim Meyering  <meyering@redhat.com>
80981         useless-if-before-free: Fix reversed exit values.
80982         * build-aux/useless-if-before-free: Use correct values
80983         for EXIT_MATCH and EXIT_NO_MATCH.
80985         * build-aux/useless-if-before-free: Close stdout carefully.
80987 2008-02-10  Bruno Haible  <bruno@clisp.org>
80989         New module 'git-merge-changelog'.
80990         * modules/git-merge-changelog: New file.
80991         * lib/git-merge-changelog.c: New file.
80993 2008-02-10  Jim Meyering  <meyering@redhat.com>
80995         useless-if-before-free: New option: --list (-l).
80997         useless-if-before-free: Don't exit immediately upon open failure.
80998         * build-aux/useless-if-before-free: Exit 2 for errors.
80999         Upon failure to open a file, don't exit immediately.
81000         Rather, just warn and continue with any remaining files.
81002 2008-02-10  Bruno Haible  <bruno@clisp.org>
81004         New abstract list operation 'node_set_value'.
81005         * lib/gl_list.h (gl_list_node_set_value): New function.
81006         (struct gl_list_implementation): New field node_set_value.
81007         * lib/gl_list.c (gl_list_node_set_value): New function.
81008         * lib/gl_array_list.c (gl_array_node_set_value): New function.
81009         (gl_array_list_implementation): Update.
81010         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
81011         (gl_carray_list_implementation): Update.
81012         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
81013         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
81014         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
81015         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
81016         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
81017         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
81018         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
81019         Update.
81020         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
81021         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
81022         (gl_sublist_list_implementation): Update.
81024 2008-02-10  Bruno Haible  <bruno@clisp.org>
81026         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
81027         Needed when ELEMENT is #defined to 'some_type *'.
81029 2008-02-10  Jim Meyering  <meyering@redhat.com>
81031         New script and module: useless-if-before-free
81032         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
81033         * build-aux/useless-if-before-free: New file.
81034         * modules/useless-if-before-free: New file.
81036         * build-aux/gitlog-to-changelog: Use committer date, not author date.
81038         xstrtol_error: Fix typo.
81039         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
81040         s/exit_failure/exit_status/.
81042 2008-02-09  Jim Meyering  <meyering@redhat.com>
81044         New script and module: gitlog-to-changelog
81045         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
81046         * modules/gitlog-to-changelog: New file.
81047         * build-aux/gitlog-to-changelog: New file.
81049 2008-02-08  Jim Meyering  <meyering@redhat.com>
81051         Avoid two "parameter unused" warnings.
81052         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
81053         Mark "st" as used.
81055         Use "git COMMAND", not "git-COMMAND".
81056         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
81057         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
81058         * build-aux/git-version-gen: Use "git status", not "git-status".
81060 2008-02-07  Bruno Haible  <bruno@clisp.org>
81062         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
81063         Avoids a crash on Windows Vista.
81064         Reported by Adam Strzelecki <ono@java.pl> via
81065         Simon Josefsson <simon@josefsson.org>.
81067 2008-02-06  Bruno Haible  <bruno@clisp.org>
81069         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
81070         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
81071         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
81072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
81073         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81074         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81075         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
81076         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
81077         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81078         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81084         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
81085         left-adjust flag.
81086         * tests/test-snprintf-posix.h (test_function): Likewise.
81087         * tests/test-sprintf-posix.h (test_function): Likewise.
81088         * tests/test-vasprintf-posix.c (test_function): Likewise.
81089         * doc/posix-functions/fprintf.texi: Update.
81090         * doc/posix-functions/printf.texi: Update.
81091         * doc/posix-functions/snprintf.texi: Update.
81092         * doc/posix-functions/sprintf.texi: Update.
81093         * doc/posix-functions/vfprintf.texi: Update.
81094         * doc/posix-functions/vprintf.texi: Update.
81095         * doc/posix-functions/vsnprintf.texi: Update.
81096         * doc/posix-functions/vsprintf.texi: Update.
81097         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81099 2008-02-06  Bruno Haible  <bruno@clisp.org>
81101         Fix bug introduced on 2008-01-26.
81102         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
81104 2008-02-06  Bruno Haible  <bruno@clisp.org>
81106         Fix bug introduced on 2007-06-10.
81107         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
81108         !NEED_PRINTF_FLAG_ZERO.
81110 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
81112         getloadavg: use libperfstat on AIX5
81113         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
81115 2008-02-03  Bruno Haible  <bruno@clisp.org>
81117         * lib/diffseq.h: Add comments about required #includes.
81118         Reported by Michael Biggs <gnulib@doubleplum.net>.
81120 2008-02-01  Bruno Haible  <bruno@clisp.org>
81122         * users.txt: Add gnuit.
81124 2008-01-31  Bruno Haible  <bruno@clisp.org>
81126         * lib/md4.c (set_uint32): Mark as inline.
81127         * lib/md5.c (set_uint32): Likewise.
81128         * lib/sha1.c (set_uint32): Likewise.
81129         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81130         * m4/md5.m4 (gl_MD5): Likewise.
81131         * m4/sha1.m4 (gl_SHA1): Likewise.
81133 2008-01-31  Jim Meyering  <meyering@redhat.com>
81135         Use "sizeof VAR", rather than a literal "4".
81136         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81137         * lib/md4.c (md4_read_ctx): Likewise.
81138         * lib/sha1.c (sha1_read_ctx): Likewise.
81140 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81142         * tests/test-sha1.c: New file, based on test-md5.c.
81144         * modules/crypto/sha1-tests: New file.
81146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81148         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81150 2008-01-31  Jim Meyering  <meyering@redhat.com>
81152         Prefer "sizeof v" over the equivalent "4".
81153         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81154         * lib/md5.c (set_uint32): Likewise.
81155         * lib/sha1.c (set_uint32): Likewise.
81157 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81159         * lib/sha1.c (set_uint32): Mark function as static.
81161 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81163         md2: clarify comments to say that alignment is not required.
81164         * lib/md2.h: Remove warning about alignment in comment.
81165         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81166         never been required.
81168 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81170         md4: adapt alignment constraint fix from sha1.
81171         * lib/md4.c (set_uint32): New function, from sha1.c
81172         (md4_read_ctx): Use it.
81173         (md4_finish_ctx): Doc fix.
81174         * lib/md4.h: Doc fix.
81176 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81178         md5: adapt alignment constraint fix from sha1.
81179         * lib/md5.c (set_uint32): New function, from sha1.c
81180         (md5_read_ctx): Use it.
81181         (md5_finish_ctx): Doc fix.
81182         * lib/md5.h: Doc fix.
81184 2008-01-30  Peter Palfrader  <weasel@debian.org>
81186         sha1: remove the result buffer alignment constraint
81187         * lib/sha1.c (set_uint32): New function.
81188         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81189         constraint.
81190         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81191         * lib/sha1.h: Likewise.
81193 2008-01-30  Andreas Schwab  <schwab@suse.de>
81194             Bruno Haible  <bruno@clisp.org>
81196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81197         correct definition of LDBL_MIN_EXP.
81199 2008-01-30  Karl Berry  <karl@gnu.org>
81201         * config/srclist-update: try to preserve x bit on updates.
81202         * config/srclistvars.sh: update for karl.
81204 2008-01-29  Jim Meyering  <meyering@redhat.com>
81206         vasnprintf.c: Avoid warning about unused label
81207         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81208         "overflow" label definition and associated code with the
81209         same cpp condition that guards the sole use of that label.
81211 2008-01-26  Bruno Haible  <bruno@clisp.org>
81213         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81214         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81215         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81216         * lib/isnanl-nolibm.h (isnanl): Likewise.
81217         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81219 2008-01-26  Bruno Haible  <bruno@clisp.org>
81221         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81222         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81224 2008-01-26  Bruno Haible  <bruno@clisp.org>
81226         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81227         GCC >= 4.0 built-in.
81228         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81230 2008-01-26  Bruno Haible  <bruno@clisp.org>
81232         Rename isnan, applicable to 'double' only, to isnand.
81233         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81234         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81235         (configure.ac): Update.
81236         (Include): Replace "isnan.h" with "isnand.h".
81237         * m4/isnand.m4: Renamed from m4/isnan.m4.
81238         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81239         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81240         instead of isnan.c.
81241         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81242         instead of HAVE_ISNAN_IN_LIBC.
81243         (isnand): Renamed from isnan.
81244         * lib/isnand.c: New file.
81245         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81246         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81247         (Makefile.am): Update.
81248         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81249         Include isnand.h instead of isnan.h.
81250         (main): Test isnand instead of isnan.
81251         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81252         isnan-nolibm.
81253         * modules/frexp (Depends-on): Likewise.
81254         * modules/frexp-tests (Depends-on): Likewise.
81255         * modules/frexp-nolibm (Depends-on): Likewise.
81256         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81257         * modules/isfinite (Depends-on): Likewise.
81258         * modules/round-tests (Depends-on): Likewise.
81259         * modules/signbit (Depends-on): Likewise.
81260         * modules/signbit-tests (Depends-on): Likewise.
81261         * modules/snprintf-posix (Depends-on): Likewise.
81262         * modules/sprintf-posix (Depends-on): Likewise.
81263         * modules/trunc-tests (Depends-on): Likewise.
81264         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81265         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81266         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81267         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81268         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81269         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81271         * modules/vasnprintf-posix (Depends-on): Likewise.
81272         * modules/vasprintf-posix (Depends-on): Likewise.
81273         * modules/vfprintf-posix (Depends-on): Likewise.
81274         * modules/vsnprintf-posix (Depends-on): Likewise.
81275         * modules/vsprintf-posix (Depends-on): Likewise.
81276         * lib/frexp.c: Include isnand.h instead of isnan.h.
81277         (ISNAN): Set to isnand instead of isnan.
81278         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81279         (gl_isfinited): Use isnand instead of isnan.
81280         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81281         (gl_signbitd): Use isnand instead of isnan.
81282         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81283         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81284         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81285         (main): Use isnand instead of isnan.
81286         * tests/test-round1.c: Include isnand.h.
81287         (main): Use isnand instead of isnan.
81288         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81289         (ISNAN): Set to isnand instead of isnan.
81290         * tests/test-trunc1.c: Include isnand.h.
81291         (main): Use isnand instead of isnan.
81292         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81293         (equal): Use isnand instead of isnan.
81294         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81295         isnand-nolibm.
81296         * NEWS: Mention the change.
81298 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81299             Bruno Haible  <bruno@clisp.org>
81301         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81302         the GCC builtins for signbits are present and set
81303         REPLACE_SIGNBIT_USING_GCC if so.
81304         * lib/math.in.h (signbit): Define using GCC builtins if
81305         REPLACE_SIGNBIT_USING_GCC is set.
81306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81307         REPLACE_SIGNBIT_USING_GCC.
81308         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81310 2008-01-25  Jim Meyering  <meyering@redhat.com>
81312         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81313         * lib/poll.c: Include <config.h>, not "config.h".
81314         * tests/test-getaddrinfo.c: Likewise.
81316 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81318         * modules/sockets-tests: New file.
81320 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81322         * modules/sockets: New module, can be used to call WSA_Startup and
81323         WSA_Cleanup when needed.
81325         * lib/sockets.h, lib/sockets.c: New files.
81327         * m4/sockets.m4: New file.
81329         * tests/test-sockets.c: New file.
81331 2008-01-19  Bruno Haible  <bruno@clisp.org>
81333         * doc/posix-headers: Renamed from doc/headers.
81334         * doc/posix-functions: Renamed from doc/functions.
81335         * doc/gnulib.texi: Update.
81337 2008-01-19  Bruno Haible  <bruno@clisp.org>
81339         * doc/glibc-functions/strcasestr.texi: Include contents of
81340         doc/functions/strcasestr.texi, fixing the list of platforms.
81341         * doc/functions/strcasestr.texi: Remove file.
81343 2008-01-19  Bruno Haible  <bruno@clisp.org>
81345         * doc/glibc-functions/memmem.texi: Include contents of
81346         doc/functions/memmem.texi.
81347         * doc/functions/memmem.texi: Remove file.
81349 2008-01-18  Bruno Haible  <bruno@clisp.org>
81351         * doc/glibc-functions/*.texi: New files.
81352         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81353         to use the new files.
81355 2008-01-17  Bruno Haible  <bruno@clisp.org>
81357         * tests/test-gethostname.c (main): Fix printf statement.
81359 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81361         * modules/gethostname-tests: New file.
81363         * tests/test-gethostname.c: New file.
81365 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81367         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81368         used by the UNAME case.  Reported by Bruno Haible
81369         <bruno@clisp.org>.
81371 2008-01-17  Eric Blake  <ebb9@byu.net>
81373         Convert c-strcasestr to be more efficient.
81374         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81375         (Depends-on): Add c-strcase, remove malloca, strnlen.
81376         * tests/test-c-strcasestr.c (main): Enhance test.
81377         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81379 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81381         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81382         Use it in creating po/Makevars.
81384 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81386         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81387         Applications that requires it should initialize libgcrypt
81388         manually.
81390 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81392         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81394 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81396         Fix problem with getdate on mingw32 reported by Simon Josefsson
81397         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81398         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81399         tzname", when deciding whether to declare tzname.
81400         * lib/strftime.c (tzname): Likewise.
81402 2008-01-15  Bruno Haible  <bruno@clisp.org>
81404         Work around a MacOS X 10.5 bug in frexpl().
81405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81406         * doc/functions/frexpl.texi: Document the bug.
81407         Reported by Elias Pipping <pipping@gentoo.org>.
81409 2008-01-14  Eric Blake  <ebb9@byu.net>
81411         Touch up previous patch.
81412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81413         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81415         Convert strcasestr module to use Two-Way algorithm.
81416         * modules/strcasestr-simple: New module, based on the old
81417         strcasestr, but with Two-Way rather than KMP.
81418         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81419         * lib/string.in.h (rpl_strcasestr): Declare.
81420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81421         performance.
81422         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81423         * modules/string (Makefile.am): Support strcasestr.
81424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81425         * modules/strcasestr-tests (Depends-on): Check for alarm.
81426         * tests/test-strcasestr.c: Augment test.
81427         * lib/str-two-way.h: Clean up stray macro.
81428         * NEWS: Document new module.
81429         * MODULES.html.sh (string handling): Likewise.
81430         * doc/functions/strcasestr.texi: New file.
81431         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81432         here, since it is not a POSIX function.
81434 2008-01-14  Colin Watson  <cjwatson@debian.org>
81435             Bruno Haible  <bruno@clisp.org>
81437         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81438         works fine; if not, set REPLACE_STRSIGNAL.
81439         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81441         REPLACE_STRSIGNAL.
81442         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81443         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81444         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81446 2008-01-14  Bruno Haible  <bruno@clisp.org>
81448         * modules/strsignal (Include): Change to <string.h>.
81450 2008-01-14  Colin Watson  <cjwatson@debian.org>
81452         * modules/argp (Notice): Add a notice recommending to change
81453         XGETTEXT_OPTIONS.
81454         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81456 2008-01-13  Colin Watson  <cjwatson@debian.org>
81458         * modules/strsignal-tests: New file.
81459         * tests/test-strsignal.c: New file.
81461         * lib/strsignal.c: New file, from glibc with modifications.
81462         * lib/siglist.h: New file, from glibc with modifications.
81463         * lib/string.in.h (strsignal): New declaration.
81464         * m4/strsignal.m4: New file.
81465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81466         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81467         * modules/strsignal: New file.
81468         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81469         HAVE_DECL_STRSIGNAL.
81471 2008-01-13  Bruno Haible  <bruno@clisp.org>
81473         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81474         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81475         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81478 2008-01-13  Bruno Haible  <bruno@clisp.org>
81480         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81481         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81482         * lib/argp.h (__attribute__): Likewise.
81483         * lib/c-stack.c (__attribute__): Likewise.
81484         * lib/error.h (__attribute__): Likewise.
81485         * lib/fts.c (__attribute__): Likewise.
81486         * lib/openat.h (__attribute__): Likewise.
81487         * lib/stdio.in.h (__attribute__): Likewise.
81488         * lib/string.in.h (__attribute__): Likewise.
81489         * lib/utimens.c (__attribute__): Likewise.
81490         * lib/vasnprintf.h (__attribute__): Likewise.
81491         * lib/xalloc.h (__attribute__): Likewise.
81492         * lib/xprintf.h (__attribute__): Likewise.
81493         * lib/xstrtol.h (__attribute__): Likewise.
81494         * lib/xvasprintf.h (__attribute__): Likewise.
81496 2008-01-12  Bruno Haible  <bruno@clisp.org>
81498         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81499         * doc/glibc-headers/a.out.texi: New file.
81500         * doc/glibc-headers/aliases.texi: New file.
81501         * doc/glibc-headers/alloca.texi: New file.
81502         * doc/glibc-headers/ar.texi: New file.
81503         * doc/glibc-headers/argp.texi: New file.
81504         * doc/glibc-headers/argz.texi: New file.
81505         * doc/glibc-headers/byteswap.texi: New file.
81506         * doc/glibc-headers/crypt.texi: New file.
81507         * doc/glibc-headers/endian.texi: New file.
81508         * doc/glibc-headers/envz.texi: New file.
81509         * doc/glibc-headers/err.texi: New file.
81510         * doc/glibc-headers/error.texi: New file.
81511         * doc/glibc-headers/execinfo.texi: New file.
81512         * doc/glibc-headers/fpu_control.texi: New file.
81513         * doc/glibc-headers/fstab.texi: New file.
81514         * doc/glibc-headers/fts.texi: New file.
81515         * doc/glibc-headers/getopt.texi: New file.
81516         * doc/glibc-headers/ieee754.texi: New file.
81517         * doc/glibc-headers/ifaddrs.texi: New file.
81518         * doc/glibc-headers/libintl.texi: New file.
81519         * doc/glibc-headers/mcheck.texi: New file.
81520         * doc/glibc-headers/mntent.texi: New file.
81521         * doc/glibc-headers/obstack.texi: New file.
81522         * doc/glibc-headers/paths.texi: New file.
81523         * doc/glibc-headers/printf.texi: New file.
81524         * doc/glibc-headers/pty.texi: New file.
81525         * doc/glibc-headers/resolv.texi: New file.
81526         * doc/glibc-headers/shadow.texi: New file.
81527         * doc/glibc-headers/sysexits.texi: New file.
81528         * doc/glibc-headers/ttyent.texi: New file.
81530 2008-01-12  Jim Meyering  <meyering@redhat.com>
81532         announce-gen: emit Gnulib's git-based version string.
81533         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81534         New option --gnulib-version=V, where V is expected to be
81535         the output of running git describe in the gnulib directory.
81536         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81537         not useful, and plan to stop publishing an xdelta file with each
81538         coreutils release.
81540         * build-aux/announce-gen: Also check for lzma-compressed files.
81542 2008-01-11  Bruno Haible  <bruno@clisp.org>
81544         * tests/test-memmem.c (main): Increase maximum allowed time.
81545         * tests/test-strstr.c (main): Likewise.
81547 2008-01-11  Bruno Haible  <bruno@clisp.org>
81549         * doc/functions/memmem.texi: Add more precisions about platforms.
81550         * doc/functions/strstr.texi: Likewise.
81552 2008-01-10  Eric Blake  <ebb9@byu.net>
81554         * m4/strstr.m4: Delete cruft from copy-n-paste.
81555         Reported by Bruno Haible.
81557 2008-01-10  Bruno Haible  <bruno@clisp.org>
81559         Make c-strstr rely on strstr.
81560         * lib/c-strstr.c: Don't include str-kmp.h.
81561         (c_strstr): Define in terms of strstr.
81562         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81563         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81565 2008-01-10  Bruno Haible  <bruno@clisp.org>
81567         * doc/gnulib.texi (String Functions in C Locale): New section.
81568         * doc/c-ctype.texi: New file.
81569         * doc/c-strcase.texi: New file.
81570         * doc/c-strcaseeq.texi: New file.
81571         * doc/c-strcasestr.texi: New file.
81572         * doc/c-strstr.texi: New file.
81573         * doc/c-strtod.texi: New file.
81574         * doc/c-strtold.texi: New file.
81576 2008-01-10  Eric Blake  <ebb9@byu.net>
81578         * lib/relocatable.h: Fix a comment.
81580 2008-01-10  Eric Blake  <ebb9@byu.net>
81582         Share two-way algorithm.
81583         * lib/str-two-way.h: New file, merged from...
81584         * lib/memmem.c: ...here...
81585         * lib/strstr.c: ...and here.
81586         * modules/memmem (Files): Use it.
81587         * modules/strstr (Files): Likewise.
81589         Avoid quadratic strstr implementations.
81590         * lib/strstr.c: New file.
81591         * m4/strstr.m4: Likewise.
81592         * modules/strstr: Likewise.
81593         * modules/strstr-tests: Likewise.
81594         * tests/test-strstr.c: Likewise.
81595         * lib/string.in.h (rpl_strstr): Declare.
81596         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81598         * modules/string (Makefile.am): Likewise.
81599         * MODULES.html.sh (string handling): Mention new module.
81600         * doc/functions/strstr.texi (strstr): Document the bug.
81602 2008-01-10  Bruno Haible  <bruno@clisp.org>
81604         * lib/relocatable.h (relocate): State whether result is freshly
81605         allocated or not.
81606         * lib/relocatable.c (relocate): Return a freshly allocated string
81607         instead of a pointer to a privately held string.
81608         Reported by Sylvain Beucler <beuc@gnu.org>.
81610 2008-01-10  Colin Watson  <cjwatson@debian.org>
81612         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81613         s/S_ISNLK/S_ISLNK/.
81615 2008-01-09  Bruno Haible  <bruno@clisp.org>
81617         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81618         and other files.
81619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81620         if it's only a guess.
81621         * modules/memmem: Simplify by depending on memmem-simple.
81623 2008-01-09  Bruno Haible  <bruno@clisp.org>
81625         Work around OpenBSD 4.0 tdelete() bug.
81626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81627         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81628         macros and don't redefine the enum values.
81629         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81630         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81631         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81633 2008-01-09  Bruno Haible  <bruno@clisp.org>
81635         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81636         (main): Don't perform the tests if setlocale did not install a UTF-8
81637         locale. Needed on OpenBSD 4.0.
81638         * modules/wcwidth-tests (Depends-on): Add localcharset.
81640 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81642         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81643         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81644         * NEWS: announce this.
81645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81647 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81648         and Eric Blake  <ebb9@byu.net>
81650         Add memmem-simple module.
81651         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81652         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81653         * modules/memmem-simple: New file.
81654         * modules/memmem (Description): Tweak.
81655         * MODULES.html.sh (string handling): Mention new module.
81656         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81657         addressed by memmem-simple.
81658         * NEWS: Document the difference.
81660 2008-01-09  Eric Blake  <ebb9@byu.net>
81662         Give gcc some memmem optimization hints.
81663         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81664         (strcasestr): Declare as pure.
81665         * modules/memmem (Maintainer): Claim my implementation.
81667 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81669         Support AIX 6.1 and higher.
81670         * build-aux/config.libpath: Likewise.
81671         * build-aux/config.rpath: Likewise.
81673 2008-01-08  Jim Meyering  <meyering@redhat.com>
81674             Bruno Haible  <bruno@clisp.org>
81676         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81677         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81678         Reported by Peter Fales in
81679         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81681 2008-01-08  Bruno Haible  <bruno@clisp.org>
81683         * modules/unictype/category-of (Depends-on): Add
81684         unictype/category-none.
81685         * modules/unictype/category-and-tests (Depends-on): Add
81686         unictype/category-{L,N,Lu,Nd}.
81687         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81688         * modules/unictype/category-or-tests (Depends-on): Add
81689         unictype/category-{L,N}.
81690         * modules/unictype/category-name-tests (Depends-on): Add
81691         unictype/category-{Z,Nl}.
81692         Reported by Simon Josefsson.
81694 2008-01-08  Bruno Haible  <bruno@clisp.org>
81696         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81697         convention better.
81698         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81699         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81700         Reported by Peter Miller <millerp@canb.auug.org.au>.
81702 2008-01-08  Eric Blake  <ebb9@byu.net>
81704         Rewrite memmem to guarantee linear complexity without malloc.
81705         * lib/memmem.c (memmem): Use Two-Way rather than
81706         Knuth-Morris-Pratt, to allow O(1) space usage.
81707         (critical_factorization, two_way_short_needle)
81708         (two_way_long_needle): New functions.
81709         (knuth_morris_pratt): Delete.
81710         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81711         Add stdint.
81712         * tests/test-memmem.c (main): Add tests for periodic needle and
81713         sublinear performance.
81714         * doc/functions/memmem.texi (memmem): Document other deficiencies
81715         in cygwin and older glibc.
81717 2008-01-08  Bruno Haible  <bruno@clisp.org>
81719         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81720         augmentation.
81722 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81724         Add a configure time option: --disable-acl.
81725         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81726         AC_ARG_ENABLE(acl).
81728 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81730         * tests/test-localename.c: Don't include obsolete "setenv.h".
81732         * modules/localename-tests (Depends-on): Need unsetenv.
81734 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81736         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81738 2008-01-06  Colin Watson  <cjwatson@debian.org>
81740         * users.txt: Add man-db.
81742 2008-01-07  Bruno Haible  <bruno@clisp.org>
81744         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81745         previous section name.
81747 2008-01-07  Bruno Haible  <bruno@clisp.org>
81749         * lib/progname.c (set_program_name): Don't strip off a leading
81750         "lt-" prefix outside a .libs directory.
81751         Suggested by Paul Eggert.
81753 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81754             Bruno Haible  <bruno@clisp.org>
81756         Improve memory cleanup in 'relocatable' module.
81757         * lib/relocatable.h (compute_curr_prefix): Change return type to
81758         'char *'.
81759         * lib/relocatable.c (compute_curr_prefix): Change return type to
81760         'char *'. Free curr_installdir after use.
81761         (relocate): Free curr_prefix_better after use.
81762         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81764 2008-01-01  Bruno Haible  <bruno@clisp.org>
81766         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81767         failure on older glibc systems.
81768         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81770 2008-01-05  Eric Blake  <ebb9@byu.net>
81772         Avoid quadratic system memmem.
81773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81774         Reported by Ralf Wildenhues.
81776         Fix memmem test for mingw.
81777         * modules/memmem-tests (configure.ac): Check for alarm.
81778         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81779         it.
81780         * doc/functions/memmem.texi: New file.
81781         * doc/gnulib.texi (Function Substitutes): Add memmem.
81782         Reported by Bruno Haible.
81784 2008-01-04  Bruno Haible  <bruno@clisp.org>
81786         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81787         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81788         gl_HEADER_STRING_H_DEFAULTS.
81790 2008-01-04  Eric Blake  <ebb9@byu.net>
81792         Shorten duration of memmem test.
81793         * tests/test-memmem.c (main): Use alarm to declare failure if test
81794         is taking too long.
81795         Reported by Ralf Wildenhues.
81797 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81799         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81800         string, needed by strerror.
81802 2008-01-03  Colin Watson  <cjwatson@debian.org>
81803             Bruno Haible  <bruno@clisp.org>
81805         * doc/gnulib-tool.texi (Localization): New section.
81807 2008-01-02  Bruno Haible  <bruno@clisp.org>
81809         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81810         variables to 'unsigned char *' type.
81811         Reported by Paul Eggert.
81813 2008-01-02  Jim Meyering  <jim@meyering.net>
81815         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81817 2007-12-31  Jim Meyering  <jim@meyering.net>
81819         Avoid use of private FTS type name.
81820         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81822 2007-12-30  Karl Berry  <karl@gnu.org>
81824         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81825         work around defect in Texinfo and/or the standalone Info browser.
81827 2007-12-30  Bruno Haible  <bruno@clisp.org>
81829         Unify 5 copies of the KMP code.
81830         * lib/str-kmp.h: New file.
81831         * lib/c-strcasestr.c: Include str-kmp.h.
81832         (knuth_morris_pratt): Remove function.
81833         (c_strcasestr): Update.
81834         * lib/c-strstr.c: Include str-kmp.h.
81835         (knuth_morris_pratt): Remove function.
81836         (c_strcasestr): Update.
81837         * lib/mbscasestr.c: Include str-kmp.h.
81838         (knuth_morris_pratt_unibyte): Remove function.
81839         * lib/mbsstr.c: Include str-kmp.h.
81840         (knuth_morris_pratt_unibyte): Remove function.
81841         * lib/strcasestr.c: Include str-kmp.h.
81842         (knuth_morris_pratt): Remove function.
81843         (strcasestr): Update.
81844         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81845         * modules/c-strstr (Files): Likewise.
81846         * modules/mbscasestr (Files): Likewise.
81847         * modules/mbsstr (Files): Likewise.
81848         * modules/strcasestr (Files): Likewise.
81849         Suggested by Paul Eggert.
81851 2007-12-30  Bruno Haible  <bruno@clisp.org>
81853         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81854         defined.
81856 2007-12-30  Bruno Haible  <bruno@clisp.org>
81858         * lib/xmalloca.h: Include xalloc.h.
81859         (xnmalloca): New macro.
81861 2007-12-30  Bruno Haible  <bruno@clisp.org>
81863         * lib/malloca.h (nmalloca): New macro.
81864         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81865         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81866         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81867         knuth_morris_pratt_multibyte): Likewise.
81868         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81869         knuth_morris_pratt_multibyte): Likewise.
81870         * lib/memmem.c (knuth_morris_pratt): Likewise.
81871         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81873 2007-12-25  Bruno Haible  <bruno@clisp.org>
81875         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81876         * lib/glob.c: Don't include openat.h.
81877         (link_exists2_p): Add back the code that deals with the
81878         !GLOB_ALTDIRFUNC case.
81879         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81880         let it do the filename concatenation.
81881         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81882         * modules/glob (Depends-on): Remove openat.
81884 2007-12-31  Bruno Haible  <bruno@clisp.org>
81886         * modules/dirfd (License): Change to LGPLv2+.
81887         Approved by Jim Meyering.
81889 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81891         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81892         when multiplying M by sizeof (size_t).
81894 2007-12-10  Martin Lambers  <marlam@marlam.de>
81896         Override getpagesize on mingw.
81897         * lib/getpagesize.c: New file.
81898         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81899         * modules/getpagesize (Files): Add lib/getpagesize.c.
81900         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81902         REPLACE_GETPAGESIZE.
81903         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81905 2007-12-25  Bruno Haible  <bruno@clisp.org>
81907         * modules/localcharset (Notice): New field.
81908         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81909         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81911 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81912             Bruno Haible  <bruno@clisp.org>
81914         Avoid using the syntax symbol() in formatted documentation.
81915         * MODULES.html.sh (func_module): When replacing symbol() with a
81916         hyperlink, remove the parentheses. Show an error if some remain.
81917         Recognize and render the '...' syntax.
81918         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81919         Rework. Add paragraph about GCC's inlining.
81920         * doc/alloca.texi: Likewise.
81921         * doc/error.texi: Remove parentheses from symbol reference.
81922         * doc/gnulib-intro.texi: Likewise.
81923         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81924         * modules/fnmatch (Description): Reword to say "the ... function".
81925         * modules/full-read (Description): Likewise.
81926         * modules/full-write (Description): Likewise.
81927         * modules/safe-read (Description): Likewise.
81928         * modules/safe-write (Description): Likewise.
81929         * modules/strchrnul (Description): Likewise.
81930         * modules/trim (Description): Likewise.
81931         * modules/error (Description): Remove parentheses from symbol
81932         references.
81933         * modules/verror (Description): Likewise.
81934         Reported by Karl Berry.
81936 2007-12-25  Bruno Haible  <bruno@clisp.org>
81938         Fixup after 2007-10-16 commit.
81939         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81941 2007-12-24  Bruno Haible  <bruno@clisp.org>
81943         Make --enable-relocatable work with DESTDIR.
81944         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81945         to compute installdir from destprog.
81946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81947         also set the RELOC_DESTDIR variable.
81948         Reported by Левашев Иван <octagram@bluebottle.com>.
81950 2007-12-24  Bruno Haible  <bruno@clisp.org>
81952         Fix link error due to xalloc_die().
81953         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81954         of xreadlink.
81955         * lib/relocwrapper.c: Update comments.
81956         * build-aux/install-reloc: Remove xreadlink.c from file list.
81957         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81958         xreadlink.c.
81959         Reported by Левашев Иван <octagram@bluebottle.com>.
81961 2007-12-24  Bruno Haible  <bruno@clisp.org>
81963         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81964         * lib/setenv.h: Remove file.
81965         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81966         lib/setenv.h.
81967         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81968         (Depends-on): Add stdlib.
81969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81970         gl_FUNC_UNSETENV.
81971         (Include): Replace setenv.h with <stdlib.h>.
81972         * modules/unsetenv: New file.
81973         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81974         * lib/unsetenv.c: Include <stdlib.h> first.
81975         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81976         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81977         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81978         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81979         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81980         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81982         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81983         * doc/functions/unsetenv.texi: Update.
81984         * modules/xsetenv (Depends-on): Add unsetenv.
81985         * modules/getdate (Depends-on): Likewise.
81986         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81987         * lib/xsetenv.c: Don't include setenv.h.
81988         * lib/getdate.y: Likewise.
81989         * lib/relocwrapper.c: Likewise.
81990         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81991         (Depends-on): Add stdlib.
81992         * NEWS: Mention the changes.
81993         Reported by Левашев Иван <octagram@bluebottle.com>.
81995 2007-12-23  Bruno Haible  <bruno@clisp.org>
81997         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81998         indentation.
82000 2007-12-23  Bruno Haible  <bruno@clisp.org>
82002         * lib/c-strcasestr.c: Add more comments.
82003         * lib/c-strstr.c: Likewise.
82004         * lib/mbscasestr.c: Likewise.
82005         * lib/mbsstr.c: Likewise.
82006         * lib/strcasestr.c: Likewise.
82007         * lib/memmem.c: Likewise.
82009 2007-12-23  Bruno Haible  <bruno@clisp.org>
82011         * tests/test-memmem.c: Include <string.h> first.
82013 2007-12-22  Bruno Haible  <bruno@clisp.org>
82015         * gnulib-tool (func_create_testdir): Change $auxdir while generating
82016         the contents of $testsbase.
82017         Reported by Ralf Wildenhues.
82019 2007-12-22  Bruno Haible  <bruno@clisp.org>
82021         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
82022         two variables local_ldadd_before, local_ldadd_last.
82024 2007-12-20  Eric Blake  <ebb9@byu.net>
82026         Work around circular library issue when cross-compiling.
82027         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
82028         that progname.o does not need to pull in rpl_memcmp.
82030 2007-12-19  Eric Blake  <ebb9@byu.net>
82032         Fix memmem to avoid O(n^2) worst-case complexity.
82033         * lib/memmem.c (knuth_morris_pratt): New function.
82034         (memmem): Use it if first few naive iterations fail.
82035         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
82036         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
82037         * modules/memchr (License): Likewise.
82038         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
82039         malloca.
82040         * tests/test-memmem.c: Rewrite, borrowing ideas from
82041         test-mbsstr1.c; the old version wouldn't even compile!
82042         * modules/memmem-tests: New file.
82043         * lib/string.in.h (rpl_memmem): Add declaration.
82044         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
82045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
82046         REPLACE_MEMMEM.
82048 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
82050         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
82051         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
82052         before any system include files, and undef after them all.  This
82053         should fix a problem on VMS reported by John E. Malmberg in
82054         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
82056 2007-12-17  Eric Blake  <ebb9@byu.net>
82058         Revert addition of verify, for BSD/OS.
82059         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
82060         can't handle large files, for the sake of obsolete platforms.
82061         * modules/fseeko (Depends-on): Remove verify.
82062         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
82063         * doc/functions/ftello.texi (ftello): Likewise.
82064         * doc/functions/fgetpos.texi (fgetpos): Likewise.
82065         Reported by Larry Jones.
82067 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
82069         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
82070         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
82072 2007-12-17  Jim Meyering  <meyering@redhat.com>
82074         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
82075         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
82076         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
82077         * modules/getcwd (Depends-on): Add openat.
82078         Reported by Petr Salinger.
82080 2007-12-17  Bruno Haible  <bruno@clisp.org>
82082         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
82083         avoid a segmentation fault of the configure test on x86_64 systems.
82085 2007-12-15  Jim Meyering  <meyering@redhat.com>
82087         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
82089 2007-12-13  Eric Blake  <ebb9@byu.net>
82091         Another fseek test.
82092         * tests/test-fseek.c (main): Also test ungetc handling.
82093         * tests/test-fseeko.c (main): Likewise.
82094         * modules/fseeko (Depends-on): Add verify.
82095         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
82096         large.
82097         Reported by Larry Jones.
82099         Fix fseeko on mingw.
82100         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
82101         seek.
82103         Beef up fseek tests.
82104         * tests/test-fseek.c (main): Also test eof handling.
82105         * tests/test-fseeko.c (main): Likewise.
82106         Reported by Larry Jones.
82108 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
82110         Fix fseeko on BSD-based platforms.
82111         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
82112         successful seek.
82114 2007-12-12  Eric Blake  <ebb9@byu.net>
82116         Allow circular dependency of separate libtests.a
82117         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
82118         when use_libtests.
82120 2007-12-11  Eric Blake  <ebb9@byu.net>
82122         Fix bug with -0.0L in previous patch.
82123         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82124         * tests/test-isnan.c (main): Also test on zeroes.
82125         * tests/test-isnanf.c (main): Likewise.
82126         * tests/test-isnanl.h (main): Likewise.
82128         Detect pseudo-denormals on x86 even when cross-compiling.
82129         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82130         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82131         invalid bit patterns that happen to satisfy ==.
82133         Avoid link failures with separate libtests.a.
82134         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82135         last, to satisfy circular dependencies.
82137 2007-12-11  Eric Blake  <ebb9@byu.net>
82138         and Bruno Haible  <bruno@clisp.org>
82140         Fix OpenBSD 4.0 <float.h> handling of long double.
82141         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82142         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82143         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82145 2007-12-11  Jim Meyering  <meyering@redhat.com>
82147         * users.txt: Add libvirt.
82149         Support versions of autoconf prior to 2.59c.
82150         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82151         if it is not already defined.
82153 2007-12-09  Bruno Haible  <bruno@clisp.org>
82155         Let 'gnulib-tool --import' collect sources needed for the tests in
82156         tests/ rather than in lib/.
82157         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82158         argument. If true, add rules to generate libtests.a, and put libtests.a
82159         into $(LDADD). Consider source files in subdirectories and set
82160         uses_subdirs.
82161         (func_emit_initmacro_start, func_emit_initmacro_end,
82162         func_emit_initmacro_done): Pass all arguments explicitly.
82163         (func_import): Determine two module lists main_modules,
82164         testsrelated_modules. Determine use_libtests. Determine two variables
82165         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82166         instead of just sed_transform_lib_file. Determine two variables
82167         main_files and testsrelated_files. Compute 'files' as the union of
82168         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82169         func_add_or_update. In the generated gnulib-comp.m4, collect the
82170         object files for tests/ in different variables than those for lib/.
82171         Substitute LIBTESTS_LIBDEPS.
82172         (func_create_testdir): Combine the uses_subdirs results from
82173         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82175 2007-12-09  Bruno Haible  <bruno@clisp.org>
82177         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82178         the build-aux directory.
82180 2007-12-09  Bruno Haible  <bruno@clisp.org>
82182         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82183         introduced on 2006-09-09.
82185 2007-12-07  Jim Meyering  <meyering@redhat.com>
82187         Let these macros work also with autoconf-2.59.
82188         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82189         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82190         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82192 2007-12-06  Jim Meyering  <meyering@redhat.com>
82194         Avoid a configure-time syntax error in gl_FUNC_ACL.
82195         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82196         function in each branch, before testing the cache variable.
82198 2007-12-04  Eric Blake  <ebb9@byu.net>
82200         Make scripts executable.
82201         * build-aux/config.guess: Add execute permissions.
82202         * build-aux/config.sub: Likewise.
82203         * build-aux/gendocs.sh: Likewise.
82205         Fix frexp on mingw.
82206         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82207         cross-compiling.
82208         * doc/functions/frexp.texi (frexp): Document the bug.
82210         Make cygwin fseeko check more reliable.
82211         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82212         version numbers, rather than unrelated feature check.
82213         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82214         * doc/functions/ftello.texi (ftello): Likewise.
82215         Reported by Bruno Haible.
82217         * m4/strerror.m4: Bump version number.
82219 2007-12-03  Bruno Haible  <bruno@clisp.org>
82221         * doc/functions/mprotect.texi: Mention the mingw problem.
82223 2007-12-03  Eric Blake  <ebb9@byu.net>
82225         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82226         REPLACE_STRERROR is initialized before this macro.
82228 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82230         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82231         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82232         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82233         put -lsec in even for programs other than 'ls'.  This fixes a problem
82234         for gettext reported by Bruno Haible in
82235         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82236         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82237         Add support for Solaris 10.  This isn't efficient, but should get the
82238         job done for now.
82240 2007-12-03  James Youngman  <jay@gnu.org>
82242         * doc/regexprops-generic.texi: change "an close-group" to "a
82243         close-group" and "illegal" to "not allowed".
82245 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82247         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82248         pr_byname.h. Needed for the rare case when the maintainer has done
82249         "make maintainer-clean" in the source directory and then attempts a
82250         build outside the source directory.
82251         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82252         scripts_byname.h.
82254 2007-12-02  Martin Lambers  <marlam@marlam.de>
82255             Bruno Haible  <bruno@clisp.org>
82257         * lib/getpagesize.h: Remove file.
82258         * lib/unistd.in.h: Include declaration of getpagesize here.
82259         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82260         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82261         HAVE_SYS_PARAM_H.
82262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82263         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82264         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82265         (Depends-on): Add unistd.
82266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82267         (Include): Use <unistd.h> instead of getpagesize.h.
82268         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82269         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82270         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82271         gl_GETPAGESIZE invocation, already handled by module dependency.
82272         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82274 2007-12-02  Bruno Haible  <bruno@clisp.org>
82276         * modules/strings-tests: New file.
82277         * tests/test-strings.c: New file.
82279         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82280         * lib/strings.in.h: New file.
82281         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82282         * m4/strings_h.m4: New file.
82283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82284         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82285         * modules/strings: New file.
82286         * modules/string (Makefile.am): Update.
82287         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82288         Reported by Karl Berry.
82290 2007-12-01  Eric Blake  <ebb9@byu.net>
82292         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82293         accommodate fix in cygwin 1.5.25.
82295 2007-12-01  Jim Meyering  <meyering@redhat.com>
82297         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82298         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82299         that would inhibit utf8-optimization of a regexp containing line-
82300         or buffer-anchors, e.g., `^', `$'.
82302 2007-11-30  Bruno Haible  <bruno@clisp.org>
82304         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82305         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82306         glthread_recursive_lock_init.
82307         * lib/lock.c (glthread_recursive_lock_init)
82308         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82309         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82311 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82313         New function qset_acl, like set_acl but with syscall semantics.
82314         * lib/acl.h (qset_acl): New decl.
82315         * lib/acl.c (qset_acl): New function.
82316         (set_acl): Use new function.  Use more-consistent diagnostics.
82318 2007-11-28  Jim Meyering  <meyering@redhat.com>
82320         * modules/physmem (License): Change from GPL to LGPLv2+.
82322 2007-11-26  Bruno Haible  <bruno@clisp.org>
82324         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82325         'long double' type has excess precision.
82326         Reported by Jim Meyering in
82327         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82329 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82331         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82332         Sync from <http://gnu.org/licenses>.
82333         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82334         with license text from same location.
82335         * doc/maintain.texi, doc/standards.texi:  Sync from
82336         <http://savannah.gnu.org/projects/gnustandards>.
82338 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82339         and Jim Meyering  <meyering@redhat.com>
82341         Adjust getdate' grammar to accept a slightly more regular language.
82342         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82343         Before, the former was rejected.
82344         * lib/getdate.y (digits_to_date_time): New function, factored
82345         out of ...
82346         (number): ...here.  Just call digits_to_date_time.
82347         (hybrid): New non-terminal to handle an <unsigned number,
82348         signed relative offset> sequence consistently.
82350 2007-11-18  Jim Meyering  <meyering@redhat.com>
82352         Pull my changes from coreutils:
82353         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82354         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82355         use of $gnulib_tool_option_extras, so that it's separated from the
82356         preceding argument.
82358         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82359         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82360         parent destination directories before copying a file into place.
82362 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82364         bootstrap: work also with 4-argument variant of AC_INIT
82365         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82367 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82369         Port test-getaddrinfo to Solaris.
82370         Problem reported by Bruno Haible in
82371         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82372         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82373         explanation of setting 'hints'.
82374         Don't reject an implementation merely because it returns EAI_SERVICE.
82375         (EAI_SERVICE): Define to 0 if not defined.
82377 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82379         The license of gnu-make and posix-shell is now "GPLed build tool".
82380         * modules/gnu-make (License): Likewise.
82381         * modules/posix-shell (License): Likewise.
82383         New module posix-shell, for determining a POSIX shell
82384         or perhaps something that is close enough to a POSIX shell.
82385         * m4/posix-shell.m4: New file.
82386         * modules/posix-shell: New file.
82388         * MODULES.html.sh: Mention new module.
82390         New module gnu-make, for determining whether we're using GNU Make.
82391         * m4/gnu-make.m4: New file.
82392         * modules/gnu-make: New file.
82393         * MODULES.html.sh: Mention new module.
82395 2007-11-14  Jim Meyering  <meyering@redhat.com>
82397         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82398         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82399         use this macro to create a function _definition_.
82400         Remove useless "#undef ARGMATCH_DIE".
82402 2007-11-14  Bruno Haible  <bruno@clisp.org>
82404         * lib/config.charset: Update for OpenBSD 4.1.
82405         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82407 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82409         Document 64-bit #if problems in stdint.texi.
82410         * doc/headers/stdint.texi (stdint.h): Mention problems with
82411         64-bit-#if, and how to work around them.
82413         Don't insist on 'long long int' support in the preprocessor.  It
82414         breaks too many things.  For example, PRIdMAX still uses a 'long
82415         long int' format with the latest Sun compiler, even though
82416         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82417         preprocessor problem.  This causes the latest coreutils to dump
82418         core on Solaris 10 sparc with the Sun C compiler.
82419         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82420         the troublesome expressions at configure-time, not at #if-time.
82421         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82422         preprocessor.
82423         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82424         compile-time C checks, done at 'configure'-time.
82425         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82426         * modules/inttypes (Makefile): Substitute the new symbols that
82427         gl_INTTYPES_H now generates.
82428         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82430 2007-11-12  Bruno Haible  <bruno@clisp.org>
82432         Tests for Unicode character classification functions.
82434         * modules/unictype/bidicategory-byname-tests: New file.
82435         * modules/unictype/bidicategory-name-tests: New file.
82436         * modules/unictype/bidicategory-of-tests: New file.
82437         * modules/unictype/bidicategory-test-tests: New file.
82438         * modules/unictype/block-list-tests: New file.
82439         * modules/unictype/block-of-tests: New file.
82440         * modules/unictype/block-test-tests: New file.
82441         * modules/unictype/category-C-tests: New file.
82442         * modules/unictype/category-Cc-tests: New file.
82443         * modules/unictype/category-Cf-tests: New file.
82444         * modules/unictype/category-Cn-tests: New file.
82445         * modules/unictype/category-Co-tests: New file.
82446         * modules/unictype/category-Cs-tests: New file.
82447         * modules/unictype/category-L-tests: New file.
82448         * modules/unictype/category-Ll-tests: New file.
82449         * modules/unictype/category-Lm-tests: New file.
82450         * modules/unictype/category-Lo-tests: New file.
82451         * modules/unictype/category-Lt-tests: New file.
82452         * modules/unictype/category-Lu-tests: New file.
82453         * modules/unictype/category-M-tests: New file.
82454         * modules/unictype/category-Mc-tests: New file.
82455         * modules/unictype/category-Me-tests: New file.
82456         * modules/unictype/category-Mn-tests: New file.
82457         * modules/unictype/category-N-tests: New file.
82458         * modules/unictype/category-Nd-tests: New file.
82459         * modules/unictype/category-Nl-tests: New file.
82460         * modules/unictype/category-No-tests: New file.
82461         * modules/unictype/category-P-tests: New file.
82462         * modules/unictype/category-Pc-tests: New file.
82463         * modules/unictype/category-Pd-tests: New file.
82464         * modules/unictype/category-Pe-tests: New file.
82465         * modules/unictype/category-Pf-tests: New file.
82466         * modules/unictype/category-Pi-tests: New file.
82467         * modules/unictype/category-Po-tests: New file.
82468         * modules/unictype/category-Ps-tests: New file.
82469         * modules/unictype/category-S-tests: New file.
82470         * modules/unictype/category-Sc-tests: New file.
82471         * modules/unictype/category-Sk-tests: New file.
82472         * modules/unictype/category-Sm-tests: New file.
82473         * modules/unictype/category-So-tests: New file.
82474         * modules/unictype/category-Z-tests: New file.
82475         * modules/unictype/category-Zl-tests: New file.
82476         * modules/unictype/category-Zp-tests: New file.
82477         * modules/unictype/category-Zs-tests: New file.
82478         * modules/unictype/category-and-not-tests: New file.
82479         * modules/unictype/category-and-tests: New file.
82480         * modules/unictype/category-byname-tests: New file.
82481         * modules/unictype/category-name-tests: New file.
82482         * modules/unictype/category-none-tests: New file.
82483         * modules/unictype/category-of-tests: New file.
82484         * modules/unictype/category-or-tests: New file.
82485         * modules/unictype/category-test-withtable-tests: New file.
82486         * modules/unictype/combining-class-tests: New file.
82487         * modules/unictype/ctype-alnum-tests: New file.
82488         * modules/unictype/ctype-alpha-tests: New file.
82489         * modules/unictype/ctype-blank-tests: New file.
82490         * modules/unictype/ctype-cntrl-tests: New file.
82491         * modules/unictype/ctype-digit-tests: New file.
82492         * modules/unictype/ctype-graph-tests: New file.
82493         * modules/unictype/ctype-lower-tests: New file.
82494         * modules/unictype/ctype-print-tests: New file.
82495         * modules/unictype/ctype-punct-tests: New file.
82496         * modules/unictype/ctype-space-tests: New file.
82497         * modules/unictype/ctype-upper-tests: New file.
82498         * modules/unictype/ctype-xdigit-tests: New file.
82499         * modules/unictype/decimal-digit-tests: New file.
82500         * modules/unictype/digit-tests: New file.
82501         * modules/unictype/mirror-tests: New file.
82502         * modules/unictype/numeric-tests: New file.
82503         * modules/unictype/property-alphabetic-tests: New file.
82504         * modules/unictype/property-ascii-hex-digit-tests: New file.
82505         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82506         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82507         * modules/unictype/property-bidi-block-separator-tests: New file.
82508         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82509         * modules/unictype/property-bidi-common-separator-tests: New file.
82510         * modules/unictype/property-bidi-control-tests: New file.
82511         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82512         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82513         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82514         * modules/unictype/property-bidi-european-digit-tests: New file.
82515         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82516         * modules/unictype/property-bidi-left-to-right-tests: New file.
82517         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82518         * modules/unictype/property-bidi-other-neutral-tests: New file.
82519         * modules/unictype/property-bidi-pdf-tests: New file.
82520         * modules/unictype/property-bidi-segment-separator-tests: New file.
82521         * modules/unictype/property-bidi-whitespace-tests: New file.
82522         * modules/unictype/property-byname-tests: New file.
82523         * modules/unictype/property-combining-tests: New file.
82524         * modules/unictype/property-composite-tests: New file.
82525         * modules/unictype/property-currency-symbol-tests: New file.
82526         * modules/unictype/property-dash-tests: New file.
82527         * modules/unictype/property-decimal-digit-tests: New file.
82528         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82529         * modules/unictype/property-deprecated-tests: New file.
82530         * modules/unictype/property-diacritic-tests: New file.
82531         * modules/unictype/property-extender-tests: New file.
82532         * modules/unictype/property-format-control-tests: New file.
82533         * modules/unictype/property-grapheme-base-tests: New file.
82534         * modules/unictype/property-grapheme-extend-tests: New file.
82535         * modules/unictype/property-grapheme-link-tests: New file.
82536         * modules/unictype/property-hex-digit-tests: New file.
82537         * modules/unictype/property-hyphen-tests: New file.
82538         * modules/unictype/property-id-continue-tests: New file.
82539         * modules/unictype/property-id-start-tests: New file.
82540         * modules/unictype/property-ideographic-tests: New file.
82541         * modules/unictype/property-ids-binary-operator-tests: New file.
82542         * modules/unictype/property-ids-trinary-operator-tests: New file.
82543         * modules/unictype/property-ignorable-control-tests: New file.
82544         * modules/unictype/property-iso-control-tests: New file.
82545         * modules/unictype/property-join-control-tests: New file.
82546         * modules/unictype/property-left-of-pair-tests: New file.
82547         * modules/unictype/property-line-separator-tests: New file.
82548         * modules/unictype/property-logical-order-exception-tests: New file.
82549         * modules/unictype/property-lowercase-tests: New file.
82550         * modules/unictype/property-math-tests: New file.
82551         * modules/unictype/property-non-break-tests: New file.
82552         * modules/unictype/property-not-a-character-tests: New file.
82553         * modules/unictype/property-numeric-tests: New file.
82554         * modules/unictype/property-other-alphabetic-tests: New file.
82555         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82556         * modules/unictype/property-other-grapheme-extend-tests: New file.
82557         * modules/unictype/property-other-id-continue-tests: New file.
82558         * modules/unictype/property-other-id-start-tests: New file.
82559         * modules/unictype/property-other-lowercase-tests: New file.
82560         * modules/unictype/property-other-math-tests: New file.
82561         * modules/unictype/property-other-uppercase-tests: New file.
82562         * modules/unictype/property-paired-punctuation-tests: New file.
82563         * modules/unictype/property-paragraph-separator-tests: New file.
82564         * modules/unictype/property-pattern-syntax-tests: New file.
82565         * modules/unictype/property-pattern-white-space-tests: New file.
82566         * modules/unictype/property-private-use-tests: New file.
82567         * modules/unictype/property-punctuation-tests: New file.
82568         * modules/unictype/property-quotation-mark-tests: New file.
82569         * modules/unictype/property-radical-tests: New file.
82570         * modules/unictype/property-sentence-terminal-tests: New file.
82571         * modules/unictype/property-soft-dotted-tests: New file.
82572         * modules/unictype/property-space-tests: New file.
82573         * modules/unictype/property-terminal-punctuation-tests: New file.
82574         * modules/unictype/property-test-tests: New file.
82575         * modules/unictype/property-titlecase-tests: New file.
82576         * modules/unictype/property-unassigned-code-value-tests: New file.
82577         * modules/unictype/property-unified-ideograph-tests: New file.
82578         * modules/unictype/property-uppercase-tests: New file.
82579         * modules/unictype/property-variation-selector-tests: New file.
82580         * modules/unictype/property-white-space-tests: New file.
82581         * modules/unictype/property-xid-continue-tests: New file.
82582         * modules/unictype/property-xid-start-tests: New file.
82583         * modules/unictype/property-zero-width-tests: New file.
82584         * modules/unictype/scripts-tests: New file.
82585         * modules/unictype/syntax-c-ident-tests: New file.
82586         * modules/unictype/syntax-c-whitespace-tests: New file.
82587         * modules/unictype/syntax-java-ident-tests: New file.
82588         * modules/unictype/syntax-java-whitespace-tests: New file.
82589         * tests/unictype/test-bidi_byname.c: New file.
82590         * tests/unictype/test-bidi_name.c: New file.
82591         * tests/unictype/test-bidi_of.c: New file.
82592         * tests/unictype/test-bidi_test.c: New file.
82593         * tests/unictype/test-block_list.c: New file.
82594         * tests/unictype/test-block_of.c: New file.
82595         * tests/unictype/test-block_test.c: New file.
82596         * tests/unictype/test-categ_and.c: New file.
82597         * tests/unictype/test-categ_and_not.c: New file.
82598         * tests/unictype/test-categ_byname.c: New file.
82599         * tests/unictype/test-categ_name.c: New file.
82600         * tests/unictype/test-categ_none.c: New file.
82601         * tests/unictype/test-categ_of.c: New file.
82602         * tests/unictype/test-categ_or.c: New file.
82603         * tests/unictype/test-categ_test_withtable.c: New file.
82604         * tests/unictype/test-combining.c: New file.
82605         * tests/unictype/test-decdigit.c: New file.
82606         * tests/unictype/test-digit.c: New file.
82607         * tests/unictype/test-mirror.c: New file.
82608         * tests/unictype/test-numeric.c: New file.
82609         * tests/unictype/test-pr_byname.c: New file.
82610         * tests/unictype/test-pr_test.c: New file.
82611         * tests/unictype/test-predicate-part1.h: New file.
82612         * tests/unictype/test-predicate-part2.h: New file.
82613         * tests/unictype/test-scripts.c: New file.
82614         * tests/unictype/test-sy_c_ident.c: New file.
82615         * tests/unictype/test-sy_java_ident.c: New file.
82617         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82618         for Unicode 5.0.0.
82619         * tests/unictype/test-categ_Cc.c: Likewise.
82620         * tests/unictype/test-categ_Cf.c: Likewise.
82621         * tests/unictype/test-categ_Cn.c: Likewise.
82622         * tests/unictype/test-categ_Co.c: Likewise.
82623         * tests/unictype/test-categ_Cs.c: Likewise.
82624         * tests/unictype/test-categ_L.c: Likewise.
82625         * tests/unictype/test-categ_Ll.c: Likewise.
82626         * tests/unictype/test-categ_Lm.c: Likewise.
82627         * tests/unictype/test-categ_Lo.c: Likewise.
82628         * tests/unictype/test-categ_Lt.c: Likewise.
82629         * tests/unictype/test-categ_Lu.c: Likewise.
82630         * tests/unictype/test-categ_M.c: Likewise.
82631         * tests/unictype/test-categ_Mc.c: Likewise.
82632         * tests/unictype/test-categ_Me.c: Likewise.
82633         * tests/unictype/test-categ_Mn.c: Likewise.
82634         * tests/unictype/test-categ_N.c: Likewise.
82635         * tests/unictype/test-categ_Nd.c: Likewise.
82636         * tests/unictype/test-categ_Nl.c: Likewise.
82637         * tests/unictype/test-categ_No.c: Likewise.
82638         * tests/unictype/test-categ_P.c: Likewise.
82639         * tests/unictype/test-categ_Pc.c: Likewise.
82640         * tests/unictype/test-categ_Pd.c: Likewise.
82641         * tests/unictype/test-categ_Pe.c: Likewise.
82642         * tests/unictype/test-categ_Pf.c: Likewise.
82643         * tests/unictype/test-categ_Pi.c: Likewise.
82644         * tests/unictype/test-categ_Po.c: Likewise.
82645         * tests/unictype/test-categ_Ps.c: Likewise.
82646         * tests/unictype/test-categ_S.c: Likewise.
82647         * tests/unictype/test-categ_Sc.c: Likewise.
82648         * tests/unictype/test-categ_Sk.c: Likewise.
82649         * tests/unictype/test-categ_Sm.c: Likewise.
82650         * tests/unictype/test-categ_So.c: Likewise.
82651         * tests/unictype/test-categ_Z.c: Likewise.
82652         * tests/unictype/test-categ_Zl.c: Likewise.
82653         * tests/unictype/test-categ_Zp.c: Likewise.
82654         * tests/unictype/test-categ_Zs.c: Likewise.
82655         * tests/unictype/test-ctype_alnum.c: Likewise.
82656         * tests/unictype/test-ctype_alpha.c: Likewise.
82657         * tests/unictype/test-ctype_blank.c: Likewise.
82658         * tests/unictype/test-ctype_cntrl.c: Likewise.
82659         * tests/unictype/test-ctype_digit.c: Likewise.
82660         * tests/unictype/test-ctype_graph.c: Likewise.
82661         * tests/unictype/test-ctype_lower.c: Likewise.
82662         * tests/unictype/test-ctype_print.c: Likewise.
82663         * tests/unictype/test-ctype_punct.c: Likewise.
82664         * tests/unictype/test-ctype_space.c: Likewise.
82665         * tests/unictype/test-ctype_upper.c: Likewise.
82666         * tests/unictype/test-ctype_xdigit.c: Likewise.
82667         * tests/unictype/test-decdigit.h: Likewise.
82668         * tests/unictype/test-digit.h: Likewise.
82669         * tests/unictype/test-numeric.h: Likewise.
82670         * tests/unictype/test-pr_alphabetic.c: Likewise.
82671         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82672         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82673         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82674         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82675         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82676         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82677         * tests/unictype/test-pr_bidi_control.c: Likewise.
82678         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82679         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82680         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82681         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82682         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82683         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82684         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82685         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82686         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82687         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82688         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82689         * tests/unictype/test-pr_combining.c: Likewise.
82690         * tests/unictype/test-pr_composite.c: Likewise.
82691         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82692         * tests/unictype/test-pr_dash.c: Likewise.
82693         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82694         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82695         * tests/unictype/test-pr_deprecated.c: Likewise.
82696         * tests/unictype/test-pr_diacritic.c: Likewise.
82697         * tests/unictype/test-pr_extender.c: Likewise.
82698         * tests/unictype/test-pr_format_control.c: Likewise.
82699         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82700         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82701         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82702         * tests/unictype/test-pr_hex_digit.c: Likewise.
82703         * tests/unictype/test-pr_hyphen.c: Likewise.
82704         * tests/unictype/test-pr_id_continue.c: Likewise.
82705         * tests/unictype/test-pr_id_start.c: Likewise.
82706         * tests/unictype/test-pr_ideographic.c: Likewise.
82707         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82708         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82709         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82710         * tests/unictype/test-pr_iso_control.c: Likewise.
82711         * tests/unictype/test-pr_join_control.c: Likewise.
82712         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82713         * tests/unictype/test-pr_line_separator.c: Likewise.
82714         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82715         * tests/unictype/test-pr_lowercase.c: Likewise.
82716         * tests/unictype/test-pr_math.c: Likewise.
82717         * tests/unictype/test-pr_non_break.c: Likewise.
82718         * tests/unictype/test-pr_not_a_character.c: Likewise.
82719         * tests/unictype/test-pr_numeric.c: Likewise.
82720         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82721         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82722         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82723         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82724         * tests/unictype/test-pr_other_id_start.c: Likewise.
82725         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82726         * tests/unictype/test-pr_other_math.c: Likewise.
82727         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82728         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82729         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82730         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82731         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82732         * tests/unictype/test-pr_private_use.c: Likewise.
82733         * tests/unictype/test-pr_punctuation.c: Likewise.
82734         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82735         * tests/unictype/test-pr_radical.c: Likewise.
82736         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82737         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82738         * tests/unictype/test-pr_space.c: Likewise.
82739         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82740         * tests/unictype/test-pr_titlecase.c: Likewise.
82741         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82742         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82743         * tests/unictype/test-pr_uppercase.c: Likewise.
82744         * tests/unictype/test-pr_variation_selector.c: Likewise.
82745         * tests/unictype/test-pr_white_space.c: Likewise.
82746         * tests/unictype/test-pr_xid_continue.c: Likewise.
82747         * tests/unictype/test-pr_xid_start.c: Likewise.
82748         * tests/unictype/test-pr_zero_width.c: Likewise.
82749         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82750         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82752 2007-11-12  Bruno Haible  <bruno@clisp.org>
82754         Unicode character classification functions.
82755         * lib/unictype.h: New file.
82756         * modules/unictype/base: New file.
82757         * modules/unictype/category-L: New file.
82758         * modules/unictype/category-Lu: New file.
82759         * modules/unictype/category-Ll: New file.
82760         * modules/unictype/category-Lt: New file.
82761         * modules/unictype/category-Lm: New file.
82762         * modules/unictype/category-Lo: New file.
82763         * modules/unictype/category-M: New file.
82764         * modules/unictype/category-Mn: New file.
82765         * modules/unictype/category-Mc: New file.
82766         * modules/unictype/category-Me: New file.
82767         * modules/unictype/category-N: New file.
82768         * modules/unictype/category-Nd: New file.
82769         * modules/unictype/category-Nl: New file.
82770         * modules/unictype/category-No: New file.
82771         * modules/unictype/category-P: New file.
82772         * modules/unictype/category-Pc: New file.
82773         * modules/unictype/category-Pd: New file.
82774         * modules/unictype/category-Ps: New file.
82775         * modules/unictype/category-Pe: New file.
82776         * modules/unictype/category-Pi: New file.
82777         * modules/unictype/category-Pf: New file.
82778         * modules/unictype/category-Po: New file.
82779         * modules/unictype/category-S: New file.
82780         * modules/unictype/category-Sm: New file.
82781         * modules/unictype/category-Sc: New file.
82782         * modules/unictype/category-Sk: New file.
82783         * modules/unictype/category-So: New file.
82784         * modules/unictype/category-Z: New file.
82785         * modules/unictype/category-Zs: New file.
82786         * modules/unictype/category-Zl: New file.
82787         * modules/unictype/category-Zp: New file.
82788         * modules/unictype/category-C: New file.
82789         * modules/unictype/category-Cc: New file.
82790         * modules/unictype/category-Cf: New file.
82791         * modules/unictype/category-Cs: New file.
82792         * modules/unictype/category-Co: New file.
82793         * modules/unictype/category-Cn: New file.
82794         * modules/unictype/category-or: New file.
82795         * modules/unictype/category-of: New file.
82796         * modules/unictype/category-test: New file.
82797         * modules/unictype/category-test-withtable: New file.
82798         * modules/unictype/category-byname: New file.
82799         * modules/unictype/category-none: New file.
82800         * modules/unictype/category-and: New file.
82801         * modules/unictype/category-and-not: New file.
82802         * modules/unictype/category-name: New file.
82803         * modules/unictype/combining-class: New file.
82804         * modules/unictype/category-all: New file.
82805         * modules/unictype/bidicategory-all: New file.
82806         * modules/unictype/bidicategory-byname: New file.
82807         * modules/unictype/bidicategory-name: New file.
82808         * modules/unictype/bidicategory-of: New file.
82809         * modules/unictype/bidicategory-test: New file.
82810         * modules/unictype/decimal-digit: New file.
82811         * modules/unictype/digit: New file.
82812         * modules/unictype/numeric: New file.
82813         * modules/unictype/mirror: New file.
82814         * modules/unictype/property-white-space: New file.
82815         * modules/unictype/property-alphabetic: New file.
82816         * modules/unictype/property-other-alphabetic: New file.
82817         * modules/unictype/property-not-a-character: New file.
82818         * modules/unictype/property-default-ignorable-code-point: New file.
82819         * modules/unictype/property-other-default-ignorable-code-point: New
82820         file.
82821         * modules/unictype/property-deprecated: New file.
82822         * modules/unictype/property-logical-order-exception: New file.
82823         * modules/unictype/property-variation-selector: New file.
82824         * modules/unictype/property-private-use: New file.
82825         * modules/unictype/property-unassigned-code-value: New file.
82826         * modules/unictype/property-uppercase: New file.
82827         * modules/unictype/property-other-uppercase: New file.
82828         * modules/unictype/property-lowercase: New file.
82829         * modules/unictype/property-other-lowercase: New file.
82830         * modules/unictype/property-titlecase: New file.
82831         * modules/unictype/property-soft-dotted: New file.
82832         * modules/unictype/property-id-start: New file.
82833         * modules/unictype/property-other-id-start: New file.
82834         * modules/unictype/property-id-continue: New file.
82835         * modules/unictype/property-other-id-continue: New file.
82836         * modules/unictype/property-xid-start: New file.
82837         * modules/unictype/property-xid-continue: New file.
82838         * modules/unictype/property-pattern-white-space: New file.
82839         * modules/unictype/property-pattern-syntax: New file.
82840         * modules/unictype/property-join-control: New file.
82841         * modules/unictype/property-grapheme-base: New file.
82842         * modules/unictype/property-grapheme-extend: New file.
82843         * modules/unictype/property-other-grapheme-extend: New file.
82844         * modules/unictype/property-grapheme-link: New file.
82845         * modules/unictype/property-bidi-control: New file.
82846         * modules/unictype/property-bidi-left-to-right: New file.
82847         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82848         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82849         * modules/unictype/property-bidi-european-digit: New file.
82850         * modules/unictype/property-bidi-eur-num-separator: New file.
82851         * modules/unictype/property-bidi-eur-num-terminator: New file.
82852         * modules/unictype/property-bidi-arabic-digit: New file.
82853         * modules/unictype/property-bidi-common-separator: New file.
82854         * modules/unictype/property-bidi-block-separator: New file.
82855         * modules/unictype/property-bidi-segment-separator: New file.
82856         * modules/unictype/property-bidi-whitespace: New file.
82857         * modules/unictype/property-bidi-non-spacing-mark: New file.
82858         * modules/unictype/property-bidi-boundary-neutral: New file.
82859         * modules/unictype/property-bidi-pdf: New file.
82860         * modules/unictype/property-bidi-embedding-or-override: New file.
82861         * modules/unictype/property-bidi-other-neutral: New file.
82862         * modules/unictype/property-hex-digit: New file.
82863         * modules/unictype/property-ascii-hex-digit: New file.
82864         * modules/unictype/property-ideographic: New file.
82865         * modules/unictype/property-unified-ideograph: New file.
82866         * modules/unictype/property-radical: New file.
82867         * modules/unictype/property-ids-binary-operator: New file.
82868         * modules/unictype/property-ids-trinary-operator: New file.
82869         * modules/unictype/property-zero-width: New file.
82870         * modules/unictype/property-space: New file.
82871         * modules/unictype/property-non-break: New file.
82872         * modules/unictype/property-iso-control: New file.
82873         * modules/unictype/property-format-control: New file.
82874         * modules/unictype/property-dash: New file.
82875         * modules/unictype/property-hyphen: New file.
82876         * modules/unictype/property-punctuation: New file.
82877         * modules/unictype/property-line-separator: New file.
82878         * modules/unictype/property-paragraph-separator: New file.
82879         * modules/unictype/property-quotation-mark: New file.
82880         * modules/unictype/property-sentence-terminal: New file.
82881         * modules/unictype/property-terminal-punctuation: New file.
82882         * modules/unictype/property-currency-symbol: New file.
82883         * modules/unictype/property-math: New file.
82884         * modules/unictype/property-other-math: New file.
82885         * modules/unictype/property-paired-punctuation: New file.
82886         * modules/unictype/property-left-of-pair: New file.
82887         * modules/unictype/property-combining: New file.
82888         * modules/unictype/property-composite: New file.
82889         * modules/unictype/property-decimal-digit: New file.
82890         * modules/unictype/property-numeric: New file.
82891         * modules/unictype/property-diacritic: New file.
82892         * modules/unictype/property-extender: New file.
82893         * modules/unictype/property-ignorable-control: New file.
82894         * modules/unictype/property-test: New file.
82895         * modules/unictype/property-byname: New file.
82896         * modules/unictype/property-all: New file.
82897         * modules/unictype/scripts: New file.
82898         * modules/unictype/scripts-all: New file.
82899         * modules/unictype/block-of: New file.
82900         * modules/unictype/block-test: New file.
82901         * modules/unictype/block-list: New file.
82902         * modules/unictype/block-all: New file.
82903         * modules/unictype/syntax-c-whitespace: New file.
82904         * modules/unictype/syntax-java-whitespace: New file.
82905         * modules/unictype/syntax-c-ident: New file.
82906         * modules/unictype/syntax-java-ident: New file.
82907         * modules/unictype/ctype-alnum: New file.
82908         * modules/unictype/ctype-alpha: New file.
82909         * modules/unictype/ctype-cntrl: New file.
82910         * modules/unictype/ctype-digit: New file.
82911         * modules/unictype/ctype-graph: New file.
82912         * modules/unictype/ctype-lower: New file.
82913         * modules/unictype/ctype-print: New file.
82914         * modules/unictype/ctype-punct: New file.
82915         * modules/unictype/ctype-space: New file.
82916         * modules/unictype/ctype-upper: New file.
82917         * modules/unictype/ctype-xdigit: New file.
82918         * modules/unictype/ctype-blank: New file.
82919         * lib/unictype/bidi_byname.c: New file.
82920         * lib/unictype/bidi_name.c: New file.
82921         * lib/unictype/bidi_of.c: New file.
82922         * lib/unictype/bidi_test.c: New file.
82923         * lib/unictype/bitmap.h: New file.
82924         * lib/unictype/block_test.c: New file.
82925         * lib/unictype/blocks.c: New file.
82926         * lib/unictype/categ_C.c: New file.
82927         * lib/unictype/categ_Cc.c: New file.
82928         * lib/unictype/categ_Cf.c: New file.
82929         * lib/unictype/categ_Cn.c: New file.
82930         * lib/unictype/categ_Co.c: New file.
82931         * lib/unictype/categ_Cs.c: New file.
82932         * lib/unictype/categ_L.c: New file.
82933         * lib/unictype/categ_Ll.c: New file.
82934         * lib/unictype/categ_Lm.c: New file.
82935         * lib/unictype/categ_Lo.c: New file.
82936         * lib/unictype/categ_Lt.c: New file.
82937         * lib/unictype/categ_Lu.c: New file.
82938         * lib/unictype/categ_M.c: New file.
82939         * lib/unictype/categ_Mc.c: New file.
82940         * lib/unictype/categ_Me.c: New file.
82941         * lib/unictype/categ_Mn.c: New file.
82942         * lib/unictype/categ_N.c: New file.
82943         * lib/unictype/categ_Nd.c: New file.
82944         * lib/unictype/categ_Nl.c: New file.
82945         * lib/unictype/categ_No.c: New file.
82946         * lib/unictype/categ_P.c: New file.
82947         * lib/unictype/categ_Pc.c: New file.
82948         * lib/unictype/categ_Pd.c: New file.
82949         * lib/unictype/categ_Pe.c: New file.
82950         * lib/unictype/categ_Pf.c: New file.
82951         * lib/unictype/categ_Pi.c: New file.
82952         * lib/unictype/categ_Po.c: New file.
82953         * lib/unictype/categ_Ps.c: New file.
82954         * lib/unictype/categ_S.c: New file.
82955         * lib/unictype/categ_Sc.c: New file.
82956         * lib/unictype/categ_Sk.c: New file.
82957         * lib/unictype/categ_Sm.c: New file.
82958         * lib/unictype/categ_So.c: New file.
82959         * lib/unictype/categ_Z.c: New file.
82960         * lib/unictype/categ_Zl.c: New file.
82961         * lib/unictype/categ_Zp.c: New file.
82962         * lib/unictype/categ_Zs.c: New file.
82963         * lib/unictype/categ_and.c: New file.
82964         * lib/unictype/categ_and_not.c: New file.
82965         * lib/unictype/categ_byname.c: New file.
82966         * lib/unictype/categ_name.c: New file.
82967         * lib/unictype/categ_none.c: New file.
82968         * lib/unictype/categ_of.c: New file.
82969         * lib/unictype/categ_or.c: New file.
82970         * lib/unictype/categ_test.c: New file.
82971         * lib/unictype/combining.c: New file.
82972         * lib/unictype/ctype_alnum.c: New file.
82973         * lib/unictype/ctype_alpha.c: New file.
82974         * lib/unictype/ctype_blank.c: New file.
82975         * lib/unictype/ctype_cntrl.c: New file.
82976         * lib/unictype/ctype_digit.c: New file.
82977         * lib/unictype/ctype_graph.c: New file.
82978         * lib/unictype/ctype_lower.c: New file.
82979         * lib/unictype/ctype_print.c: New file.
82980         * lib/unictype/ctype_punct.c: New file.
82981         * lib/unictype/ctype_space.c: New file.
82982         * lib/unictype/ctype_upper.c: New file.
82983         * lib/unictype/ctype_xdigit.c: New file.
82984         * lib/unictype/decdigit.c: New file.
82985         * lib/unictype/digit.c: New file.
82986         * lib/unictype/identsyntaxmap.h: New file.
82987         * lib/unictype/mirror.c: New file.
82988         * lib/unictype/numeric.c: New file.
82989         * lib/unictype/pr_alphabetic.c: New file.
82990         * lib/unictype/pr_ascii_hex_digit.c: New file.
82991         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82992         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82993         * lib/unictype/pr_bidi_block_separator.c: New file.
82994         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82995         * lib/unictype/pr_bidi_common_separator.c: New file.
82996         * lib/unictype/pr_bidi_control.c: New file.
82997         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82998         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82999         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
83000         * lib/unictype/pr_bidi_european_digit.c: New file.
83001         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
83002         * lib/unictype/pr_bidi_left_to_right.c: New file.
83003         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
83004         * lib/unictype/pr_bidi_other_neutral.c: New file.
83005         * lib/unictype/pr_bidi_pdf.c: New file.
83006         * lib/unictype/pr_bidi_segment_separator.c: New file.
83007         * lib/unictype/pr_bidi_whitespace.c: New file.
83008         * lib/unictype/pr_byname.c: New file.
83009         * lib/unictype/pr_byname.gperf: New file.
83010         * lib/unictype/pr_combining.c: New file.
83011         * lib/unictype/pr_composite.c: New file.
83012         * lib/unictype/pr_currency_symbol.c: New file.
83013         * lib/unictype/pr_dash.c: New file.
83014         * lib/unictype/pr_decimal_digit.c: New file.
83015         * lib/unictype/pr_default_ignorable_code_point.c: New file.
83016         * lib/unictype/pr_deprecated.c: New file.
83017         * lib/unictype/pr_diacritic.c: New file.
83018         * lib/unictype/pr_extender.c: New file.
83019         * lib/unictype/pr_format_control.c: New file.
83020         * lib/unictype/pr_grapheme_base.c: New file.
83021         * lib/unictype/pr_grapheme_extend.c: New file.
83022         * lib/unictype/pr_grapheme_link.c: New file.
83023         * lib/unictype/pr_hex_digit.c: New file.
83024         * lib/unictype/pr_hyphen.c: New file.
83025         * lib/unictype/pr_id_continue.c: New file.
83026         * lib/unictype/pr_id_start.c: New file.
83027         * lib/unictype/pr_ideographic.c: New file.
83028         * lib/unictype/pr_ids_binary_operator.c: New file.
83029         * lib/unictype/pr_ids_trinary_operator.c: New file.
83030         * lib/unictype/pr_ignorable_control.c: New file.
83031         * lib/unictype/pr_iso_control.c: New file.
83032         * lib/unictype/pr_join_control.c: New file.
83033         * lib/unictype/pr_left_of_pair.c: New file.
83034         * lib/unictype/pr_line_separator.c: New file.
83035         * lib/unictype/pr_logical_order_exception.c: New file.
83036         * lib/unictype/pr_lowercase.c: New file.
83037         * lib/unictype/pr_math.c: New file.
83038         * lib/unictype/pr_non_break.c: New file.
83039         * lib/unictype/pr_not_a_character.c: New file.
83040         * lib/unictype/pr_numeric.c: New file.
83041         * lib/unictype/pr_other_alphabetic.c: New file.
83042         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
83043         * lib/unictype/pr_other_grapheme_extend.c: New file.
83044         * lib/unictype/pr_other_id_continue.c: New file.
83045         * lib/unictype/pr_other_id_start.c: New file.
83046         * lib/unictype/pr_other_lowercase.c: New file.
83047         * lib/unictype/pr_other_math.c: New file.
83048         * lib/unictype/pr_other_uppercase.c: New file.
83049         * lib/unictype/pr_paired_punctuation.c: New file.
83050         * lib/unictype/pr_paragraph_separator.c: New file.
83051         * lib/unictype/pr_pattern_syntax.c: New file.
83052         * lib/unictype/pr_pattern_white_space.c: New file.
83053         * lib/unictype/pr_private_use.c: New file.
83054         * lib/unictype/pr_punctuation.c: New file.
83055         * lib/unictype/pr_quotation_mark.c: New file.
83056         * lib/unictype/pr_radical.c: New file.
83057         * lib/unictype/pr_sentence_terminal.c: New file.
83058         * lib/unictype/pr_soft_dotted.c: New file.
83059         * lib/unictype/pr_space.c: New file.
83060         * lib/unictype/pr_terminal_punctuation.c: New file.
83061         * lib/unictype/pr_test.c: New file.
83062         * lib/unictype/pr_titlecase.c: New file.
83063         * lib/unictype/pr_unassigned_code_value.c: New file.
83064         * lib/unictype/pr_unified_ideograph.c: New file.
83065         * lib/unictype/pr_uppercase.c: New file.
83066         * lib/unictype/pr_variation_selector.c: New file.
83067         * lib/unictype/pr_white_space.c: New file.
83068         * lib/unictype/pr_xid_continue.c: New file.
83069         * lib/unictype/pr_xid_start.c: New file.
83070         * lib/unictype/pr_zero_width.c: New file.
83071         * lib/unictype/scripts.c: New file.
83072         * lib/unictype/sy_c_ident.c: New file.
83073         * lib/unictype/sy_c_whitespace.c: New file.
83074         * lib/unictype/sy_java_ident.c: New file.
83075         * lib/unictype/sy_java_whitespace.c: New file.
83077         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
83078         Unicode 5.0.0.
83079         * lib/unictype/blocks.h: Likewise.
83080         * lib/unictype/categ_C.h: Likewise.
83081         * lib/unictype/categ_Cc.h: Likewise.
83082         * lib/unictype/categ_Cf.h: Likewise.
83083         * lib/unictype/categ_Cn.h: Likewise.
83084         * lib/unictype/categ_Co.h: Likewise.
83085         * lib/unictype/categ_Cs.h: Likewise.
83086         * lib/unictype/categ_L.h: Likewise.
83087         * lib/unictype/categ_Ll.h: Likewise.
83088         * lib/unictype/categ_Lm.h: Likewise.
83089         * lib/unictype/categ_Lo.h: Likewise.
83090         * lib/unictype/categ_Lt.h: Likewise.
83091         * lib/unictype/categ_Lu.h: Likewise.
83092         * lib/unictype/categ_M.h: Likewise.
83093         * lib/unictype/categ_Mc.h: Likewise.
83094         * lib/unictype/categ_Me.h: Likewise.
83095         * lib/unictype/categ_Mn.h: Likewise.
83096         * lib/unictype/categ_N.h: Likewise.
83097         * lib/unictype/categ_Nd.h: Likewise.
83098         * lib/unictype/categ_Nl.h: Likewise.
83099         * lib/unictype/categ_No.h: Likewise.
83100         * lib/unictype/categ_P.h: Likewise.
83101         * lib/unictype/categ_Pc.h: Likewise.
83102         * lib/unictype/categ_Pd.h: Likewise.
83103         * lib/unictype/categ_Pe.h: Likewise.
83104         * lib/unictype/categ_Pf.h: Likewise.
83105         * lib/unictype/categ_Pi.h: Likewise.
83106         * lib/unictype/categ_Po.h: Likewise.
83107         * lib/unictype/categ_Ps.h: Likewise.
83108         * lib/unictype/categ_S.h: Likewise.
83109         * lib/unictype/categ_Sc.h: Likewise.
83110         * lib/unictype/categ_Sk.h: Likewise.
83111         * lib/unictype/categ_Sm.h: Likewise.
83112         * lib/unictype/categ_So.h: Likewise.
83113         * lib/unictype/categ_Z.h: Likewise.
83114         * lib/unictype/categ_Zl.h: Likewise.
83115         * lib/unictype/categ_Zp.h: Likewise.
83116         * lib/unictype/categ_Zs.h: Likewise.
83117         * lib/unictype/categ_of.h: Likewise.
83118         * lib/unictype/combining.h: Likewise.
83119         * lib/unictype/ctype_alnum.h: Likewise.
83120         * lib/unictype/ctype_alpha.h: Likewise.
83121         * lib/unictype/ctype_blank.h: Likewise.
83122         * lib/unictype/ctype_cntrl.h: Likewise.
83123         * lib/unictype/ctype_digit.h: Likewise.
83124         * lib/unictype/ctype_graph.h: Likewise.
83125         * lib/unictype/ctype_lower.h: Likewise.
83126         * lib/unictype/ctype_print.h: Likewise.
83127         * lib/unictype/ctype_punct.h: Likewise.
83128         * lib/unictype/ctype_space.h: Likewise.
83129         * lib/unictype/ctype_upper.h: Likewise.
83130         * lib/unictype/ctype_xdigit.h: Likewise.
83131         * lib/unictype/decdigit.h: Likewise.
83132         * lib/unictype/digit.h: Likewise.
83133         * lib/unictype/mirror.h: Likewise.
83134         * lib/unictype/numeric.h: Likewise.
83135         * lib/unictype/pr_alphabetic.h: Likewise.
83136         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83137         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83138         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83139         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83140         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83141         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83142         * lib/unictype/pr_bidi_control.h: Likewise.
83143         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83144         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83145         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83146         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83147         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83148         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83149         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83150         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83151         * lib/unictype/pr_bidi_pdf.h: Likewise.
83152         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83153         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83154         * lib/unictype/pr_combining.h: Likewise.
83155         * lib/unictype/pr_composite.h: Likewise.
83156         * lib/unictype/pr_currency_symbol.h: Likewise.
83157         * lib/unictype/pr_dash.h: Likewise.
83158         * lib/unictype/pr_decimal_digit.h: Likewise.
83159         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83160         * lib/unictype/pr_deprecated.h: Likewise.
83161         * lib/unictype/pr_diacritic.h: Likewise.
83162         * lib/unictype/pr_extender.h: Likewise.
83163         * lib/unictype/pr_format_control.h: Likewise.
83164         * lib/unictype/pr_grapheme_base.h: Likewise.
83165         * lib/unictype/pr_grapheme_extend.h: Likewise.
83166         * lib/unictype/pr_grapheme_link.h: Likewise.
83167         * lib/unictype/pr_hex_digit.h: Likewise.
83168         * lib/unictype/pr_hyphen.h: Likewise.
83169         * lib/unictype/pr_id_continue.h: Likewise.
83170         * lib/unictype/pr_id_start.h: Likewise.
83171         * lib/unictype/pr_ideographic.h: Likewise.
83172         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83173         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83174         * lib/unictype/pr_ignorable_control.h: Likewise.
83175         * lib/unictype/pr_iso_control.h: Likewise.
83176         * lib/unictype/pr_join_control.h: Likewise.
83177         * lib/unictype/pr_left_of_pair.h: Likewise.
83178         * lib/unictype/pr_line_separator.h: Likewise.
83179         * lib/unictype/pr_logical_order_exception.h: Likewise.
83180         * lib/unictype/pr_lowercase.h: Likewise.
83181         * lib/unictype/pr_math.h: Likewise.
83182         * lib/unictype/pr_non_break.h: Likewise.
83183         * lib/unictype/pr_not_a_character.h: Likewise.
83184         * lib/unictype/pr_numeric.h: Likewise.
83185         * lib/unictype/pr_other_alphabetic.h: Likewise.
83186         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83187         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83188         * lib/unictype/pr_other_id_continue.h: Likewise.
83189         * lib/unictype/pr_other_id_start.h: Likewise.
83190         * lib/unictype/pr_other_lowercase.h: Likewise.
83191         * lib/unictype/pr_other_math.h: Likewise.
83192         * lib/unictype/pr_other_uppercase.h: Likewise.
83193         * lib/unictype/pr_paired_punctuation.h: Likewise.
83194         * lib/unictype/pr_paragraph_separator.h: Likewise.
83195         * lib/unictype/pr_pattern_syntax.h: Likewise.
83196         * lib/unictype/pr_pattern_white_space.h: Likewise.
83197         * lib/unictype/pr_private_use.h: Likewise.
83198         * lib/unictype/pr_punctuation.h: Likewise.
83199         * lib/unictype/pr_quotation_mark.h: Likewise.
83200         * lib/unictype/pr_radical.h: Likewise.
83201         * lib/unictype/pr_sentence_terminal.h: Likewise.
83202         * lib/unictype/pr_soft_dotted.h: Likewise.
83203         * lib/unictype/pr_space.h: Likewise.
83204         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83205         * lib/unictype/pr_titlecase.h: Likewise.
83206         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83207         * lib/unictype/pr_unified_ideograph.h: Likewise.
83208         * lib/unictype/pr_uppercase.h: Likewise.
83209         * lib/unictype/pr_variation_selector.h: Likewise.
83210         * lib/unictype/pr_white_space.h: Likewise.
83211         * lib/unictype/pr_xid_continue.h: Likewise.
83212         * lib/unictype/pr_xid_start.h: Likewise.
83213         * lib/unictype/pr_zero_width.h: Likewise.
83214         * lib/unictype/scripts.h: Likewise.
83215         * lib/unictype/scripts_byname.gperf: Likewise.
83216         * lib/unictype/sy_c_ident.h: Likewise.
83217         * lib/unictype/sy_c_whitespace.h: Likewise.
83218         * lib/unictype/sy_java_ident.h: Likewise.
83219         * lib/unictype/sy_java_whitespace.h: Likewise.
83221         * lib/unictype/Makefile: New file.
83222         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83223         glibc.
83224         * lib/unictype/3level.h: New file, copied from glibc.
83225         * lib/unictype/3levelbit.h: New file.
83227 2007-11-11  Bruno Haible  <bruno@clisp.org>
83229         * modules/gperf: New file.
83230         * modules/iconv_open (Depends-on): Add it.
83231         (Makefile.am): Remove the GPERF definition.
83233 2007-11-11  Bruno Haible  <bruno@clisp.org>
83235         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83236         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83238 2007-11-11  Bruno Haible  <bruno@clisp.org>
83240         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83241         (usage): Remove function.
83243 2007-11-11  Bruno Haible  <bruno@clisp.org>
83245         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83246         gl_FUNC_CEILF_LIBS.
83247         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83248         gl_FUNC_CEIL_LIBS.
83249         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83250         gl_FUNC_CEILL_LIBS.
83251         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83252         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83253         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83255 2007-11-11  Bruno Haible  <bruno@clisp.org>
83257         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83258         roundf were declared but do not exist on functions.
83259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83260         roundl were declared but do not exist on functions.
83261         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83262         HAVE_FLOORL_AND_CEILL, respectively.
83263         Needed for Sun C on Solaris 10.
83265 2007-11-11  Bruno Haible  <bruno@clisp.org>
83267         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83268         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83269         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83270         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83271         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83272         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83273         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83274         HAVE_DECL_ROUNDF.
83275         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83276         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83278         of HAVE_DECL_ROUND*.
83279         * modules/math (Makefile.am): Update.
83281 2007-11-10  Bruno Haible  <bruno@clisp.org>
83283         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83284         ptrdiff_t as m4/intl.m4.
83286 2007-11-10  Jim Meyering  <meyering@redhat.com>
83288         Avoid link failure for the argmatch test.
83289         * tests/test-argmatch.c (usage): Define function to avoid a link
83290         failure: argmatch_die requires a usage function.
83292 2007-11-09  Bruno Haible  <bruno@clisp.org>
83294         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83295         * doc/functions/vsnprintf.texi: Likewise.
83296         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83297         with a size argument < 2.
83299 2007-11-09  Bruno Haible  <bruno@clisp.org>
83301         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83302         buffer. Fixes an inefficiency introduced on 2007-11-03.
83304 2007-11-09  Bruno Haible  <bruno@clisp.org>
83306         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83307         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83309 2007-11-08  Jim Meyering  <meyering@redhat.com>
83311         Change cache variable name prefix "jm_" to "gl_" everywhere.
83312         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83313         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83314         * m4/uptime.m4: s/gl_/jm_/
83316 2007-11-07  Bruno Haible  <bruno@clisp.org>
83318         Update to GNU gettext 0.17.
83319         * m4/intl.m4: Update to GNU gettext 0.17.
83320         * m4/po.m4: Likewise.
83321         * modules/gettext (Files): Remove m4/ulonglong.m4.
83322         (configure.ac): Require gettext infrastructure from version 0.17.
83324 2007-11-06  Bruno Haible  <bruno@clisp.org>
83326         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83327         symbolic values are not defined in a public header.
83328         * lib/freadable.c (freadable) [QNX]: Likewise.
83329         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83330         * lib/freading.c (freading) [QNX]: Likewise.
83331         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83332         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83333         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83334         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83335         Reported by Alain Magloire.
83337         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83339 2007-11-05  Bruno Haible  <bruno@clisp.org>
83341         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83342         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83343         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83344         Reported by Eric Blake.
83346 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83347             Bruno Haible  <bruno@clisp.org>
83349         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83350         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83351         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83352         (malloc): Undefine also before including <stdlib.h>.
83353         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83354         Needed on OSF/1 4.0.
83356 2007-11-05  Jim Meyering  <meyering@redhat.com>
83358         git-version-gen: sync from coreutils.
83359         * build-aux/git-version-gen: Add comments.
83360         Change the first '-' to '.' in the snapshot version string,
83361         e.g., 6.9-377-08144 -> 6.9.377-08144
83362         Remove first parameter.
83363         Don't declare a version "-dirty" merely because a time
83364         stamp has changed.
83366 2007-11-04  Bruno Haible  <bruno@clisp.org>
83368         * lib/lock.h: Protect all macro definitions containing an 'if'
83369         statement through a "do { ... } while (0)".
83370         * lib/tls.h: Likewise.
83372 2007-11-04  Bruno Haible  <bruno@clisp.org>
83374         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83376 2007-11-04  Bruno Haible  <bruno@clisp.org>
83378         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83379         * modules/fprintf-posix (Depends-on): Add nocrash.
83380         * modules/snprintf-posix (Depends-on): Likewise.
83381         * modules/sprintf-posix (Depends-on): Likewise.
83382         * modules/vasnprintf-posix (Depends-on): Likewise.
83383         * modules/vasprintf-posix (Depends-on): Likewise.
83384         * modules/vfprintf-posix (Depends-on): Likewise.
83385         * modules/vsnprintf-posix (Depends-on): Likewise.
83386         * modules/vsprintf-posix (Depends-on): Likewise.
83387         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83388         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83391         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83392         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83393         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83395 2007-11-04  Bruno Haible  <bruno@clisp.org>
83397         * modules/nocrash: New file.
83398         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83399         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83401 2007-11-04  Bruno Haible  <bruno@clisp.org>
83403         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83404         precision handling.
83405         * tests/test-vasprintf-posix.c (test_function): Likewise.
83406         * tests/test-snprintf-posix.h (test_function): Likewise.
83407         * tests/test-sprintf-posix.h (test_function): Likewise.
83409         Fix *printf behaviour for large precisions on mingw and BeOS.
83410         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83411         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83413         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83415         gl_PRINTF_PRECISION and test its result. Invoke
83416         gl_PREREQ_VASNPRINTF_PRECISION.
83417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83418         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83421         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83423         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83424         * doc/functions/fprintf.texi: Update.
83425         * doc/functions/printf.texi: Update.
83426         * doc/functions/snprintf.texi: Update.
83427         * doc/functions/sprintf.texi: Update.
83428         * doc/functions/vfprintf.texi: Update.
83429         * doc/functions/vprintf.texi: Update.
83430         * doc/functions/vsnprintf.texi: Update.
83431         * doc/functions/vsprintf.texi: Update.
83433 2007-11-04  Bruno Haible  <bruno@clisp.org>
83435         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83437 2007-11-04  Bruno Haible  <bruno@clisp.org>
83439         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83440         Reported by Sylvain Beucler <beuc@gnu.org>.
83442 2007-11-03  Bruno Haible  <bruno@clisp.org>
83444         * tests/test-fprintf-posix2.sh: New file.
83445         * tests/test-fprintf-posix2.c: New file.
83446         * modules/fprintf-posix-tests (Files): Add them.
83447         (TESTS): Add test-fprintf-posix2.sh.
83448         (configure.ac): Check for getrlimit and setrlimit.
83449         (check_PROGRAMS): Add test-fprintf-posix2.
83451         * tests/test-printf-posix2.sh: New file.
83452         * tests/test-printf-posix2.c: New file.
83453         * modules/printf-posix-tests (Files): Add them.
83454         (TESTS): Add test-printf-posix2.sh.
83455         (configure.ac): Check for getrlimit and setrlimit.
83456         (check_PROGRAMS): Add test-printf-posix2.
83458         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83459         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83460         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83461         (decode_double): New function, copied from decode_long_double.
83462         (scale10_round_decimal_decoded): New function, extracted from
83463         scale10_round_decimal_long_double.
83464         (scale10_round_decimal_long_double): Use it.
83465         (scale10_round_decimal_double): New function.
83466         (floorlog10): New function.
83467         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83469         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83471         gl_PRINTF_ENOMEM and test its result. Invoke
83472         gl_PREREQ_VASNPRINTF_ENOMEM.
83473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83480         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83481         * modules/snprintf-posix (Depends-on): Likewise.
83482         * modules/sprintf-posix (Depends-on): Likewise.
83483         * modules/vasnprintf-posix (Depends-on): Likewise.
83484         * modules/vasprintf-posix (Depends-on): Likewise.
83485         * modules/vfprintf-posix (Depends-on): Likewise.
83486         * modules/vsnprintf-posix (Depends-on): Likewise.
83487         * modules/vsprintf-posix (Depends-on): Likewise.
83488         * doc/functions/fprintf.texi: Update.
83489         * doc/functions/printf.texi: Update.
83490         * doc/functions/snprintf.texi: Update.
83491         * doc/functions/sprintf.texi: Update.
83492         * doc/functions/vfprintf.texi: Update.
83493         * doc/functions/vprintf.texi: Update.
83494         * doc/functions/vsnprintf.texi: Update.
83495         * doc/functions/vsprintf.texi: Update.
83497 2007-11-03  Bruno Haible  <bruno@clisp.org>
83499         * modules/frexp-nolibm-tests: New file.
83501         * modules/frexp-nolibm: New file.
83502         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83504 2007-11-03  Bruno Haible  <bruno@clisp.org>
83506         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83507         value is C99 compliant.
83508         Needed for OSF/1 5.1.
83510 2007-11-03  Bruno Haible  <bruno@clisp.org>
83512         Fix out-of-memory handling of vasnprintf.
83513         * lib/printf-parse.c: Include <errno.h>.
83514         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83515         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83516         is already set.
83518 2007-11-02  Eric Blake  <ebb9@byu.net>
83520         Fix tests on cygwin.
83521         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83523 2007-11-01  Bruno Haible  <bruno@clisp.org>
83525         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83526         warning.
83527         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83528         needed for POSIX compatibility.
83530 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83532         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83533         for compatibility with GNU.
83535 2007-11-01  Bruno Haible  <bruno@clisp.org>
83537         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83538         (putenv): Renamed from rpl_putenv. Change argument type from
83539         'const char *' to 'char *'.
83540         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83541         of defining putenv in config.h, just set REPLACE_PUTENV.
83542         * modules/putenv (Depends-on): Add stdlib.
83543         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83544         (Include): Use <stdlib.h>.
83545         * lib/stdlib.in.h (putenv): New declaration.
83546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83547         REPLACE_PUTENV.
83548         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83549         REPLACE_PUTENV.
83550         Needed for MacOS X 10.5.0.
83551         Reported by Peter O'Gorman <peter@pogma.com>.
83553 2007-11-01  Jim Meyering  <meyering@redhat.com>
83555         Treat an empty date string exactly like "0".
83556         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83557         if the remaining date string (to be parsed) is empty, use "0".
83558         Reported by Mischa Molhoek and discussed in this thread:
83559         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83561 2007-10-31  Bruno Haible  <bruno@clisp.org>
83563         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83564         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83565         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83566         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83567         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83568         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83570 2007-10-31  Bruno Haible  <bruno@clisp.org>
83572         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83573         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83574         (AC_TYPE_LONG_LONG_INT): Use it.
83575         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83576         it as well.
83577         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83578         to m4/longlong.m4.
83579         * modules/stdint (Files): Remove m4/ulonglong.m4.
83580         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83581         m4/ulonglong.m4.
83582         * modules/strtoumax (Files): Likewise.
83584 2007-10-30  Bruno Haible  <bruno@clisp.org>
83586         * modules/xvasprintf-posix: New file.
83587         Suggested by Eric Blake.
83589 2007-10-30  Bruno Haible  <bruno@clisp.org>
83591         * modules/xprintf-posix-tests: New file.
83592         * tests/test-xprintf-posix.sh: New file.
83593         * tests/test-xprintf-posix.c: New file.
83594         * tests/test-xfprintf-posix.c: New file.
83596         * modules/xprintf-posix: New file.
83598 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83600         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83601         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83602         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83604 2007-10-29  Bruno Haible  <bruno@clisp.org>
83606         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83607         contain the special marker '_cv_'.
83608         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83609         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83610         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83611         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83612         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83613         Reported by Ralf Wildenhues.
83615 2007-10-29  Bruno Haible  <bruno@clisp.org>
83617         * gnulib-tool (func_import): When --lgpl is not specified, set
83618         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83619         GPLv3.
83620         Reported by Simon Josefsson.
83622 2007-10-28  Bruno Haible  <bruno@clisp.org>
83624         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83625         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83626         HAVE_DECL_ISFINITE.
83627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83628         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83629         HAVE_DECL_ISFINITE.
83631 2007-10-28  Bruno Haible  <bruno@clisp.org>
83633         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83634         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83636 2007-10-28  Bruno Haible  <bruno@clisp.org>
83638         Fix link errors with Sun C 5.0 on Solaris 10.
83639         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83640         function is declared but not present in the compiler's libm.
83641         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83642         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83643         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83644         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83645         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83646         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83647         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83649         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83650         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83651         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83652         HAVE_DECL_FLOORL.
83654 2007-10-28  Bruno Haible  <bruno@clisp.org>
83656         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83657         gl_FUNC_FLOORL. Cache the result.
83658         (gl_FUNC_FLOORL): Use it.
83659         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83660         gl_FUNC_CEILL. Cache the result.
83661         (gl_FUNC_CEILL): Use it.
83663         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83664         gl_FUNC_FLOOR. Cache the result.
83665         (gl_FUNC_FLOOR): Use it.
83666         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83667         gl_FUNC_CEIL. Cache the result.
83668         (gl_FUNC_CEIL): Use it.
83670         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83671         gl_FUNC_FLOORF. Cache the result.
83672         (gl_FUNC_FLOORF): Use it.
83673         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83674         gl_FUNC_CEILF. Cache the result.
83675         (gl_FUNC_CEILF): Use it.
83677 2007-10-28  Bruno Haible  <bruno@clisp.org>
83679         * gnulib-tool: Allow specifying the LGPL version number through
83680         --lgpl=2 or --lgpl=3.
83681         (func_usage): Document --lgpl with argument.
83682         Handle --lgpl=... arguments.
83683         (func_import): Recognize also gl_LGPL calls with an argument. When
83684         --lgpl=2 is used and the module's license is just LGPL, report an
83685         error. Set sed_transform_lib_file according to the lgpl variable. In
83686         the generated files, use --lgpl or gl_LGPL invocations with argument,
83687         if necessary.
83688         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83689         an LGPv2+ license.
83690         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83691         gl_LGPL macro.
83693 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83694             Bruno Haible  <bruno@clisp.org>
83696         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83697         (u16_uctomb_aux): Likewise.
83698         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83699         !HAVE_INLINE.
83700         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83702 2007-10-28  Bruno Haible  <bruno@clisp.org>
83704         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83705         Invoke AM_GETTEXT_OPTION if it exists.
83706         * modules/vasprintf: Likewise.
83707         * modules/verror: Likewise.
83708         * modules/xprintf: Likewise.
83709         * modules/xvasprintf: Likewise.
83711 2007-10-27  Ben Pfaff  <blp@gnu.org>
83713         * lib/math.in.h: Define isfinite macro and prototypes for
83714         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83715         implementations.
83716         * m4/math_h.m4: New substitutions for isfinite module.
83717         * lib/isfinite.c: New file.
83718         * m4/isfinite.m4: New file.
83719         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83720         * modules/isfinite: New file.
83721         * modules/isfinite-tests: New file.
83722         * tests/tests-isfinite.c: New file.
83723         * doc/functions/isfinite.texi: Mention isfinite module.
83724         * MODULES.html.sh: Mention new module.
83726 2007-10-27  Ben Pfaff  <blp@gnu.org>
83728         Ralf Wildenhues reported that Tru64 4.0D declares the round
83729         functions but does not have definitions.
83730         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83731         cannot be found in any library, set the output variable to
83732         "missing" instead of "".
83733         * m4/round.m4: Also use our substitute if we cannot find round in
83734         any library, even if it is declared.
83735         * m4/roundf.m4: Likewise for roundf.
83736         * m4/roundl.m4: Likewise for roundl.
83737         * lib/math.in.h: Undefine roundf, round, roundl before defining
83738         their replacements, to allow for hypothetical systems where these
83739         may be defined as macros but not available in libraries.
83741 2007-10-27  Bruno Haible  <bruno@clisp.org>
83743         * doc/gnulib.texi: Invoke @firstparagraphindent.
83744         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83745         changes in gnulib.
83746         (Source changes): New section.
83748 2007-10-26  Bruno Haible  <bruno@clisp.org>
83750         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83751         borrowed from autoconf.
83753 2007-10-26  Bruno Haible  <bruno@clisp.org>
83755         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83756         strerror returned the empty string. Needed on HP-UX 11.00.
83758 2007-10-24  Micah Cowan  <micah@cowan.name>
83760         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83761         * build-aux/bootstrap: Remove support for now-unnecessary option,
83762         --cvs-user, and envvars CVS_USER, CVS_RSH.
83764 2007-10-24  Jim Meyering  <meyering@redhat.com>
83766         Avoid diagnostics from sha1sum when there is no cached checksum.
83767         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83768         if the po.s1 file hasn't been created yet.
83770         * build-aux/bootstrap: Sync from coreutils:
83771         2007-10-24  Jim Meyering  <meyering@redhat.com>
83772         Get gnulib from the git repository, not from an obsolete cvs one.
83773         * build-aux/bootstrap: Suggestion from Micah Cowan.
83774         2007-10-04  Jim Meyering  <jim@meyering.net>
83775         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83776         (update_po_files): Work also when there are no .po files in po/.
83778 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83780         * README: Append ".git" to git and cg examples.
83781         Problem reported by Benoit Sigoure.
83783 2007-10-23  Micah Cowan  <micah@cowan.name>
83785         * users.txt: Add wget.
83787 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83789         Fix linking of some unistdio tests on FreeBSD.
83790         * modules/unistdio/u16-vsnprintf-tests
83791         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83792         * modules/unistdio/u16-vsprintf-tests
83793         (test_u16_vsnprintf1_LDADD): Likewise.
83794         * modules/unistdio/u32-vsnprintf-tests
83795         (test_u32_vsnprintf1_LDADD): Likewise.
83796         * modules/unistdio/u32-vsprintf-tests
83797         (test_u32_vsprintf1_LDADD): Likewise.
83798         * modules/unistdio/u8-vsnprintf-tests
83799         (test_u8_vsnprintf1_LDADD): Likewise.
83800         * modules/unistdio/u8-vsprintf-tests
83801         (test_u8_vsprintf1_LDADD): Likewise.
83802         * modules/unistdio/ulc-vsnprintf-tests
83803         (test_ulc_vsnprintf1_LDADD): Likewise.
83804         * modules/unistdio/ulc-vsprintf-tests
83805         (test_ulc_vsprintf1_LDADD): Likewise.
83807         Fix linking of some uniconv tests on FreeBSD.
83808         * modules/uniconv/u16-conv-from-enc-tests
83809         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83810         * modules/uniconv/u16-conv-to-enc-tests
83811         (test_u16_conv_to_enc_LDADD): Likewise.
83812         * modules/uniconv/u16-strconv-from-enc-tests
83813         (test_u16_strconv_from_enc_LDADD): Likewise.
83814         * modules/uniconv/u16-strconv-to-enc-tests
83815         (test_u16_strconv_to_enc_LDADD): Likewise.
83816         * modules/uniconv/u32-conv-from-enc-tests
83817         (test_u32_conv_from_enc_LDADD): Likewise.
83818         * modules/uniconv/u32-conv-to-enc-tests
83819         (test_u32_conv_to_enc_LDADD): Likewise.
83820         * modules/uniconv/u32-strconv-from-enc-tests
83821         (test_u32_strconv_from_enc_LDADD): Likewise.
83822         * modules/uniconv/u32-strconv-to-enc-tests
83823         (test_u32_strconv_to_enc_LDADD): Likewise.
83824         * modules/uniconv/u8-conv-from-enc-tests
83825         (test_u8_conv_from_enc_LDADD): Likewise.
83826         * modules/uniconv/u8-conv-to-enc-tests
83827         (test_u8_conv_to_enc_LDADD): Likewise.
83828         * modules/uniconv/u8-strconv-from-enc-tests
83829         (test_u8_strconv_from_enc_LDADD): Likewise.
83830         * modules/uniconv/u8-strconv-to-enc-tests
83831         (test_u8_strconv_to_enc_LDADD): Likewise.
83833 2007-10-22  Bruno Haible  <bruno@clisp.org>
83835         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83836         size.
83838 2007-10-22  Eric Blake  <ebb9@byu.net>
83840         Tweak x*printf documentation.
83841         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83842         variable name and comments.
83843         Suggested by Bruno Haible.
83845 2007-10-22  Bruno Haible  <bruno@clisp.org>
83847         * lib/acl.c (copy_acl): Fix file name in comment.
83849 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83851         Fix Tru64 problem with stdbool.h.
83852         * lib/stdbool.in.h (false, true):
83853         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83854         Don't declare as an enum in this situation; it runs afoul of Tru64.
83855         Problem reported by Steven M. Schweda in
83856         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83858 2007-10-22  Eric Blake  <ebb9@byu.net>
83860         Also wrap vf?printf.
83861         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83862         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83863         (xvprintf, xvfprintf): New functions.
83865 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83867         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83868         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83870         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83871         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83873 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83875         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83876         by Bruno Haible.
83878 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83880         * lib/getloadavg.c
83881         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83882         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83884         * tests/test-i-ring.c: Work for C89.
83886 2007-10-22  Bruno Haible  <bruno@clisp.org>
83888         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83889         -1u, in preprocessor expression, so that we don't test for the bug
83890         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83891         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83893 2007-10-22  Eric Blake  <ebb9@byu.net>
83895         * tests/test-yesno.sh: Silence stderr during test.
83897 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83899         * modules/crypto/gc-camellia: New file.
83901         * m4/gc-camellia.m4: New file.
83903         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83905         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83907 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83909         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83910         --help to stdout.  Reported by sms@antinode.org (Steven
83911         M. Schweda).
83913 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83915         * users.txt: Fix link to libksba.
83917 2007-10-21  Ben Pfaff  <blp@gnu.org>
83919         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83920         round.c roundf implementation that depends on floorf and ceilf to
83921         be tested unconditionally.
83923 2007-10-21  Ben Pfaff  <blp@gnu.org>
83925         * m4/check-libm-func.m4: Removed.
83926         * m4/check-math-lib.m4: New file.
83927         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83928         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83929         definition and lack of AC_LIBOBJ([roundf]).
83930         * m4/roundl.m4: Ditto, and similarly for roundl.
83931         * modules/round: Reference new m4 file.
83932         * modules/roundf: Ditto.
83933         * modules/roundl: Ditto.
83934         * tests/test-round2.c (main): Use ROUND instead of round.
83935         Bug report from Bruno Haible.
83937 2007-10-21  Bruno Haible  <bruno@clisp.org>
83939         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83940         context.
83942 2007-10-21  Bruno Haible  <bruno@clisp.org>
83944         * tests/test-wcwidth.c (main): Allow negative result for some control
83945         characters.
83947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83948         Needed on OSF/1 5.1.
83950 2007-10-21  Bruno Haible  <bruno@clisp.org>
83952         * tests/test-floorf1.c: Include isnanf.h.
83953         (main): Use isnanf() instead of isnan().
83954         * tests/test-ceilf1.c: Include isnanf.h.
83955         (main): Use isnanf() instead of isnan().
83956         * tests/test-truncf1.c: Include isnanf.h.
83957         (main): Use isnanf() instead of isnan().
83958         * tests/test-roundf1.c: Include isnanf.h.
83959         (main): Use isnanf() instead of isnan().
83961 2007-10-21  Eric Blake  <ebb9@byu.net>
83963         * users.txt: Update URL for m4.
83965 2007-10-21  Bruno Haible  <bruno@clisp.org>
83967         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83969 2007-10-21  Bruno Haible  <bruno@clisp.org>
83971         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83972         Git's management files if the CVS files are not present.
83974 2007-10-20  Bruno Haible  <bruno@clisp.org>
83976         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83977         gcc-3.4.x.
83979 2007-10-20  Ben Pfaff  <blp@gnu.org>
83981         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83982         implementations.
83983         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83984         * lib/round.c: New file.
83985         * lib/roundf.c: New file.
83986         * lib/roundl.c: New file.
83987         * m4/round.m4: New file.
83988         * m4/roundf.m4: New file.
83989         * m4/roundl.m4: New file.
83990         * m4/check-libm-func-m4: New file.
83991         * modules/math: Replace round, roundf, roundl related @VARS@ in
83992         math.in.h.
83993         * modules/round: New file.
83994         * modules/round-tests: New file.
83995         * modules/roundf: New file.
83996         * modules/roundf-tests: New file.
83997         * modules/roundl: New file.
83998         * modules/roundl-tests: New file.
83999         * tests/test-round1.c: New file.
84000         * tests/test-round2.c: New file.
84001         * tests/test-roundf1.c: New file.
84002         * tests/test-roundf2.c: New file.
84003         * tests/test-roundl.c: New file.
84004         * doc/functions/round.texi: Mention round module.
84005         * doc/functions/roundf.texi: Mention roundf module.
84006         * doc/functions/roundl.texi: Mention roundl module.
84007         * MODULES.html.sh: Mention new modules.
84008         Thanks to Bruno Haible for suggestions.
84010 2007-10-20  Jim Meyering  <meyering@redhat.com>
84012         * lib/xprintf.c: Include <config.h> unconditionally.
84014         Change xprintf's license to GPL.
84015         * modules/xprintf (License): s/LGPL/GPL/, since this module
84016         depends on modules (exit and exitfail) which are GPL.
84017         Suggestion from Bruno Haible.
84019         xprintf fixes.
84020         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
84021         Use a clearer diagnostic.
84022         Patch from Bruno Haible.
84024 2007-10-20  Bruno Haible  <bruno@clisp.org>
84026         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
84027         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
84028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84030 2007-10-20  Bruno Haible  <bruno@clisp.org>
84032         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
84033         precision in the comparison result > x - 1 or similar.
84034         * tests/test-ceilf2.c (correct_result_p): Likewise.
84035         * tests/test-truncf2.c (correct_result_p): Likewise.
84036         * tests/test-trunc2.c (correct_result_p): Likewise.
84037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84039 2007-10-20  Bruno Haible  <bruno@clisp.org>
84041         * modules/ceil: New file.
84042         * m4/ceil.m4: New file.
84043         * doc/functions/ceil.texi: Mention the 'ceil' module.
84045 2007-10-20  Bruno Haible  <bruno@clisp.org>
84047         * modules/floor: New file.
84048         * m4/floor.m4: New file.
84049         * doc/functions/floor.texi: Mention the 'floor' module.
84051 2007-10-20  Bruno Haible  <bruno@clisp.org>
84053         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
84054         of %a.
84055         * modules/floorf-tests (Depends-on): Likewise.
84056         * modules/truncf-tests (Depends-on): Likewise.
84057         * modules/trunc-tests (Depends-on): Likewise.
84058         Reported by Ben Pfaff.
84060 2007-10-19  Jim Meyering  <meyering@redhat.com>
84062         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
84063         Don't bother testing specific errno values.  Just test ferror.
84065         New module: xprintf
84066         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
84068 2007-10-19  Bruno Haible  <bruno@clisp.org>
84070         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
84071         syntax.
84072         * modules/javaexec (Makefile.am): Likewise.
84073         * modules/relocatable-prog (Makefile.am): Likewise.
84074         Suggested by Jim Meyering.
84076 2007-10-18  Bruno Haible  <bruno@clisp.org>
84078         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
84079         Reported by Jim Meyering.
84081 2007-10-18  Eric Blake  <ebb9@byu.net>
84083         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
84085 2007-10-18  Bruno Haible  <bruno@clisp.org>
84087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
84088         the format string into writable memory. Needed in Fortify conditions.
84090 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
84091             Bruno Haible  <bruno@clisp.org>
84093         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
84094         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
84095         * modules/trim (Depends-on): Add mbchar.
84096         (configure.ac): Add gl_FUNC_MBRTOWC.
84097         (Makefile.am): Augment lib_SOURCES.
84099 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84101         Modify glob.c to use fstatat and dirfd, to simplify it.
84102         Suggested by Eric Blake.
84103         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
84104         Don't include <stdbool.h>; not used.
84105         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
84106         (link_exists_p): Simplify implementation, since we can now assume
84107         dirfd and fstatat.
84108         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
84110 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84112         * gnulib-tool (func_get_dependencies): Fix sed script to
84113         match only tests.
84115 2007-10-17  Bruno Haible  <bruno@clisp.org>
84117         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
84118         allow locale names without encoding suffix.
84119         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
84120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84122 2007-10-16  Bruno Haible  <bruno@clisp.org>
84124         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84125         * lib/getgroups.c (getgroups): Likewise.
84126         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84128 2007-10-16  Bruno Haible  <bruno@clisp.org>
84130         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84131         * modules/malloc-posix (License): Likewise.
84132         * modules/realloc-posix (License): Likewise.
84133         * modules/calloc-posix (License): Likewise.
84134         * modules/intprops (License): Change from GPL to LGPL, with
84135         Paul Eggert's approval.
84137 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84139         Merge glibc changes into lib/glob.c.
84141         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84142         2007-10-15 04:59:03 UTC.  Here are the changes:
84144         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84146         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84148         * lib/glob.c: Add some branch prediction throughout.
84150         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84152         [BZ #5103]
84153         * lib/glob.c (glob): Recognize patterns starting \/.
84155         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84157         [BZ #3996]
84158         * lib/glob.c (attribute_hidden): Define if not defined.
84159         (glob): Unescape dirname, filename or username when needed and not
84160         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84161         is NULL.  Handle unescaped [ in pattern without closing ].
84162         Don't pass GLOB_CHECK down to recursive glob for directories.
84163         (__glob_pattern_type): New function.
84164         (__glob_pattern_p): Implement using __glob_pattern_type.
84165         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84166         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84167         Remove unreachable code.
84169         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84171         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84172         explain why there are no leaks.
84174         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84176         [BZ #3253]
84177         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84178         time, rather allocate increasingly bigger arrays of pointers, if
84179         possible with alloca, if too large with malloc.
84181 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84183         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84184         Problem reported by H.Merijn Brand in
84185         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84187         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84189 2007-10-15  Bruno Haible  <bruno@clisp.org>
84191         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84192         with explicit rpl_ prefix.
84193         * lib/fopen.c (fopen): Likewise.
84194         * lib/freopen.c (freopen): Likewise.
84195         * lib/iconv.c (iconv): Likewise.
84196         * lib/iconv_close.c (iconv_close): Likewise.
84198 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84200         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84202 2007-10-15  Bruno Haible  <bruno@clisp.org>
84204         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84205         <stddef.h> instead of <stdlib.h> since we only need NULL.
84206         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84208 2007-10-15  Bruno Haible  <bruno@clisp.org>
84210         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84211         Replace paragraph talking about LIBOBJS.
84212         Reported by Colin Watson <cjwatson@debian.org>.
84214 2007-10-15  Bruno Haible  <bruno@clisp.org>
84216         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84217         <stdlib.h> before using NULL.
84219 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84221         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84222         Reported by Albert Chin <china@thewrittenword.com>.
84224 2007-10-14  Bruno Haible  <bruno@clisp.org>
84226         * modules/iconv_open-utf-tests: New file.
84227         * tests/test-iconv-utf.c: New file.
84229         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84230         * modules/iconv_open-utf: New file.
84231         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84232         (iconv, iconv_close): New declarations.
84233         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84234         be defined.
84235         (iconv_open): Add special handling of conversion between UTF-8 and
84236         UTF-{16,32}{BE,LE}.
84237         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84238         * lib/iconv_close.c: New file.
84239         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84240         gl_FUNC_ICONV_OPEN.
84241         (gl_FUNC_ICONV_OPEN): Use it.
84242         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84243         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84244         and REPLACE_ICONV_UTF.
84245         * modules/iconv_open (Depends-on): Add c-strcase.
84246         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84247         ICONV_CONST.
84248         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84250 2007-10-13  Albert Chin  <china@thewrittenword.com>
84251             Bruno Haible  <bruno@clisp.org>
84253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84254         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84256 2007-10-13  Bruno Haible  <bruno@clisp.org>
84258         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84259         defined, use the ISO C99 inline semantics.
84260         * lib/argp.h (ARGP_EI): Likewise.
84262 2007-10-13  Bruno Haible  <bruno@clisp.org>
84264         Handle 'inline' change in gcc 4.3.0.
84265         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84266         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84267         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84268         argp_fmtstream_point): Disable 'extern' declaration if the function
84269         definition is going to be provided inline.
84270         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84271         semantics, not the ISO C99 inline semantics.
84272         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84273         'extern' declaration if the function definition is going to be provided
84274         inline.
84275         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84276         the GNU C inline semantics, not the ISO C99 inline semantics. With
84277         GCC 4.2, avoid a warning.
84279 2007-10-13  Bruno Haible  <bruno@clisp.org>
84281         * lib/freading.h (freading): Enable the use of __freading for
84282         glibc >= 2.7.
84283         * lib/freading.c (freading): Likewise.
84285 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84287         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84288         "warning: C99 inline functions are not supported; using GNU89".
84290 2007-10-12  Bruno Haible  <bruno@clisp.org>
84292         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84293         of 2.
84294         * tests/test-ceilf2.c: New file.
84295         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84297         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84298         * modules/ceilf-tests: Update.
84300 2007-10-12  Bruno Haible  <bruno@clisp.org>
84302         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84303         of 2.
84304         * tests/test-floorf2.c: New file.
84305         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84307         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84308         * modules/floorf-tests: Update.
84310 2007-10-12  Bruno Haible  <bruno@clisp.org>
84312         * tests/test-trunc2.c: New file.
84313         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84315         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84316         * modules/trunc-tests: Update.
84318 2007-10-12  Bruno Haible  <bruno@clisp.org>
84320         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84321         of 2.
84322         * tests/test-truncf2.c: New file.
84323         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84325         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84326         * modules/truncf-tests: Update.
84328 2007-10-11  Eric Blake  <ebb9@byu.net>
84330         Don't claim strerror is broken on Interix.
84331         * doc/functions/strerror.texi (strerror): Known broken systems are
84332         now Solaris 8, and not Interix.
84333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84334         Interix on cross-compile.
84335         Reported by Martin Koeppe in
84336         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84338 2007-10-11  Bruno Haible  <bruno@clisp.org>
84340         * modules/i-ring-tests: New file.
84341         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84342         instead of assert.
84344 2007-10-11  Bruno Haible  <bruno@clisp.org>
84346         * modules/filenamecat-tests: New file.
84347         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84348         * lib/filenamecat.c: Remove test code.
84350 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84352         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84354         * lib/strerror.c: Include <string.h> always, to test interface,
84355         and to remove the need for the dummy.
84356         Include intprops.h to compute width instead of doing it ourselves
84357         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84358         (strerror): Define it to return NULL if there's no system strerror.
84359         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84360         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84361         ancient pre-strerror Unix systems well any more.  Saying "unknown
84362         system error" is enough.
84363         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84364         simpler strerror.c implementation.
84365         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84366         Simplify the tests to reflect the simpler strerror implementation.
84367         * modules/strerror (Depends-on): Add intprops.
84369 2007-10-09  Eric Blake  <ebb9@byu.net>
84371         Silence test-fpending.
84372         * modules/fpending-tests (Files): Add wrapper script.
84373         * tests/test-fpending.sh: New file.
84375 2007-10-09  Bruno Haible  <bruno@clisp.org>
84377         * MODULES.html.sh (func_module): Don't create a hyperlink for
84378         function names like 'printf_frexp'.
84379         (Misc): Add crc, memxor.
84380         (Characteristics of floating types): New section.
84381         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84382         isnanf-nolibm, signbit, trunc, truncf, truncl.
84383         (Enhancements for ISO C 99 functions): New subsection Input/output.
84384         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84385         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84386         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84387         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84388         (Enhancements for POSIX:2001 functions): Add chdir-long.
84389         (File system functions): Add areadlink, chdir-safer, read-file.
84390         Remove cycle-check.
84391         (File system as inode set): New section.
84392         (Date and time): Add gethrxtime.
84393         (Multithreading): Add openmp.
84394         (Internationalization functions): Add localename.
84395         (Unicode string functions): Add unistr/u*-mbsnlen.
84396         (Support for maintaining and releasing projects): Add git-version-gen.
84397         (Lone files): Remove directories.
84399 2007-10-08  Ben Pfaff  <blp@gnu.org>
84401         * lib/xmalloca.h: Fix typo in comment.
84403 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84405         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84406         when avoiding problems with integer overflow.  Use a portable test
84407         instead.
84409 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84411         * modules/dummy (License): Change to LGPLv2+.
84412         * modules/float (License): Likewise
84413         * modules/realloc (License): Likewise
84414         * modules/stdlib (License): Likewise
84416 2007-10-07  Bruno Haible  <bruno@clisp.org>
84418         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84419         * floor.c (TWO_MANT_DIG): Likewise.
84420         * ceil.c (TWO_MANT_DIG): Likewise.
84421         Reported by Ben Pfaff.
84423 2007-10-07  Bruno Haible  <bruno@clisp.org>
84425         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84426         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84427         * lib/frexp.c (FUNC): Likewise.
84428         * lib/printf-frexp.h (printf_frexp): Likewise.
84429         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84430         * lib/printf-frexp.c (FUNC): Likewise.
84431         Suggested by Jim Meyering.
84433 2007-10-07  Jim Meyering  <meyering@redhat.com>
84435         Make xnanosleep's integer overflow test more robust.
84436         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84437         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84439 2007-10-07  Bruno Haible  <bruno@clisp.org>
84441         * NEWS: Mention the license change.
84443         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84444         abbreviations in the modules files.
84446         Change copyright notice from GPLv2+ to GPLv3+.
84447         * README: Change copyright notice.
84448         * MODULES.html.sh: Likewise.
84449         * build-aux/bootstrap.conf: Likewise.
84450         * build-aux/config.libpath: Likewise.
84451         * build-aux/csharpcomp.sh.in: Likewise.
84452         * build-aux/csharpexec.sh.in: Likewise.
84453         * build-aux/install-reloc: Likewise.
84454         * build-aux/javacomp.sh.in: Likewise.
84455         * build-aux/javaexec.sh.in: Likewise.
84456         * build-aux/ldd.sh.in: Likewise.
84457         * build-aux/reloc-ldflags: Likewise.
84458         * build-aux/relocatable.sh.in: Likewise.
84459         * build-aux/x-to-1.in: Likewise.
84460         * check-module: Likewise.
84461         * config/srclistvars.sh: Likewise.
84462         * gnulib-tool: Likewise.
84463         * lib/acl-internal.h: Likewise.
84464         * lib/acl.c: Likewise.
84465         * lib/acl.h: Likewise.
84466         * lib/acl_entries.c: Likewise.
84467         * lib/areadlink-with-size.c: Likewise.
84468         * lib/areadlink.c: Likewise.
84469         * lib/areadlink.h: Likewise.
84470         * lib/argmatch.c: Likewise.
84471         * lib/argmatch.h: Likewise.
84472         * lib/argp-ba.c: Likewise.
84473         * lib/argp-eexst.c: Likewise.
84474         * lib/argp-fmtstream.c: Likewise.
84475         * lib/argp-fmtstream.h: Likewise.
84476         * lib/argp-fs-xinl.c: Likewise.
84477         * lib/argp-help.c: Likewise.
84478         * lib/argp-namefrob.h: Likewise.
84479         * lib/argp-parse.c: Likewise.
84480         * lib/argp-pin.c: Likewise.
84481         * lib/argp-pv.c: Likewise.
84482         * lib/argp-pvh.c: Likewise.
84483         * lib/argp-xinl.c: Likewise.
84484         * lib/argp.h: Likewise.
84485         * lib/at-func.c: Likewise.
84486         * lib/atanl.c: Likewise.
84487         * lib/backupfile.c: Likewise.
84488         * lib/backupfile.h: Likewise.
84489         * lib/basename.c: Likewise.
84490         * lib/binary-io.h: Likewise.
84491         * lib/byteswap.in.h: Likewise.
84492         * lib/c-stack.c: Likewise.
84493         * lib/c-stack.h: Likewise.
84494         * lib/c-strcasestr.c: Likewise.
84495         * lib/c-strcasestr.h: Likewise.
84496         * lib/c-strstr.c: Likewise.
84497         * lib/c-strstr.h: Likewise.
84498         * lib/c-strtod.c: Likewise.
84499         * lib/calloc.c: Likewise.
84500         * lib/canon-host.c: Likewise.
84501         * lib/canon-host.h: Likewise.
84502         * lib/canonicalize-lgpl.c: Likewise.
84503         * lib/canonicalize.c: Likewise.
84504         * lib/canonicalize.h: Likewise.
84505         * lib/ceil.c: Likewise.
84506         * lib/ceilf.c: Likewise.
84507         * lib/ceill.c: Likewise.
84508         * lib/chdir-long.c: Likewise.
84509         * lib/chdir-long.h: Likewise.
84510         * lib/chdir-safer.c: Likewise.
84511         * lib/chdir-safer.h: Likewise.
84512         * lib/chown.c: Likewise.
84513         * lib/classpath.c: Likewise.
84514         * lib/classpath.h: Likewise.
84515         * lib/clean-temp.c: Likewise.
84516         * lib/clean-temp.h: Likewise.
84517         * lib/cloexec.c: Likewise.
84518         * lib/close-stream.c: Likewise.
84519         * lib/closein.c: Likewise.
84520         * lib/closein.h: Likewise.
84521         * lib/closeout.c: Likewise.
84522         * lib/closeout.h: Likewise.
84523         * lib/concat-filename.c: Likewise.
84524         * lib/copy-file.c: Likewise.
84525         * lib/copy-file.h: Likewise.
84526         * lib/count-one-bits.h: Likewise.
84527         * lib/crc.c: Likewise.
84528         * lib/crc.h: Likewise.
84529         * lib/creat-safer.c: Likewise.
84530         * lib/csharpcomp.c: Likewise.
84531         * lib/csharpcomp.h: Likewise.
84532         * lib/csharpexec.c: Likewise.
84533         * lib/csharpexec.h: Likewise.
84534         * lib/cycle-check.c: Likewise.
84535         * lib/cycle-check.h: Likewise.
84536         * lib/diacrit.c: Likewise.
84537         * lib/diacrit.h: Likewise.
84538         * lib/diffseq.h: Likewise.
84539         * lib/dirchownmod.c: Likewise.
84540         * lib/dirent.in.h: Likewise.
84541         * lib/dirfd.c: Likewise.
84542         * lib/dirfd.h: Likewise.
84543         * lib/dirname.c: Likewise.
84544         * lib/dirname.h: Likewise.
84545         * lib/dummy.c: Likewise.
84546         * lib/dup-safer.c: Likewise.
84547         * lib/dup2.c: Likewise.
84548         * lib/eealloc.h: Likewise.
84549         * lib/error.c: Likewise.
84550         * lib/error.h: Likewise.
84551         * lib/euidaccess.c: Likewise.
84552         * lib/exclude.c: Likewise.
84553         * lib/exclude.h: Likewise.
84554         * lib/execute.c: Likewise.
84555         * lib/execute.h: Likewise.
84556         * lib/exitfail.c: Likewise.
84557         * lib/exitfail.h: Likewise.
84558         * lib/expl.c: Likewise.
84559         * lib/fatal-signal.c: Likewise.
84560         * lib/fatal-signal.h: Likewise.
84561         * lib/fbufmode.c: Likewise.
84562         * lib/fbufmode.h: Likewise.
84563         * lib/fchdir.c: Likewise.
84564         * lib/fchmodat.c: Likewise.
84565         * lib/fchownat.c: Likewise.
84566         * lib/fcntl--.h: Likewise.
84567         * lib/fcntl-safer.h: Likewise.
84568         * lib/fcntl.in.h: Likewise.
84569         * lib/fd-safer.c: Likewise.
84570         * lib/fflush.c: Likewise.
84571         * lib/file-has-acl.c: Likewise.
84572         * lib/file-set.c: Likewise.
84573         * lib/file-type.c: Likewise.
84574         * lib/file-type.h: Likewise.
84575         * lib/fileblocks.c: Likewise.
84576         * lib/filemode.c: Likewise.
84577         * lib/filemode.h: Likewise.
84578         * lib/filename.h: Likewise.
84579         * lib/filenamecat.c: Likewise.
84580         * lib/filenamecat.h: Likewise.
84581         * lib/findprog.c: Likewise.
84582         * lib/findprog.h: Likewise.
84583         * lib/float.in.h: Likewise.
84584         * lib/floor.c: Likewise.
84585         * lib/floorf.c: Likewise.
84586         * lib/floorl.c: Likewise.
84587         * lib/fopen-safer.c: Likewise.
84588         * lib/fopen.c: Likewise.
84589         * lib/fpending.c: Likewise.
84590         * lib/fpending.h: Likewise.
84591         * lib/fprintf.c: Likewise.
84592         * lib/fprintftime.h: Likewise.
84593         * lib/fpucw.h: Likewise.
84594         * lib/fpurge.c: Likewise.
84595         * lib/fpurge.h: Likewise.
84596         * lib/freadable.c: Likewise.
84597         * lib/freadable.h: Likewise.
84598         * lib/freadahead.c: Likewise.
84599         * lib/freadahead.h: Likewise.
84600         * lib/freading.c: Likewise.
84601         * lib/freading.h: Likewise.
84602         * lib/free.c: Likewise.
84603         * lib/freopen.c: Likewise.
84604         * lib/frexp.c: Likewise.
84605         * lib/frexpl.c: Likewise.
84606         * lib/fseek.c: Likewise.
84607         * lib/fseterr.c: Likewise.
84608         * lib/fseterr.h: Likewise.
84609         * lib/fstatat.c: Likewise.
84610         * lib/fstrcmp.c: Likewise.
84611         * lib/fstrcmp.h: Likewise.
84612         * lib/fsusage.c: Likewise.
84613         * lib/fsusage.h: Likewise.
84614         * lib/ftell.c: Likewise.
84615         * lib/ftello.c: Likewise.
84616         * lib/fts-cycle.c: Likewise.
84617         * lib/fts.c: Likewise.
84618         * lib/fts_.h: Likewise.
84619         * lib/full-read.c: Likewise.
84620         * lib/full-read.h: Likewise.
84621         * lib/full-write.c: Likewise.
84622         * lib/full-write.h: Likewise.
84623         * lib/fwritable.c: Likewise.
84624         * lib/fwritable.h: Likewise.
84625         * lib/fwriteerror.c: Likewise.
84626         * lib/fwriteerror.h: Likewise.
84627         * lib/fwriting.c: Likewise.
84628         * lib/fwriting.h: Likewise.
84629         * lib/gcd.c: Likewise.
84630         * lib/gcd.h: Likewise.
84631         * lib/getcwd.c: Likewise.
84632         * lib/getdate.h: Likewise.
84633         * lib/getdate.y: Likewise.
84634         * lib/getdomainname.c: Likewise.
84635         * lib/getdomainname.h: Likewise.
84636         * lib/getgroups.c: Likewise.
84637         * lib/gethostname.c: Likewise.
84638         * lib/gethrxtime.c: Likewise.
84639         * lib/gethrxtime.h: Likewise.
84640         * lib/getloadavg.c: Likewise.
84641         * lib/getndelim2.c: Likewise.
84642         * lib/getndelim2.h: Likewise.
84643         * lib/getnline.c: Likewise.
84644         * lib/getnline.h: Likewise.
84645         * lib/getopt.c: Likewise.
84646         * lib/getopt.in.h: Likewise.
84647         * lib/getopt1.c: Likewise.
84648         * lib/getopt_int.h: Likewise.
84649         * lib/getpagesize.h: Likewise.
84650         * lib/getsubopt.c: Likewise.
84651         * lib/gettime.c: Likewise.
84652         * lib/getugroups.c: Likewise.
84653         * lib/getugroups.h: Likewise.
84654         * lib/getusershell.c: Likewise.
84655         * lib/gl_anyavltree_list1.h: Likewise.
84656         * lib/gl_anyavltree_list2.h: Likewise.
84657         * lib/gl_anyhash_list1.h: Likewise.
84658         * lib/gl_anyhash_list2.h: Likewise.
84659         * lib/gl_anylinked_list1.h: Likewise.
84660         * lib/gl_anylinked_list2.h: Likewise.
84661         * lib/gl_anyrbtree_list1.h: Likewise.
84662         * lib/gl_anyrbtree_list2.h: Likewise.
84663         * lib/gl_anytree_list1.h: Likewise.
84664         * lib/gl_anytree_list2.h: Likewise.
84665         * lib/gl_anytree_oset.h: Likewise.
84666         * lib/gl_anytreehash_list1.h: Likewise.
84667         * lib/gl_anytreehash_list2.h: Likewise.
84668         * lib/gl_array_list.c: Likewise.
84669         * lib/gl_array_list.h: Likewise.
84670         * lib/gl_array_oset.c: Likewise.
84671         * lib/gl_array_oset.h: Likewise.
84672         * lib/gl_avltree_list.c: Likewise.
84673         * lib/gl_avltree_list.h: Likewise.
84674         * lib/gl_avltree_oset.c: Likewise.
84675         * lib/gl_avltree_oset.h: Likewise.
84676         * lib/gl_avltreehash_list.c: Likewise.
84677         * lib/gl_avltreehash_list.h: Likewise.
84678         * lib/gl_carray_list.c: Likewise.
84679         * lib/gl_carray_list.h: Likewise.
84680         * lib/gl_linked_list.c: Likewise.
84681         * lib/gl_linked_list.h: Likewise.
84682         * lib/gl_linkedhash_list.c: Likewise.
84683         * lib/gl_linkedhash_list.h: Likewise.
84684         * lib/gl_list.c: Likewise.
84685         * lib/gl_list.h: Likewise.
84686         * lib/gl_oset.c: Likewise.
84687         * lib/gl_oset.h: Likewise.
84688         * lib/gl_rbtree_list.c: Likewise.
84689         * lib/gl_rbtree_list.h: Likewise.
84690         * lib/gl_rbtree_oset.c: Likewise.
84691         * lib/gl_rbtree_oset.h: Likewise.
84692         * lib/gl_rbtreehash_list.c: Likewise.
84693         * lib/gl_rbtreehash_list.h: Likewise.
84694         * lib/gl_sublist.c: Likewise.
84695         * lib/gl_sublist.h: Likewise.
84696         * lib/group-member.c: Likewise.
84697         * lib/group-member.h: Likewise.
84698         * lib/hard-locale.c: Likewise.
84699         * lib/hard-locale.h: Likewise.
84700         * lib/hash-pjw.c: Likewise.
84701         * lib/hash-pjw.h: Likewise.
84702         * lib/hash-triple.c: Likewise.
84703         * lib/hash.c: Likewise.
84704         * lib/hash.h: Likewise.
84705         * lib/human.c: Likewise.
84706         * lib/human.h: Likewise.
84707         * lib/i-ring.c: Likewise.
84708         * lib/i-ring.h: Likewise.
84709         * lib/idcache.c: Likewise.
84710         * lib/imaxabs.c: Likewise.
84711         * lib/imaxdiv.c: Likewise.
84712         * lib/inet_pton.c: Likewise.
84713         * lib/inet_pton.h: Likewise.
84714         * lib/intprops.h: Likewise.
84715         * lib/inttostr.c: Likewise.
84716         * lib/inttostr.h: Likewise.
84717         * lib/inttypes.in.h: Likewise.
84718         * lib/isapipe.c: Likewise.
84719         * lib/isdir.c: Likewise.
84720         * lib/isnan.c: Likewise.
84721         * lib/isnan.h: Likewise.
84722         * lib/isnanf.c: Likewise.
84723         * lib/isnanf.h: Likewise.
84724         * lib/isnanl-nolibm.h: Likewise.
84725         * lib/isnanl.c: Likewise.
84726         * lib/isnanl.h: Likewise.
84727         * lib/javacomp.c: Likewise.
84728         * lib/javacomp.h: Likewise.
84729         * lib/javaexec.c: Likewise.
84730         * lib/javaexec.h: Likewise.
84731         * lib/javaversion.c: Likewise.
84732         * lib/javaversion.h: Likewise.
84733         * lib/javaversion.java: Likewise.
84734         * lib/lbrkprop.h: Likewise.
84735         * lib/lchmod.h: Likewise.
84736         * lib/lchown.c: Likewise.
84737         * lib/ldexpl.c: Likewise.
84738         * lib/linebreak.c: Likewise.
84739         * lib/linebreak.h: Likewise.
84740         * lib/linebuffer.c: Likewise.
84741         * lib/linebuffer.h: Likewise.
84742         * lib/locale.in.h: Likewise.
84743         * lib/logl.c: Likewise.
84744         * lib/long-options.c: Likewise.
84745         * lib/long-options.h: Likewise.
84746         * lib/lstat.c: Likewise.
84747         * lib/lstat.h: Likewise.
84748         * lib/math.in.h: Likewise.
84749         * lib/mbchar.c: Likewise.
84750         * lib/mbchar.h: Likewise.
84751         * lib/mbfile.h: Likewise.
84752         * lib/mbiter.h: Likewise.
84753         * lib/mbscasecmp.c: Likewise.
84754         * lib/mbscasestr.c: Likewise.
84755         * lib/mbschr.c: Likewise.
84756         * lib/mbscspn.c: Likewise.
84757         * lib/mbslen.c: Likewise.
84758         * lib/mbsncasecmp.c: Likewise.
84759         * lib/mbsnlen.c: Likewise.
84760         * lib/mbspbrk.c: Likewise.
84761         * lib/mbspcasecmp.c: Likewise.
84762         * lib/mbsrchr.c: Likewise.
84763         * lib/mbssep.c: Likewise.
84764         * lib/mbsspn.c: Likewise.
84765         * lib/mbsstr.c: Likewise.
84766         * lib/mbstok_r.c: Likewise.
84767         * lib/mbswidth.c: Likewise.
84768         * lib/mbswidth.h: Likewise.
84769         * lib/mbuiter.h: Likewise.
84770         * lib/memcasecmp.c: Likewise.
84771         * lib/memcasecmp.h: Likewise.
84772         * lib/memchr.c: Likewise.
84773         * lib/memcmp.c: Likewise.
84774         * lib/memcoll.c: Likewise.
84775         * lib/memcoll.h: Likewise.
84776         * lib/memcpy.c: Likewise.
84777         * lib/memrchr.c: Likewise.
84778         * lib/mkancesdirs.c: Likewise.
84779         * lib/mkdir-p.c: Likewise.
84780         * lib/mkdir-p.h: Likewise.
84781         * lib/mkdir.c: Likewise.
84782         * lib/mkdirat.c: Likewise.
84783         * lib/mkdtemp.c: Likewise.
84784         * lib/mkstemp-safer.c: Likewise.
84785         * lib/mkstemp.c: Likewise.
84786         * lib/modechange.c: Likewise.
84787         * lib/modechange.h: Likewise.
84788         * lib/mountlist.c: Likewise.
84789         * lib/mountlist.h: Likewise.
84790         * lib/mpsort.c: Likewise.
84791         * lib/nanosleep.c: Likewise.
84792         * lib/obstack.c: Likewise.
84793         * lib/obstack.h: Likewise.
84794         * lib/open-safer.c: Likewise.
84795         * lib/open.c: Likewise.
84796         * lib/openat-die.c: Likewise.
84797         * lib/openat-priv.h: Likewise.
84798         * lib/openat-proc.c: Likewise.
84799         * lib/openat.c: Likewise.
84800         * lib/openat.h: Likewise.
84801         * lib/pagealign_alloc.c: Likewise.
84802         * lib/pagealign_alloc.h: Likewise.
84803         * lib/physmem.c: Likewise.
84804         * lib/physmem.h: Likewise.
84805         * lib/pipe-safer.c: Likewise.
84806         * lib/pipe.c: Likewise.
84807         * lib/pipe.h: Likewise.
84808         * lib/posixtm.c: Likewise.
84809         * lib/posixtm.h: Likewise.
84810         * lib/posixver.c: Likewise.
84811         * lib/printf-frexp.c: Likewise.
84812         * lib/printf-frexp.h: Likewise.
84813         * lib/printf-frexpl.c: Likewise.
84814         * lib/printf-frexpl.h: Likewise.
84815         * lib/printf.c: Likewise.
84816         * lib/progname.c: Likewise.
84817         * lib/progname.h: Likewise.
84818         * lib/progreloc.c: Likewise.
84819         * lib/putenv.c: Likewise.
84820         * lib/quote.c: Likewise.
84821         * lib/quote.h: Likewise.
84822         * lib/quotearg.c: Likewise.
84823         * lib/quotearg.h: Likewise.
84824         * lib/raise.c: Likewise.
84825         * lib/readline.c: Likewise.
84826         * lib/readline.h: Likewise.
84827         * lib/readlink.c: Likewise.
84828         * lib/readtokens.c: Likewise.
84829         * lib/readtokens.h: Likewise.
84830         * lib/readtokens0.c: Likewise.
84831         * lib/readtokens0.h: Likewise.
84832         * lib/readutmp.c: Likewise.
84833         * lib/readutmp.h: Likewise.
84834         * lib/realloc.c: Likewise.
84835         * lib/relocwrapper.c: Likewise.
84836         * lib/rename-dest-slash.c: Likewise.
84837         * lib/rename.c: Likewise.
84838         * lib/rmdir.c: Likewise.
84839         * lib/rpmatch.c: Likewise.
84840         * lib/safe-read.c: Likewise.
84841         * lib/safe-read.h: Likewise.
84842         * lib/safe-write.c: Likewise.
84843         * lib/safe-write.h: Likewise.
84844         * lib/same-inode.h: Likewise.
84845         * lib/same.c: Likewise.
84846         * lib/same.h: Likewise.
84847         * lib/save-cwd.c: Likewise.
84848         * lib/save-cwd.h: Likewise.
84849         * lib/savedir.c: Likewise.
84850         * lib/savedir.h: Likewise.
84851         * lib/savewd.c: Likewise.
84852         * lib/savewd.h: Likewise.
84853         * lib/search.in.h: Likewise.
84854         * lib/setenv.c: Likewise.
84855         * lib/setenv.h: Likewise.
84856         * lib/settime.c: Likewise.
84857         * lib/sh-quote.c: Likewise.
84858         * lib/sh-quote.h: Likewise.
84859         * lib/sig2str.c: Likewise.
84860         * lib/sig2str.h: Likewise.
84861         * lib/signal.in.h: Likewise.
84862         * lib/signbitd.c: Likewise.
84863         * lib/signbitf.c: Likewise.
84864         * lib/signbitl.c: Likewise.
84865         * lib/sigprocmask.c: Likewise.
84866         * lib/sincosl.c: Likewise.
84867         * lib/sleep.c: Likewise.
84868         * lib/sprintf.c: Likewise.
84869         * lib/sqrtl.c: Likewise.
84870         * lib/stat-time.h: Likewise.
84871         * lib/stdio--.h: Likewise.
84872         * lib/stdio-safer.h: Likewise.
84873         * lib/stdlib--.h: Likewise.
84874         * lib/stdlib-safer.h: Likewise.
84875         * lib/stdlib.in.h: Likewise.
84876         * lib/stpcpy.c: Likewise.
84877         * lib/stpncpy.c: Likewise.
84878         * lib/strchrnul.c: Likewise.
84879         * lib/strcspn.c: Likewise.
84880         * lib/strerror.c: Likewise.
84881         * lib/strftime.c: Likewise.
84882         * lib/strftime.h: Likewise.
84883         * lib/striconveh.c: Likewise.
84884         * lib/striconveh.h: Likewise.
84885         * lib/striconveha.c: Likewise.
84886         * lib/striconveha.h: Likewise.
84887         * lib/stripslash.c: Likewise.
84888         * lib/strnlen1.c: Likewise.
84889         * lib/strnlen1.h: Likewise.
84890         * lib/strtod.c: Likewise.
84891         * lib/strtoimax.c: Likewise.
84892         * lib/strtok_r.c: Likewise.
84893         * lib/strtol.c: Likewise.
84894         * lib/strtoll.c: Likewise.
84895         * lib/strtoul.c: Likewise.
84896         * lib/strtoull.c: Likewise.
84897         * lib/sysexits.in.h: Likewise.
84898         * lib/tempname.c: Likewise.
84899         * lib/tempname.h: Likewise.
84900         * lib/timespec.h: Likewise.
84901         * lib/tls.c: Likewise.
84902         * lib/tls.h: Likewise.
84903         * lib/tmpdir.c: Likewise.
84904         * lib/tmpdir.h: Likewise.
84905         * lib/tmpfile-safer.c: Likewise.
84906         * lib/tmpfile.c: Likewise.
84907         * lib/trigl.c: Likewise.
84908         * lib/trigl.h: Likewise.
84909         * lib/trim.c: Likewise.
84910         * lib/trim.h: Likewise.
84911         * lib/trunc.c: Likewise.
84912         * lib/truncf.c: Likewise.
84913         * lib/truncl.c: Likewise.
84914         * lib/tsearch.c: Likewise.
84915         * lib/unicodeio.c: Likewise.
84916         * lib/unicodeio.h: Likewise.
84917         * lib/unistd--.h: Likewise.
84918         * lib/unistd-safer.h: Likewise.
84919         * lib/unistdio/ulc-fprintf.c: Likewise.
84920         * lib/unistdio/ulc-vfprintf.c: Likewise.
84921         * lib/unlinkdir.c: Likewise.
84922         * lib/unlinkdir.h: Likewise.
84923         * lib/unlocked-io.h: Likewise.
84924         * lib/unsetenv.c: Likewise.
84925         * lib/userspec.c: Likewise.
84926         * lib/utime.c: Likewise.
84927         * lib/utimecmp.c: Likewise.
84928         * lib/utimecmp.h: Likewise.
84929         * lib/utimens.c: Likewise.
84930         * lib/verify.h: Likewise.
84931         * lib/verror.c: Likewise.
84932         * lib/verror.h: Likewise.
84933         * lib/version-etc-fsf.c: Likewise.
84934         * lib/version-etc.c: Likewise.
84935         * lib/version-etc.h: Likewise.
84936         * lib/vfprintf.c: Likewise.
84937         * lib/vprintf.c: Likewise.
84938         * lib/vsprintf.c: Likewise.
84939         * lib/w32spawn.h: Likewise.
84940         * lib/wait-process.c: Likewise.
84941         * lib/wait-process.h: Likewise.
84942         * lib/wcwidth.c: Likewise.
84943         * lib/write-any-file.c: Likewise.
84944         * lib/xalloc-die.c: Likewise.
84945         * lib/xalloc.h: Likewise.
84946         * lib/xasprintf.c: Likewise.
84947         * lib/xgetcwd.c: Likewise.
84948         * lib/xgetcwd.h: Likewise.
84949         * lib/xgetdomainname.c: Likewise.
84950         * lib/xgetdomainname.h: Likewise.
84951         * lib/xgethostname.c: Likewise.
84952         * lib/xmalloc.c: Likewise.
84953         * lib/xmalloca.c: Likewise.
84954         * lib/xmalloca.h: Likewise.
84955         * lib/xmemcoll.c: Likewise.
84956         * lib/xnanosleep.c: Likewise.
84957         * lib/xreadlink.c: Likewise.
84958         * lib/xreadlink.h: Likewise.
84959         * lib/xsetenv.c: Likewise.
84960         * lib/xsetenv.h: Likewise.
84961         * lib/xstriconv.c: Likewise.
84962         * lib/xstriconv.h: Likewise.
84963         * lib/xstrndup.c: Likewise.
84964         * lib/xstrndup.h: Likewise.
84965         * lib/xstrtod.c: Likewise.
84966         * lib/xstrtod.h: Likewise.
84967         * lib/xstrtol-error.c: Likewise.
84968         * lib/xstrtol.c: Likewise.
84969         * lib/xstrtol.h: Likewise.
84970         * lib/xtime.h: Likewise.
84971         * lib/xvasprintf.c: Likewise.
84972         * lib/xvasprintf.h: Likewise.
84973         * lib/yesno.c: Likewise.
84974         * lib/yesno.h: Likewise.
84975         * posix-modules: Likewise.
84976         * tests/test-alloca-opt.c: Likewise.
84977         * tests/test-arcfour.c: Likewise.
84978         * tests/test-arctwo.c: Likewise.
84979         * tests/test-argmatch.c: Likewise.
84980         * tests/test-argp-2.sh: Likewise.
84981         * tests/test-argp.c: Likewise.
84982         * tests/test-arpa_inet.c: Likewise.
84983         * tests/test-array_list.c: Likewise.
84984         * tests/test-array_oset.c: Likewise.
84985         * tests/test-atexit.c: Likewise.
84986         * tests/test-avltree_list.c: Likewise.
84987         * tests/test-avltree_oset.c: Likewise.
84988         * tests/test-avltreehash_list.c: Likewise.
84989         * tests/test-base64.c: Likewise.
84990         * tests/test-binary-io.c: Likewise.
84991         * tests/test-byteswap.c: Likewise.
84992         * tests/test-c-ctype.c: Likewise.
84993         * tests/test-c-strcasecmp.c: Likewise.
84994         * tests/test-c-strcasestr.c: Likewise.
84995         * tests/test-c-strncasecmp.c: Likewise.
84996         * tests/test-c-strstr.c: Likewise.
84997         * tests/test-canonicalize-lgpl.c: Likewise.
84998         * tests/test-canonicalize.c: Likewise.
84999         * tests/test-carray_list.c: Likewise.
85000         * tests/test-ceilf.c: Likewise.
85001         * tests/test-ceill.c: Likewise.
85002         * tests/test-count-one-bits.c: Likewise.
85003         * tests/test-crc.c: Likewise.
85004         * tests/test-dirname.c: Likewise.
85005         * tests/test-fbufmode.c: Likewise.
85006         * tests/test-fcntl.c: Likewise.
85007         * tests/test-fflush.c: Likewise.
85008         * tests/test-floorf.c: Likewise.
85009         * tests/test-floorl.c: Likewise.
85010         * tests/test-fopen.c: Likewise.
85011         * tests/test-fprintf-posix.c: Likewise.
85012         * tests/test-fprintf-posix.h: Likewise.
85013         * tests/test-fpurge.c: Likewise.
85014         * tests/test-freadable.c: Likewise.
85015         * tests/test-freadahead.c: Likewise.
85016         * tests/test-freading.c: Likewise.
85017         * tests/test-freopen.c: Likewise.
85018         * tests/test-frexp.c: Likewise.
85019         * tests/test-frexpl.c: Likewise.
85020         * tests/test-fseek.c: Likewise.
85021         * tests/test-fseeko.c: Likewise.
85022         * tests/test-fseterr.c: Likewise.
85023         * tests/test-fstrcmp.c: Likewise.
85024         * tests/test-ftell.c: Likewise.
85025         * tests/test-ftello.c: Likewise.
85026         * tests/test-fwritable.c: Likewise.
85027         * tests/test-fwriting.c: Likewise.
85028         * tests/test-getaddrinfo.c: Likewise.
85029         * tests/test-getpass.c: Likewise.
85030         * tests/test-gettimeofday.c: Likewise.
85031         * tests/test-hmac-md5.c: Likewise.
85032         * tests/test-hmac-sha1.c: Likewise.
85033         * tests/test-iconv.c: Likewise.
85034         * tests/test-iconvme.c: Likewise.
85035         * tests/test-inttypes.c: Likewise.
85036         * tests/test-isnan.c: Likewise.
85037         * tests/test-isnanf.c: Likewise.
85038         * tests/test-isnanl-nolibm.c: Likewise.
85039         * tests/test-isnanl.c: Likewise.
85040         * tests/test-isnanl.h: Likewise.
85041         * tests/test-ldexpl.c: Likewise.
85042         * tests/test-linked_list.c: Likewise.
85043         * tests/test-linkedhash_list.c: Likewise.
85044         * tests/test-locale.c: Likewise.
85045         * tests/test-localename.c: Likewise.
85046         * tests/test-lock.c: Likewise.
85047         * tests/test-lseek.c: Likewise.
85048         * tests/test-malloca.c: Likewise.
85049         * tests/test-math.c: Likewise.
85050         * tests/test-mbscasecmp.c: Likewise.
85051         * tests/test-mbscasestr1.c: Likewise.
85052         * tests/test-mbscasestr2.c: Likewise.
85053         * tests/test-mbscasestr3.c: Likewise.
85054         * tests/test-mbscasestr4.c: Likewise.
85055         * tests/test-mbschr.c: Likewise.
85056         * tests/test-mbscspn.c: Likewise.
85057         * tests/test-mbsncasecmp.c: Likewise.
85058         * tests/test-mbspbrk.c: Likewise.
85059         * tests/test-mbspcasecmp.c: Likewise.
85060         * tests/test-mbsrchr.c: Likewise.
85061         * tests/test-mbsspn.c: Likewise.
85062         * tests/test-mbsstr1.c: Likewise.
85063         * tests/test-mbsstr2.c: Likewise.
85064         * tests/test-mbsstr3.c: Likewise.
85065         * tests/test-md5.c: Likewise.
85066         * tests/test-memmem.c: Likewise.
85067         * tests/test-netinet_in.c: Likewise.
85068         * tests/test-open.c: Likewise.
85069         * tests/test-printf-frexp.c: Likewise.
85070         * tests/test-printf-frexpl.c: Likewise.
85071         * tests/test-printf-posix.c: Likewise.
85072         * tests/test-printf-posix.h: Likewise.
85073         * tests/test-rbtree_list.c: Likewise.
85074         * tests/test-rbtree_oset.c: Likewise.
85075         * tests/test-rbtreehash_list.c: Likewise.
85076         * tests/test-read-file.c: Likewise.
85077         * tests/test-rijndael.c: Likewise.
85078         * tests/test-search.c: Likewise.
85079         * tests/test-signbit.c: Likewise.
85080         * tests/test-sleep.c: Likewise.
85081         * tests/test-snprintf-posix.c: Likewise.
85082         * tests/test-snprintf-posix.h: Likewise.
85083         * tests/test-snprintf.c: Likewise.
85084         * tests/test-sprintf-posix.c: Likewise.
85085         * tests/test-sprintf-posix.h: Likewise.
85086         * tests/test-stat-time.c: Likewise.
85087         * tests/test-stdbool.c: Likewise.
85088         * tests/test-stdint.c: Likewise.
85089         * tests/test-stdio.c: Likewise.
85090         * tests/test-stdlib.c: Likewise.
85091         * tests/test-stpncpy.c: Likewise.
85092         * tests/test-strcasestr.c: Likewise.
85093         * tests/test-striconv.c: Likewise.
85094         * tests/test-striconveh.c: Likewise.
85095         * tests/test-striconveha.c: Likewise.
85096         * tests/test-string.c: Likewise.
85097         * tests/test-sys_select.c: Likewise.
85098         * tests/test-sys_socket.c: Likewise.
85099         * tests/test-sys_stat.c: Likewise.
85100         * tests/test-sys_time.c: Likewise.
85101         * tests/test-sysexits.c: Likewise.
85102         * tests/test-time.c: Likewise.
85103         * tests/test-tls.c: Likewise.
85104         * tests/test-trunc.c: Likewise.
85105         * tests/test-truncf.c: Likewise.
85106         * tests/test-truncl.c: Likewise.
85107         * tests/test-unistd.c: Likewise.
85108         * tests/test-vasnprintf-posix.c: Likewise.
85109         * tests/test-vasnprintf-posix2.c: Likewise.
85110         * tests/test-vasnprintf.c: Likewise.
85111         * tests/test-vasprintf-posix.c: Likewise.
85112         * tests/test-vasprintf.c: Likewise.
85113         * tests/test-verify.c: Likewise.
85114         * tests/test-vfprintf-posix.c: Likewise.
85115         * tests/test-vprintf-posix.c: Likewise.
85116         * tests/test-vsnprintf-posix.c: Likewise.
85117         * tests/test-vsnprintf.c: Likewise.
85118         * tests/test-vsprintf-posix.c: Likewise.
85119         * tests/test-wchar.c: Likewise.
85120         * tests/test-wctype.c: Likewise.
85121         * tests/test-wcwidth.c: Likewise.
85122         * tests/test-xstrtol.c: Likewise.
85123         * tests/test-xvasprintf.c: Likewise.
85124         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85125         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85126         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85127         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85128         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85129         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85130         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85131         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85132         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85133         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85134         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85135         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85136         * tests/uniname/test-uninames.c: Likewise.
85137         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85138         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85139         * tests/unistdio/test-u16-printf1.h: Likewise.
85140         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85141         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85142         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85143         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85144         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85145         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85146         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85147         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85148         * tests/unistdio/test-u32-printf1.h: Likewise.
85149         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85150         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85151         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85152         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85153         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85154         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85155         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85156         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85157         * tests/unistdio/test-u8-printf1.h: Likewise.
85158         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85159         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85160         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85161         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85162         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85163         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85164         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85165         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85166         * tests/unistdio/test-ulc-printf1.h: Likewise.
85167         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85168         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85169         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85170         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85171         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85172         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85173         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85174         * tests/uniwidth/test-u16-width.c: Likewise.
85175         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85176         * tests/uniwidth/test-u32-width.c: Likewise.
85177         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85178         * tests/uniwidth/test-u8-width.c: Likewise.
85179         * tests/uniwidth/test-uc_width.c: Likewise.
85180         * config/srclist-update: Likewise.
85181         (fixlicense): Update to GPLv3+.
85183         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85184         * tests/test-tsearch.c: Change copyright notice.
85186         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85187         * lib/c-strcaseeq.h: Change copyright notice.
85188         * lib/streq.h: Likewise.
85189         * lib/uniconv.h: Likewise.
85190         * lib/uniconv/u-conv-from-enc.h: Likewise.
85191         * lib/uniconv/u-conv-to-enc.h: Likewise.
85192         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85193         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85194         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85195         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85196         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85197         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85198         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85199         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85200         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85201         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85202         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85203         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85204         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85205         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85206         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85207         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85208         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85209         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85210         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85211         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85212         * lib/uniname.h: Likewise.
85213         * lib/uniname/uniname.c: Likewise.
85214         * lib/unistdio.h: Likewise.
85215         * lib/unistdio/u-asnprintf.h: Likewise.
85216         * lib/unistdio/u-asprintf.h: Likewise.
85217         * lib/unistdio/u-printf-args.c: Likewise.
85218         * lib/unistdio/u-printf-args.h: Likewise.
85219         * lib/unistdio/u-printf-parse.h: Likewise.
85220         * lib/unistdio/u-snprintf.h: Likewise.
85221         * lib/unistdio/u-sprintf.h: Likewise.
85222         * lib/unistdio/u-vasprintf.h: Likewise.
85223         * lib/unistdio/u-vsnprintf.h: Likewise.
85224         * lib/unistdio/u-vsprintf.h: Likewise.
85225         * lib/unistdio/u16-asnprintf.c: Likewise.
85226         * lib/unistdio/u16-asprintf.c: Likewise.
85227         * lib/unistdio/u16-printf-parse.c: Likewise.
85228         * lib/unistdio/u16-snprintf.c: Likewise.
85229         * lib/unistdio/u16-sprintf.c: Likewise.
85230         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85231         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85232         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85233         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85234         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85235         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85236         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85237         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85238         * lib/unistdio/u16-vasnprintf.c: Likewise.
85239         * lib/unistdio/u16-vasprintf.c: Likewise.
85240         * lib/unistdio/u16-vsnprintf.c: Likewise.
85241         * lib/unistdio/u16-vsprintf.c: Likewise.
85242         * lib/unistdio/u32-asnprintf.c: Likewise.
85243         * lib/unistdio/u32-asprintf.c: Likewise.
85244         * lib/unistdio/u32-printf-parse.c: Likewise.
85245         * lib/unistdio/u32-snprintf.c: Likewise.
85246         * lib/unistdio/u32-sprintf.c: Likewise.
85247         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85248         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85249         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85250         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85251         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85252         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85253         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85254         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85255         * lib/unistdio/u32-vasnprintf.c: Likewise.
85256         * lib/unistdio/u32-vasprintf.c: Likewise.
85257         * lib/unistdio/u32-vsnprintf.c: Likewise.
85258         * lib/unistdio/u32-vsprintf.c: Likewise.
85259         * lib/unistdio/u8-asnprintf.c: Likewise.
85260         * lib/unistdio/u8-asprintf.c: Likewise.
85261         * lib/unistdio/u8-printf-parse.c: Likewise.
85262         * lib/unistdio/u8-snprintf.c: Likewise.
85263         * lib/unistdio/u8-sprintf.c: Likewise.
85264         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85265         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85266         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85267         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85268         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85269         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85270         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85271         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85272         * lib/unistdio/u8-vasnprintf.c: Likewise.
85273         * lib/unistdio/u8-vasprintf.c: Likewise.
85274         * lib/unistdio/u8-vsnprintf.c: Likewise.
85275         * lib/unistdio/u8-vsprintf.c: Likewise.
85276         * lib/unistdio/ulc-asnprintf.c: Likewise.
85277         * lib/unistdio/ulc-asprintf.c: Likewise.
85278         * lib/unistdio/ulc-printf-parse.c: Likewise.
85279         * lib/unistdio/ulc-snprintf.c: Likewise.
85280         * lib/unistdio/ulc-sprintf.c: Likewise.
85281         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85282         * lib/unistdio/ulc-vasprintf.c: Likewise.
85283         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85284         * lib/unistdio/ulc-vsprintf.c: Likewise.
85285         * lib/unistr.h: Likewise.
85286         * lib/unistr/u-cpy-alloc.h: Likewise.
85287         * lib/unistr/u-cpy.h: Likewise.
85288         * lib/unistr/u-endswith.h: Likewise.
85289         * lib/unistr/u-move.h: Likewise.
85290         * lib/unistr/u-set.h: Likewise.
85291         * lib/unistr/u-startswith.h: Likewise.
85292         * lib/unistr/u-stpcpy.h: Likewise.
85293         * lib/unistr/u-stpncpy.h: Likewise.
85294         * lib/unistr/u-strcat.h: Likewise.
85295         * lib/unistr/u-strcpy.h: Likewise.
85296         * lib/unistr/u-strcspn.h: Likewise.
85297         * lib/unistr/u-strdup.h: Likewise.
85298         * lib/unistr/u-strlen.h: Likewise.
85299         * lib/unistr/u-strncat.h: Likewise.
85300         * lib/unistr/u-strncpy.h: Likewise.
85301         * lib/unistr/u-strnlen.h: Likewise.
85302         * lib/unistr/u-strpbrk.h: Likewise.
85303         * lib/unistr/u-strspn.h: Likewise.
85304         * lib/unistr/u-strstr.h: Likewise.
85305         * lib/unistr/u-strtok.h: Likewise.
85306         * lib/unistr/u16-check.c: Likewise.
85307         * lib/unistr/u16-chr.c: Likewise.
85308         * lib/unistr/u16-cmp.c: Likewise.
85309         * lib/unistr/u16-cpy-alloc.c: Likewise.
85310         * lib/unistr/u16-cpy.c: Likewise.
85311         * lib/unistr/u16-endswith.c: Likewise.
85312         * lib/unistr/u16-mblen.c: Likewise.
85313         * lib/unistr/u16-mbsnlen.c: Likewise.
85314         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85315         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85316         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85317         * lib/unistr/u16-mbtouc.c: Likewise.
85318         * lib/unistr/u16-mbtoucr.c: Likewise.
85319         * lib/unistr/u16-move.c: Likewise.
85320         * lib/unistr/u16-next.c: Likewise.
85321         * lib/unistr/u16-prev.c: Likewise.
85322         * lib/unistr/u16-set.c: Likewise.
85323         * lib/unistr/u16-startswith.c: Likewise.
85324         * lib/unistr/u16-stpcpy.c: Likewise.
85325         * lib/unistr/u16-stpncpy.c: Likewise.
85326         * lib/unistr/u16-strcat.c: Likewise.
85327         * lib/unistr/u16-strchr.c: Likewise.
85328         * lib/unistr/u16-strcmp.c: Likewise.
85329         * lib/unistr/u16-strcpy.c: Likewise.
85330         * lib/unistr/u16-strcspn.c: Likewise.
85331         * lib/unistr/u16-strdup.c: Likewise.
85332         * lib/unistr/u16-strlen.c: Likewise.
85333         * lib/unistr/u16-strmblen.c: Likewise.
85334         * lib/unistr/u16-strmbtouc.c: Likewise.
85335         * lib/unistr/u16-strncat.c: Likewise.
85336         * lib/unistr/u16-strncmp.c: Likewise.
85337         * lib/unistr/u16-strncpy.c: Likewise.
85338         * lib/unistr/u16-strnlen.c: Likewise.
85339         * lib/unistr/u16-strpbrk.c: Likewise.
85340         * lib/unistr/u16-strrchr.c: Likewise.
85341         * lib/unistr/u16-strspn.c: Likewise.
85342         * lib/unistr/u16-strstr.c: Likewise.
85343         * lib/unistr/u16-strtok.c: Likewise.
85344         * lib/unistr/u16-to-u32.c: Likewise.
85345         * lib/unistr/u16-to-u8.c: Likewise.
85346         * lib/unistr/u16-uctomb-aux.c: Likewise.
85347         * lib/unistr/u16-uctomb.c: Likewise.
85348         * lib/unistr/u32-check.c: Likewise.
85349         * lib/unistr/u32-chr.c: Likewise.
85350         * lib/unistr/u32-cmp.c: Likewise.
85351         * lib/unistr/u32-cpy-alloc.c: Likewise.
85352         * lib/unistr/u32-cpy.c: Likewise.
85353         * lib/unistr/u32-endswith.c: Likewise.
85354         * lib/unistr/u32-mblen.c: Likewise.
85355         * lib/unistr/u32-mbsnlen.c: Likewise.
85356         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85357         * lib/unistr/u32-mbtouc.c: Likewise.
85358         * lib/unistr/u32-mbtoucr.c: Likewise.
85359         * lib/unistr/u32-move.c: Likewise.
85360         * lib/unistr/u32-next.c: Likewise.
85361         * lib/unistr/u32-prev.c: Likewise.
85362         * lib/unistr/u32-set.c: Likewise.
85363         * lib/unistr/u32-startswith.c: Likewise.
85364         * lib/unistr/u32-stpcpy.c: Likewise.
85365         * lib/unistr/u32-stpncpy.c: Likewise.
85366         * lib/unistr/u32-strcat.c: Likewise.
85367         * lib/unistr/u32-strchr.c: Likewise.
85368         * lib/unistr/u32-strcmp.c: Likewise.
85369         * lib/unistr/u32-strcpy.c: Likewise.
85370         * lib/unistr/u32-strcspn.c: Likewise.
85371         * lib/unistr/u32-strdup.c: Likewise.
85372         * lib/unistr/u32-strlen.c: Likewise.
85373         * lib/unistr/u32-strmblen.c: Likewise.
85374         * lib/unistr/u32-strmbtouc.c: Likewise.
85375         * lib/unistr/u32-strncat.c: Likewise.
85376         * lib/unistr/u32-strncmp.c: Likewise.
85377         * lib/unistr/u32-strncpy.c: Likewise.
85378         * lib/unistr/u32-strnlen.c: Likewise.
85379         * lib/unistr/u32-strpbrk.c: Likewise.
85380         * lib/unistr/u32-strrchr.c: Likewise.
85381         * lib/unistr/u32-strspn.c: Likewise.
85382         * lib/unistr/u32-strstr.c: Likewise.
85383         * lib/unistr/u32-strtok.c: Likewise.
85384         * lib/unistr/u32-to-u16.c: Likewise.
85385         * lib/unistr/u32-to-u8.c: Likewise.
85386         * lib/unistr/u32-uctomb.c: Likewise.
85387         * lib/unistr/u8-check.c: Likewise.
85388         * lib/unistr/u8-chr.c: Likewise.
85389         * lib/unistr/u8-cmp.c: Likewise.
85390         * lib/unistr/u8-cpy-alloc.c: Likewise.
85391         * lib/unistr/u8-cpy.c: Likewise.
85392         * lib/unistr/u8-endswith.c: Likewise.
85393         * lib/unistr/u8-mblen.c: Likewise.
85394         * lib/unistr/u8-mbsnlen.c: Likewise.
85395         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85396         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85397         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85398         * lib/unistr/u8-mbtouc.c: Likewise.
85399         * lib/unistr/u8-mbtoucr.c: Likewise.
85400         * lib/unistr/u8-move.c: Likewise.
85401         * lib/unistr/u8-next.c: Likewise.
85402         * lib/unistr/u8-prev.c: Likewise.
85403         * lib/unistr/u8-set.c: Likewise.
85404         * lib/unistr/u8-startswith.c: Likewise.
85405         * lib/unistr/u8-stpcpy.c: Likewise.
85406         * lib/unistr/u8-stpncpy.c: Likewise.
85407         * lib/unistr/u8-strcat.c: Likewise.
85408         * lib/unistr/u8-strchr.c: Likewise.
85409         * lib/unistr/u8-strcmp.c: Likewise.
85410         * lib/unistr/u8-strcpy.c: Likewise.
85411         * lib/unistr/u8-strcspn.c: Likewise.
85412         * lib/unistr/u8-strdup.c: Likewise.
85413         * lib/unistr/u8-strlen.c: Likewise.
85414         * lib/unistr/u8-strmblen.c: Likewise.
85415         * lib/unistr/u8-strmbtouc.c: Likewise.
85416         * lib/unistr/u8-strncat.c: Likewise.
85417         * lib/unistr/u8-strncmp.c: Likewise.
85418         * lib/unistr/u8-strncpy.c: Likewise.
85419         * lib/unistr/u8-strnlen.c: Likewise.
85420         * lib/unistr/u8-strpbrk.c: Likewise.
85421         * lib/unistr/u8-strrchr.c: Likewise.
85422         * lib/unistr/u8-strspn.c: Likewise.
85423         * lib/unistr/u8-strstr.c: Likewise.
85424         * lib/unistr/u8-strtok.c: Likewise.
85425         * lib/unistr/u8-to-u16.c: Likewise.
85426         * lib/unistr/u8-to-u32.c: Likewise.
85427         * lib/unistr/u8-uctomb-aux.c: Likewise.
85428         * lib/unistr/u8-uctomb.c: Likewise.
85429         * lib/unitypes.h: Likewise.
85430         * lib/uniwidth.h: Likewise.
85431         * lib/uniwidth/cjk.h: Likewise.
85432         * lib/uniwidth/u16-strwidth.c: Likewise.
85433         * lib/uniwidth/u16-width.c: Likewise.
85434         * lib/uniwidth/u32-strwidth.c: Likewise.
85435         * lib/uniwidth/u32-width.c: Likewise.
85436         * lib/uniwidth/u8-strwidth.c: Likewise.
85437         * lib/uniwidth/u8-width.c: Likewise.
85438         * lib/uniwidth/width.c: Likewise.
85440 2007-10-07  Bruno Haible  <bruno@clisp.org>
85442         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85443         The file is still under LGPL (see modules/inttypes).
85445 2007-10-06  Bruno Haible  <bruno@clisp.org>
85447         * modules/trunc (Dependencies): Add 'extensions'.
85448         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85449         Reported by Ben Pfaff <blp@gnu.org>.
85451 2007-10-06  Bruno Haible  <bruno@clisp.org>
85453         * modules/freopen-tests: New file.
85454         * tests/test-freopen.c: New file.
85456         * modules/fopen-tests: New file.
85457         * tests/test-fopen.c: New file.
85459         * modules/fopen: New file.
85460         * lib/fopen.c: New file.
85461         * m4/fopen.m4: New file.
85462         * modules/freopen: New file.
85463         * lib/freopen.c: New file.
85464         * m4/freopen.m4: New file.
85465         * lib/stdio.in.h (fopen, freopen): New declarations.
85466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85467         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85468         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85469         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85470         * doc/functions/fopen.texi: Mention the 'fopen' module.
85471         * doc/functions/freopen.texi: Mention the 'freopen' module.
85473 2007-10-06  Bruno Haible  <bruno@clisp.org>
85475         * modules/open-tests: New file.
85476         * tests/test-open.c: New file.
85478         * modules/open: New file.
85479         * lib/open.c: New file.
85480         * m4/open.m4: New file.
85481         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85482         lib/open.c does.
85483         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85484         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85485         macros.
85486         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85487         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85488         REPLACE_OPEN.
85489         * doc/functions/open.texi: Mention the 'open' module.
85491 2007-10-04  Bruno Haible  <bruno@clisp.org>
85493         * modules/ceill-tests: New file.
85494         * tests/test-ceill.c: New file.
85496         * modules/ceill: New file.
85497         * lib/ceill.c: Replace entire file.
85498         * m4/ceill.m4: New file.
85499         * lib/math.in.h (ceill): Replace declaration.
85500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85501         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85502         * doc/functions/ceill.texi: Mention the 'ceill' module.
85503         * modules/mathl (Files): Remove lib/ceill.c.
85504         (Depends-on): Add ceill.
85506 2007-10-04  Bruno Haible  <bruno@clisp.org>
85508         * modules/ceilf-tests: New file.
85509         * tests/test-ceilf.c: New file.
85511         * modules/ceilf: New file.
85512         * lib/ceil.c: New file.
85513         * lib/ceilf.c: New file.
85514         * m4/ceilf.m4: New file.
85515         * lib/math.in.h (ceilf): New declaration.
85516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85517         HAVE_DECL_CEILF.
85518         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85519         HAVE_DECL_CEILF.
85520         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85522 2007-10-04  Bruno Haible  <bruno@clisp.org>
85524         * modules/floorl-tests: New file.
85525         * tests/test-floorl.c: New file.
85527         * modules/floorl: New file.
85528         * lib/floorl.c: Replace entire file.
85529         * m4/floorl.m4: New file.
85530         * lib/math.in.h (floorl): Replace declaration.
85531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85532         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85533         * doc/functions/floorl.texi: Mention the 'floorl' module.
85534         * modules/mathl (Files): Remove lib/floorl.c.
85535         (Depends-on): Add floorl.
85537 2007-10-04  Bruno Haible  <bruno@clisp.org>
85539         * modules/floorf-tests: New file.
85540         * tests/test-floorf.c: New file.
85542         * modules/floorf: New file.
85543         * lib/floor.c: New file.
85544         * lib/floorf.c: New file.
85545         * m4/floorf.m4: New file.
85546         * lib/math.in.h (floorf): New declaration.
85547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85548         HAVE_DECL_FLOORF.
85549         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85550         HAVE_DECL_FLOORF.
85551         * doc/functions/floorf.texi: Mention the 'floorf' module.
85553 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85554             Bruno Haible  <bruno@clisp.org>
85556         Advertise for the Git server instead of the CVS server.
85557         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85558         repository instead of the CVS one.
85559         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85560         about all VCS systems generically.
85561         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85563 2007-10-04  Bruno Haible  <bruno@clisp.org>
85565         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85566         means.
85567         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85569 2007-10-04  Bruno Haible  <bruno@clisp.org>
85571         * modules/truncl-tests: New file.
85572         * tests/test-truncl.c: New file.
85574         * modules/truncl: New file.
85575         * lib/truncl.c: New file.
85576         * m4/truncl.m4: New file.
85577         * lib/math.in.h (truncl): New declaration.
85578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85579         HAVE_DECL_TRUNCL.
85580         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85581         HAVE_DECL_TRUNCL.
85582         * doc/functions/truncl.texi: Mention the 'truncl' module.
85584 2007-10-04  Bruno Haible  <bruno@clisp.org>
85586         * modules/truncf-tests: New file.
85587         * tests/test-truncf.c: New file.
85589         * modules/truncf: New file.
85590         * lib/trunc.c: Make paramerizable through USE_* macros.
85591         * lib/truncf.c: New file.
85592         * m4/truncf.m4: New file.
85593         * lib/math.in.h (truncf): New declaration.
85594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85595         HAVE_DECL_TRUNCF.
85596         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85597         HAVE_DECL_TRUNCF.
85598         * doc/functions/truncf.texi: Mention the 'truncf' module.
85600 2007-10-03  Bruno Haible  <bruno@clisp.org>
85602         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85603         augmentation also for tests modules.
85604         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85605         * modules/atexit-tests (Makefile.am): Likewise.
85606         * modules/binary-io-tests (Makefile.am): Likewise.
85607         * modules/c-strcase-tests (Makefile.am): Likewise.
85608         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85609         * modules/canonicalize-tests (Makefile.am): Likewise.
85610         * modules/closein-tests (Makefile.am): Likewise.
85611         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85612         * modules/freadahead-tests (Makefile.am): Likewise.
85613         * modules/fseek-tests (Makefile.am): Likewise.
85614         * modules/fseeko-tests (Makefile.am): Likewise.
85615         * modules/ftell-tests (Makefile.am): Likewise.
85616         * modules/ftello-tests (Makefile.am): Likewise.
85617         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85618         * modules/isnanl-tests (Makefile.am): Likewise.
85619         * modules/lseek-tests (Makefile.am): Likewise.
85620         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85621         * modules/mbscasestr-tests (Makefile.am): Likewise.
85622         * modules/mbschr-tests (Makefile.am): Likewise.
85623         * modules/mbscspn-tests (Makefile.am): Likewise.
85624         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85625         * modules/mbspbrk-tests (Makefile.am): Likewise.
85626         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85627         * modules/mbsrchr-tests (Makefile.am): Likewise.
85628         * modules/mbsspn-tests (Makefile.am): Likewise.
85629         * modules/mbsstr-tests (Makefile.am): Likewise.
85630         * modules/printf-posix-tests (Makefile.am): Likewise.
85631         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85632         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85633         * modules/tsearch-tests (Makefile.am): Likewise.
85634         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85635         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85636         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85637         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85638         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85639         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85640         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85641         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85642         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85643         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85644         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85645         * modules/xstrtol-tests (Makefile.am): Likewise.
85646         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85647         * modules/yesno-tests (Makefile.am): Likewise.
85649 2007-10-03  Bruno Haible  <bruno@clisp.org>
85651         * modules/trunc-tests: New file.
85652         * tests/test-trunc.c: New file.
85654         * modules/trunc: New file.
85655         * lib/trunc.c: New file.
85656         * m4/trunc.m4: New file.
85657         * lib/math.in.h (trunc): New declaration.
85658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85659         HAVE_DECL_TRUNC.
85660         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85661         HAVE_DECL_TRUNC.
85662         * doc/functions/trunc.texi: Mention the 'trunc' module.
85664 2007-10-03  Bruno Haible  <bruno@clisp.org>
85666         * tests/test-fpending.c: New file, mostly copied
85667         from coreutils/lib/t-fpending.c.
85668         * modules/fpending-tests: New file.
85670 2007-10-03  Bruno Haible  <bruno@clisp.org>
85672         Port the stdio extensions to QNX (untested).
85673         * lib/fseterr.c (fseterr): Add support for QNX.
85674         * lib/fbufmode.c (fbufmode): Likewise.
85675         * lib/freadable.c (freadable): Likewise.
85676         * lib/fwritable.c (fwritable): Likewise.
85677         * lib/freading.c (freading): Likewise.
85678         * lib/fwriting.c (fwriting): Likewise.
85679         * lib/freadahead.c (freadahed): Likewise.
85680         * lib/fpurge.c (fpurge): Likewise.
85681         * lib/fseeko.c (rpl_fseeko): Likewise.
85683 2007-10-03  Bruno Haible  <bruno@clisp.org>
85684             Jim Meyering  <jim@meyering.net>
85685             Eric Blake  <ebb9@byu.net>
85687         * doc/relocatable.texi: Use @command instead of @program.
85689 2007-10-02  Jim Meyering  <jim@meyering.net>
85691         Perform one more "_.h" -> ".in.h" substitution.
85692         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85693         instead of unistd_.h here, too.
85695 2007-10-01  Bruno Haible  <bruno@clisp.org>
85697         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85698         Needed for the alloca-opt module.
85700 2007-09-30  Bruno Haible  <bruno@clisp.org>
85702         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85703         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85704         alloca_.h.
85705         * lib/argz.in.h: Renamed from lib/argz_.h.
85706         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85707         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85708         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85709         byteswap_.h.
85710         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85711         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85712         dirent_.h.
85713         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85714         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85715         fcntl_.h.
85716         * lib/float.in.h: Renamed from lib/float_.h.
85717         * modules/float (Files, Makefile.am): Use float.in.h instead of
85718         float_.h.
85719         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85720         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85721         fnmatch_.h.
85722         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85723         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85724         getopt_.h.
85725         * lib/glob.in.h: Renamed from lib/glob_.h.
85726         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85727         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85728         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85729         iconv_.h.
85730         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85731         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85732         inttypes_.h.
85733         * lib/locale.in.h: Renamed from lib/locale_.h.
85734         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85735         locale_.h.
85736         * lib/math.in.h: Renamed from lib/math_.h.
85737         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85738         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85739         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85740         of netinet_in_.h. Add dependency.
85741         * lib/poll.in.h: Renamed from lib/poll_.h.
85742         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85743         * lib/search.in.h: Renamed from lib/search_.h.
85744         * modules/search (Files, Makefile.am): Use search.in.h instead of
85745         search_.h.
85746         * lib/signal.in.h: Renamed from lib/signal_.h.
85747         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85748         _signal.h.
85749         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85750         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85751         stdbool_.h.
85752         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85753         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85754         stdint_.h.
85755         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85756         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85757         stdio_.h.
85758         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85759         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85760         stdlib_.h.
85761         * lib/string.in.h: Renamed from lib/string_.h.
85762         * modules/string (Files, Makefile.am): Use string.in.h instead of
85763         string_.h.
85764         * doc/gnulib-tool.texi (Initial import): Update.
85765         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85766         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85767         of sys_select_.h. Add dependency.
85768         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85769         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85770         of sys_socket_.h.
85771         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85772         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85773         sys_stat_.h.
85774         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85775         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85776         sys_time_.h.
85777         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85778         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85779         sysexits_.h.
85780         * lib/time.in.h: Renamed from lib/time_.h.
85781         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85782         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85783         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85784         unistd_.h.
85785         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85786         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85787         wchar_.h.
85788         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85789         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85790         wctype_.h.
85791         * build-aux/bootstrap (slurp): Update.
85792         * lib/.cppi-disable: Update.
85794 2007-09-30  Bruno Haible  <bruno@clisp.org>
85796         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85797         Needed on BeOS.
85799 2007-09-30  Bruno Haible  <bruno@clisp.org>
85801         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85803 2007-09-29  Bruno Haible  <bruno@clisp.org>
85805         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85807 2007-09-29  Bruno Haible  <bruno@clisp.org>
85809         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85810         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85811         * build-aux/install-reloc: Compile also areadlink.c.
85812         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85814 2007-09-29  Bruno Haible  <bruno@clisp.org>
85816         * gnulib-tool (func_emit_initmacro_done): Indentation.
85818 2007-09-29  Bruno Haible  <bruno@clisp.org>
85820         * README: Add CVS checkout update instructions.
85821         Info from Bob Proulx <bob@proulx.com>.
85823 2007-09-28  Eric Blake  <ebb9@byu.net>
85825         Provide move-if-change.
85826         * build-aux/move-if-change: New file, based on best practice
85827         rather than any canonical upstream location.
85829 2007-09-28  Jim Meyering  <jim@meyering.net>
85831         Fix canonicalize loop-detection corner case.
85832         Do not attempt to stat the symlink values stored via seen_triple.
85833         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85834         on linux-2.6.18, (but not 2.6.22).
85835         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85836         triple_compare.  The former compares dev,ino,filename, while the latter
85837         would actually stat dirname(filename) when dev and ino were equal.
85838         * lib/hash-triple.c: Install <string.h>.
85839         (STREQ): Define.
85840         (triple_compare_ino_str): New function.
85841         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85843 2007-09-28  Eric Blake  <ebb9@byu.net>
85845         Enforce that AC_REPLACE_FUNCS files exist.
85846         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85847         override check for typos.
85849         Fix test-closein on Solaris 10.
85850         * tests/test-closein.c (main): Don't assume stdin can be inherited
85851         closed on all systems.
85852         * tests/test-closein.sh: Likewise.
85853         Reported by Piotr Tarnowski.
85855 2007-09-28  Jim Meyering  <jim@meyering.net>
85857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85859 2007-09-27  Jim Meyering  <jim@meyering.net>
85861         canonicalize: Avoid a false-positive cycle failure.
85862         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85863         Sort.  Remove cycle-check.
85864         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85865         not cycle-check.h.
85866         (seen_triple): New function.
85867         (canonicalize_filename_mode): Use it instead of cycle-check.
85868         * tests/test-canonicalize.c: Add a test for this bug.
85869         * tests/test-canonicalize.sh: Set up and run the test.
85871         New module, file-set, from coreutils.
85872         * modules/file-set: Define it.
85873         * lib/file-set.c, lib/file-set.h: Implement.
85875         New module, hash-triple, from coreutils.
85876         * modules/hash-triple: Define it.
85877         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85879 2007-09-25  Eric Blake  <ebb9@byu.net>
85881         Fix strerror on Interix.
85882         * lib/string_.h (strerror): Declare replacement.
85883         * doc/functions/strerror.texi (strerror): Document the Interix
85884         shortcoming.
85885         * modules/string (Makefile.am): Support new hooks.
85886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85887         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85888         gl_FUNC_STRERROR_SEPARATE.
85889         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85890         * lib/strerror.c (rpl_strerror): Provide replacement.
85891         * modules/strerror (Depends-on): Add string.
85892         (configure.ac): Detect use of module.
85893         * tests/test-strerror.c: New file.
85894         * modules/strerror-tests: New test module.
85895         * modules/argp (Depends-on): Add strerror.
85896         * modules/error (Depends-on): Likewise.
85897         Reported by Martin Koeppe.
85899 2007-09-24  Bruno Haible  <bruno@clisp.org>
85901         * README: Update git instructions.
85903 2007-09-24  Eric Blake  <ebb9@byu.net>
85905         Revert fpending breakage from 2007-09-08.
85906         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85907         __fpending.c.
85909 2007-09-24  Jim Meyering  <jim@meyering.net>
85911         filenamecat.c: Add a test.
85912         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85913         showing how the function works when DIR is the empty string.
85915 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85917         * tests/test-canonicalize.sh: Turn on executable bit.
85919 2007-09-19  Eric Blake  <ebb9@byu.net>
85921         * README: Update CVS instructions.
85923 2007-09-18  Bruno Haible  <bruno@clisp.org>
85925         * modules/areadlink: New file.
85926         * lib/areadlink.h (areadlink): New declaration.
85927         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85929 2007-09-17  Jim Meyering  <jim@meyering.net>
85931         * lib/savewd.c (ESTALE) [!defined]: Define.
85932         Reported to be required on Interix by Martin Koeppe.
85934 2007-09-17  Bruno Haible  <bruno@clisp.org>
85936         * gnulib-tool (func_version): Use $version.
85938 2007-09-16  Bruno Haible  <bruno@clisp.org>
85940         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85941         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85942         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85943         Reported by Greg Schafer <gschafer@zip.com.au>.
85945 2007-09-15  Bruno Haible  <bruno@clisp.org>
85947         * gnulib-tool (sed): Try a little harder to make bash understand the
85948         alias.
85949         Reported by Bruce Korb <bruce.korb@gmail.com>.
85951 2007-09-13  Eric Blake  <ebb9@byu.net>
85953         * ChangeLog: Remove conflict markers.
85955 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85957         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85958         Reported by Bruno Haible <bruno@clisp.org>.
85960 2007-09-12  Bruno Haible  <bruno@clisp.org>
85962         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85963         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85964         is not defined.
85966 2007-09-12  Eric Blake  <ebb9@byu.net>
85968         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85969         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85970         Autoconf definition.
85971         * modules/euidaccess (Depends-on): Add extensions, for
85972         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85973         * modules/fnmatch (Depends-on): Likewise.
85974         * modules/getaddrinfo (Depends-on): Likewise.
85975         * modules/getdelim (Depends-on): Likewise.
85976         * modules/getline (Depends-on): Likewise.
85977         * modules/getsubopt (Depends-on): Likewise.
85978         * modules/gettext (Depends-on): Likewise.
85979         * modules/group-member (Depends-on): Likewise.
85980         * modules/mbchar (Depends-on): Likewise.
85981         * modules/memmem (Depends-on): Likewise.
85982         * modules/mempcpy (Depends-on): Likewise.
85983         * modules/memrchr (Depends-on): Likewise.
85984         * modules/pagealign_alloc (Depends-on): Likewise.
85985         * modules/readutmp (Depends-on): Likewise.
85986         * modules/stpcpy (Depends-on): Likewise.
85987         * modules/stpncpy (Depends-on): Likewise.
85988         * modules/strchrnul (Depends-on): Likewise.
85989         * modules/strndup (Depends-on): Likewise.
85990         * modules/strsep (Depends-on): Likewise.
85991         * modules/strverscmp (Depends-on): Likewise.
85992         * modules/vasprintf (Depends-on): Likewise.
85993         * modules/wcwidth (Depends-on): Likewise.
85994         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85995         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85996         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85998         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85999         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86000         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
86001         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
86002         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
86003         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
86004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
86005         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86006         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86007         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
86008         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
86009         * m4/readutmp.m4 (gl_READUTMP): Likewise.
86010         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86011         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86013         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86015         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86016         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
86018         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
86019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86020         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
86021         so that lock.m4 can be used in gettext without extensions module.
86023 2007-09-11  Bruno Haible  <bruno@clisp.org>
86025         * m4/isc-posix.m4: Remove file.
86026         Suggested by Eric Blake.
86028 2007-09-11  Eric Blake  <ebb9@byu.net>
86030         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
86032 2007-09-10  Bruno Haible  <bruno@clisp.org>
86034         * posix-modules: Fix typo in error message.
86035         Reported by Matt <mkraai@beckman.com>.
86037 2007-09-09  Bruno Haible  <bruno@clisp.org>
86039         * doc/functions/getdelim.texi: Update list of platforms lacking the
86040         function.
86041         * doc/functions/getline.texi: Likewise.
86043 2007-09-09  Jim Meyering  <jim@meyering.net>
86045         * lib/hash.c (hash_initialize): Detect calloc failure.
86046         Reported by Bruno Haible.
86048 2007-09-09  Bruno Haible  <bruno@clisp.org>
86050         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
86051         malloc or realloc fails.
86053 2007-09-09  Bruno Haible  <bruno@clisp.org>
86055         * modules/getcwd (Depends-on): Add malloc-posix.
86056         * modules/glob (Depends-on): Likewise.
86057         * modules/putenv (Depends-on): Likewise.
86058         * modules/strdup (Depends-on): Likewise.
86059         * modules/getdelim (Depends-on): Add realloc-posix.
86060         * modules/read-file (Depends-on): Likewise.
86062 2007-09-09  Bruno Haible  <bruno@clisp.org>
86064         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
86065         (gl_FUNC_MALLOC_POSIX): Require it.
86066         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
86067         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
86068         * modules/realloc (Files): Add m4/malloc.m4.
86069         * modules/calloc (Files): Likewise.
86071 2007-09-09  Bruno Haible  <bruno@clisp.org>
86073         * modules/malloc-posix: New file.
86074         * modules/malloc (Depends-on): Add malloc-posix.
86075         * lib/malloc.c: Include errno.h.
86076         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
86077         and a POSIX-compatible malloc into a single function. Set ENOMEM
86078         when returning NULL.
86079         * m4/malloc.m4: New file.
86080         * doc/functions/malloc.texi: Mention the malloc-posix module.
86081         * lib/stdlib_.h (malloc): New declaration.
86082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86083         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
86084         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
86085         and HAVE_MALLOC_POSIX.
86087 2007-09-09  Bruno Haible  <bruno@clisp.org>
86089         * modules/realloc-posix: New file.
86090         * modules/realloc (Depends-on): Add realloc-posix.
86091         * lib/realloc.c: Include errno.h.
86092         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
86093         and a POSIX-compatible realloc into a single function. Set ENOMEM
86094         when returning NULL.
86095         * m4/realloc.m4: New file.
86096         * doc/functions/realloc.texi: Mention the realloc-posix module.
86097         * lib/stdlib_.h (realloc): New declaration.
86098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86099         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
86100         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
86101         and HAVE_REALLOC_POSIX.
86103 2007-09-09  Bruno Haible  <bruno@clisp.org>
86105         * modules/calloc-posix: New file.
86106         * modules/calloc (Depends-on): Add calloc-posix.
86107         * lib/calloc.c: Include errno.h.
86108         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
86109         and a POSIX-compatible calloc into a single function. Set ENOMEM
86110         when returning NULL.
86111         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
86112         * doc/functions/calloc.texi: Mention the calloc-posix module.
86113         * lib/stdlib_.h (calloc): New declaration.
86114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86115         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
86116         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
86117         and HAVE_CALLOC_POSIX.
86119 2007-09-09  Bruno Haible  <bruno@clisp.org>
86121         Allow for modules to show an arbitrary notice.
86122         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
86123         * gnulib-tool: New option --extract-notice.
86124         (func_usage): Document it.
86125         (sed_extract_prog): Update.
86126         (func_get_notice): New function.
86127         (func_modules_notice): New function.
86128         (func_import, func_create_testdir): Invoke it.
86129         Suggested by Jim Meyering.
86131 2007-09-09  Bruno Haible  <bruno@clisp.org>
86133         * gnulib-tool: New options --verbose, --quiet.
86134         (func_usage): Document them.
86135         (verbose): New variable.
86136         (func_execute_command): New function.
86137         (func_import): Don't show the module list and the file list if
86138         $verbose < 0.
86139         (func_create_testdir): Likewise. Use func_execute_command.
86140         (func_create_megatestdir): Use func_execute_command.
86142 2007-09-08  Bruno Haible  <bruno@clisp.org>
86144         * gnulib-tool (func_import): Prefer rsync over wget when available,
86145         for fetching the PO files.
86147 2007-09-08  Bruno Haible  <bruno@clisp.org>
86149         * posix-modules: New file. Portions copied from gnulib-tool.
86150         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86152 2007-09-08  Jim Meyering  <jim@meyering.net>
86154         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86155         * lib/fpending.h: Rename from __fpending.h.
86156         * lib/fpending.c: Rename from __fpending.c.
86157         Include "fpending.h", not "__fpending.h".
86158         * lib/__fpending.h, lib/__fpending.c: Remove files.
86159         * modules/fpending (Files): Reflect new file names.
86160         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86162 2007-09-08  Bruno Haible  <bruno@clisp.org>
86164         * m4/inttypes-h.m4: Remove stub file.
86166 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86168         * doc/headers/stdint.texi: Discuss #include_next issue.
86170 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86172         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86174 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86176         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86177         in variable name.
86179 2007-09-03  Jim Meyering  <jim@meyering.net>
86181         New module: git-version-gen.
86182         * modules/git-version-gen: New file.
86184         Import changes from coreutils for bootstrap script.
86186         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86188         bootstrap: uses rsync to download the .po files
86189         * build-aux/bootstrap (po_download_command_format): New global.
86190         (download_po_files): Use rsync.
86191         (update_po_files): Don't remove .po files after download,
86192         so future rsync runs can take advantage of the copies.
86194         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86196         Solve the unnecessary-.po-file-regeneration problem once and for all.
86197         * build-aux/bootstrap (download_po_files): New function, renamed from
86198         get_translations.  Now, downloads, but doesn't update LINGUAS.
86199         (update_po_files): New function.
86201         bootstrap: Ignore more.
86202         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86203         uniwidth to e.g., lib/.gitignore.
86204         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86206         * build-aux/bootstrap: New setting: vc_ignore.
86207         (insert_sorted_if_absent): Create $file if absent.
86208         Adapt to new, possibly empty, list: $vc_ignore.
86210         bootstrap: generate more ignorable names
86211         * build-aux/bootstrap (slurp): When generating ignorable names,
86212         also map .sin to .sed, .gperf to .c, and .y to .c.
86214 2007-09-03  Jim Meyering  <jim@meyering.net>
86216         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86217         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86219 2007-09-02  Bruno Haible  <bruno@clisp.org>
86221         Fix mis-recognition of 'mcs' on QNX 6.
86222         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86223         output contains the string "Mono".
86224         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86225         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86227 2007-09-01  Bruno Haible  <bruno@clisp.org>
86229         Fix collision between uniwidth/* and linebreak modules.
86230         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86231         u32_width): Remove declarations.
86232         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86233         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86234         streq3, streq2, streq1, streq0): Remove functions.
86235         (STREQ): Remove macro.
86236         (is_cjk_encoding): Remove function.
86237         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86238         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86239         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86240         * NEWS: Document the change.
86242 2007-09-01  Bruno Haible  <bruno@clisp.org>
86244         * lib/streq.h: Add double-inclusion guard.
86246 2007-09-01  Karl Berry  <karl@gnu.org>
86248         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86250 2007-08-28  Jim Meyering  <jim@meyering.net>
86252         Rename mreadlink_with_size to areadlink_with_size.
86253         * NEWS: Document the change.
86254         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86255         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86256         * lib/mreadlink.h: Rename this to...
86257         * lib/areadlink.h: ...this.
86258         * modules/mreadlink-with-size: Rename this to...
86259         * modules/areadlink-with-size: ...this.
86260         * lib/canonicalize.c: Reflect the renaming.
86261         * modules/canonicalize: Likewise.
86263 2007-08-26  Bruno Haible  <bruno@clisp.org>
86265         * gnulib-tool (func_import): When deciding which files to remove,
86266         consider also dangling symbolic links.
86267         Reported by Eric Blake.
86269 2007-08-26  Bruno Haible  <bruno@clisp.org>
86271         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86273 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86275         * lib/readline.c: Don't include getline.h, the prototype is now
86276         found in stdio.h.
86278 2007-08-23  Jim Meyering  <jim@meyering.net>
86280         Getdelim touchup.
86281         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86282         around the funlockfile call, since funlockfile never sets errno.
86283         Don't set errno upon failed realloc.
86285 2007-08-22  Eric Blake  <ebb9@byu.net>
86287         Getline touchups.
86288         * lib/getdelim.c (getdelim): Revert regression that required *n to
86289         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86290         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86291         getdelim, rather than whether implementation is missing.
86292         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86293         * lib/stdio_.h (getline): Also declare if replacement is
86294         required.
86295         * doc/functions/getdelim.texi: New file.
86296         * doc/functions/getline.texi: Likewise.
86297         * doc/gnulib.texi (Function Substitutes): Add new files.
86298         Reported by Bruno Haible.
86300 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86302         * users.txt: Add Guile.
86304 2007-08-22  Eric Blake  <ebb9@byu.net>
86306         * tests/test-getdelim.c (main): Use remove, not unlink.
86307         * tests/test-getline.c (main): Likewise.
86309         Move getline and getdelim into stdio.h, per POSIX 200x.
86310         * modules/getline (Files): Remove getline.h.
86311         (Depends-on): Add stdio.
86312         (configure.ac): Add module indicator.
86313         * modules/getdelim (Files): Remove getdelim.h.
86314         (Depends-on): Add stdio.
86315         (configure.ac): Add module indicator.
86316         * modules/stdio (Makefile.am): Work with new indicators.
86317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86318         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86319         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86320         * lib/getdelim.h: Delete.
86321         * lib/getline.h: Delete.
86322         * lib/stdio_.h (getdelim, getline): Declare.
86323         * modules/getdelim-tests: New module.
86324         * modules/getline-tests: Likewise.
86325         * tests/test-getdelim.c: New file.
86326         * tests/test-getline.c: Likewise.
86327         * NEWS: Document the change.
86328         * lib/getline.c: Update choice of header.
86329         * lib/csharpcomp.c: Likewise.
86330         * lib/getpass.c: Likewise.
86331         * lib/javacomp.c: Likewise.
86332         * lib/javaversion.c: Likewise.
86333         * lib/yesno.c: Likewise.
86334         * lib/getdelim.c: Likewise.
86335         (getdelim): Set errno on failure, and avoid memory leak.
86337 2007-08-19  Bruno Haible  <bruno@clisp.org>
86339         * modules/closein (Depends-on): Add freadahead.
86340         * lib/closein.c: Include freadahead.h.
86341         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86342         is zero.
86344 2007-08-19  Bruno Haible  <bruno@clisp.org>
86346         * modules/freadahead-tests: New file.
86347         * tests/test-freadahead.sh: New file.
86348         * tests/test-freadahead.c: New file.
86350         * modules/freadahead: New file.
86351         * lib/freadahead.h: New file.
86352         * lib/freadahead.c: New file.
86353         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86354         fbufmode, fpurge, freadable, fwritable.
86356 2007-08-19  Eric Blake  <ebb9@byu.net>
86358         Test yesno in combination with closein.
86359         * lib/yesno.c (yesno): Document use of stdin.
86360         * modules/yesno-tests (Files): New module.
86361         * tests/test-yesno.c (main): New file.
86362         * tests/test-yesno.sh: Likewise.
86364 2007-08-19  Bruno Haible  <bruno@clisp.org>
86366         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86367         * lib/fseeko.c (rpl_fseeko): Likewise.
86368         * lib/fseterr.c (fseterr): Likewise.
86370 2007-08-19  Bruno Haible  <bruno@clisp.org>
86372         * tests/test-lseek.c (main): Disable a test for BeOS.
86373         * doc/functions/lseek.texi: Document the BeOS bug.
86375 2007-08-19  Bruno Haible  <bruno@clisp.org>
86376             Eric Blake  <ebb9@byu.net>
86378         * lib/lseek.c: Include <sys/stat.h>.
86379         (rpl_lseek): Add workaround code also for Unix platforms.
86380         Needed for BeOS.
86381         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86382         * doc/functions/lseek.texi: Document BeOS definiency.
86384 2007-08-18  Bruno Haible  <bruno@clisp.org>
86386         * modules/fstrcmp-tests: New file.
86387         * tests/test-fstrcmp.c: New file.
86389 2007-08-18  Bruno Haible  <bruno@clisp.org>
86391         * modules/fstrcmp: New file, from GNU gettext with modifications.
86392         * lib/fstrcmp.h: New file, from GNU gettext.
86393         * lib/fstrcmp.c: New file, from GNU gettext.
86394         * MODULES.html.sh (String handling): Add fstrcmp.
86396 2007-08-18  Bruno Haible  <bruno@clisp.org>
86398         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86399         'bool'.
86400         (diag, compareseq): Remove const from the ctxt argument.
86401         (USE_HEURISTIC): Undefine at the end.
86403 2007-08-18  Jim Meyering  <jim@meyering.net>
86405         New file: lib/idcache.h
86406         * NEWS: Mention the addition.
86407         * modules/idcache (Files): Add lib/idcache.h
86408         * lib/idcache.c: Include "idcache.h".
86409         Don't include <sys/types.h>.
86410         Add a FIXME comment.
86411         Move file-scoped "static" declarations to the top.
86412         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86414 2007-08-17  Bruno Haible  <bruno@clisp.org>
86415         and Paul Eggert  <eggert@cs.ucla.edu>
86417         * MODULES.html.sh: Add diffseq.
86418         * modules/diffseq: New file.
86419         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86420         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86422 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86424         Import changes from coreutils for bootstrap script.
86426         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86428         * build-aux/bootstrap (slurp): Work even in environments where
86429         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86430         current code does not slurp files whose names start with ".", and
86431         this looks like it might be a troublesome area.
86433         2007-07-11  Jim Meyering  <jim@meyering.net>
86435         If there's a GPL vN copyright comment, require that N == 3.
86437         2007-07-08  Jim Meyering  <jim@meyering.net>
86439         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86440         * build-aux/bootstrap (mam_template): Move definition out of loop.
86442         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86444         * build-aux/bootstrap (symlink_to_dir): Rename function from
86445         symlink_to_gnulib.  Add a directory parameter.  Update all
86446         callers.
86447         (cp_mark_as_generated): Also check for -- and link to -- files in
86448         gl/.
86450         2007-07-08  Jim Meyering  <jim@meyering.net>
86452         Adapt to deeper hierarchy in gnulib.
86453         * build-aux/bootstrap (symlink_to_dir): If the destination
86454         directory doesn't exist, create it. This is required at least for
86455         "lib/uniwidth/cjk.h".
86457         2007-05-15  Jim Meyering  <jim@meyering.net>
86459         * build-aux/bootstrap: Now that generated Makefile.am files
86460         are no longer under version control, they must be created at
86461         bootstrap time.
86463 2007-08-14  Ben Pfaff  <blp@gnu.org>
86465         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86467 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86469         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86470         given the changes below.
86471         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86472         even on hosts that have padding bits beyond the supported 64.
86474 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86476         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86477         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86478         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86479         depends on it.
86480         (xstrtol_error): Remove.
86481         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86482         but with a different signature.
86483         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86484         * lib/xstrtol-error.c: Include exitfail.h.
86485         (xstrtol_fatal): New function, with a different signature from the
86486         old xstrtol_error, so that the caller need not worry about passing
86487         in an exit status, or about storage management of the option argument.
86488         (xstrtol_error): Now a static function.  Redo signature to
86489         implement xstrtol_fatal.  Output the correct number of hyphens in
86490         front of the option so that the caller need not worry about
86491         storage management.
86492         (N_): New macro.
86493         (_): Remove; not used now.
86494         * modules/xstrtol: Depend on getopt.
86495         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86496         of old STRTOL_FATAL_ERROR macro.
86497         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86498         of test program.
86499         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86500         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86502 2007-08-08  Eric Blake  <ebb9@byu.net>
86504         * lib/xstrtol-error.c: Add missing include.
86506         Move xstrtol messages into gnulib domain, when --pobase is used.
86507         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86508         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86509         * modules/xstrtol (Files): Distribute new file.
86510         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86511         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86512         * tests/test-xstrtol.c: ...into new file.
86513         * tests/test-xstrtoul.c: Also test xstrtoul.
86514         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86515         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86516         * tests/test-xstrtol.sh: Drive the tests.
86517         * tests/test-xstrtoimax.sh: Likewise.
86518         * tests/test-xstrtoumax.sh: Likewise.
86519         * modules/xstrtol-tests: New module.
86520         * modules/xstrtoimax-tests: Likewise.
86521         * modules/xstrtoumax-tests: Likewise.
86523 2007-08-08  Jim Meyering  <jim@meyering.net>
86525         New function: mfile_name_concat.
86526         * lib/filenamecat.c (mfile_name_concat): New function, just like
86527         file_name_concat, but return NULL upon failure rather than exiting
86528         with a diagnostic.
86529         * lib/filenamecat.h: Declare it.
86531 2007-08-07  Bruno Haible  <bruno@clisp.org>
86533         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86534         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86535         warning from gcc.
86536         Reported by Eric Blake.
86538 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86540         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86541         * modules/crypto/arcfour (License): Likewise.
86542         * modules/crypto/des-tests (License): Likewise.
86543         * modules/crypto/gc-arctwo-tests (License): Likewise.
86544         * modules/crypto/gc-des-tests (License): Likewise.
86545         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86546         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86547         * modules/crypto/gc-md2-tests (License): Likewise.
86548         * modules/crypto/gc-md4-tests (License): Likewise.
86549         * modules/crypto/gc-md5-tests (License): Likewise.
86550         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86551         * modules/crypto/gc-rijndael-tests (License): Likewise.
86552         * modules/crypto/gc-sha1-tests (License): Likewise.
86553         * modules/crypto/gc-tests (License): Likewise.
86554         * modules/crypto/hmac-md5 (License): Likewise.
86555         * modules/crypto/hmac-sha1 (License): Likewise.
86556         * modules/crypto/md2-tests (License): Likewise.
86557         * modules/crypto/md4-tests (License): Likewise.
86558         * modules/crypto/md5 (License): Likewise.
86559         * modules/crypto/rijndael (License): Likewise.
86560         * modules/crypto/sha1 (License): Likewise.
86561         * modules/memxor (License): Likewise.
86563 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86564         and Bruno Haible  <bruno@clisp.org>
86566         * NEWS: Describe interface changes to human, xstrtol.
86567         * lib/human.h: Include <xstrtol.h>.
86568         (human_options): Return enum strtol_error, not int.  Remove
86569         bool arg; take int * instead.
86570         * lib/human.c: Don't include "gettext.h".
86571         (_): Remove; no longer used.
86572         Don't include <xstrtol.h>, since human.h does it.
86573         (human_options): Adjust to abovementioned interface changes.
86574         Do not report error to stderr; that's now the caller's
86575         responsibility.
86576         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86577         interface change.
86578         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86579         Str, Argument_type_string.  All uses changed.  Put " argument"
86580         in diagnostics to make them clearer.  Change wording of suffix
86581         message for clarity.
86582         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86583         Argument_type_string.
86584         (STRTOL_FATAL_WARN): Remove; no longer used.
86585         * modules/human (Depends-on): Remove gettext-h.
86587 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86589         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86591 2007-07-31  Bruno Haible  <bruno@clisp.org>
86593         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86594         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86595         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86597 2007-07-31  Bruno Haible  <bruno@clisp.org>
86599         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86600         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86602 2007-07-30  Bruno Haible  <bruno@clisp.org>
86604         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86605         * modules/c-ctype (License): Likewise.
86606         * modules/c-strcase (License): Likewise.
86607         * modules/check-version (License): Likewise.
86608         * modules/iconv (License): Likewise.
86609         * modules/iconv_open (License): Likewise.
86610         * modules/read-file (License): Likewise.
86611         * modules/striconv (License): Likewise.
86612         * modules/strverscmp (License): Likewise.
86613         * modules/vasprintf (License): Likewise.
86614         * modules/crypto/des (License): Likewise.
86615         * modules/crypto/gc (License): Likewise.
86616         * modules/crypto/gc-arcfour (License): Likewise.
86617         * modules/crypto/gc-arctwo (License): Likewise.
86618         * modules/crypto/gc-des (License): Likewise.
86619         * modules/crypto/gc-hmac-md5 (License): Likewise.
86620         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86621         * modules/crypto/gc-md2 (License): Likewise.
86622         * modules/crypto/gc-md4 (License): Likewise.
86623         * modules/crypto/gc-md5 (License): Likewise.
86624         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86625         * modules/crypto/gc-random (License): Likewise.
86626         * modules/crypto/gc-rijndael (License): Likewise.
86627         * modules/crypto/gc-sha1 (License): Likewise.
86628         * modules/crypto/md2 (License): Likewise.
86629         * modules/crypto/md4 (License): Likewise.
86631 2007-07-30  Jim Meyering  <jim@meyering.net>
86633         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86634         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86635         it has valid stat data.  This bug would cause du not to count the
86636         sizes of inaccessible directories.
86637         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86638         in <http://bugzilla.redhat.com/250077>.
86640 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86641             Bruno Haible  <bruno@clisp.org>
86643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86644         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86645         #include_next, gives a diagnostic about it, but reports no error in
86646         the exit code.
86647         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86649 2007-07-24  Ben Pfaff  <blp@gnu.org>
86651         Improve name: "count-one-bits" is better than "popcount".
86652         * MODULES.html.sh: Update name.
86653         * lib/popcount.h: Renamed lib/count-one-bits.h.
86654         (popcount): Renamed count_one_bits.
86655         (popcountl): Renamed count_one_bits_l.
86656         (popcountll): Renamed count_one_bits_ll.
86657         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86658         * modules/popcount: Renamed module/count-one-bits.
86659         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86660         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86662 2007-07-23  Ben Pfaff  <blp@gnu.org>
86664         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86665         better code generation, and add U to large constants to avoid
86666         warnings, in non-GCC case.
86667         Suggested by Bruno Haible.
86669 2007-07-23  Ben Pfaff  <blp@gnu.org>
86671         * lib/popcount.h: Use verify_true instead of if...abort.
86672         * modules/popcount: Depend on verify module.
86673         Suggested by Jim Meyering.
86675 2007-07-23  Bruno Haible  <bruno@clisp.org>
86677         * gnulib-tool (func_import): Create a .cvsignore file also when the
86678         directory is not yet in CVS but the toplevel directory is. When
86679         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86680         Reported by Karl Berry.
86682 2007-07-22  Ben Pfaff  <blp@gnu.org>
86684         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86685         case.
86686         Suggested by Eric Blake.
86688 2007-07-22  Ben Pfaff  <blp@gnu.org>
86690         New module: popcount.
86691         * MODULES.html.sh: Add popcount.
86692         * modules/popcount: New file.
86693         * modules/popcount-tests: New file.
86694         * tests/test-popcount.c: New file.
86695         * lib/popcount.h: New file.
86696         * m4/popcount.m4: New file.
86698 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86700         * build-aux/announce-gen: Update to GPLv3.
86702         * build-aux/config.guess: Update from config.
86704 2007-07-21  Bruno Haible  <bruno@clisp.org>
86706         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86707         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86709 2007-07-20  Jim Meyering  <jim@meyering.net>
86711         * check-module: Diagnose a self-dependency.
86713 2007-07-19  Bruno Haible  <bruno@clisp.org>
86715         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86716         empty.
86717         Reported by Eric Blake.
86719 2007-07-18  Bruno Haible  <bruno@clisp.org>
86721         * gnulib-tool: New options --po-base, --po-domain.
86722         (func_usage): Document them.
86723         (pobase, po_domain): New variables.
86724         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86725         DEFAULT_TEXT_DOMAIN.
86726         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86727         (func_import): Consider pobase and po_domain. Create a po/ directory.
86728         (func_create_testdir): Set pobase and po_domain to empty.
86729         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86730         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86732 2007-07-18  Bruno Haible  <bruno@clisp.org>
86734         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86735         EXTRA_DIST augmentation for files in build-aux/.
86737 2007-07-16  Bruno Haible  <bruno@clisp.org>
86739         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86740         * modules/getdelim (License): Likewise.
86742 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86744         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86745         * modules/d-type (License): Likewise.
86746         * modules/extensions (License): Likewise.
86747         * modules/fnmatch (License): Likewise.
86748         * modules/fseeko (License): Likewise.
86749         * modules/getaddrinfo (License): Likewise.
86750         * modules/getline (License): Likewise.
86751         * modules/getlogin_r (License): Likewise.
86752         * modules/getpass (License): Likewise.
86753         * modules/gettimeofday (License): Likewise.
86754         * modules/glob (License): Likewise.
86755         * modules/inet_ntop (License): Likewise.
86756         * modules/malloc (License): Likewise.
86757         * modules/malloca (License): Likewise.
86758         * modules/memmem (License): Likewise.
86759         * modules/mempcpy (License): Likewise.
86760         * modules/memset (License): Likewise.
86761         * modules/minmax (License): Likewise.
86762         * modules/mktime (License): Likewise.
86763         * modules/netinet_in (License): Likewise.
86764         * modules/pathmax (License): Likewise.
86765         * modules/poll (License): Likewise.
86766         * modules/regex (License): Likewise.
86767         * modules/snprintf (License): Likewise.
86768         * modules/stdbool (License): Likewise.
86769         * modules/stdint (License): Likewise.
86770         * modules/stdio (License): Likewise.
86771         * modules/strcase (License): Likewise.
86772         * modules/strcasestr (License): Likewise.
86773         * modules/strdup (License): Likewise.
86774         * modules/string (License): Likewise.
86775         * modules/strndup (License): Likewise.
86776         * modules/strnlen (License): Likewise.
86777         * modules/strpbrk (License): Likewise.
86778         * modules/strptime (License): Likewise.
86779         * modules/strsep (License): Likewise.
86780         * modules/sys_select (License): Likewise.
86781         * modules/sys_socket (License): Likewise.
86782         * modules/sys_stat (License): Likewise.
86783         * modules/sys_time (License): Likewise.
86784         * modules/time (License): Likewise.
86785         * modules/time_r (License): Likewise.
86786         * modules/timegm (License): Likewise.
86787         * modules/unistd (License): Likewise.
86788         * modules/vsnprintf (License): Likewise.
86789         * modules/wctype (License): Likewise.
86791 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86793         * modules/argz (License): LGPLv2+.
86795 2007-07-15  Karl Berry  <karl@gnu.org>
86797         * doc/gnulib.texi: revise node structure per new fdl.texi.
86799 2007-07-14  Bruno Haible  <bruno@clisp.org>
86801         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86802         the output file.
86803         * lib/uniname/uninames.h: Regenerated.
86805 2007-07-14  Karl Berry  <karl@gnu.org>
86807         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86808         omitting sectioning and index commands.
86810 2007-07-13  Bruno Haible  <bruno@clisp.org>
86812         New gnulib-tool option --more-symlinks.
86813         * gnulib-tool (func_usage): Document --more-symlinks.
86814         (do_copyrights): New variable.
86815         Recognize option --more-symlinks.
86816         (func_import): Don't add a copyright notice transform to
86817         sed_transform_lib_file if do_copyrights is empty.
86819 2007-07-13  Bruno Haible  <bruno@clisp.org>
86821         * lib/vasnprintf.c (decimal_point_char): Define also if
86822         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86823         && !NEED_PRINTF_DIRECTIVE_A.
86824         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86825         Gary V. Vaughan <gary@gnu.org>.
86827 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86829         * lib/inttypes_.h: Undo previous change, since it was fixed
86830         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86832 2007-07-13  Bruno Haible  <bruno@clisp.org>
86834         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86835         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86837 2007-07-13  Jim Meyering  <jim@meyering.net>
86839         df: Don't fail for Tru64's "file-on-file mount".
86840         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86841         so we fall through and use statfs instead.  Details here:
86842         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86843         Reported by Albert Chin.
86845 2007-07-13  Bruno Haible  <bruno@clisp.org>
86847         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86848         * modules/configmake (License): Likewise.
86849         * modules/gettext (License): Likewise.
86850         * modules/gettext-h (License): Likewise.
86851         * modules/include_next (License): Likewise.
86852         * modules/link-warning (License): Likewise.
86853         * modules/localcharset (License): Likewise.
86854         * modules/localename (License): Likewise.
86855         * modules/lock (License): Likewise.
86856         * modules/relocatable-lib-lgpl (License): Likewise.
86857         * modules/size_max (License): Likewise.
86858         * modules/vasnprintf (License): Likewise.
86859         * modules/wchar (License): Likewise.
86860         * modules/xsize (License): Likewise.
86862 2007-07-13  Bruno Haible  <bruno@clisp.org>
86864         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86865         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86867 2007-07-12  Bruno Haible  <bruno@clisp.org>
86869         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86870         in the modules files.
86872 2007-07-11  Karl Berry  <karl@gnu.org>
86874         * MODULES.html.sh (func_module): use
86875          sed -e '\|^'"${includefile}"'$|d'
86876          instead of /.../d, to avoid errors on $includefile's containing /.
86878 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86880         * gnulib-tool (func_import): Avoid duplication of --avoid
86881         statements
86882         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86883         names to `_' in variable names.
86885 2007-07-10  Eric Blake  <ebb9@byu.net>
86887         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86888         * NEWS: Document this change.
86890 2007-07-08  Bruno Haible  <bruno@clisp.org>
86892         Update to Unicode 5.0.
86893         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86894         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86895         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86896         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86897         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86898         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86899         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86900         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86901         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86902         U+10A3F, U+1D242..U+1D244.
86903         (nonspacing_table_ind): Update.
86904         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86905         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86907 2007-07-08  Bruno Haible  <bruno@clisp.org>
86909         Update to Unicode 5.0.
86910         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86911         code transform. Extend the name index field of unicode_name_to_code and
86912         unicode_code_to_name from 16 to 24 bits.
86913         * lib/uniname/uniname.c (unicode_character_name,
86914         unicode_name_character): Add the range 0x12xxx to the code transform.
86915         * lib/uniname/uninames.h: Regenerated.
86916         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86918 2007-07-07  Bruno Haible  <bruno@clisp.org>
86920         * modules/wcwidth-tests: New file.
86921         * tests/test-wcwidth.c: New file.
86923         Work around MacOS X wcwidth() bug.
86924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86925         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86926         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86927         original wcwidth in non-UTF-8 locales.
86928         * modules/wcwidth (Depends-on): Add localcharset, streq,
86929         uniwidth/width.
86930         * doc/functions/wcwidth.texi: Update.
86932 2007-07-07  Bruno Haible  <bruno@clisp.org>
86934         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86935         (wcwidth): New declaration.
86936         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86937         macros.
86938         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86939         here. Prepare for creating <wchar.h> unconditionally.
86940         * modules/wchar (Depends-on): Add link-warning.
86941         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86942         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86943         * lib/wcwidth.h: Remove file.
86944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86945         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86946         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86947         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86948         (Include): Replace wcwidth.h with <wchar.h>.
86949         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86950         * lib/mbchar.h: Don't include wcwidth.h.
86951         * lib/mbswidth.c: Likewise.
86952         * NEWS: Mention the change.
86954 2007-07-07  Bruno Haible  <bruno@clisp.org>
86956         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86957         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86958         definition with an external declaration.
86959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86960         defined as a function. Remove AC_C_INLINE requirement.
86961         * modules/wcwidth (Files): Add lib/wcwidth.c.
86962         (Makefile.am): Remove redundant statement.
86964 2007-07-07  Bruno Haible  <bruno@clisp.org>
86966         * MODULES.html.sh (Unicode string functions): Add the new modules.
86968         * tests/uniwidth/test-u32-strwidth.c: New file.
86969         * modules/uniwidth/u32-strwidth-tests: New file.
86971         * lib/uniwidth/u32-strwidth.c: New file.
86972         * modules/uniwidth/u32-strwidth: New file.
86974         * tests/uniwidth/test-u16-strwidth.c: New file.
86975         * modules/uniwidth/u16-strwidth-tests: New file.
86977         * lib/uniwidth/u16-strwidth.c: New file.
86978         * modules/uniwidth/u16-strwidth: New file.
86980         * tests/uniwidth/test-u8-strwidth.c: New file.
86981         * modules/uniwidth/u8-strwidth-tests: New file.
86983         * lib/uniwidth/u8-strwidth.c: New file.
86984         * modules/uniwidth/u8-strwidth: New file.
86986         * tests/uniwidth/test-u32-width.c: New file.
86987         * modules/uniwidth/u32-width-tests: New file.
86989         * lib/uniwidth/u32-width.c: New file.
86990         * modules/uniwidth/u32-width: New file.
86992         * tests/uniwidth/test-u16-width.c: New file.
86993         * modules/uniwidth/u16-width-tests: New file.
86995         * lib/uniwidth/u16-width.c: New file.
86996         * modules/uniwidth/u16-width: New file.
86998         * tests/uniwidth/test-u8-width.c: New file.
86999         * modules/uniwidth/u8-width-tests: New file.
87001         * lib/uniwidth/u8-width.c: New file.
87002         * modules/uniwidth/u8-width: New file.
87004         * tests/uniwidth/test-uc_width.c: New file.
87005         * modules/uniwidth/width-tests: New file.
87007         * lib/uniwidth/width.c: New file, from GNU libiconv.
87008         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
87009         * modules/uniwidth/width: New file.
87011         * lib/uniwidth.h: New file, from GNU libiconv.
87012         * modules/uniwidth/base: New file.
87014 2007-07-07  Bruno Haible  <bruno@clisp.org>
87016         * lib/uniname.h: New file, from GNU gettext.
87017         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
87018         * lib/uniname/uninames.h: New file, from GNU gettext.
87019         * lib/uniname/uniname.c: New file, from GNU gettext.
87020         * tests/uniname/test-uninames.sh: New file.
87021         * tests/uniname/test-uninames.c: New file, from GNU gettext.
87022         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
87023         * modules/uniname/base: New file.
87024         * modules/uniname/uniname: New file.
87025         * modules/uniname/uniname-tests: New file.
87026         * MODULES.html.sh (Unicode string functions): Add the new modules.
87028 2007-07-06  Bruno Haible  <bruno@clisp.org>
87030         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
87032 2007-07-06  Bruno Haible  <bruno@clisp.org>
87034         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
87035         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
87036         includes <cygwin/sys_time.h> which includes <sys/select.h> which
87037         include <sys/time.h>.
87038         Reported by Eric Blake.
87040 2007-07-06  Eric Blake  <ebb9@byu.net>
87042         Fix testing canonicalize on cygwin.
87043         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87044         Revert patch from 2007-06-19.
87045         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
87046         canonicalize module is also in use.
87047         * tests/test-canonicalize.c: New file.
87048         * tests/test-canonicalize.sh: Likewise.
87049         * modules/canonicalize-tests: Likewise.
87051 2007-07-06  Jim Meyering  <jim@meyering.net>
87053         * lib/getugroups.c (getugroups): Detect getgrent failure.
87054         Adjust comment to reflect reality: this function may return -1.
87056 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
87058         * build-aux/bootstrap (TP_URL,get_translations): Update to use
87059         the new TP address.
87060         (usage): Fix typo
87061         (gnulib_mk): New variable.
87063 2007-07-05  Jim Meyering  <jim@meyering.net>
87065         Don't let endgrent clobber errno, no matter how improbable.
87066         * lib/getugroups.c (getugroups): Save and restore errno around
87067         endgrent call.
87069         Close the group DB even when failing with 2^31 or more members.
87070         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
87072 2007-07-04  Jim Meyering  <jim@meyering.net>
87074         * lib/getugroups.h: New file.
87075         * lib/getugroups.c: Include "getugroups.h".
87076         Remove uses of "register" keyword.
87077         Move local variable, "cp", down into scope where used.
87078         Give "username" parameter the "const" attribute.
87079         * modules/getugroups (Files): Add lib/getugroups.h
87081 2007-07-04  Karl Berry  <karl@gnu.org>
87083         * MODULES.html.sh (func_all_modules): Complete rename of
87084         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
87086 2007-07-02  Bruno Haible  <bruno@clisp.org>
87088         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
87089         mode, when inttypes.h comes from gnulib.
87090         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87092 2007-07-02  Simon Josefsson  <simon@josefsson.org>
87094         * NEWS: Mention lgpl module name change.
87096         * modules/lgpl-2.1: Renamed from lgpl.
87098         * NEWS: Mention gpl module name change.
87100         * modules/gpl-3.0: New file, based on gpl-2.0.
87102         * modules/gpl-2.0: Renamed from gpl.
87104         * modules/gpl: Fix filename, doc/gpl.texi is now found at
87105         doc/gpl-2.0.texi.
87107 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
87109         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
87110         #define __STDC_LIMIT_MACROS temporarily while including
87111         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
87112         Problem reported by Joel E. Denny in
87113         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
87115 2007-07-01  Bruno Haible  <bruno@clisp.org>
87117         * lib/unistdio.h: New file.
87118         * lib/unistdio/u-asnprintf.h: New file.
87119         * lib/unistdio/u-asprintf.h: New file.
87120         * lib/unistdio/u-printf-args.c: New file.
87121         * lib/unistdio/u-printf-args.h: New file.
87122         * lib/unistdio/u-printf-parse.h: New file.
87123         * lib/unistdio/u-snprintf.h: New file.
87124         * lib/unistdio/u-sprintf.h: New file.
87125         * lib/unistdio/u-vasprintf.h: New file.
87126         * lib/unistdio/u-vsnprintf.h: New file.
87127         * lib/unistdio/u-vsprintf.h: New file.
87128         * lib/unistdio/ulc-asnprintf.c: New file.
87129         * lib/unistdio/ulc-asprintf.c: New file.
87130         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87131         * lib/unistdio/ulc-printf-parse.c: New file.
87132         * lib/unistdio/ulc-snprintf.c: New file.
87133         * lib/unistdio/ulc-sprintf.c: New file.
87134         * lib/unistdio/ulc-vasnprintf.c: New file.
87135         * lib/unistdio/ulc-vasprintf.c: New file.
87136         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87137         * lib/unistdio/ulc-vsnprintf.c: New file.
87138         * lib/unistdio/ulc-vsprintf.c: New file.
87139         * lib/unistdio/u8-asnprintf.c: New file.
87140         * lib/unistdio/u8-asprintf.c: New file.
87141         * lib/unistdio/u8-printf-parse.c: New file.
87142         * lib/unistdio/u8-snprintf.c: New file.
87143         * lib/unistdio/u8-sprintf.c: New file.
87144         * lib/unistdio/u8-vasnprintf.c: New file.
87145         * lib/unistdio/u8-vasprintf.c: New file.
87146         * lib/unistdio/u8-vsnprintf.c: New file.
87147         * lib/unistdio/u8-vsprintf.c: New file.
87148         * lib/unistdio/u8-u8-asnprintf.c: New file.
87149         * lib/unistdio/u8-u8-asprintf.c: New file.
87150         * lib/unistdio/u8-u8-snprintf.c: New file.
87151         * lib/unistdio/u8-u8-sprintf.c: New file.
87152         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87153         * lib/unistdio/u8-u8-vasprintf.c: New file.
87154         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87155         * lib/unistdio/u8-u8-vsprintf.c: New file.
87156         * lib/unistdio/u16-asnprintf.c: New file.
87157         * lib/unistdio/u16-asprintf.c: New file.
87158         * lib/unistdio/u16-printf-parse.c: New file.
87159         * lib/unistdio/u16-snprintf.c: New file.
87160         * lib/unistdio/u16-sprintf.c: New file.
87161         * lib/unistdio/u16-vasnprintf.c: New file.
87162         * lib/unistdio/u16-vasprintf.c: New file.
87163         * lib/unistdio/u16-vsnprintf.c: New file.
87164         * lib/unistdio/u16-vsprintf.c: New file.
87165         * lib/unistdio/u16-u16-asnprintf.c: New file.
87166         * lib/unistdio/u16-u16-asprintf.c: New file.
87167         * lib/unistdio/u16-u16-snprintf.c: New file.
87168         * lib/unistdio/u16-u16-sprintf.c: New file.
87169         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87170         * lib/unistdio/u16-u16-vasprintf.c: New file.
87171         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87172         * lib/unistdio/u16-u16-vsprintf.c: New file.
87173         * lib/unistdio/u32-asnprintf.c: New file.
87174         * lib/unistdio/u32-asprintf.c: New file.
87175         * lib/unistdio/u32-printf-parse.c: New file.
87176         * lib/unistdio/u32-snprintf.c: New file.
87177         * lib/unistdio/u32-sprintf.c: New file.
87178         * lib/unistdio/u32-vasnprintf.c: New file.
87179         * lib/unistdio/u32-vasprintf.c: New file.
87180         * lib/unistdio/u32-vsnprintf.c: New file.
87181         * lib/unistdio/u32-vsprintf.c: New file.
87182         * lib/unistdio/u32-u32-asnprintf.c: New file.
87183         * lib/unistdio/u32-u32-asprintf.c: New file.
87184         * lib/unistdio/u32-u32-snprintf.c: New file.
87185         * lib/unistdio/u32-u32-sprintf.c: New file.
87186         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87187         * lib/unistdio/u32-u32-vasprintf.c: New file.
87188         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87189         * lib/unistdio/u32-u32-vsprintf.c: New file.
87190         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87191         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87192         * tests/unistdio/test-ulc-printf1.h: New file.
87193         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87194         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87195         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87196         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87197         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87198         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87199         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87200         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87201         * tests/unistdio/test-u8-asnprintf1.c: New file.
87202         * tests/unistdio/test-u8-asnprintf1.h: New file.
87203         * tests/unistdio/test-u8-printf1.h: New file.
87204         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87205         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87206         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87207         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87208         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87209         * tests/unistdio/test-u8-vasprintf1.c: New file.
87210         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87211         * tests/unistdio/test-u8-vsprintf1.c: New file.
87212         * tests/unistdio/test-u16-asnprintf1.c: New file.
87213         * tests/unistdio/test-u16-asnprintf1.h: New file.
87214         * tests/unistdio/test-u16-printf1.h: New file.
87215         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87216         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87217         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87218         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87219         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87220         * tests/unistdio/test-u16-vasprintf1.c: New file.
87221         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87222         * tests/unistdio/test-u16-vsprintf1.c: New file.
87223         * tests/unistdio/test-u32-asnprintf1.c: New file.
87224         * tests/unistdio/test-u32-asnprintf1.h: New file.
87225         * tests/unistdio/test-u32-printf1.h: New file.
87226         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87227         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87228         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87229         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87230         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87231         * tests/unistdio/test-u32-vasprintf1.c: New file.
87232         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87233         * tests/unistdio/test-u32-vsprintf1.c: New file.
87234         * modules/unistdio/base: New file.
87235         * modules/unistdio/u-printf-args: New file.
87236         * modules/unistdio/ulc-asnprintf: New file.
87237         * modules/unistdio/ulc-asprintf: New file.
87238         * modules/unistdio/ulc-fprintf: New file.
87239         * modules/unistdio/ulc-printf-parse: New file.
87240         * modules/unistdio/ulc-snprintf: New file.
87241         * modules/unistdio/ulc-sprintf: New file.
87242         * modules/unistdio/ulc-vasnprintf: New file.
87243         * modules/unistdio/ulc-vasprintf: New file.
87244         * modules/unistdio/ulc-vfprintf: New file.
87245         * modules/unistdio/ulc-vsnprintf: New file.
87246         * modules/unistdio/ulc-vsprintf: New file.
87247         * modules/unistdio/u8-asnprintf: New file.
87248         * modules/unistdio/u8-asprintf: New file.
87249         * modules/unistdio/u8-printf-parse: New file.
87250         * modules/unistdio/u8-snprintf: New file.
87251         * modules/unistdio/u8-sprintf: New file.
87252         * modules/unistdio/u8-vasnprintf: New file.
87253         * modules/unistdio/u8-vasprintf: New file.
87254         * modules/unistdio/u8-vsnprintf: New file.
87255         * modules/unistdio/u8-vsprintf: New file.
87256         * modules/unistdio/u8-u8-asnprintf: New file.
87257         * modules/unistdio/u8-u8-asprintf: New file.
87258         * modules/unistdio/u8-u8-snprintf: New file.
87259         * modules/unistdio/u8-u8-sprintf: New file.
87260         * modules/unistdio/u8-u8-vasnprintf: New file.
87261         * modules/unistdio/u8-u8-vasprintf: New file.
87262         * modules/unistdio/u8-u8-vsnprintf: New file.
87263         * modules/unistdio/u8-u8-vsprintf: New file.
87264         * modules/unistdio/u16-asnprintf: New file.
87265         * modules/unistdio/u16-asprintf: New file.
87266         * modules/unistdio/u16-printf-parse: New file.
87267         * modules/unistdio/u16-snprintf: New file.
87268         * modules/unistdio/u16-sprintf: New file.
87269         * modules/unistdio/u16-vasnprintf: New file.
87270         * modules/unistdio/u16-vasprintf: New file.
87271         * modules/unistdio/u16-vsnprintf: New file.
87272         * modules/unistdio/u16-vsprintf: New file.
87273         * modules/unistdio/u16-u16-asnprintf: New file.
87274         * modules/unistdio/u16-u16-asprintf: New file.
87275         * modules/unistdio/u16-u16-snprintf: New file.
87276         * modules/unistdio/u16-u16-sprintf: New file.
87277         * modules/unistdio/u16-u16-vasnprintf: New file.
87278         * modules/unistdio/u16-u16-vasprintf: New file.
87279         * modules/unistdio/u16-u16-vsnprintf: New file.
87280         * modules/unistdio/u16-u16-vsprintf: New file.
87281         * modules/unistdio/u32-asnprintf: New file.
87282         * modules/unistdio/u32-asprintf: New file.
87283         * modules/unistdio/u32-printf-parse: New file.
87284         * modules/unistdio/u32-snprintf: New file.
87285         * modules/unistdio/u32-sprintf: New file.
87286         * modules/unistdio/u32-vasnprintf: New file.
87287         * modules/unistdio/u32-vasprintf: New file.
87288         * modules/unistdio/u32-vsnprintf: New file.
87289         * modules/unistdio/u32-vsprintf: New file.
87290         * modules/unistdio/u32-u32-asnprintf: New file.
87291         * modules/unistdio/u32-u32-asprintf: New file.
87292         * modules/unistdio/u32-u32-snprintf: New file.
87293         * modules/unistdio/u32-u32-sprintf: New file.
87294         * modules/unistdio/u32-u32-vasnprintf: New file.
87295         * modules/unistdio/u32-u32-vasprintf: New file.
87296         * modules/unistdio/u32-u32-vsnprintf: New file.
87297         * modules/unistdio/u32-u32-vsprintf: New file.
87298         * modules/unistdio/ulc-asnprintf-tests: New file.
87299         * modules/unistdio/ulc-vasnprintf-tests: New file.
87300         * modules/unistdio/ulc-vasprintf-tests: New file.
87301         * modules/unistdio/ulc-vsnprintf-tests: New file.
87302         * modules/unistdio/ulc-vsprintf-tests: New file.
87303         * modules/unistdio/u8-asnprintf-tests: New file.
87304         * modules/unistdio/u8-vasnprintf-tests: New file.
87305         * modules/unistdio/u8-vasprintf-tests: New file.
87306         * modules/unistdio/u8-vsnprintf-tests: New file.
87307         * modules/unistdio/u8-vsprintf-tests: New file.
87308         * modules/unistdio/u16-asnprintf-tests: New file.
87309         * modules/unistdio/u16-vasnprintf-tests: New file.
87310         * modules/unistdio/u16-vasprintf-tests: New file.
87311         * modules/unistdio/u16-vsnprintf-tests: New file.
87312         * modules/unistdio/u16-vsprintf-tests: New file.
87313         * modules/unistdio/u32-asnprintf-tests: New file.
87314         * modules/unistdio/u32-vasnprintf-tests: New file.
87315         * modules/unistdio/u32-vasprintf-tests: New file.
87316         * modules/unistdio/u32-vsnprintf-tests: New file.
87317         * modules/unistdio/u32-vsprintf-tests: New file.
87318         * MODULES.html.sh (Unicode string functions): Add the new modules.
87320 2007-07-01  Bruno Haible  <bruno@clisp.org>
87322         * lib/sprintf.c (sprintf): Limit the available length estimation,
87323         to avoid address wraparound.
87324         * lib/vsprintf.c (vsprintf): Likewise.
87325         * modules/sprintf-posix (Dependencies): Add stdint.
87326         * modules/vsprintf-posix (Dependencies): Likewise.
87328 2007-07-01  Bruno Haible  <bruno@clisp.org>
87330         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87331         Windows PATH as well. Conservative double-quoting. Comments.
87333 2007-07-01  Bruno Haible  <bruno@clisp.org>
87334             Eric Blake  <ebb9@byu.net>
87335             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87337         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87338         empty components in $PATH, denoting '.'.
87340 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87342         * gnulib-tool: Fix indentation.
87343         (func_create_megatestdir): Likewise.
87344         Report by Bruno Haible.
87346 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87348         Sync from Automake.
87349         * build-aux/gnupload: Fix shell portability issues with for loops.
87350         Report by Karl Berry.
87352 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87354         * build-aux/maint.mk (POURL): Use translationproject.org.
87356 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87357             Bruno Haible  <bruno@clisp.org>
87359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87360         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87361         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87362         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87363         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87365 2007-06-27  Bruno Haible  <bruno@clisp.org>
87367         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87368         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87370 2007-06-26  Karl Berry  <karl@gnu.org>
87372         * MODULES.html.sh: remove xreadlink-with-size.
87374 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87376         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87377         method that I hope also handles the double-include problem noted
87378         by Bruno Haible in
87379         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87381 2007-06-23  Bruno Haible  <bruno@clisp.org>
87383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87384         Don't let the 'mostlyclean' target fail if the last subdirectory could
87385         not be removed.
87386         Reported by Karl Berry.
87388 2007-06-23  Bruno Haible  <bruno@clisp.org>
87390         * gnulib-tool (echo): Add a speedier workaround for ksh.
87391         * tests/test-echo.sh: Likewise.
87393 2007-06-23  Bruno Haible  <bruno@clisp.org>
87395         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87396         * tests/test-echo.sh: Likewise.
87398 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87400         * gnulib-tool (IFS): Initialize early, so we don't set it to
87401         empty later.
87402         (self_abspathname): Rewrite algorithm to set it, reindent.
87403         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87404         (func_create_megatestdir): Merge some sed scripts.
87406 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87408         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87409         exposed by Sun Studio 11 cc on Solaris 8.
87411 2007-06-22  Bruno Haible  <bruno@clisp.org>
87413         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87414         backslashes.
87415         * tests/test-echo.sh: New file.
87417 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87419         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87420         simplify `sed_replace_build_aux' scripts, they are portable but
87421         echoing them with `echo' is not.
87422         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87424 2007-06-21  Karl Berry  <karl@gnu.org>
87426         * config/srclist.txt: guess we can't handle the licenses via
87427         srclist at the moment.
87429 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87431         * MODULES.html.sh: Add include_next.
87432         * modules/include_next: New file.
87434 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87437         INCLUDE_NEXT.
87438         (gl_CHECK_NEXT_HEADERS): New macro.
87439         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87440         the obsolescent gl_ABSOLUTE_HEADER.
87441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87442         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87443         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87444         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87445         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87446         * m4/math_h.m4 (gl_MATH_H): Likewise.
87447         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87448         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87449         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87450         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87451         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87452         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87458         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87459         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87460         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87461         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87462         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87463         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87464         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87465         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87466         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87467         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87468         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87469         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87470         * lib/float_.h: Likewise.
87471         * lib/inttypes_.h: Likewise.
87472         * lib/math_.h: Likewise.
87473         * lib/search_.h: Likewise.
87474         * lib/signal_.h: Likewise.
87475         * lib/stdint_.h: Likewise.
87476         * lib/stdio_.h: Likewise.
87477         * lib/stdlib_.h: Likewise.
87478         * lib/string_.h: Likewise.
87479         * lib/sys_stat_.h: Likewise.
87480         * lib/sys_time_.h: Likewise.
87481         * lib/time_.h: Likewise.
87482         * lib/unistd_.h: Likewise.
87483         * lib/wchar_.h: Likewise.
87484         * lib/wctype_.h: Likewise.
87485         * lib/dirent_.h: Likewise.
87486         * lib/iconv_.h: Likewise.
87487         * lib/locale_.h: Likewise.
87488         * lib/netinet_in_.h: Likewise.
87489         * lib/sys_select_.h: Likewise.
87490         * lib/sys_socket_.h: Likewise.
87491         * lib/sysexits_.h: Likewise.
87492         * modules/fcntl (Depends-on): Depend on include_next, not
87493         absolute_header.
87494         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87495         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87496         * modules/fchdir: Likewise.
87497         * modules/float: Likewise.
87498         * modules/iconv_open: Likewise.
87499         * modules/inttypes: Likewise.
87500         * modules/locale: Likewise.
87501         * modules/math: Likewise.
87502         * modules/netinet_in: Likewise.
87503         * modules/search: Likewise.
87504         * modules/signal: Likewise.
87505         * modules/stdint: Likewise.
87506         * modules/stdio: Likewise.
87507         * modules/stdlib: Likewise.
87508         * modules/string: Likewise.
87509         * modules/sys_select: Likewise.
87510         * modules/sys_socket: Likewise.
87511         * modules/sys_stat: Likewise.
87512         * modules/sys_time: Likewise.
87513         * modules/sysexits: Likewise.
87514         * modules/time: Likewise.
87515         * modules/unistd: Likewise.
87516         * modules/wchar: Likewise.
87517         * modules/wctype: Likewise.
87518         * modules/sys_stat: Change maintainer to "all".
87519         * modules/unistd: Likewise.
87521 2007-06-20  Karl Berry  <karl@gnu.org>
87523         * config/srclist.txt: track www changes in license files.
87525 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87527         * build-aux/bootstrap: Remove stray dot.
87528         Make sure build_aux settings are honored when linking
87529         gnulib_extra_files.
87531 2007-06-19  Eric Blake  <ebb9@byu.net>
87533         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87534         Allow compilation on cygwin.
87536 2007-06-19  Jim Meyering  <jim@meyering.net>
87538         xreadlink-with-size: Remove module.  No longer used.
87539         Ex-callers now use xreadlink or mreadlink-with-size.
87540         * modules/xreadlink-with-size: Remove module.
87541         * lib/xreadlink-with-size.c: Remove file.
87542         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87543         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87544         just before the function definition *is* accurate.
87546         Eliminate one way canonicalize_filename_mode could exit.
87547         * lib/canonicalize.c (canonicalize_filename_mode):
87548         Use mreadlink_with_size, not xreadlink_with_size.
87550 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87552         Detect porting problems to FreeBSD/arm, which has time_t wider than
87553         long int.  Original problem reported for GNU diff by Xin Li in
87554         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87555         * modules/getdate (Depends-on): Add intprops, verify.
87556         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87557         is an integer type no wider than long int.
87559 2007-06-18  Jim Meyering  <jim@meyering.net>
87561         New module: mreadlink-with-size.
87562         * MODULES.html.sh: Add mreadlink-with-size.
87563         * modules/mreadlink-with-size: New module
87564         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87565         not xreadlink-with-size.
87566         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87568 2007-06-16  Bruno Haible  <bruno@clisp.org>
87570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87571         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87572         Reported by Gary V. Vaughan <gary@gnu.org>.
87574 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87576         Revamp lchown so that it lives in unistd.h where it belongs.
87577         * lib/lchown.h: Remove.
87578         * lib/dirchownmod.c: Don't include lib/lchown.h.
87579         * lib/fchownat.c: Likewise.
87580         * lib/openat.c: Likewise.
87581         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87582         does not follow symlinks.
87583         (EOPNOTSUPP): Define if not defined.
87584         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87585         is defined to 0.
87586         (lchown): New decl.
87587         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87588         Do not check for lchown decl.
87589         Set REPLACE_LCHOWN.
87590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87591         REPLACE_LCHOWN.
87592         * modules/chown: Make it clear it follows symlinks.
87593         * modules/lchown: Make it clear it doesn't follow symlinks.
87594         (Files): Remove lib/lchown.h
87595         (Depends-on): Add unistd.
87596         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87597         (Include): Include <unistd.h>, not "lchown.h".
87598         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87599         REPLACE_LCHOWN.
87601 2007-06-15  Jim Meyering  <jim@meyering.net>
87603         Change license (GPL to LGPL) of fsusage and dependents.
87604         * modules/fsusage (License): Change to LGPL.
87605         * modules/full-read (License): Likewise.
87606         * modules/full-write (License): Likewise.
87607         * modules/safe-read (License): Likewise.
87608         * modules/safe-write (License): Likewise.
87610 2007-06-14  Ben Pfaff  <blp@gnu.org>
87612         Missing part of allocsa -> malloca transition.
87613         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87614         gl_MALLOCA.
87616 2007-06-12  Bruno Haible  <bruno@clisp.org>
87618         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87619         to ia64, x86_64, i386.
87620         Reported by Eric Blake.
87622 2007-06-12  Bruno Haible  <bruno@clisp.org>
87624         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87625         cross-compiling to x86_64.
87627 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87630         glitch reported by Ralf Wildenhues in
87631         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87633         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87634         Vin Shelton.
87636 2007-06-11  Bruno Haible  <bruno@clisp.org>
87638         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87639         replacement string.
87640         Reported by Eric Blake.
87642 2007-06-10  Bruno Haible  <bruno@clisp.org>
87644         Prepare vasnprintf code for use with Unicode strings.
87645         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87646         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87647         TYPE_U32_STRING.
87648         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87649         a_u32_string variants.
87650         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87651         * lib/printf-args.c: Don't include config.h and the specification
87652         header if PRINTF_FETCHARGS is already defined.
87653         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87654         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87655         TYPE_U16_STRING, TYPE_U32_STRING.
87656         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87657         u16_directive, u16_directives, u32_directive, u32_directives): New
87658         types.
87659         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87660         New declarations.
87661         * lib/printf-parse.c: Don't include config.h and the specification
87662         header if PRINTF_PARSE is already defined. Eliminate the set of
87663         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87664         them now. Include c-ctype.h.
87665         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87666         directive and CHAR_T_ONLY_ASCII.
87667         * lib/vasnprintf.c: Don't include config.h and the specification header
87668         if VASNPRINTF is already defined.
87669         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87670         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87671         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87672         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87673         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87674         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87675         code accordingly.
87676         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87677         pad_ourselves also in this case, with the 'c' and 's' directives, and
87678         with a different notion of "width".
87679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87681 2007-06-10  Bruno Haible  <bruno@clisp.org>
87683         * modules/unistr/u32-mbsnlen: New file.
87684         * lib/unistr/u32-mbsnlen.c: New file.
87686         * modules/unistr/u16-mbsnlen: New file.
87687         * lib/unistr/u16-mbsnlen.c: New file.
87689         * modules/unistr/u8-mbsnlen: New file.
87690         * lib/unistr/u8-mbsnlen.c: New file.
87692         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87693         declarations.
87695 2007-06-10  Bruno Haible  <bruno@clisp.org>
87697         * lib/string_.h (mbsnlen): New declaration.
87698         * lib/mbsnlen.c: New file.
87699         * m4/mbsnlen.m4: New file.
87700         * modules/mbsnlen: New file.
87701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87702         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87703         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87705 2007-06-10  Bruno Haible  <bruno@clisp.org>
87707         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87709 2007-06-10  Bruno Haible  <bruno@clisp.org>
87711         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87712         * lib/mbuiter.h: Likewise.
87714 2007-06-10  Bruno Haible  <bruno@clisp.org>
87716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87717         declaration.
87719 2007-06-10  Karl Berry  <karl@gnu.org>
87721         * config/srclist.txt: remove gettext entries, Bruno prefers
87722         to update individually.
87724 2007-06-10  Bruno Haible  <bruno@clisp.org>
87726         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87727         'maxlen'. Ensure only length + width bytes are allocated, not
87728         length + 1 + width.
87730 2007-06-09  Bruno Haible  <bruno@clisp.org>
87732         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87733         (CHAR_T): Remove macro.
87734         (VASNPRINTF): Update.
87736 2007-06-09  Bruno Haible  <bruno@clisp.org>
87738         * MODULES.html.sh (Unicode string functions): Add the new modules.
87740         * modules/uniconv/u32-conv-to-enc: New file.
87741         * lib/uniconv/u32-conv-to-enc.c: New file.
87742         * modules/uniconv/u32-conv-to-enc-tests: New file.
87743         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87745         * modules/uniconv/u16-conv-to-enc: New file.
87746         * lib/uniconv/u16-conv-to-enc.c: New file.
87747         * lib/uniconv/u-conv-to-enc.h: New file.
87748         * modules/uniconv/u16-conv-to-enc-tests: New file.
87749         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87751         * modules/uniconv/u8-conv-to-enc: New file.
87752         * lib/uniconv/u8-conv-to-enc.c: New file.
87753         * modules/uniconv/u8-conv-to-enc-tests: New file.
87754         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87756         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87757         u32_conv_to_encoding): New declarations.
87759 2007-06-09  Bruno Haible  <bruno@clisp.org>
87761         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87763 2007-06-09  Bruno Haible  <bruno@clisp.org>
87765         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87766         * modules/malloca: Renamed from modules/allocsa, updated.
87767         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87768         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87769         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87770         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87771         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87772         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87773         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87774         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87775         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87776         * modules/c-strcasestr (Depends-on): Update.
87777         * lib/c-strcasestr.c: Update.
87778         * modules/c-strstr (Depends-on): Update.
87779         * lib/c-strstr.c: Update.
87780         * modules/canonicalize-lgpl (Depends-on): Update.
87781         * lib/canonicalize-lgpl.c: Update.
87782         * modules/clean-temp (Depends-on): Update.
87783         * lib/clean-temp.c: Update.
87784         * modules/csharpcomp (Depends-on): Update.
87785         * lib/csharpcomp.c: Update.
87786         * modules/csharpexec (Depends-on): Update.
87787         * lib/csharpexec.c: Update.
87788         * modules/javacomp (Depends-on): Update.
87789         * lib/javacomp.c: Update.
87790         * modules/javaexec (Depends-on): Update.
87791         * lib/javaexec.c: Update.
87792         * modules/mbscasestr (Depends-on): Update.
87793         * lib/mbscasestr.c: Update.
87794         * modules/mbsstr (Depends-on): Update.
87795         * lib/mbsstr.c: Update.
87796         * modules/setenv (Depends-on): Update.
87797         * lib/setenv.c: Update.
87798         * modules/strcasestr (Depends-on): Update.
87799         * lib/strcasestr.c: Update.
87800         * modules/striconveha (Depends-on): Update.
87801         * lib/striconveha.c: Update.
87802         * modules/relocatable-prog-wrapper (Files): Update.
87803         * lib/relocwrapper.c: Update.
87804         * build-aux/install-reloc: Update.
87805         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87807 2007-06-08  Bruno Haible  <bruno@clisp.org>
87809         Port to uClibc.
87810         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87811         * lib/fpurge.c (fpurge): Likewise.
87812         * lib/freading.c (freading): Likewise.
87813         * lib/fseeko.c (rpl_fseeko): Likewise.
87814         * lib/fseterr.c (fseterr): Likewise.
87815         * lib/fwriting.c (fwriting): Likewise.
87816         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87818 2007-06-08  Bruno Haible  <bruno@clisp.org>
87820         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87821         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87822         * modules/gettext (Files): Add m4/intlmacosx.m4.
87824 2007-06-07  Bruno Haible  <bruno@clisp.org>
87826         * modules/localename-tests: New file.
87827         * tests/test-localename.c: New file.
87829         New module 'localename'.
87830         * lib/localename.h: New file.
87831         * lib/localename.c: New file, from GNU gettext.
87832         * m4/localename.m4: New file.
87833         * modules/localename: New file.
87835 2007-06-07  Bruno Haible  <bruno@clisp.org>
87837         Work around the lack of <wchar.h> on some builds of uClibc.
87838         * doc/headers/wchar.texi: Update.
87839         * lib/wchar_.h: Include <wchar.h> only if it exists.
87840         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87841         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87842         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87843         doesn't exist.
87844         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87845         * modules/mbfile (Depends-on): Add wchar.
87846         * modules/mbiter (Depends-on): Likewise.
87847         * modules/mbuiter (Depends-on): Likewise.
87848         Reported by Simon Josefsson.
87850 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87852         Work around problem reported by Steven M. Schweda in
87853         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87854         Tru64 5.1B with the Compaq compiler environment installed declares
87855         an 'isblank' function but does not define it in the C library.
87856         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87857         * lib/regex_internal.h (isblank): Likewise.
87858         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87859         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87861 2007-06-05  Bruno Haible  <bruno@clisp.org>
87863         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87864         ia64.
87865         * modules/printf-safe: New file.
87866         * modules/fprintf-posix (Depends-on): Add printf-safe.
87867         * modules/printf-posix (Depends-on): Likewise.
87868         * modules/snprintf-posix (Depends-on): Likewise.
87869         * modules/sprintf-posix (Depends-on): Likewise.
87870         * modules/vasnprintf-posix (Depends-on): Likewise.
87871         * modules/vasprintf-posix (Depends-on): Likewise.
87872         * modules/vfprintf-posix (Depends-on): Likewise.
87873         * modules/vprintf-posix (Depends-on): Likewise.
87874         * modules/vsnprintf-posix (Depends-on): Likewise.
87875         * modules/vsprintf-posix (Depends-on): Likewise.
87876         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87877         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87878         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87879         "no" on i386, x86_64, ia64.
87880         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87882         on i386, x86_64, ia64.
87883         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87884         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87885         on i386, x86_64, ia64.
87886         * tests/test-vasnprintf-posix.c: Include float.h.
87887         (LDBL80_WORDS): New macro.
87888         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87889         on i386, x86_64, ia64.
87890         * tests/test-vasprintf-posix.c: Include float.h.
87891         (LDBL80_WORDS): New macro.
87892         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87893         on i386, x86_64, ia64.
87894         * tests/test-snprintf-posix.c: Include float.h.
87895         * tests/test-sprintf-posix.c: Likewise.
87896         * tests/test-vsnprintf-posix.c: Likewise.
87897         * tests/test-vsprintf-posix.c: Likewise.
87899 2007-06-05  Bruno Haible  <bruno@clisp.org>
87901         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87902         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87903         non-IEEE numbers on i386, x86_64, ia64.
87904         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87905         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87906         * tests/test-isnanl.h: Include float.h.
87907         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87909 2007-06-05  Bruno Haible  <bruno@clisp.org>
87911         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87912         also the %a / %A. Handle the %a / %A code before this extra handling.
87914 2007-06-05  Bruno Haible  <bruno@clisp.org>
87916         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87917         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87919 2007-06-05  Bruno Haible  <bruno@clisp.org>
87921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87922         typo in variable name.
87924 2007-06-05  Eric Blake  <ebb9@byu.net>
87926         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87927         Reported by Simon Josefsson.
87929 2007-06-04  Bruno Haible  <bruno@clisp.org>
87931         Avoid test failures on some PowerPC platforms.
87932         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87933         Define differently for PowerPC.
87934         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87935         Reported by Gary V. Vaughan <gary@gnu.org>.
87937 2007-06-02  Bruno Haible  <bruno@clisp.org>
87939         Fix test-stdint failure on FreeBSD/ia64.
87940         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87941         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87942         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87943         * doc/headers/stdint.texi: Update.
87945 2007-06-01  Bruno Haible  <bruno@clisp.org>
87947         * tests/test-binary-io.c (main): Pass a third argument to open().
87948         Reported by Gary V. Vaughan <gary@gnu.org>.
87950 2007-06-01  Bruno Haible  <bruno@clisp.org>
87952         * doc/functions/frexpl.texi: Update for mingw.
87954 2007-06-01  Bruno Haible  <bruno@clisp.org>
87956         * tests/test-lseek.c (main): Disable test of errno for invalid third
87957         argument.
87958         * doc/functions/lseek.texi: Update.
87959         Reported by Gary V. Vaughan <gary@gnu.org>.
87961 2007-05-28  Bruno Haible  <bruno@clisp.org>
87963         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87965 2007-05-31  Eric Blake  <ebb9@byu.net>
87967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87968         cross compiling.
87970 2007-05-30  Eric Blake  <ebb9@byu.net>
87971         and Bruno Haible  <bruno@clisp.org>
87973         Work around mingw test failures exposed by m4-1.4.9b.
87974         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87975         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87976         moment.
87978 2007-05-30  Bruno Haible  <bruno@clisp.org>
87980         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87981         assuming that they are closed. Needed on HP-UX 11.
87983 2007-05-29  Bruno Haible  <bruno@clisp.org>
87985         Fix a problem with #include_next.
87986         * lib/dirent_.h: Split the double-inclusion guard.
87987         * lib/fcntl_.h: Likewise.
87988         * lib/float_.h: Likewise.
87989         * lib/iconv_.h: Likewise.
87990         * lib/inttypes_.h: Likewise.
87991         * lib/locale_.h: Likewise.
87992         * lib/math_.h: Likewise.
87993         * lib/netinet_in_.h: Likewise.
87994         * lib/search_.h: Likewise.
87995         * lib/signal_.h: Likewise.
87996         * lib/stdint_.h: Likewise.
87997         * lib/stdio_.h: Likewise.
87998         * lib/stdlib_.h: Likewise.
87999         * lib/string_.h: Likewise.
88000         * lib/sys_select_.h: Likewise.
88001         * lib/sys_socket_.h: Likewise.
88002         * lib/sys_stat_.h: Likewise.
88003         * lib/sys_time_.h: Likewise.
88004         * lib/sysexits_.h: Likewise.
88005         * lib/time_.h: Likewise.
88006         * lib/unistd_.h: Likewise.
88007         * lib/wchar_.h: Likewise.
88008         * lib/wctype_.h: Likewise.
88010 2007-05-29  Bruno Haible  <bruno@clisp.org>
88012         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
88013         for the moment.
88015 2007-05-29  Bruno Haible  <bruno@clisp.org>
88017         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
88018         invocation.
88019         Reported by Eric Blake.
88021 2007-05-29  Bruno Haible  <bruno@clisp.org>
88023         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
88024         compiling case.
88026 2007-05-29  Eric Blake  <ebb9@byu.net>
88027             Bruno Haible  <bruno@clisp.org>
88029         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
88030         cross compiles.
88032 2007-05-28  Eric Blake  <ebb9@byu.net>
88034         * modules/closein-tests (test_closein_LDADD): Support test on
88035         cygwin with libtool.
88037 2007-05-28  Bruno Haible  <bruno@clisp.org>
88039         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
88040         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
88041         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
88042         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
88043         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
88044         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
88045         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
88046         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
88047         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
88049 2007-05-28  Eric Blake  <ebb9@byu.net>
88051         Unconditionally include <config.h> in unit tests.
88052         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
88053         * tests/test-allocsa.c, tests/test-arcfour.c,
88054         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
88055         tests/test-array_list.c, tests/test-array_oset.c,
88056         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
88057         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
88058         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
88059         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
88060         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
88061         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
88062         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
88063         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
88064         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
88065         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
88066         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
88067         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
88068         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
88069         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
88070         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
88071         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
88072         test-md5.c, test-memmem.c, test-printf-posix.c,
88073         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
88074         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
88075         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
88076         test-strcasestr.c, test-striconv.c, test-striconveh.c,
88077         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
88078         test-vasnprintf-posix2.c, test-vasnprintf.c,
88079         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
88080         test-vfprintf-posix.c, test-vprintf-posix.c,
88081         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
88082         test-xvasprintf.c: Likewise.
88084 2007-05-28  Bruno Haible  <bruno@clisp.org>
88086         * gnulib-tool (func_import): Remember the --with-tests command-line
88087         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
88088         Reported by Eric Blake.
88090 2007-05-28  Bruno Haible  <bruno@clisp.org>
88092         * modules/ftell-tests: New file.
88093         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
88094         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
88096         * lib/ftell.c: New file.
88097         * modules/ftell: New file.
88098         * m4/ftell.m4: New file.
88099         * doc/functions/ftell.texi: Update.
88100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
88101         REPLACE_FTELL.
88102         * lib/stdio_.h (rpl_ftell): New declaration.
88103         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
88104         REPLACE_FTELL.
88106 2007-05-28  Eric Blake  <ebb9@byu.net>
88108         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
88110 2007-05-28  Bruno Haible  <bruno@clisp.org>
88112         * modules/fseek-tests: New file.
88113         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
88114         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
88116         * lib/fseek.c: New file.
88117         * modules/fseek: New file.
88118         * m4/fseek.m4: New file.
88119         * doc/functions/fseek.texi: Update.
88120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
88121         REPLACE_FSEEK.
88122         * lib/stdio_.h (rpl_fseek): New declaration.
88123         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88124         REPLACE_FSEEK.
88126 2007-05-28  Bruno Haible  <bruno@clisp.org>
88128         * lib/stdio_.h (fflush): More comments.
88130 2007-05-28  Bruno Haible  <bruno@clisp.org>
88132         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88133         runtime test.
88135 2007-05-28  Eric Blake  <ebb9@byu.net>
88137         Improve lseek module.
88138         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88139         * lib/unistd_.h (lseek): Scale back link warning message.
88140         * tests/test-lseek.c: Beef up test.
88141         * tests/test-lseek.sh: Exercise more facets of lseek.
88142         Reported by Bruno Haible.
88144 2007-05-28  Bruno Haible  <bruno@clisp.org>
88146         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88147         to define.
88149 2007-05-27  Bruno Haible  <bruno@clisp.org>
88151         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88153 2007-05-27  Bruno Haible  <bruno@clisp.org>
88155         * modules/openmp: New file.
88156         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88157         Noah Misch.
88159 2007-05-26  Bruno Haible  <bruno@clisp.org>
88161         * modules/chdir-long (Depends-on): Add fchdir.
88162         * modules/chdir-safer (Depends-on): Likewise.
88163         * modules/fts (Depends-on): Likewise.
88164         * modules/fts-lgpl (Depends-on): Likewise.
88165         * modules/openat (Depends-on): Likewise.
88166         * modules/savewd (Depends-on): Likewise.
88168 2007-05-24  Eric Blake  <ebb9@byu.net>
88170         Fix lseek on mingw.
88171         * modules/lseek: New module.
88172         * m4/lseek.m4: New file.
88173         * lib/lseek.c: New file.
88174         * modules/lseek-tests: New file.
88175         * tests/test-lseek.c: New file.
88176         * tests/test-lseek.sh: New file.
88177         * MODULES.html.sh: Document lseek module.
88178         * modules/fflush (Depends-on): Add lseek, fseeko.
88179         * modules/fseeko (Depends-on): Likewise.
88180         * modules/ftello (Depends-on): Likewise.
88181         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88182         broken.
88183         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88184         broken.
88185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88186         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88187         * lib/ftello.c (rpl_ftello): Likewise.
88188         * tests/test-fseeko.c (main): Test this.
88189         * tests/test-fseeko.sh: Likewise.
88190         * tests/test-ftello.c (main): Likewise.
88191         * tests/test-ftello.sh: Likewise.
88192         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88193         implies replacing fseek.
88194         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88195         HAVE_FTELLO.
88196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88197         * modules/unistd (Makefile.am): Likewise.
88198         * lib/unistd_.h (lseek): Declare a replacement.
88199         * doc/functions/lseek.texi (lseek): Document this fix.
88200         * doc/functions/fseek.texi (fseek): Likewise.
88201         * doc/functions/ftell.texi (ftell): Likewise.
88203 2007-05-24  Bruno Haible  <bruno@clisp.org>
88205         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88206         in the printed representation of a NaN.
88207         * tests/test-vasprintf-posix.c (test_function): Likewise.
88208         * tests/test-snprintf-posix.h (test_function): Likewise.
88209         * tests/test-sprintf-posix.h (test_function): Likewise.
88210         Reported by Eric Blake.
88212 2007-05-23  Eric Blake  <ebb9@byu.net>
88214         Fix fseeko/ftello on cygwin 1.5.24.
88215         * doc/functions/fseeko.texi (fseeko): Document the fix.
88216         * doc/functions/ftello.texi (ftello): Document the fix.
88217         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88218         * doc/functions/stdout.text (stdout): New file.
88219         * doc/functions/stderr.text (stderr): New file.
88220         * doc/gnulib.texi (Function Substitutes): Use new files.
88221         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88222         prior to 1.7.0.
88223         * tests/test-ftello.c (main): Likewise for ftello.
88224         * tests/test-fseeko.sh: New file.
88225         * tests/test-ftello.sh: New file.
88226         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88227         with seekable stdin.
88228         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88230         (gl_REPLACE_FSEEKO): New macro.
88231         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88232         * modules/fseeko (Files): Distribute fseeko.c.
88233         * modules/ftello (Files): Distribute ftello.c.
88234         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88235         mode.
88236         * lib/ftello.c (rpl_ftello): New file.
88237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88238         fseeko, ftello.
88239         (gl_STDIN_LARGE_OFFSET): New macro.
88240         * modules/stdio (Makefile.am): Perform the replacement.
88241         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88243 2007-05-23  Bruno Haible  <bruno@clisp.org>
88245         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88246         GNULIB_POSIXCHECK is defined.
88248 2007-05-21  Bruno Haible  <bruno@clisp.org>
88250         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88251         Check also the output for NaN arguments. When cross-compiling, guess
88252         no on IRIX.
88253         * lib/vasnprintf.c: Update comments.
88254         * tests/test-vasnprintf-posix.c (strisnan): New function.
88255         (test_function): Use it.
88256         * tests/test-vasprintf-posix.c (strisnan): New function.
88257         (test_function): Use it.
88258         * tests/test-snprintf-posix.h (strisnan): New function.
88259         (test_function): Use it.
88260         * tests/test-sprintf-posix.h (strisnan): New function.
88261         (test_function): Use it.
88262         Reported by Eric Blake.
88264 2007-05-20  Bruno Haible  <bruno@clisp.org>
88266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88267         numbers that fails on BeOS.
88268         * doc/functions/frexpl.texi: Update.
88270 2007-05-20  Jim Meyering  <jim@meyering.net>
88272         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88273         forced upon us by glibc-2.6.
88275 2007-05-20  Bruno Haible  <bruno@clisp.org>
88277         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88278         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88279         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88280         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88281         NEED_PRINTF_INFINITE.
88282         (is_infinitel): New function.
88283         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88285         gl_PREREQ_VASNPRINTF_INFINITE.
88286         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88288         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88289         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88290         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88291         gl_PREREQ_VASNPRINTF_INFINITE.
88292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88294         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88296         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88298         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88299         * doc/functions/fprintf.texi: Update.
88300         * doc/functions/printf.texi: Update.
88301         * doc/functions/snprintf.texi: Update.
88302         * doc/functions/sprintf.texi: Update.
88303         * doc/functions/vfprintf.texi: Update.
88304         * doc/functions/vprintf.texi: Update.
88305         * doc/functions/vsnprintf.texi: Update.
88306         * doc/functions/vsprintf.texi: Update.
88308 2007-05-20  Bruno Haible  <bruno@clisp.org>
88310         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88311         was not found in libc.
88312         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88314 2007-05-20  Bruno Haible  <bruno@clisp.org>
88316         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88317         printed as "-nan" instead of "nan".
88318         * tests/test-vasprintf-posix.c (test_function): Likewise.
88319         * tests/test-snprintf-posix.h (test_function): Likewise.
88320         * tests/test-sprintf-posix.h (test_function): Likewise.
88321         Needed for HP-UX 11.
88323 2007-05-20  Jim Meyering  <jim@meyering.net>
88325         Fix buggy test for the fchownat-deref bug.
88326         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88327         symlink required for the run-test.  Without it, this test would
88328         always declare that fchownat doesn't work, and client code would
88329         unnecessarily use the replacement function with fixed libc.
88330         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88331         Reported by Greg Schafer.
88333 2007-05-19  Bruno Haible  <bruno@clisp.org>
88335         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88336         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88337         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88338         Needed for IRIX 6.5 and Solaris 2.5.1.
88340 2007-05-19  Bruno Haible  <bruno@clisp.org>
88342         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88343         (test_function): Skip tests involving -0.0 on platforms where
88344         -0.0 = 0.0.
88345         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88346         (test_function): Skip tests involving -0.0 on platforms where
88347         -0.0 = 0.0.
88348         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88349         (test_function): Skip tests involving -0.0 on platforms where
88350         -0.0 = 0.0.
88351         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88352         (test_function): Skip tests involving -0.0 on platforms where
88353         -0.0 = 0.0.
88354         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88355         tests.
88356         * tests/test-printf-posix.h (test_function): Likewise.
88357         * tests/test-printf-posix.output: Remove all -0.0 related results.
88358         Needed for IRIX 6.5.
88360 2007-05-19  Bruno Haible  <bruno@clisp.org>
88362         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88363         printed as "nan0x7fffffff" instead of "nan".
88364         * tests/test-vasprintf-posix.c (test_function): Likewise.
88365         * tests/test-snprintf-posix.h (test_function): Likewise.
88366         * tests/test-sprintf-posix.h (test_function): Likewise.
88367         * tests/test-fprintf-posix.h (NaN): Remove macro.
88368         (test_function): Remove all NaN related tests.
88369         * tests/test-printf-posix.h (NaN): Remove macro.
88370         (test_function): Remove all NaN related tests.
88371         * tests/test-printf-posix.output: Remove all NaN related results.
88372         Needed for IRIX 6.5.
88374 2007-05-19  Bruno Haible  <bruno@clisp.org>
88376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88379 2007-05-19  Bruno Haible  <bruno@clisp.org>
88381         * lib/float_.h: New file.
88382         * m4/float_h.m4: New file.
88383         * modules/float: New file.
88384         * modules/isnanl (Dependencies): Add float.
88385         * modules/isnanl-nolibm (Dependencies): Likewise.
88386         * modules/mathl (Dependencies): Likewise.
88387         * modules/printf-frexpl (Dependencies): Likewise.
88388         * modules/signbit (Dependencies): Likewise.
88389         * modules/vasnprintf (Dependencies): Likewise.
88390         * doc/headers/float.texi: Update.
88392 2007-05-19  Jim Meyering  <jim@meyering.net>
88394         * lib/utimens.c (gl_futimens): Rename from futimens,
88395         now that glibc-2.6 declares futimens.
88396         * lib/utimens.h: Likewise.
88398 2007-05-19  Bruno Haible  <bruno@clisp.org>
88400         Avoid test failures on mingw.
88401         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88402         * tests/test-printf-posix.sh: Likewise.
88403         * tests/test-vfprintf-posix.sh: Likewise.
88404         * tests/test-vprintf-posix.sh: Likewise.
88406 2007-05-19  Bruno Haible  <bruno@clisp.org>
88408         Fix *printf result for NaN, Inf, -0.0 on mingw.
88409         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88410         * lib/vasnprintf.c: Include math.h and isnan.h.
88411         (is_infinite_or_zero): New function.
88412         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88413         values in the %f, %F, %e, %E, %g, %G directives.
88414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88416         gl_PRINTF_INFINITE and test its result. Invoke
88417         gl_PREREQ_VASNPRINTF_INFINITE.
88418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88422         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88425         * doc/functions/fprintf.texi: Update.
88426         * doc/functions/printf.texi: Update.
88427         * doc/functions/snprintf.texi: Update.
88428         * doc/functions/sprintf.texi: Update.
88429         * doc/functions/vfprintf.texi: Update.
88430         * doc/functions/vprintf.texi: Update.
88431         * doc/functions/vsnprintf.texi: Update.
88432         * doc/functions/vsprintf.texi: Update.
88434 2007-05-19  Bruno Haible  <bruno@clisp.org>
88436         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88437         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88438         Instead of multiplying with 10^k, set extra_zeroes to k.
88439         (scale10_round_long_double): Remove function.
88441 2007-05-18  Bruno Haible  <bruno@clisp.org>
88443         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88444         introduced on 2007-05-06.
88446 2007-05-18  Bruno Haible  <bruno@clisp.org>
88448         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88449         %g directives.
88450         * tests/test-vasprintf-posix.c (test_function): Likewise.
88451         * tests/test-snprintf-posix.h (test_function): Likewise.
88452         * tests/test-sprintf-posix.h (test_function): Likewise.
88454 2007-05-18  Bruno Haible  <bruno@clisp.org>
88456         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88457         (strmatch): New function.
88458         (test_function): Test the %f directive on numbers of various exponents.
88459         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88460         (strmatch): New function.
88461         (test_function): Test the %f directive on numbers of various exponents.
88462         * tests/test-snprintf-posix.h (strmatch): New function.
88463         (test_function): Test the %f directive on numbers of various exponents.
88464         * tests/test-sprintf-posix.h (strmatch): New function.
88465         (test_function): Test the %f directive on numbers of various exponents.
88466         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88467         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88468         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88469         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88471 2007-05-18  Bruno Haible  <bruno@clisp.org>
88473         Add support for 'long double' number output.
88474         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88475         * lib/vasnprintf.c: Include math.h and float+.h.
88476         (mp_limb_t): New type.
88477         (GMP_LIMB_BITS): New macro.
88478         (mp_twolimb_t): New type.
88479         (GMP_TWOLIMB_BITS): New macro.
88480         (mpn_t): New type.
88481         (multiply, divide, convert_to_decimal, decode_long_double,
88482         scale10_round_long_double, scale10_round_decimal_long_double,
88483         floorlog10l): New functions.
88484         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88485         for the %f, %F, %e, %E, %g, %G directives.
88486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88488         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88489         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88497         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88498         * modules/snprintf-posix (Depends-on): Likewise.
88499         * modules/sprintf-posix (Depends-on): Likewise.
88500         * modules/vasnprintf-posix (Depends-on): Likewise.
88501         * modules/vasprintf-posix (Depends-on): Likewise.
88502         * modules/vfprintf-posix (Depends-on): Likewise.
88503         * modules/vsnprintf-posix (Depends-on): Likewise.
88504         * modules/vsprintf-posix (Depends-on): Likewise.
88505         * modules/vasnprintf (Files): Add lib/float+.h.
88506         * doc/functions/fprintf.texi: Update.
88507         * doc/functions/printf.texi: Update.
88508         * doc/functions/snprintf.texi: Update.
88509         * doc/functions/sprintf.texi: Update.
88510         * doc/functions/vfprintf.texi: Update.
88511         * doc/functions/vprintf.texi: Update.
88512         * doc/functions/vsnprintf.texi: Update.
88513         * doc/functions/vsprintf.texi: Update.
88515 2007-05-18  Bruno Haible  <bruno@clisp.org>
88517         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88519 2007-05-18  Bruno Haible  <bruno@clisp.org>
88521         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88522         for printing 64-bit integers. Needed for mingw.
88524 2007-05-18  Bruno Haible  <bruno@clisp.org>
88526         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88527         gl_FUNC_FREXPL_WORKS.
88528         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88530 2007-05-18  Bruno Haible  <bruno@clisp.org>
88532         * modules/frexpl-nolibm-tests: New file.
88534         * modules/frexpl-nolibm: New file.
88535         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88537 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88539         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88540         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88541         GCC 4.2, which otherwise issues a lot of warnings.
88542         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88543         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88544         Likewise.
88545         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88546         * modules/iconv_open (iconv.h): Likewise.
88547         * modules/locale (locale.h): Likewise.
88548         * modules/netinet_in (netinet/in.h): Likewise.
88549         * modules/sys_select (sys_select.h): Likewise.
88550         * modules/sys_socket (sys/socket.h): Likewise.
88551         * modules/sys_stat (sys/stat.h): Likewise.
88552         * modules/sysexits (sysexits.h): Likewise.
88553         * modules/unistd (unistd.h): Likewise.
88555 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88557         * modules/closein-tests (Makefile.am): Distribute
88558         `test-closein.sh'.
88560 2007-05-17  Bruno Haible  <bruno@clisp.org>
88562         * tests/test-printf-posix.output: Renamed from
88563         tests/test-fprintf-posix.out.
88564         * modules/fprintf-posix-tests: Update.
88565         * modules/printf-posix-tests: Update.
88566         * modules/vfprintf-posix-tests: Update.
88567         * modules/vprintf-posix-tests: Update.
88568         * tests/test-fprintf-posix.sh: Update.
88569         * tests/test-printf-posix.sh: Update.
88570         * tests/test-vfprintf-posix.sh: Update.
88571         * tests/test-vprintf-posix.sh: Update.
88572         Reported by Ralf Wildenhues.
88574 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88576         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88577         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88578         GCC 4.2, which otherwise issues a lot of warnings.
88579         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88580         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88581         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88582         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88583         it should no longer be needed.
88584         * lib/string_.h: Likewise.
88585         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88586         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88587         * modules/inttypes (inttypes.h): Likewise.
88588         * modules/math (math.h): Likewise.
88589         * modules/search (search.h): Likewise.
88590         * modules/signal (signal.h): Likewise.
88591         * modules/stdint (stdint.h): Likewise.
88592         * modules/stdio (stdio.h): Likewise.
88593         * modules/stdlib (stdlib.h): Likewise.
88594         * modules/string (string.h): Likewise.
88595         * modules/sys_time (sys/time.h): Likewise.
88596         * modules/time (time.h): Likewise.
88597         * modules/wchar (wchar.h): Likewise.
88598         * modules/wctype (wtype.h): Likewise.
88600 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88602         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88604 2007-05-13  Bruno Haible  <bruno@clisp.org>
88606         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88607         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88608         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88609         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88610         (gl_PREREQ_STRTOK_R): Don't require it here.
88612 2007-05-13  Bruno Haible  <bruno@clisp.org>
88614         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88615         when used in C++ mode.
88617 2007-05-12  Bruno Haible  <bruno@clisp.org>
88619         * lib/linebuffer.h: Tweak doc.
88620         * lib/linebuffer.c: Likewise.
88622 2007-05-12  James Youngman  <jay@gnu.org>
88624         * lib/linebuffer.c (readlinebuffer_delim): New function,
88625         like readlinebuffer, but use a caller-specified delimiter.
88626         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88627         as the delimiter.
88628         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88630 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88632         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88633         * modules/openat (Files): Remove openat-die.c.
88634         (Depends-on): Add openat-die.
88635         * modules/openat-die: New module.
88637 2007-05-06  Bruno Haible  <bruno@clisp.org>
88639         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88640         Update with info about Cygwin.
88641         * doc/functions/fprintf.texi: Update.
88642         * doc/functions/printf.texi: Update.
88643         * doc/functions/snprintf.texi: Update.
88644         * doc/functions/sprintf.texi: Update.
88645         * doc/functions/vfprintf.texi: Update.
88646         * doc/functions/vprintf.texi: Update.
88647         * doc/functions/vsnprintf.texi: Update.
88648         * doc/functions/vsprintf.texi: Update.
88649         Reported by Eric Blake.
88651 2007-05-06  Bruno Haible  <bruno@clisp.org>
88653         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88654         padding ourselves for the floating-point directives.
88655         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88658         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88659         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88661         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88667         * tests/test-snprintf-posix.h (test_function): Also check the width
88668         and some flags in the %f directive.
88669         * tests/test-sprintf-posix.h (test_function): Likewise.
88670         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88671         * tests/test-vasprintf-posix.c (test_function): Likewise.
88672         * doc/functions/fprintf.texi: Update.
88673         * doc/functions/printf.texi: Update.
88674         * doc/functions/snprintf.texi: Update.
88675         * doc/functions/sprintf.texi: Update.
88676         * doc/functions/vfprintf.texi: Update.
88677         * doc/functions/vprintf.texi: Update.
88678         * doc/functions/vsnprintf.texi: Update.
88679         * doc/functions/vsprintf.texi: Update.
88681 2007-05-06  Bruno Haible  <bruno@clisp.org>
88683         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88684         pass the ' flag character to sprintf or snprintf.
88685         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88688         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88689         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88690         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88693         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88694         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88696         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88697         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88698         flag.
88699         * tests/test-sprintf-posix.h (test_function): Likewise.
88700         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88701         * tests/test-vasprintf-posix.c (test_function): Likewise.
88702         * doc/functions/fprintf.texi: Update.
88703         * doc/functions/printf.texi: Update.
88704         * doc/functions/snprintf.texi: Update.
88705         * doc/functions/sprintf.texi: Update.
88706         * doc/functions/vfprintf.texi: Update.
88707         * doc/functions/vprintf.texi: Update.
88708         * doc/functions/vsnprintf.texi: Update.
88709         * doc/functions/vsprintf.texi: Update.
88711 2007-05-01  Bruno Haible  <bruno@clisp.org>
88713         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88715 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88717         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88718         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88720 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88722         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88723         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88724         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88726 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88728         * lib/argp-help.c (struct hol_entry): New member `ord'.
88729         (HOL_ENTRY_PTRCMP): Use ord for comparison
88730         (hol_sort): Initialize ord.
88732 2007-05-01  Bruno Haible  <bruno@clisp.org>
88734         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88735         Reported by Eric Blake.
88736         * doc/gnulib.texi (Function Substitutes): Update.
88738 2007-05-01  Bruno Haible  <bruno@clisp.org>
88740         * doc/functions.texi: Remove file, now redundant through
88741         doc/functions/*.texi.
88743 2007-05-01  Bruno Haible  <bruno@clisp.org>
88745         * modules/argp (Depends-on): Add sleep.
88747 2007-05-01  Bruno Haible  <bruno@clisp.org>
88749         * modules/sleep-tests: New file.
88750         * tests/test-sleep.c: New file.
88752         * modules/sleep: New file.
88753         * lib/sleep.c: New file.
88754         * m4/sleep.m4: New file.
88755         * lib/unistd_.h (sleep): New declaration.
88756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88757         HAVE_SLEEP.
88758         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88759         * doc/functions/sleep.texi: Document the sleep module.
88761 2007-05-01  Bruno Haible  <bruno@clisp.org>
88763         * lib/sigprocmask.h: Remove file.
88764         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88765         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88766         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88767         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88768         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88769         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88770         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88771         HAVE_SIGSET_T as a shell variable.
88772         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88773         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88774         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88775         (Depends-on): Add signal. Remove verify.
88776         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88777         (Include): Mention <signal.h> instead of sigprocmask.h.
88778         * NEWS: Mention the change.
88779         * lib/fatal-signal.c: Don't include sigprocmask.h.
88781 2007-05-01  Bruno Haible  <bruno@clisp.org>
88783         * modules/signal: New file.
88784         * lib/signal_.h: New file.
88785         * m4/signal_h.m4: New file.
88787 2007-05-01  Bruno Haible  <bruno@clisp.org>
88789         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88790         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88791         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88792         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88794 2007-05-01  Bruno Haible  <bruno@clisp.org>
88796         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88797         configure time.
88798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88799         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88800         * modules/sys_stat (Makefile.am): Substitute their values into
88801         sys/stat.h.
88803 2007-05-01  Bruno Haible  <bruno@clisp.org>
88805         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88806         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88807         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88809 2007-05-01  Bruno Haible  <bruno@clisp.org>
88811         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88812         'assert' module here.
88814 2007-05-01  Bruno Haible  <bruno@clisp.org>
88816         * doc/functions/*.texi: New files.
88817         * doc/functions/google-ranking.txt: New file.
88818         * doc/gnulib.texi (Function Substitutes): New chapter.
88819         (ctime, inet_ntoa): Remove sections.
88820         * doc/ctime.texi: Remove file.
88821         * doc/inet_ntoa.texi: Remove file.
88822         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88823         dependencies.
88824         (%.info): New rule, specifying a --reference-limit.
88826 2007-05-01  Bruno Haible  <bruno@clisp.org>
88828         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88830 2007-05-01  Bruno Haible  <bruno@clisp.org>
88832         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88833         the portability of 'mkdir' to mingw systems.
88835 2007-05-01  Bruno Haible  <bruno@clisp.org>
88837         * doc/headers/google-ranking.txt: New file.
88839 2007-04-30  Eric Blake  <ebb9@byu.net>
88841         Prefer fseeko to fseek.
88842         * modules/getpass (Depends-on): Add fseeko.
88843         * lib/getpass.c (getpass): Use fseeko, not fseek.
88845 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88847         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88848         assumes the sorting is stable, while most qsort implementations
88849         are not.  Use argument addresses to ensure they never compare as
88850         equal.
88852         * tests/test-argp-2.sh (usage-indent test): Fix output
88853         (func_compare): Restore diff options
88854         * tests/test-argp.c: Restore #include "progname.h"
88856 2007-04-29  Bruno Haible  <bruno@clisp.org>
88858         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88860         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88862         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88863         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88864         (TESTS, check_PROGRAMS): Add test-snprintf.
88865         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88866         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88867         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88868         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88869         assertions that fail on HP-UX, OSF/1, or IRIX.
88870         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88872 2007-04-29  Bruno Haible  <bruno@clisp.org>
88874         * MODULES.html.sh (posix_functions): Remove 'contents'.
88876 2007-04-29  Karl Berry  <karl@gnu.org>
88878         * config/srclist.txt (gendocs_template_min): new entry.
88880 2007-04-29  Bruno Haible  <bruno@clisp.org>
88882         Work around fpurge bug on BSD systems.
88883         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88884         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88885         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88886         fpurge to rpl_fpurge if the system already has this function.
88887         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88888         the case where the system already has this function. Correct invariants
88889         on BSD systems.
88890         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88891         BSD systems.
88893 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88895         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88896         proposed by Sven Verdoolaege.
88898         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88899         options.
88900         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88901         (usage and help tests): Update
88903 2007-04-29  Bruno Haible  <bruno@clisp.org>
88905         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88906         Print more information in case of failure. Disable a test on BeOS.
88908 2007-04-29  Bruno Haible  <bruno@clisp.org>
88910         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88911         This helps debugging on systems on which no gdb is available.
88913 2007-04-29  Bruno Haible  <bruno@clisp.org>
88915         * lib/freading.h: Improve comments.
88916         * lib/fwriting.h: Likewise.
88917         * tests/test-freading.c (main): Don't check freading immediately after
88918         repositioning. Needed for glibc.
88920 2007-04-29  Bruno Haible  <bruno@clisp.org>
88922         * lib/freading.c (freading): Trivial simplification.
88924 2007-04-28  Bruno Haible  <bruno@clisp.org>
88926         * tests/test-fwriting.c (main): Also test the interaction between
88927         fflush and fwriting.
88928         * modules/fwriting-tests (Depends-on): Add fflush.
88930         * tests/test-freading.c (main): Also test the interaction between
88931         fflush and freading.
88932         * modules/freading-tests (Depends-on): Add fflush.
88934 2007-04-28  Bruno Haible  <bruno@clisp.org>
88936         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88937         fseeko and ftello.
88938         Suggested by Eric Blake.
88940 2007-04-28  Jim Meyering  <jim@meyering.net>
88942         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88943         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88944         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88946 2007-04-27  Eric Blake  <ebb9@byu.net>
88948         * doc/headers/assert.texi (assert.h): Document assert module use.
88950 2007-04-27  Bruno Haible  <bruno@clisp.org>
88952         * doc/headers/*.texi: New files.
88953         * doc/gnulib.texi (Header File Substitutes): New chapter.
88954         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88955         dependencies.
88956         (standards.info ,standards.html, standards.dvi): Update dependencies.
88957         (mostlyclean, clean): New targets.
88959 2007-04-27  Bruno Haible  <bruno@clisp.org>
88961         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88962         * modules/sysexits (Files, Makefile.am): Update.
88964         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88965         * modules/sys_socket (Files, Makefile.am): Update.
88967         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88968         * modules/sys_stat (Files, Makefile.am): Update.
88970 2007-04-27  Eric Blake  <ebb9@byu.net>
88972         * lib/freading.h: Improve comments.
88973         * lib/fwriting.h: Likewise.
88974         * lib/fflush.c: Likewise.
88976         Fix closein for mingw.
88977         * modules/closein-tests: Add tests for closein.
88978         * tests/test-closein.c: New file.
88979         * tests/test-closein.sh: Likewise.
88980         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88981         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88983 2007-04-27  Bruno Haible  <bruno@clisp.org>
88985         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88986         version is < 6.
88987         * lib/math_.h [__DECC]: Likewise.
88988         * lib/stdio_.h [__DECC]: Likewise.
88989         * lib/stdlib_.h [__DECC]: Likewise.
88990         * lib/string_.h [__DECC]: Likewise.
88991         * lib/time_.h [__DECC]: Likewise.
88992         * lib/wchar_.h [__DECC]: Likewise.
88993         * lib/wctype_.h [__DECC]: Likewise.
88995 2007-04-27  Bruno Haible  <bruno@clisp.org>
88997         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88999 2007-04-27  Bruno Haible  <bruno@clisp.org>
89001         * lib/fflush.c: Add comments.
89002         * modules/fpurge-tests (Depends-on): Add fflush.
89003         * modules/freadable-tests (Depends-on): Likewise.
89004         * modules/fwritable-tests (Depends-on): Likewise.
89006 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
89008         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
89009         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
89010         Report by Bruno Haible <bruno@clisp.org>.
89012 2007-04-26  Eric Blake  <ebb9@byu.net>
89014         Fix fflush on mingw.
89015         * modules/fflush (Depends-on): Add freading.
89016         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
89017         but unread data.
89019 2007-04-26  Eric Blake  <ebb9@byu.net>
89020         and Bruno Haible  <bruno@clisp.org>
89022         Implement freading and fwriting.
89023         * lib/freading.c: New file.
89024         * lib/freading.h: Likewise.
89025         * m4/freading.m4: Likewise.
89026         * modules/freading: Likewise.
89027         * modules/freading-tests: Likewise.
89028         * tests/test-freading.c: Likewise.
89029         * lib/fwriting.c: New file.
89030         * lib/fwriting.h: Likewise.
89031         * m4/fwriting.m4: Likewise.
89032         * modules/fwriting: Likewise.
89033         * modules/fwriting-tests: Likewise.
89034         * tests/test-fwriting.c: Likewise.
89035         * MODULES.html.sh (File stream based Input/Output): Mention them.
89037 2007-04-26  Bruno Haible  <bruno@clisp.org>
89039         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
89040         'long' when we assume it.
89041         Suggested by Eric Blake.
89043 2007-04-26  Bruno Haible  <bruno@clisp.org>
89045         Ensure fseeko, ftello are declared on glibc systems.
89046         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
89047         * modules/fseeko (configure.ac-early): Likewise.
89048         * modules/ftello (configure.ac-early): Likewise.
89049         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
89050         AC_FUNC_FSEEKO for this.
89051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
89052         (gl_CHECK_FSEEKO): Remove macro.
89054 2007-04-26  Bruno Haible  <bruno@clisp.org>
89056         * tests/test-fflush.c (main): Also check the ftell result after
89057         fflush and fseek/fseeko.
89058         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
89059         file descriptor position cache in the stream.
89060         * lib/fseeko.c (rpl_fseeko): Likewise.
89062 2007-04-26  Bruno Haible  <bruno@clisp.org>
89064         * modules/fflush-tests (Depends-on): Add fseeko.
89066 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
89067             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89069         * lib/argz_.h: ensure error_t definition is obtained in same
89070         mechanism system argz.h would have.
89071         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
89072         argz facilities are known bad.  Err on the side of caution if
89073         cross-compiling.
89075 2007-04-25  Eric Blake  <ebb9@byu.net>
89077         * lib/fpurge.c (includes): Use stdlib.h for free.
89078         * tests/test-fflush.c (main): Also test fflush-fseeko.
89080 2007-04-25  Bruno Haible  <bruno@clisp.org>
89082         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
89083         * lib/fseeko.c: New file.
89084         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
89085         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
89086         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
89087         gl_FUNC_FSEEKO.
89088         (gl_FUNC_FSEEKO): Invoke it.
89089         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
89090         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
89091         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
89093 2007-04-25  Bruno Haible  <bruno@clisp.org>
89095         * modules/fflush (Depends-on): Add ftello.
89097 2007-04-25  Bruno Haible  <bruno@clisp.org>
89099         * modules/ftello-tests: New file.
89100         * tests/test-ftello.c: New file.
89102         * modules/ftello: New file.
89103         * m4/ftello.m4: New file.
89104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
89105         HAVE_FTELLO.
89106         * lib/stdio_.h (ftello): New declaration.
89107         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
89108         HAVE_FTELLO.
89110 2007-04-25  Bruno Haible  <bruno@clisp.org>
89112         * modules/fseeko-tests: New file.
89113         * tests/test-fseeko.c: New file.
89115         * modules/fseeko: New file.
89116         * m4/fseeko.m4: New file.
89117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
89118         HAVE_FSEEKO.
89119         * lib/stdio_.h (fseeko): New declaration.
89120         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
89121         HAVE_FSEEKO.
89123 2007-04-25  Bruno Haible  <bruno@clisp.org>
89125         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89127 2007-04-25  Bruno Haible  <bruno@clisp.org>
89129         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89130         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89131         * tests/test-unistd.c: Likewise.
89132         * tests/test-fcntl.c: Likewise.
89134 2007-04-23  Eric Blake  <ebb9@byu.net>
89136         * lib/fflush.c: Fix missing include.
89137         Reported by Bruno Haible.
89139 2007-04-23  Bruno Haible  <bruno@clisp.org>
89141         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89142         Reported by Eric Blake.
89144 2007-04-23  Bruno Haible  <bruno@clisp.org>
89146         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89148 2007-04-23  Bruno Haible  <bruno@clisp.org>
89150         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89152 2007-04-23  Bruno Haible  <bruno@clisp.org>
89154         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89155         Needed on HP-UX 11.
89157 2007-04-16  Eric Blake  <ebb9@byu.net>
89159         Make fflush rely on fpurge.
89160         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89161         open coding all variants.
89162         * modules/fflush (Depends-on): Add fpurge and unistd.
89163         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89164         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89166         Fix --with-tests compilation on cygwin.
89167         * modules/argmatch-tests (Makefile.am): List gnulib library first
89168         in LDADD.
89169         * modules/argp-tests (Makefile.am): Likewise.
89170         * modules/array-list-tests (Makefile.am): Likewise.
89171         * modules/array-oset-tests (Makefile.am): Likewise.
89172         * modules/avltree-list-tests (Makefile.am): Likewise.
89173         * modules/avltree-oset-tests (Makefile.am): Likewise.
89174         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89175         * modules/carray-list-tests (Makefile.am): Likewise.
89176         * modules/dirname-tests (Makefile.am): Likewise.
89177         * modules/frexp-tests (Makefile.am): Likewise.
89178         * modules/isnanl-tests (Makefile.am): Likewise.
89179         * modules/linked-list-tests (Makefile.am): Likewise.
89180         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89181         * modules/lock-tests (Makefile.am): Likewise.
89182         * modules/rbtree-list-tests (Makefile.am): Likewise.
89183         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89184         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89185         * modules/tls-tests (Makefile.am): Likewise.
89186         * modules/tsearch-tests (Makefile.am): Likewise.
89187         * modules/xvasprintf-tests (Makefile.am): Likewise.
89189         Fix fpurge for cygwin.
89190         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89191         value.
89192         * modules/fpurge-tests (Depends-on): Clean up trash.
89194 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89196         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89198         * m4/autobuild.m4: Re-indent.
89200 2007-04-13  Bruno Haible  <bruno@clisp.org>
89202         * modules/fpurge-tests: New file.
89203         * tests/test-fpurge.c: New file.
89205         * modules/fpurge: New file.
89206         * lib/fpurge.h: New file.
89207         * lib/fpurge.c: New file.
89208         * m4/fpurge.m4: New file.
89210 2007-04-13  Bruno Haible  <bruno@clisp.org>
89212         * modules/fbufmode-tests: New file.
89213         * tests/test-fbufmode.c: New file.
89215         * modules/fbufmode: New file.
89216         * lib/fbufmode.h: New file.
89217         * lib/fbufmode.c: New file.
89218         * m4/fbufmode.m4: New file.
89220 2007-04-13  Bruno Haible  <bruno@clisp.org>
89222         * modules/fwritable-tests: New file.
89223         * tests/test-fwritable.c: New file.
89225         * modules/fwritable: New file.
89226         * lib/fwritable.h: New file.
89227         * lib/fwritable.c: New file.
89228         * m4/fwritable.m4: New file.
89230 2007-04-13  Bruno Haible  <bruno@clisp.org>
89232         * modules/freadable-tests: New file.
89233         * tests/test-freadable.c: New file.
89235         * modules/freadable: New file.
89236         * lib/freadable.h: New file.
89237         * lib/freadable.c: New file.
89238         * m4/freadable.m4: New file.
89240 2007-04-13  Bruno Haible  <bruno@clisp.org>
89242         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89243         MOSTLYCLEANFILES.
89245 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89247         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89248         gzip bootstrap.conf to avoid dragging in i18n machinery.
89249         (gnulib_tool_option): Use it.
89251 2007-04-13  Bruno Haible  <bruno@clisp.org>
89253         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89254         %F directives.
89255         * tests/test-vasprintf-posix.c (test_function): Likewise.
89256         * tests/test-snprintf-posix.h (test_function): Likewise.
89257         * tests/test-sprintf-posix.h (test_function): Likewise.
89258         * tests/test-fprintf-posix.h (test_function): Likewise.
89259         * tests/test-printf-posix.h (test_function): Likewise.
89260         * tests/test-fprintf-posix.out: Likewise.
89262 2007-04-13  Bruno Haible  <bruno@clisp.org>
89264         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89265         * modules/tls-tests (configure.ac): Likewise.
89266         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89268 2007-04-13  Bruno Haible  <bruno@clisp.org>
89270         * lib/tls.c (glthread_tls_get): Fix return type.
89271         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89273 2007-04-12  Eric Blake  <ebb9@byu.net>
89275         * modules/gettime (Depends-on): Remove gettime.
89276         Reported by Dmitry V. Levin.
89278 2007-04-12  Bruno Haible  <bruno@clisp.org>
89280         * modules/fflush (Include): Mention <stdio.h>.
89281         * modules/strtoimax (Include): Mention <inttypes.h>.
89282         * modules/strtoumax (Include): Likewise.
89284 2007-04-12  Eric Blake  <ebb9@byu.net>
89286         * .cvsignore: New file.
89287         * .gitignore: Likewise.
89289 2007-04-12  Bruno Haible  <bruno@clisp.org>
89291         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89292         not before, since $(LDADD) often contains libgnu.a.
89293         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89294         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89295         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89296         Needed on Cygwin.
89298 2007-04-12  Eric Blake  <ebb9@byu.net>
89300         Work around glibc's failure to flush stdin on fclose.
89301         * lib/closein.c (close_stdin): Flush stdin before closing.
89303         Work around glibc's failure to reset seekable stdin on exit.
89304         * modules/closein: New module.
89305         * lib/closein.c: New file.
89306         * lib/closein.h: Likewise.
89307         * m4/closein.m4: Likewise.
89308         * MODULES.html.sh (File stream based Input/Output): Document it.
89310 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89312         * gnulib-tool: Rename generated 'autobuild' script to
89313         'do-autobuild' in --create-megatestdir output.
89315         * doc/gnulib.texi (Build robot for gnulib): Fix.
89317 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89319         * modules/sysexits (Depends-on): Add absolute-header.
89321 2007-04-12  Eric Blake  <ebb9@byu.net>
89323         No need to preserve errno on success.
89324         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89325         Reported by Bruno Haible.
89327 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89329         * MODULES.html.sh (Support for maintaining and releasing
89330         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89332 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89334         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89336 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89338         * modules/autobuild: New module.
89340         * m4/autobuild.m4: New file.
89342 2007-04-11  Bruno Haible  <bruno@clisp.org>
89344         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89345         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89357         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89358         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89359         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89366         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89370         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89371         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89372         Reported by Eric Blake.
89374 2007-04-11  Bruno Haible  <bruno@clisp.org>
89376         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89378 2007-04-10  Bruno Haible  <bruno@clisp.org>
89380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89381         for NaN and Infinity. Needed on FreeBSD 6.1.
89382         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89383         regarding results for "%010a" of Infinity and NaN.
89384         * tests/test-vasprintf-posix.c (test_function): Likewise.
89385         * tests/test-snprintf-posix.h (test_function): Likewise.
89386         * tests/test-sprintf-posix.h (test_function): Likewise.
89387         * tests/test-fprintf-posix.h (test_function): Likewise.
89388         * tests/test-printf-posix.h (test_function): Likewise.
89389         * tests/test-fprintf-posix.out: Likewise.
89391 2007-04-10  Bruno Haible  <bruno@clisp.org>
89393         * modules/locale-tests: New file.
89394         * tests/test-locale.c: New file.
89396         * modules/locale: New file.
89397         * lib/locale_.h: New file.
89398         * m4/locale_h.m4: New file.
89400 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89401             Bruno Haible  <bruno@clisp.org>
89403         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89404         be determined, test for availability of the copysignf, copysign,
89405         copysignl functions.
89406         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89407         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89408         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89410 2007-04-09  Eric Blake  <ebb9@byu.net>
89412         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89413         * modules/stdio (Makefile.am): Support fflush.
89414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89415         * modules/fflush: New file.
89416         * lib/fflush.c: Likewise.
89417         * m4/fflush.m4: Likewise.
89418         * modules/fflush-tests: New test.
89419         * tests/test-fflush.c: Likewise.
89420         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89422 2007-04-06  Bruno Haible  <bruno@clisp.org>
89424         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89425         (VASNPRINTF): Use signbit for faster determination whether to print a
89426         minus sign.
89427         * modules/vasnprintf (Files): Remove lib/float+.h.
89428         * modules/fprintf-posix (Depends-on): Add signbit.
89429         * modules/snprintf-posix (Depends-on): Likewise.
89430         * modules/sprintf-posix (Depends-on): Likewise.
89431         * modules/vasnprintf-posix (Depends-on): Likewise.
89432         * modules/vasprintf-posix (Depends-on): Likewise.
89433         * modules/vfprintf-posix (Depends-on): Likewise.
89434         * modules/vsnprintf-posix (Depends-on): Likewise.
89435         * modules/vsprintf-posix (Depends-on): Likewise.
89437 2007-04-06  Bruno Haible  <bruno@clisp.org>
89439         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89440         * tests/test-frexpl.c (main): Likewise.
89441         * tests/test-ldexpl.c (main): Likewise.
89442         * modules/frexp-tests (Depends-on): Add signbit.
89443         * modules/frexpl-tests (Depdends-on): Likewise.
89444         * modules/ldexpl-tests (Depdends-on): Likewise.
89446 2007-04-06  Bruno Haible  <bruno@clisp.org>
89448         * modules/signbit-tests: New file.
89449         * tests/test-signbit.c: New file.
89451         * modules/signbit: New file.
89452         * lib/signbitf.c: New file.
89453         * lib/signbitd.c: New file.
89454         * lib/signbitl.c: New file.
89455         * m4/signbit.m4: New file.
89456         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89457         (signbit): New macro.
89458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89459         REPLACE_SIGNBIT.
89460         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89461         REPLACE_FREXPL into math.h.
89463 2007-04-06  Bruno Haible  <bruno@clisp.org>
89465         * modules/isnanf-nolibm-tests: New file.
89466         * tests/test-isnanf.c: New file.
89468         * modules/isnanf-nolibm: New file.
89469         * lib/isnanf.h: New file.
89470         * lib/isnanf.c: New file.
89471         * lib/isnan.c: Consider the USE_FLOAT macro.
89472         * m4/isnanf.m4: New file.
89474 2007-04-06  Bruno Haible  <bruno@clisp.org>
89476         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89477         (Link): New section.
89479         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89481 2007-04-06  Bruno Haible  <bruno@clisp.org>
89483         Assume the 'long double' type.
89484         * m4/longdouble.m4: Remove file.
89485         * config/srclist.txt: Don't mention longdouble.m4.
89486         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89487         * lib/float+.h: Likewise.
89488         * lib/frexp.c: Likewise.
89489         * lib/printf-args.h: Likewise.
89490         * lib/printf-args.c: Likewise.
89491         * lib/printf-frexp.c: Likewise.
89492         * lib/printf-parse.c: Likewise.
89493         * lib/vasnprintf.c: Likewise.
89494         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89495         * m4/intl.m4: Likewise.
89496         * m4/isnanl.m4: Likewise.
89497         * m4/printf.m4: Likewise.
89498         * m4/printf-frexpl.m4: Likewise.
89499         * m4/vasnprintf.m4: Likewise.
89500         * modules/allocsa (Files): Remove m4/longdouble.m4.
89501         * modules/gettext (Files): Likewise.
89502         * modules/relocatable-prog-wrapper (Files): Likewise.
89503         * modules/vasnprintf (Files): Likewise.
89504         * modules/isnanl (Files): Likewise.
89505         (Include): Simplify.
89506         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89507         (Include): Simplify.
89508         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89509         (Include): Simplify.
89510         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89511         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89512         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89514         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89516         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89518         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89520         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89521         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89522         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89523         * tests/test-isnanl.c: Likewise.
89524         * tests/test-snprintf-posix.h: Likewise.
89525         * tests/test-sprintf-posix.h: Likewise.
89526         * tests/test-vasnprintf-posix.c: Likewise.
89527         * tests/test-vasnprintf-posix2.c: Likewise.
89528         * tests/test-vasprintf-posix.c: Likewise.
89530 2007-04-06  Bruno Haible  <bruno@clisp.org>
89532         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89533         * lib/math_.h [__DECC]: Include the overridden include file through
89534         #include_next, outside the double-inclusion guard.
89535         * lib/stdio_.h [__DECC]: Likewise.
89536         * lib/stdlib_.h [__DECC]: Likewise.
89537         * lib/string_.h [__DECC]: Likewise.
89538         * lib/time_.h [__DECC]: Likewise.
89539         * lib/wchar_.h [__DECC]: Likewise.
89540         * lib/wctype_.h [__DECC]: Likewise.
89541         * lib/inttypes_.h [__DECC]: Likewise.
89542         Reported by Albert Chin <china@thewrittenword.com> in
89543         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89545 2007-04-04  Eric Blake  <ebb9@byu.net>
89547         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89548         1.5.x.
89550 2007-04-04  Bruno Haible  <bruno@clisp.org>
89552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89553         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89555 2007-04-04  Bruno Haible  <bruno@clisp.org>
89557         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89558         results for "%010a" of Infinity and NaN.
89559         * tests/test-vasprintf-posix.c (test_function): Likewise.
89560         * tests/test-snprintf-posix.h (test_function): Likewise.
89561         * tests/test-sprintf-posix.h (test_function): Likewise.
89562         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89563         * tests/test-printf-posix.h (test_function): Likewise.
89564         * tests/test-fprintf-posix.out: Update.
89565         Needed for FreeBSD 6.1.
89567 2007-04-04  Bruno Haible  <bruno@clisp.org>
89569         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89570         directly used by the gnulib modules nor by gnulib-tool.
89572 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89574         * DEPENDENCIES: Give overall description of version dependency
89575         desirability.  Use more-typical names for apps.
89576         Add shell, coreutils, diffutils, grep, tar, gzip.
89578 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89580         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89582 2007-04-04  Karl Berry  <karl@gnu.org>
89584         * MODULES.html.sh (func_module): missing '.
89586 2007-04-03  Bruno Haible  <bruno@clisp.org>
89588         * modules/argmatch-tests (Makefile.am): New variable
89589         test_argmatch_LDADD.
89590         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89591         * modules/array-list-tests (Makefile.am): New variable
89592         test_array_list_LDADD.
89593         * modules/array-oset-tests (Makefile.am): New variable
89594         test_array_oset_LDADD.
89595         * modules/avltree-list-tests (Makefile.am): New variable
89596         test_avltree_list_LDADD.
89597         * modules/avltree-oset-tests (Makefile.am): New variable
89598         test_avltree_oset_LDADD.
89599         * modules/avltreehash-list-tests (Makefile.am): New variable
89600         test_avltreehash_list_LDADD.
89601         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89602         test_canonicalize_lgpl_LDADD.
89603         * modules/carray-list-tests (Makefile.am): New variable
89604         test_carray_list_LDADD.
89605         * modules/dirname-tests (Makefile.am): New variable
89606         test_dirname_LDADD.
89607         * modules/linked-list-tests (Makefile.am): New variable
89608         test_linked_list_LDADD.
89609         * modules/linkedhash-list-tests (Makefile.am): New variable
89610         test_linkedhash_list_LDADD.
89611         * modules/rbtree-list-tests (Makefile.am): New variable
89612         test_rbtree_list_LDADD.
89613         * modules/rbtree-oset-tests (Makefile.am): New variable
89614         test_rbtree_oset_LDADD.
89615         * modules/rbtreehash-list-tests (Makefile.am): New variable
89616         test_rbtreehash_list_LDADD.
89617         * modules/xvasprintf-tests (Makefile.am): New variable
89618         test_xvasprintf_LDADD.
89619         Reported by Eric Blake.
89621 2007-04-03  Eric Blake  <ebb9@byu.net>
89623         * DEPENDENCIES: Weaken m4 requirements.
89625 2007-04-03  Bruno Haible  <bruno@clisp.org>
89627         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89628         * modules/isnanl-tests (configure.ac): Likewise.
89630 2007-04-03  Ben Pfaff  <blp@gnu.org>
89632         * modules/iconv_open: Add $(srcdir)/ to source directory
89633         references in Makefile fragments that call gperf, to fix VPATH
89634         builds.
89636 2007-04-03  Bruno Haible  <bruno@clisp.org>
89638         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89639         * lib/ldexpl.c: Undo last change.
89641 2007-04-03  Bruno Haible  <bruno@clisp.org>
89643         * modules/printf-frexpl (Depends-on): Undo last change.
89644         (Files): Add m4/ldexpl.m4.
89646 2007-04-03  Bruno Haible  <bruno@clisp.org>
89648         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89649         * modules/isnanl (Link): New section.
89651         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89652         * modules/frexp (Link): New section.
89654         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89655         * modules/frexpl (Link): New section.
89657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89658         * modules/ldexpl (Link): New section.
89660 2007-04-03  Bruno Haible  <bruno@clisp.org>
89662         * modules/TEMPLATE-EXTENDED: New file.
89663         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89665 2007-04-03  Bruno Haible  <bruno@clisp.org>
89667         * DEPENDENCIES: New file.
89668         Suggested by Simon Josefsson.
89670 2007-04-03  Bruno Haible  <bruno@clisp.org>
89672         * doc/gnulib.texi: Escape @.
89674 2007-04-03  James Youngman  <jay@gnu.org>
89675         and Paul Eggert  <eggert@cs.ucla.edu>
89677         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89678         birthtime on all systems that have birthtime, not just those which
89679         use st_birthtimensec rather than st_birthtim.  Putting zero in
89680         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89681         that the birth time is not available for files on an NFS mount.
89683 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89685         * modules/memxor: Move back from crypto/, suggested by Bruno.
89686         * modules/crypto/hmac-sha1: Fix memxor dependency.
89688         * modules/crypto/gc: Moved from ../.
89690 2007-04-02  Eric Blake  <ebb9@byu.net>
89692         * lib/ldexpl.c (includes): Avoid libm.
89694         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89696 2007-04-02  Bruno Haible  <bruno@clisp.org>
89698         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89699         on IRIX.
89701 2007-04-02  Bruno Haible  <bruno@clisp.org>
89703         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89704         x86 or x86_64 platforms running MacOS X.
89705         Reported by Ryan Schmidt <@ryandesign.com>.
89707 2007-04-02  Bruno Haible  <bruno@clisp.org>
89709         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89710         i386.
89712 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89714         * modules/crypto/arcfour: Moved from ../.
89715         * modules/crypto/arcfour-tests: Moved from ../.
89716         * modules/crypto/arctwo: Moved from ../.
89717         * modules/crypto/arctwo-tests: Moved from ../.
89718         * modules/crypto/des: Moved from ../.
89719         * modules/crypto/des-tests: Moved from ../.
89720         * modules/crypto/gc-arcfour: Moved from ../.
89721         * modules/crypto/gc-arcfour-tests: Moved from ../.
89722         * modules/crypto/gc-arctwo: Moved from ../.
89723         * modules/crypto/gc-arctwo-tests: Moved from ../.
89724         * modules/crypto/gc-des: Moved from ../.
89725         * modules/crypto/gc-des-tests: Moved from ../.
89726         * modules/crypto/gc-hmac-md5: Moved from ../.
89727         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89728         * modules/crypto/gc-hmac-sha1: Moved from ../.
89729         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89730         * modules/crypto/gc-md2: Moved from ../.
89731         * modules/crypto/gc-md2-tests: Moved from ../.
89732         * modules/crypto/gc-md4: Moved from ../.
89733         * modules/crypto/gc-md4-tests: Moved from ../.
89734         * modules/crypto/gc-md5: Moved from ../.
89735         * modules/crypto/gc-md5-tests: Moved from ../.
89736         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89737         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89738         * modules/crypto/gc-random: Moved from ../.
89739         * modules/crypto/gc-rijndael: Moved from ../.
89740         * modules/crypto/gc-rijndael-tests: Moved from ../.
89741         * modules/crypto/gc-sha1: Moved from ../.
89742         * modules/crypto/gc-sha1-tests: Moved from ../.
89743         * modules/crypto/gc-tests: Moved from ../.
89744         * modules/crypto/hmac-md5: Moved from ../.
89745         * modules/crypto/hmac-md5-tests: Moved from ../.
89746         * modules/crypto/hmac-sha1: Moved from ../.
89747         * modules/crypto/hmac-sha1-tests: Moved from ../.
89748         * modules/crypto/md2: Moved from ../.
89749         * modules/crypto/md2-tests: Moved from ../.
89750         * modules/crypto/md4: Moved from ../.
89751         * modules/crypto/md4-tests: Moved from ../.
89752         * modules/crypto/md5: Moved from ../.
89753         * modules/crypto/md5-tests: Moved from ../.
89754         * modules/crypto/memxor: Moved from ../.
89755         * modules/crypto/rijndael: Moved from ../.
89756         * modules/crypto/rijndael-tests: Moved from ../.
89757         * modules/crypto/sha1: Moved from ../.
89759 2007-03-30  James Youngman  <jay@gnu.org>
89761         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89762         rename() to change the ctime of a file (because ctime is unaffected
89763         by rename on jfs2 on AIX 5.1).
89764         (main): Start by doing cleanup, in case a previous run failed leaving
89765         test files behind.
89767 2007-03-31  Bruno Haible  <bruno@clisp.org>
89769         Support old proprietary implementations of iconv.
89770         * modules/iconv_open: New file.
89771         * lib/iconv_.h: New file.
89772         * m4/iconv_h.m4: New file.
89773         * lib/iconv_open.c: New file.
89774         * lib/iconv_open-aix.gperf: New file.
89775         * lib/iconv_open-hpux.gperf: New file.
89776         * lib/iconv_open-irix.gperf: New file.
89777         * lib/iconv_open-osf.gperf: New file.
89778         * m4/iconv_open.m4: New file.
89779         * modules/linebreak (Depends-on): Add iconv_open.
89780         * modules/striconv (Depends-on): Likewise.
89781         * modules/striconveh (Depends-on): Likewise.
89782         * modules/unicodeio (Depends-on): Likewise.
89783         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89784         (iconv_t)(-1).
89785         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89786         conversion if cd is (iconv_t)(-1).
89787         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89788         is not possible.
89790 2007-03-31  Bruno Haible  <bruno@clisp.org>
89792         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89793         work on Solaris either. Protect also second use of "autodetect_jp".
89795 2007-03-31  Bruno Haible  <bruno@clisp.org>
89797         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89798         the function is not present.
89800 2007-03-31  Bruno Haible  <bruno@clisp.org>
89802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89803         the function is not present.
89805 2007-03-31  Bruno Haible  <bruno@clisp.org>
89807         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89808         a bug in HP-UX iconv_open().
89810 2007-03-31  Bruno Haible  <bruno@clisp.org>
89812         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89813         (Mathematics <math.h>): New section, add fpieee.
89814         (Input/output <stdio.h>): Add fseterr.
89815         (Mathematics <math.h>): New section, add printf-frexp.
89816         (Container data structures): Add sublist.
89817         (Core language properties): Add fpucw, inline.
89818         (Functions for greatest-width integer types <inttypes.h>): Add
89819         imaxabs, imaxdiv, inttypes.
89820         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89821         isnanl-nolibm, ldexp.
89822         (Mathematics <math.h>): New section, add printf-frexpl.
89823         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89824         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89825         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89826         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89827         (Unicode string functions): Add unistr/u*-mbtoucr.
89828         (Java): Add javacomp-script, javaexec-script.
89829         (C#): Add csharpcomp-script, csharpexec-script.
89830         (Support for building libraries and executables): Add havelib,
89831         relocatable-*.
89832         (Support for maintaining and releasing projects): Renamed from
89833         'Support for maintaining and release projects'. Add announce-gen.
89835 2007-03-31  Bruno Haible  <bruno@clisp.org>
89837         * README: Talk primarily about git.
89838         (git and CVS): Renamed from CVS.
89839         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89840         gnulib is available through git.
89841         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89843 2007-03-30  Bruno Haible  <bruno@clisp.org>
89845         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89846         * lib/poll_.h: Likewise.
89847         * lib/stat_.h: Likewise.
89848         * lib/sys_time_.h: Likewise.
89849         * lib/sysexit_.h: Likewise.
89850         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89851         * lib/stdbool_.h: Likewise.
89852         * lib/byteswap_.h: Add double-inclusion guard.
89854 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89856         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89858 2007-03-30  Karl Berry  <karl@gnu.org>
89860         * config/srclist-update: double space after USA in the license
89861         substitution, since that's how it's usually (?) written.
89863 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89865         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89866         reported by Bruno Haible.
89868 2007-03-29  Bruno Haible  <bruno@clisp.org>
89870         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89871         a bug in AIX iconv().
89873 2007-03-29  Bruno Haible  <bruno@clisp.org>
89875         * modules/ldexpl-tests: New file.
89876         * tests/test-ldexpl.c: New file.
89878 2007-03-29  Bruno Haible  <bruno@clisp.org>
89880         * lib/ldexpl.c: Include fpucw.h.
89881         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89882         multiplication.
89883         * modules/ldexpl (Depends-on): Add fpucw.
89885 2007-03-29  Bruno Haible  <bruno@clisp.org>
89887         * modules/ldexpl: New file.
89888         * m4/ldexpl.m4: New file.
89889         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89890         set.
89891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89892         REPLACE_LDEXPL.
89893         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89894         REPLACE_LDEXPL.
89895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89896         gl_FUNC_LDEXPL_WORKS.
89897         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89898         * modules/mathl (Files): Remove lib/ldexpl.c.
89899         (Depends-on): Add ldexpl.
89901 2007-03-29  Bruno Haible  <bruno@clisp.org>
89903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89905 2007-03-29  Bruno Haible  <bruno@clisp.org>
89907         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89908         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89909         and possibly also HP-UX.
89910         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89911         work on AIX, IRIX, HP-UX, OSF/1.
89912         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89913         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89914         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89915         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89916         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89917         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89919 2007-03-29  Bruno Haible  <bruno@clisp.org>
89921         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89923 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89925         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89926         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89928 2007-03-29  Eric Blake  <ebb9@byu.net>
89930         * lib/acl-internal.h: Remove redundant include.
89931         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89932         Cygwin when a file is locked.
89934 2007-03-29  Bruno Haible  <bruno@clisp.org>
89936         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89937         file.
89938         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89940 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89943         try to remove a parent directory if the child couldn't be removed
89944         (except for the first rmdir, which could fail because the child
89945         doesn't exist).  Problem reported by Jeff Blaine in
89946         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89948 2007-03-28  Bruno Haible  <bruno@clisp.org>
89950         * lib/striconveh.c (utf8conv_carefully): New function.
89951         (mem_cd_iconveh_internal): Invoke it.
89953 2007-03-28  Bruno Haible  <bruno@clisp.org>
89955         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89956         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89957         input.
89958         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89959         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89960         unistr/u8-uctomb.
89962 2007-03-28  Bruno Haible  <bruno@clisp.org>
89964         * modules/unistr/u8-mbtoucr: New file.
89965         * lib/unistr/u8-mbtoucr.c: New file.
89966         * modules/unistr/u16-mbtoucr: New file.
89967         * lib/unistr/u16-mbtoucr.c: New file.
89968         * modules/unistr/u16-mbtoucr: New file.
89969         * lib/unistr/u16-mbtoucr.c: New file.
89970         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89972 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89973             Bruno Haible  <bruno@clisp.org>
89975         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89976         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89977         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89979         * m4/stdio_h.m4: Add stubs for vasprintf too.
89981         * modules/stdio: Support vasprintf in sed command.
89983         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89984         vasprintf.h.  Add stdio module indicator.
89986         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89987         vasprintf.h.
89989         * lib/vasprintf.h: File removed.
89991         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89992         * lib/vasprintf.c: Ditto.
89993         * lib/xvasprintf.c: Ditto.
89994         * tests/test-vasprintf-posix.c: Ditto.
89995         * tests/test-vasprintf.c: Ditto.
89997 2007-03-27  Bruno Haible  <bruno@clisp.org>
89999         Make vasnprintf multithread-safe.
90000         * lib/vasnprintf.c (decimal_point_char): New function.
90001         (VASNPRINTF): Use it.
90002         Suggested by Simon Josefsson.
90004 2007-03-27  Eric Blake  <ebb9@byu.net>
90006         Support sub-second birthtime on cygwin.
90007         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
90008         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
90009         (get_stat_birthtime): Also work with st_birthtim.
90011 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
90013         * lib/stat-time.h (USE_BIRTHTIME): Remove.
90014         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
90015         (get_stat_birthtime_ns): Do not try to use "spare" fields.
90016         (get_stat_birthtime_ns): Simplify compile-time tests.
90017         (get_stat_birthtime): Change the API to look like
90018         get_stat_mtime etc., except return a negative tv_nsec on error.
90019         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
90020         Don't check for "spare" fields.
90021         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
90022         or for struct stat.st_birthtime, as these tests aren't used.
90023         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
90025 2007-03-27  Bruno Haible  <bruno@clisp.org>
90027         * lib/stat-time.h: Include <sys/stat.h>.
90029 2007-03-27  James Youngman  <jay@gnu.org>
90031         * lib/stat-time.h (get_stat_birthtime): New function for
90032           retrieving st_birthtime as provided by UFS2 (hence *BSD).
90033         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
90034           and its variants.
90035         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
90036         * modules/stat-time-test: New file.
90037         * tests/test-stat-time.c: New test, devised by Bruno Haible.
90039 2007-03-26  Bruno Haible  <bruno@clisp.org>
90041         Better support of signalling NaNs.
90042         * lib/atanl.c: Include isnanl.h.
90043         (atanl): Perform test for NaN at the beginning of the function and
90044         through a call to isnanl.
90045         * lib/cosl.c: Include isnanl.h.
90046         (cosl): Perform test for NaN at the beginning of the function and
90047         through a call to isnanl.
90048         * lib/ldexpl.c: Include isnanl.h.
90049         (ldexpl): Perform test for NaN through a call to isnanl.
90050         * lib/logl.c: Include isnanl.h.
90051         (logl): Perform test for NaN at the beginning of the function and
90052         through a call to isnanl.
90053         * lib/sinl.c: Include isnanl.h.
90054         (sinl): Perform test for NaN at the beginning of the function and
90055         through a call to isnanl.
90056         * lib/sqrtl.c: Include isnanl.h.
90057         (sqrtl): Perform test for NaN at the beginning of the function and
90058         through a call to isnanl.
90059         * lib/tanl.c: Include isnanl.h.
90060         (tanl): Perform test for NaN at the beginning of the function and
90061         through a call to isnanl.
90062         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
90063         * modules/mathl (Depends-on): Add isnanl.
90065 2007-03-26  Eric Blake  <ebb9@byu.net>
90067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
90068         regression in logic sense of previous patch.
90070 2007-03-26  Bruno Haible  <bruno@clisp.org>
90072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
90073         unportable shell command "if ! ...".
90074         Reported by Ralf Wildenhues.
90076 2007-03-25  Bruno Haible  <bruno@clisp.org>
90078         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
90079         <sysexits.h> file, and only add EX_CONFIG.
90080         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
90081         absolute file name and whether it is sufficient. Substitute also
90082         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
90083         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
90084         ABSOLUTE_SYSEXITS_H into sysexits.h.
90086 2007-03-25  Bruno Haible  <bruno@clisp.org>
90088         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
90089         hints is NULL.
90091 2007-03-25  Bruno Haible  <bruno@clisp.org>
90093         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
90094         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
90096 2007-03-25  Bruno Haible  <bruno@clisp.org>
90098         * lib/vasnprintf.c: Include langinfo.h.
90099         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
90100         multithread-safe.
90101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
90102         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
90103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
90109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90110         Reported by Simon Josefsson.
90112 2007-03-25  Bruno Haible  <bruno@clisp.org>
90114         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
90115         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
90116         * modules/vasnprintf (Depends-on): Add stdint.
90118 2007-03-25  Bruno Haible  <bruno@clisp.org>
90120         * modules/fpieee: New file.
90121         * m4/fpieee.m4: New file.
90122         * modules/isnan-nolibm (Depends-on): Add fpieee.
90123         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90124         * modules/isnanl (Depends-on): Add fpieee.
90126 2007-03-25  Bruno Haible  <bruno@clisp.org>
90128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90130 2007-03-25  Bruno Haible  <bruno@clisp.org>
90132         Avoid test failures on IRIX 6.5.
90133         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90134         (main): Use it.
90135         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90136         macros.
90137         (main): Use them.
90139 2007-03-25  Bruno Haible  <bruno@clisp.org>
90141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90142         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90143         exists but doesn't work.
90144         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90145         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90147         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90148         math.h.
90150 2007-03-25  Bruno Haible  <bruno@clisp.org>
90152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90153         returns inf. Needed on IRIX 6.5.
90155 2007-03-25  Bruno Haible  <bruno@clisp.org>
90157         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90158         (main): Use isnanl instead of x != x idiom.
90159         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90161         * tests/test-frexp.c: Include isnan.h.
90162         (main): Use isnan instead of x != x idiom.
90163         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90165 2007-03-25  Bruno Haible  <bruno@clisp.org>
90167         * tests/test-frexp.c (NaN): New function/macro.
90168         (main): Use it instead of 0.0 / 0.0.
90169         * tests/test-isnan.c (NaN): New function/macro.
90170         (main): Use it instead of 0.0 / 0.0.
90171         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90172         (test_function): Use it instead of 0.0 / 0.0.
90173         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90174         (test_function): Use it instead of 0.0 / 0.0.
90175         * tests/test-snprintf-posix.h (NaN): New function/macro.
90176         (test_function): Use it instead of 0.0 / 0.0.
90177         * tests/test-sprintf-posix.h (NaN): New function/macro.
90178         (test_function): Use it instead of 0.0 / 0.0.
90179         * tests/test-fprintf-posix.h (NaN): New function/macro.
90180         (test_function): Use it instead of 0.0 / 0.0.
90181         * tests/test-printf-posix.h (NaN): New function/macro.
90182         (test_function): Use it instead of 0.0 / 0.0.
90184         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90186 2007-03-25  Bruno Haible  <bruno@clisp.org>
90188         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90190 2007-03-25  Bruno Haible  <bruno@clisp.org>
90192         * lib/regexec.c (merge_state_with_log): Make static.
90194 2007-03-25  Bruno Haible  <bruno@clisp.org>
90196         * lib/trigl.c (kernel_rem_pio2): Make static.
90198 2007-03-25  Bruno Haible  <bruno@clisp.org>
90200         * lib/sincosl.c (sincosl_table): Make static.
90202 2007-03-25  Bruno Haible  <bruno@clisp.org>
90204         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90205         if the compiler does not support C99.
90207 2007-03-25  Bruno Haible  <bruno@clisp.org>
90209         * modules/time (Makefile.am): Ensure all rule action lines start with a
90210         tab.
90212 2007-03-24  Bruno Haible  <bruno@clisp.org>
90214         * modules/tsearch-tests: New file.
90215         * tests/test-tsearch.sh: New file.
90216         * tests/test-tsearch.c: New file, mostly copied from glibc.
90218         * modules/search-tests: New file.
90219         * tests/test-search.c: New file.
90221         * modules/search: New file.
90222         * lib/search_.h: New file, incorporating lib/tsearch.h.
90223         * m4/search_h.m4: New file.
90224         * lib/tsearch.h: Remove file.
90225         * lib/tsearch.c: Include search.h instead of tsearch.h.
90226         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90227         HAVE_TSEARCH.
90228         * modules/tsearch (Files): Remove lib/tsearch.h.
90229         (Depends-on): Add search.
90230         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90231         (Include): Change tsearch.h into search.h.
90233 2007-03-24  Bruno Haible  <bruno@clisp.org>
90235         * modules/fpucw: New file.
90236         * lib/fpucw.h: New file.
90237         * lib/frexp.c: Include fpucw.h.
90238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90239         (FUNC): Use them.
90240         * lib/printf-frexp.c: Include fpucw.h.
90241         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90242         (FUNC): Use them.
90243         * lib/vasnprintf.c: Include fpucw.h.
90244         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90245         'long double' calculations.
90246         * tests/test-frexpl.c: Include fpucw.h.
90247         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90248         * tests/test-printf-frexpl.c: Include fpucw.h.
90249         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90250         * modules/frexpl (Depends-on): Add fpucw.
90251         * modules/printf-frexpl (Depends-on): Likewise.
90252         * modules/fprintf-posix (Depends-on): Likewise.
90253         * modules/snprintf-posix (Depends-on): Likewise.
90254         * modules/sprintf-posix (Depends-on): Likewise.
90255         * modules/vasnprintf-posix (Depends-on): Likewise.
90256         * modules/vasprintf-posix (Depends-on): Likewise.
90257         * modules/vfprintf-posix (Depends-on): Likewise.
90258         * modules/vsnprintf-posix (Depends-on): Likewise.
90259         * modules/vsprintf-posix (Depends-on): Likewise.
90260         * modules/frexpl-tests (Depends-on): Likewise.
90261         * modules/printf-frexpl-tests (Depends-on): Likewise.
90263 2007-03-24  Bruno Haible  <bruno@clisp.org>
90265         * lib/float+.h: New file.
90266         * lib/isnan.c: Include float+.h.
90267         (SIZE): New macro.
90268         (FUNC): Compare only SIZE bytes of the value.
90269         * lib/vasnprintf.c: Include float+.h.
90270         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90271         SIZEOF_LDBL or SIZEOF_DBL bytes.
90272         * modules/isnan-nolibm (Files): Add lib/float+.h.
90273         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90274         * modules/isnanl (Files): Add lib/float+.h.
90275         * modules/vasnprintf (Files): Add lib/float+.h.
90277 2007-03-24  Bruno Haible  <bruno@clisp.org>
90279         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90280         include isnanl-nolibm.h.
90282 2007-03-24  Bruno Haible  <bruno@clisp.org>
90284         * tests/test-read-file.c (main): Don't produce spurious output for
90285         expected situations. Make the test fail if it encountered unexpected
90286         results.
90288 2007-03-24  Bruno Haible  <bruno@clisp.org>
90290         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90291         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90293 2007-03-24  Bruno Haible  <bruno@clisp.org>
90295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90297 2007-03-24  Bruno Haible  <bruno@clisp.org>
90299         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90300         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90302         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90303         * modules/utf8-ucs4: Turn into a symbolic link to module
90304         unistr/u8-mbtouc.
90306         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90307         utf8-ucs4-unsafe.
90308         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90309         unistr/u8-mbtouc-unsafe.
90311         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90312         * modules/utf16-ucs4: Turn into a symbolic link to module
90313         unistr/u16-mbtouc.
90315         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90316         utf16-ucs4-unsafe.
90317         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90318         unistr/u16-mbtouc-unsafe.
90320         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90321         * modules/ucs4-utf8: Turn into a symbolic link to module
90322         unistr/u8-ubtomb.
90324         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90325         * modules/ucs4-utf16: Turn into a symbolic link to module
90326         unistr/u16-ubtomb.
90328 2007-03-24  Bruno Haible  <bruno@clisp.org>
90330         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90331         Enable the function only if HAVE_INLINE.
90332         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90333         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90334         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90335         Enable the function only if HAVE_INLINE.
90336         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90337         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90338         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90339         Enable the function only if HAVE_INLINE.
90340         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90341         Enable the function only if HAVE_INLINE.
90342         * modules/utf8-ucs4: Update.
90343         * modules/utf8-ucs4-unsafe: Update.
90344         * modules/utf16-ucs4: Update.
90345         * modules/utf16-ucs4-unsafe: Update.
90346         * modules/ucs4-utf8: Update.
90347         * modules/ucs4-utf16: Update.
90349 2007-03-24  Bruno Haible  <bruno@clisp.org>
90351         * lib/utf8-ucs4.h: Remove file.
90352         * lib/utf8-ucs4-unsafe.h: Remove file.
90353         * lib/utf16-ucs4.h: Remove file.
90354         * lib/utf16-ucs4-unsafe.h: Remove file.
90355         * lib/ucs4-utf8.h: Remove file.
90356         * lib/ucs4-utf16.h: Remove file.
90357         * lib/unistr.h: Include their previous contents.
90358         * m4/utf-ucs4.m4: Remove file.
90359         * m4/ucs4-utf.m4: Remove file.
90360         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90361         (Depends-on): Add unistr/base.
90362         (configure.ac): Remove gl_UTF_UCS4.
90363         (Makefile.am): Update.
90364         (Include): Change to unistr.h.
90365         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90366         (Depends-on): Add unistr/base.
90367         (configure.ac): Remove gl_UTF_UCS4.
90368         (Makefile.am): Update.
90369         (Include): Change to unistr.h.
90370         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90371         (Depends-on): Add unistr/base.
90372         (configure.ac): Remove gl_UTF_UCS4.
90373         (Makefile.am): Update.
90374         (Include): Change to unistr.h.
90375         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90376         (Depends-on): Add unistr/base.
90377         (configure.ac): Remove gl_UTF_UCS4.
90378         (Makefile.am): Update.
90379         (Include): Change to unistr.h.
90380         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90381         (Depends-on): Add unistr/base.
90382         (configure.ac): Remove gl_UCS4_UTF.
90383         (Makefile.am): Update.
90384         (Include): Change to unistr.h.
90385         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90386         (Depends-on): Add unistr/base.
90387         (configure.ac): Remove gl_UCS4_UTF.
90388         (Makefile.am): Update.
90389         (Include): Change to unistr.h.
90390         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90391         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90392         utf8-ucs4-unsafe.h.
90393         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90394         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90395         utf16-ucs4-unsafe.h.
90396         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90397         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90398         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90399         * lib/unistr/u8-strchr.c: Likewise.
90400         * lib/unistr/u8-strrchr.c: Likewise.
90401         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90402         * lib/unistr/u16-strchr.c: Likewise.
90403         * lib/unistr/u16-strrchr.c: Likewise.
90404         * lib/striconveh.c: Update.
90405         * lib/linebreak.c: Update.
90407 2007-03-24  Bruno Haible  <bruno@clisp.org>
90409         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90410         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90412 2007-03-22  Bruno Haible  <bruno@clisp.org>
90414         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90416 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90418         * MODULES.html.sh (File system functions): New module write-any-file.
90419         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90420         * m4/write-any-file.m4: New files.
90422 2007-03-23  Eric Blake  <ebb9@byu.net>
90424         * gnulib-tool: Rearrange space-tab sequences, since some editors
90425         like to eat them.
90427 2007-03-23  Eric Blake  <ebb9@byu.net>
90429         * lib/version-etc.c (version_etc_va): Update license wording to
90430         be more concise.  Recommended by Richard Stallman.
90432 2007-03-22  Bruno Haible  <bruno@clisp.org>
90434         * lib/poll.c (MSG_PEEK): New fallback definition.
90436 2007-03-22  Bruno Haible  <bruno@clisp.org>
90438         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90439         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90440         (main): Update.
90441         Fixes a compilation error on BeOS.
90443 2007-03-22  Bruno Haible  <bruno@clisp.org>
90445         * modules/frexpl-tests: New file.
90446         * tests/test-frexpl.c: New file.
90448         * modules/frexpl: New file.
90449         * m4/frexpl.m4: New file.
90450         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90451         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90453         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90454         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90455         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90457 2007-03-22  Bruno Haible  <bruno@clisp.org>
90459         * lib/frexpl.c: Share code with lib/frexp.c.
90460         * modules/mathl (Files): Add lib/frexp.c.
90461         (Depends-on): Add isnanl-nolibm.
90463 2007-03-22  Bruno Haible  <bruno@clisp.org>
90465         * modules/printf-frexp (Files): Add m4/frexp.m4.
90466         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90467         only if the found frexp function actually works.
90469 2007-03-22  Bruno Haible  <bruno@clisp.org>
90471         * lib/frexp.c: Remove older implementation that uses divisions.
90473 2007-03-21  Bruno Haible  <bruno@clisp.org>
90475         * modules/frexp-tests: New file.
90476         * tests/test-frexp.c: New file.
90478         * modules/frexp: New file.
90479         * lib/frexp.c: New file.
90480         * m4/frexp.m4: New file.
90481         * lib/math_.h (frexp): New declaration.
90482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90483         REPLACE_FREXP.
90484         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90486 2007-03-21  Bruno Haible  <bruno@clisp.org>
90488         * modules/isnanl-tests: New file.
90489         * tests/test-isnanl.c: New file.
90491         * modules/isnanl: New file.
90492         * lib/isnanl.h: New file.
90493         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90494         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90495         gl_FUNC_ISNANL_WORKS.
90496         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90497         New macros.
90499 2007-03-21  Bruno Haible  <bruno@clisp.org>
90501         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90502         lib/isnanl.h.
90503         (Include): Update.
90504         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90505         * lib/vasnprintf.c: Update.
90506         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90507         tests/test-isnanl.h, remove tests/test-isnanl.c.
90508         (Makefile.am): Update.
90509         * tests/test-isnanl-nolibm.c: New file.
90510         * tests/test-isnanl.h: New file.
90511         * tests/test-isnanl.c: Remove file.
90513 2007-03-21  Jim Meyering  <jim@meyering.net>
90515         When trying to open ".", treat ESTALE like EACCES.
90516         * lib/savewd.c (savewd_save): Resort to forking not just upon
90517         failure with EACCES, but also when errno is ESTALE.
90519 2007-03-20  Bruno Haible  <bruno@clisp.org>
90521         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90522         Needed on AIX 5.1. Reported by Matthew Woehlke.
90524 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90526         Suggestions by Bruno Haible:
90527         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90528         our own.
90529         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90530         * modules/acl (Depends-on): Add gettext.
90532 2007-03-19  Bruno Haible  <bruno@clisp.org>
90534         * modules/iconvme: Remove file.
90535         * lib/iconvme.h: Remove file.
90536         * lib/iconvme.c: Remove file.
90537         * m4/iconvme.m4: Remove file.
90539 2007-03-19  Bruno Haible  <bruno@clisp.org>
90541         * doc/relocatable-maint.texi: Break long shell script line.
90542         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90544 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90546         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90547         handle file_has_acl.
90548         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90549         * lib/acl.c: Move header inclusions and related macro defns into
90550         lib/acl-internal.h.
90551         (S_ISLNK): Remove defn, since that's now done for us.
90552         (file_has_acl): Move to lib/file-has-acl.c.
90553         Call acl_trivial if available.  This is the crucial part of the fix.
90554         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90555         shared within the library.  Rewrite a bit, partly to make it compatible
90556         with the GNU coding style.
90557         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90558         Remove unnecessary double-quotes.
90559         Don't test for acl_to_text; the build will catch that.
90560         Replace acl_entries if it doesn't exist and it is needed.
90561         Check for -lsec and acl_trivial (as used on Solaris 10).
90562         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90563         lib/file-has-acl.c.
90564         (Depends-on): Add sys_stat, for S_ISLNK.
90566 2007-03-19  Ben Pfaff  <blp@gnu.org>
90568         * doc/gnulib.texi: Fix typos.
90569         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90571 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90573         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90574         If size is zero here, buf must be zero.
90576 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90578         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90579         <bruno@clisp.org>.
90581 2007-03-18  Bruno Haible  <bruno@clisp.org>
90583         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90584         Suggested by Eric Blake.
90586 2007-03-18  Ben Pfaff  <blp@gnu.org>
90588         * doc/relocatable.texi: Recommend using as prefix a directory
90589         that does not exist and will never be created.  Based on
90590         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90591         and others.
90593 2007-03-17  Bruno Haible  <bruno@clisp.org>
90595         * lib/fchownat.c: Include lchown.h.
90597 2007-03-17  Bruno Haible  <bruno@clisp.org>
90599         Fix endless loop when the given allocated size was > INT_MAX.
90600         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90601         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90602         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90603         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90604         * lib/sprintf.c (sprintf): Likewise.
90606 2007-03-17  Bruno Haible  <bruno@clisp.org>
90608         * tests/test-argp-2.sh (func_compare): Output a context diff.
90610 2007-03-17  Bruno Haible  <bruno@clisp.org>
90612         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90613         locale's decimal-point character.
90615 2007-03-17  Bruno Haible  <bruno@clisp.org>
90617         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90618         before comparing it. Needed because on some platforms (e.g. x86) a
90619         'long double' occupies less bytes than sizeof (long double).
90621 2007-03-17  Bruno Haible  <bruno@clisp.org>
90623         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90624         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90625         * tests/test-getaddrinfo.c (simple): Likewise.
90626         * tests/test-read-file.c (main): Likewise.
90628 2007-03-17  Bruno Haible  <bruno@clisp.org>
90630         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90632 2007-03-17  Bruno Haible  <bruno@clisp.org>
90634         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90635         unused variable.
90637 2007-03-17  Bruno Haible  <bruno@clisp.org>
90639         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90640         * tests/test-c-strncasecmp.c: Likewise.
90642 2007-03-17  Bruno Haible  <bruno@clisp.org>
90644         * modules/stdlib (Depends-on): Add unistd.
90645         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90646         Needed for MacOS X 10.3.
90648 2007-03-17  Bruno Haible  <bruno@clisp.org>
90650         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90652 2007-03-17  Bruno Haible  <bruno@clisp.org>
90654         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90656 2007-03-17  Bruno Haible  <bruno@clisp.org>
90658         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90659         to reflect files copied from gnulib (with or without modifications).
90660         Suggested by Jim Meyering.
90662 2007-03-17  Eric Blake  <ebb9@byu.net>
90664         * NEWS: Document stdlib change from 2007-02-18.
90666 2007-03-17  Jim Meyering  <jim@meyering.net>
90668         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90669         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90670         someone uses a name containing shell meta-characters.
90671         Reported by Alfred M. Szmidt.
90673         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90675 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90677         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90678         and copy gettext configuration files only if configure.ac contains
90679         a use of AM_GNU_GETTEXT_VERSION.
90681 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90683         * build-aux/bootstrap (gnulib_name): New variable.
90684         (gnulib_tool_options): Use it.
90686 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90688         * tests/test-des.c: Use new namespace.
90690 2007-03-15  Bruno Haible  <bruno@clisp.org>
90692         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90693         Reported by James Youngman <jay@gnu.org>.
90695 2007-03-15  Bruno Haible  <bruno@clisp.org>
90697         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90698         declared prototype. Needed with cc on OSF/1 5.1.
90700 2007-03-15  Bruno Haible  <bruno@clisp.org>
90702         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90703         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90704         (struct gl_list_implementation): Add dispose_fn argument to the
90705         'create_empty', 'create' methods.
90706         (struct gl_list_impl_base): Add field 'dispose_fn'.
90707         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90708         argument.
90709         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90710         dispose_fn argument.
90711         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90712         dispose_fn on the dropped values.
90713         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90714         dispose_fn argument.
90715         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90716         dropped values.
90717         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90718         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90719         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90720         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90721         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90722         argument.
90723         (gl_tree_list_free): Call dispose_fn on the dropped values.
90724         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90725         the dropped values.
90726         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90727         Add dispose_fn argument.
90728         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90729         Call dispose_fn on the dropped values.
90730         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90731         Add dispose_fn argument.
90732         (gl_sublist_create): Initialize the 'dispose_fn' field.
90733         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90734         * tests/test-array_list.c (main): Update.
90735         * tests/test-carray_list.c (main): Update.
90736         * tests/test-avltree_list.c (main): Update.
90737         * tests/test-rbtree_list.c (main): Update.
90738         * tests/test-avltreehash_list.c (main): Update.
90739         * tests/test-rbtreehash_list.c (main): Update.
90740         * tests/test-linked_list.c (main): Update.
90741         * tests/test-linkedhash_list.c (main): Update.
90742         * tests/test-array_oset.c (main): Update.
90744 2007-03-15  Bruno Haible  <bruno@clisp.org>
90746         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90747         (gl_oset_create_empty): Add dispose_fn argument.
90748         (struct gl_oset_implementation): Add dispose_fn argument to
90749         'create_empty' method.
90750         (struct gl_oset_impl_base): Add dispose_fn field.
90751         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90752         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90753         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90754         values.
90755         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90756         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90757         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90758         dropped value.
90759         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90760         dropped value.
90761         * tests/test-array_oset.c (main): Update.
90762         * tests/test-avltree_oset.c (main): Update.
90763         * tests/test-rbtree_oset.c (main): Update.
90764         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90766 2007-03-13  Bruno Haible  <bruno@clisp.org>
90768         * tests/test-stdbool.c (i): Update after last patch.
90770 2007-03-12  Bruno Haible  <bruno@clisp.org>
90772         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90773         the iswprint macro. Needed on Solaris 2.5.1.
90775 2007-03-12  Bruno Haible  <bruno@clisp.org>
90777         * tests/test-printf-frexp.c (main): Declare x as volatile.
90779 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90781         * doc/gnulib.texi (Build robot for gnulib): New section.
90783 2007-03-12  Jim Meyering  <jim@meyering.net>
90785         * build-aux/bootstrap: New file.
90786         * build-aux/bootstrap.conf: New file, from coreutils.
90788 2007-03-11  Bruno Haible  <bruno@clisp.org>
90790         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90792 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90794         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90795         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90796         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90798 2007-03-11  Bruno Haible  <bruno@clisp.org>
90800         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90801         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90803 2007-03-11  Bruno Haible  <bruno@clisp.org>
90805         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90806         formula. Needed for SunPRO C 5.0.
90808 2007-03-11  Bruno Haible  <bruno@clisp.org>
90810         * modules/long-options (Depends-on): Add getopt.
90812 2007-03-11  Bruno Haible  <bruno@clisp.org>
90814         * modules/modechange (Depends-on): Add stdbool.
90816 2007-03-11  Bruno Haible  <bruno@clisp.org>
90818         * modules/i-ring (Depends-on): Add stdbool.
90820 2007-03-11  Bruno Haible  <bruno@clisp.org>
90822         * modules/gc-des (Depends-on): Add stdbool.
90824 2007-03-11  Bruno Haible  <bruno@clisp.org>
90826         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90828 2007-03-11  Bruno Haible  <bruno@clisp.org>
90830         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90832 2007-03-11  Bruno Haible  <bruno@clisp.org>
90834         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90836 2007-03-11  Bruno Haible  <bruno@clisp.org>
90838         * lib/vasnprintf.c (sprintf): Undefine.
90840 2007-03-11  Bruno Haible  <bruno@clisp.org>
90842         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90843         initializers in SunPRO C and Compaq C compilers.
90845 2007-03-11  Bruno Haible  <bruno@clisp.org>
90847         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90848         decrementing code ANSI C compliant.
90850 2007-03-11  Bruno Haible  <bruno@clisp.org>
90852         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90853         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90855 2007-03-11  Bruno Haible  <bruno@clisp.org>
90857         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90858         <stdbool.h> substitute doesn't pass.
90860 2007-03-11  Bruno Haible  <bruno@clisp.org>
90862         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90864 2007-03-11  Bruno Haible  <bruno@clisp.org>
90866         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90867         script, for submission to autobuild.josefsson.org.
90869 2007-03-10  Bruno Haible  <bruno@clisp.org>
90871         * modules/canonicalize-lgpl-tests: New file.
90872         * tests/test-canonicalize-lgpl.sh: New file.
90873         * tests/test-canonicalize-lgpl.c: New file.
90875         * modules/c-strcase-tests: New file.
90876         * tests/test-c-strcase.sh: New file.
90877         * tests/test-c-strcasecmp.c: New file.
90878         * tests/test-c-strncasecmp.c: New file.
90880         * modules/atexit-tests: New file.
90881         * tests/test-atexit.sh: New file.
90882         * tests/test-atexit.c: New file.
90884 2007-03-10  Bruno Haible  <bruno@clisp.org>
90886         * tests/test-binary-io.sh: Use temporary filenames that are not so
90887         likely to clash with those of other tests (in a parallel make).
90888         * tests/test-binary-io.c: Likewise.
90890 2007-03-10  Bruno Haible  <bruno@clisp.org>
90892         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90893         fallback; use #error instead.
90894         Suggested by Simon Josefsson.
90896 2007-03-10  Bruno Haible  <bruno@clisp.org>
90898         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90899         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90900         first and the last.
90902 2007-03-10  Bruno Haible  <bruno@clisp.org>
90904         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90906 2007-03-10  Bruno Haible  <bruno@clisp.org>
90908         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90909         "make distcheck".
90910         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90911         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90912         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90914 2007-03-10  Bruno Haible  <bruno@clisp.org>
90916         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90917         variable.
90918         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90919         variable.
90921 2007-03-09  Eric Blake  <ebb9@byu.net>
90922         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90924         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90925         types are not being provided by gnulib.
90926         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90927         types are supported.
90929 2007-03-10  Bruno Haible  <bruno@clisp.org>
90931         * lib/stdio_.h (__attribute__): New macro.
90932         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90933         vsprintf): Specify __attribute__ __format__ for GCC.
90934         Suggested by Eric Blake.
90936 2007-03-09  Bruno Haible  <bruno@clisp.org>
90938         * modules/printf-posix-tests: New file.
90939         * tests/test-printf-posix.sh: New file.
90940         * tests/test-printf-posix.c: New file.
90942         * modules/printf-posix: New file.
90943         * lib/printf.c: New file.
90944         * m4/printf-posix-rpl.m4: New file.
90945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90946         REPLACE_PRINTF.
90947         * lib/stdio_.h (printf): New declaration.
90948         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90949         ____strfmon____): New macros.
90950         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90951         REPLACE_PRINTF.
90953 2007-03-09  Bruno Haible  <bruno@clisp.org>
90955         * tests/test-vasnprintf-posix2.sh: New file.
90956         * tests/test-vasnprintf-posix2.c: New file.
90957         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90958         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90959         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90961         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90962         a locale dependent decimal point, rather than always '.'.
90964 2007-03-09  Eric Blake  <ebb9@byu.net>
90966         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90967         spite of platforms like Tandem/NSK that define it to -1.
90969 2007-03-08  Bruno Haible  <bruno@clisp.org>
90971         * modules/vprintf-posix-tests: New file.
90972         * tests/test-vprintf-posix.sh: New file.
90973         * tests/test-vprintf-posix.c: New file.
90974         * tests/test-printf-posix.h: New file.
90976         * modules/vprintf-posix: New file.
90977         * lib/vprintf.c: New file.
90978         * m4/vprintf-posix.m4: New file.
90979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90980         REPLACE_VPRINTF.
90981         * lib/stdio_.h (vprintf): New declaration.
90982         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90983         REPLACE_VPRINTF.
90985 2007-03-08  Bruno Haible  <bruno@clisp.org>
90987         * modules/fprintf-posix-tests: New file.
90988         * tests/test-fprintf-posix.sh: New file.
90989         * tests/test-fprintf-posix.c: New file.
90991         * modules/fprintf-posix: New file.
90992         * lib/fprintf.c: New file.
90993         * m4/fprintf-posix.m4: New file.
90994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90995         REPLACE_FPRINTF.
90996         * lib/stdio_.h (fprintf): New declaration.
90997         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90998         REPLACE_FPRINTF.
91000 2007-03-08  Bruno Haible  <bruno@clisp.org>
91002         * modules/vfprintf-posix-tests: New file.
91003         * tests/test-vfprintf-posix.sh: New file.
91004         * tests/test-vfprintf-posix.c: New file.
91005         * tests/test-fprintf-posix.h: New file.
91006         * tests/test-fprintf-posix.out: New file.
91008         * modules/vfprintf-posix: New file.
91009         * lib/vfprintf.c: New file.
91010         * m4/vfprintf-posix.m4: New file.
91011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
91012         REPLACE_VFPRINTF.
91013         * lib/stdio_.h (vfprintf): New declaration.
91014         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
91015         REPLACE_VFPRINTF.
91017 2007-03-08  Bruno Haible  <bruno@clisp.org>
91019         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
91021 2007-03-08  Bruno Haible  <bruno@clisp.org>
91023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
91024         instead of 'expr' invocations.
91025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91030         Suggested by Paul Eggert.
91032 2007-03-08  Bruno Haible  <bruno@clisp.org>
91034         * modules/fseterr-tests: New file.
91035         * tests/test-fseterr.c: New file.
91037         * modules/fseterr: New file.
91038         * lib/fseterr.h: New file.
91039         * lib/fseterr.c: New file.
91041 2007-03-08  Bruno Haible  <bruno@clisp.org>
91043         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
91044         * lib/getopt_.h: Likewise.
91045         * lib/mbswidth.h: Likewise.
91046         * lib/setenv.h: Likewise.
91047         * lib/vasnprintf.h: Likewise.
91048         * lib/vasprintf.h: Likewise.
91049         * lib/verror.h: Likewise.
91050         * lib/xsetenv.h: Likewise.
91051         * lib/xvasprintf.h: Likewise.
91053 2007-03-08  Jim Meyering  <jim@meyering.net>
91055         * users.txt: Add parted.
91057         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
91059 2007-03-07  Bruno Haible  <bruno@clisp.org>
91061         * m4/printf.m4: Make the shell script snippets copy&pastable.
91063 2007-03-02  Bruno Haible  <bruno@clisp.org>
91065         * lib/netinet_in_.h: New file.
91066         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
91067         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
91068         * modules/netinet_in (Files): Add lib/netinet_in_.h.
91069         (Depends-on): Add absolute-header.
91070         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
91071         into netinet/in.h.
91073 2007-03-03  Bruno Haible  <bruno@clisp.org>
91075         * lib/sys_select_.h: New file.
91076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
91077         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
91078         * modules/sys_select (Files): Add lib/sys_select_.h.
91079         (Depends-on): Add absolute-header.
91080         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
91081         into sys/select.h.
91083 2007-03-02  Bruno Haible  <bruno@clisp.org>
91085         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
91086         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
91087         values.
91088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
91089         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91090         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
91091         * modules/sys_socket (Depends-on): Add absolute-header.
91092         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
91093         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
91094         (Include): Remove requirement of inclusion of <sys/types.h>.
91096 2007-03-02  Bruno Haible  <bruno@clisp.org>
91098         * lib/byteswap_.h (bswap_32): Fix formula.
91100 2007-03-06  Bruno Haible  <bruno@clisp.org>
91102         * modules/sprintf-posix-tests: New file.
91103         * tests/test-sprintf-posix.c: New file.
91105         * modules/sprintf-posix: New file.
91106         * lib/sprintf.c: New file.
91107         * m4/sprintf-posix.m4: New file.
91108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
91109         REPLACE_SPRINTF.
91110         * lib/stdio_.h (sprintf): New declaration.
91111         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
91112         REPLACE_SPRINTF.
91114 2007-03-06  Bruno Haible  <bruno@clisp.org>
91116         * modules/vsprintf-posix-tests: New file.
91117         * tests/test-vsprintf-posix.c: New file.
91118         * tests/test-sprintf-posix.h: New file.
91120         * modules/vsprintf-posix: New file.
91121         * lib/vsprintf.c: New file.
91122         * m4/vsprintf-posix.m4: New file.
91123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91124         REPLACE_VSPRINTF.
91125         * lib/stdio_.h (vsprintf): New declaration.
91126         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91127         REPLACE_VSPRINTF.
91129 2007-03-06  Bruno Haible  <bruno@clisp.org>
91131         * modules/vsnprintf (Depend-on): Remove minmax.
91133 2007-03-06  Bruno Haible  <bruno@clisp.org>
91135         * modules/snprintf-posix-tests: New file.
91136         * tests/test-snprintf-posix.c: New file.
91138         * modules/snprintf-posix: New file.
91139         * m4/snprintf-posix.m4: New file.
91140         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91141         gl_FUNC_SNPRINTF.
91142         (gl_FUNC_SNPRINTF): Invoke it.
91143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91144         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91145         is set.
91146         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91148 2007-03-06  Bruno Haible  <bruno@clisp.org>
91150         * modules/vsnprintf-posix-tests: New file.
91151         * tests/test-vsnprintf-posix.c: New file.
91152         * tests/test-snprintf-posix.h: New file.
91154         * modules/vsnprintf-posix: New file.
91155         * m4/vsnprintf-posix.m4: New file.
91156         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91157         gl_FUNC_VSNPRINTF.
91158         (gl_FUNC_VSNPRINTF): Invoke it.
91159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91160         * lib/stdio_.h (vsnprintf): Define as a replacement if
91161         REPLACE_VSNPRINTF is set.
91162         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91164 2007-03-06  Bruno Haible  <bruno@clisp.org>
91166         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91169 2007-03-06  Bruno Haible  <bruno@clisp.org>
91171         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91172         (asinl): Declare also if HAVE_DECL_ASINL is set.
91173         (atanl): Declare also if HAVE_DECL_ATANL is set.
91174         (ceill): Declare also if HAVE_DECL_CEILL is set.
91175         (cosl): Declare also if HAVE_DECL_COSL is set.
91176         (expl): Declare also if HAVE_DECL_EXPL is set.
91177         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91178         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91179         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91180         (logl): Declare also if HAVE_DECL_LOGL is set.
91181         (sinl): Declare also if HAVE_DECL_SINL is set.
91182         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91183         (tanl): Declare also if HAVE_DECL_TANL is set.
91184         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91186         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91187         declaration of frexpl, ldexpl.
91188         * modules/printf-frexpl (Depends-on): Add math.
91189         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91191 2007-03-05  Bruno Haible  <bruno@clisp.org>
91193         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91194         frexpl and ldexpl are declared.
91195         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91197 2007-03-05  Bruno Haible  <bruno@clisp.org>
91199         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91200         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91202 2007-03-05  Bruno Haible  <bruno@clisp.org>
91204         * lib/stdio_.h: Include <stddef.h>.
91206 2007-03-05  Bruno Haible  <bruno@clisp.org>
91208         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91210 2007-03-05  Bruno Haible  <bruno@clisp.org>
91212         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91213         NetBSD 4, from Ralf Wildenhues.
91215 2007-03-04  Bruno Haible  <bruno@clisp.org>
91217         * lib/vasprintf.h: Update #if logic for the case when the functions
91218         exist but are overridden.
91220 2007-03-04  Bruno Haible  <bruno@clisp.org>
91222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91223         implementations: glibc-2.4 and MacOS X 10.3.
91224         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91225         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91226         * tests/test-vasprintf-posix.c (test_function): Likewise.
91228 2007-03-04  Bruno Haible  <bruno@clisp.org>
91230         * modules/vasprintf-posix-tests: New file.
91231         * tests/test-vasprintf-posix.c: New file.
91233         * modules/vasprintf-posix: New file.
91234         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91235         defined.
91236         * m4/vasprintf-posix.m4: New file.
91237         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91238         gl_FUNC_VASPRINTF.
91239         (gl_FUNC_VASPRINTF): Invoke it.
91240         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91241         here.
91242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91244 2007-03-04  Bruno Haible  <bruno@clisp.org>
91246         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91247         REPLACE_GETTIMEOFDAY.
91248         * modules/sys_time (Makefile.am): Likewise.
91249         * m4/sys_time_h.m4: Likewise.
91250         * m4/gettimeofday.m4: Likewise.
91252 2007-03-04  Bruno Haible  <bruno@clisp.org>
91254         * modules/vasnprintf-posix-tests: New file.
91255         * tests/test-vasnprintf-posix.c: New file.
91257         * modules/vasnprintf-posix: New file.
91258         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91259         printf-frexpl.h.
91260         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91261         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91262         REPLACE_VASNPRINTF is defined.
91263         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91264         gl_FUNC_VASNPRINTF.
91265         (gl_FUNC_VASNPRINTF): Invoke it.
91266         * m4/vasnprintf-posix.m4: New file.
91267         * m4/printf.m4: New file.
91269 2007-03-04  Bruno Haible  <bruno@clisp.org>
91271         Compile progreloc.c only if --enable-relocatable is specified.
91272         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91273         if --enable-relocatable was specified.
91274         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91275         lib_SOURCES.
91277 2007-03-04  Jim Meyering  <jim@meyering.net>
91279         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91280         Use it consistently, rather than enumerating errno constants.
91282 2007-03-04  Bruno Haible  <bruno@clisp.org>
91284         * modules/xvasprintf-tests: New file.
91285         * tests/test-xvasprintf.c: New file.
91287         * modules/vasprintf-tests: New file.
91288         * tests/test-vasprintf.c: New file.
91290         * modules/vasnprintf-tests: New file.
91291         * tests/test-vasnprintf.c: New file.
91293         * modules/vsnprintf-tests: New file.
91294         * tests/test-vsnprintf.c: New file.
91296         * modules/snprintf-tests: New file.
91297         * tests/test-snprintf.c: New file.
91299 2007-03-04  Bruno Haible  <bruno@clisp.org>
91301         Compile relocatable.c only if --enable-relocatable is specified.
91302         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91303         gl_RELOCATABLE_LIBRARY.
91304         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91305         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91306         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91307         gl_RELOCATABLE_LIBRARY.
91308         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91309         (Makefile.am): Remove lib_SOURCES.
91310         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91311         gl_RELOCATABLE_LIBRARY.
91312         (Makefile.am): Remove lib_SOURCES.
91313         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91314         always.
91315         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91316         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91318 2007-03-04  Bruno Haible  <bruno@clisp.org>
91320         * modules/argmatch-tests: New file.
91321         * tests/test-argmatch.c: New file.
91323         * tests/test-allocsa.c (main): Halve the number of loop runs.
91325         * modules/alloca-opt-tests: New file.
91326         * tests/test-alloca-opt.c: New file.
91328 2007-03-04  Jim Meyering  <jim@meyering.net>
91330         Work around difference between Linux ACLs and Solaris 10 ZFS.
91331         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91332         for EINVAL.
91334 2007-03-03  Bruno Haible  <bruno@clisp.org>
91336         * modules/relocatable-prog (Depends-on): Add back progreloc's
91337         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91339 2007-03-03  Bruno Haible  <bruno@clisp.org>
91341         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91342         * modules/relocatable-lib: New file.
91344 2007-03-03  Bruno Haible  <bruno@clisp.org>
91346         * modules/relocatable-prog: Renamed from modules/relocatable.
91347         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91349 2007-03-03  Bruno Haible  <bruno@clisp.org>
91351         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91352         m4/relocatable-lib.m4.
91353         (Depends-on): Remove 'relocatable'.
91354         (configure.ac): Add gl_RELOCATABLE_NOP.
91356 2007-03-03  Bruno Haible  <bruno@clisp.org>
91358         * modules/relocatable-prog-wrapper: New file.
91359         * modules/relocatable (Depends-on): Add it. Remove all other
91360         dependencies except progname.
91361         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91364         (gl_FUNC_STRERROR): Nop.
91365         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91367         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91368         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91370         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91371         (gl_FUNC_READLINK): Update.
91373         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91375 2007-03-03  Bruno Haible  <bruno@clisp.org>
91377         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91378         * modules/xreadlink (Depends-on): Add unistd.
91379         * modules/xreadlink-with-size (Depends-on): Likewise.
91381 2007-03-03  Bruno Haible  <bruno@clisp.org>
91383         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91384         extracted from gt_FUNC_SETENV.
91385         (gt_FUNC_SETENV): Remove macro.
91386         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91387         remove gt_FUNC_SETENV.
91389 2007-03-03  Bruno Haible  <bruno@clisp.org>
91391         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91392         ENABLE_RELOCATABLE here.
91393         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91395 2007-03-03  Bruno Haible  <bruno@clisp.org>
91397         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91398         * tests/test-rbtreehash_list.c: Include progname.h.
91399         (main): Call set_program_name.
91401         * modules/rbtree-oset-tests (Depends-on): Add progname.
91402         * tests/test-rbtree_oset.c: Include progname.h.
91403         (main): Call set_program_name.
91405         * modules/rbtree-list-tests (Depends-on): Add progname.
91406         * tests/test-rbtree_list.c: Include progname.h.
91407         (main): Call set_program_name.
91409         * modules/linked-list-tests (Depends-on): Add progname.
91410         * tests/test-linked_list.c: Include progname.h.
91411         (main): Call set_program_name.
91413 2007-03-03  Bruno Haible  <bruno@clisp.org>
91415         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91416         All uses of __restrict changed to _Restrict_.
91417         * lib/glob_.h (__restrict): Remove macro.
91419 2007-03-02  Bruno Haible  <bruno@clisp.org>
91421         * modules/gettext (configure.ac): Require gettext infrastructure
91422         from version 0.16.1.
91424 2007-03-02  Bruno Haible  <bruno@clisp.org>
91426         * modules/linkedhash-list-tests (Depends-on): Add progname.
91427         * tests/test-linkedhash_list.c: Include progname.h.
91428         (main): Call set_program_name.
91430         * modules/carray-list-tests (Depends-on): Add progname.
91431         * tests/test-carray_list.c: Include progname.h.
91432         (main): Call set_program_name.
91434         * modules/avltreehash-list-tests (Depends-on): Add progname.
91435         * tests/test-avltreehash_list.c: Include progname.h.
91436         (main): Call set_program_name.
91438         * modules/avltree-oset-tests (Depends-on): Add progname.
91439         * tests/test-avltree_oset.c: Include progname.h.
91440         (main): Call set_program_name.
91442         * modules/avltree-list-tests (Depends-on): Add progname.
91443         * tests/test-avltree_list.c: Include progname.h.
91444         (main): Call set_program_name.
91446         * modules/array-oset-tests (Depends-on): Add progname.
91447         * tests/test-array_oset.c: Include progname.h.
91448         (main): Call set_program_name.
91450         * modules/array-list-tests (Depends-on): Add progname.
91451         * tests/test-array_list.c: Include progname.h.
91452         (main): Call set_program_name.
91454         * modules/argp-tests (Depends-on): Add progname.
91455         * tests/test-argp.c: Include argp.h first. Include progname.h.
91456         (main): Call set_program_name.
91458 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91460         * doc/gnulib-tool.texi (Initial import): Reword description of
91461         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91462         limited effect even if defined after the first system include.
91464 2007-03-01  Bruno Haible  <bruno@clisp.org>
91466         * build-aux/config.libpath: Update to libtool-1.5.22.
91467         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91469 2007-03-01  Bruno Haible  <bruno@clisp.org>
91471         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91472         foo_CFLAGS.
91473         Reported by Ralf Wildenhues.
91475 2007-03-01  Bruno Haible  <bruno@clisp.org>
91477         * build-aux/install-reloc: Remove object files left over by some
91478         compilers.
91479         Reported by Ralf Wildenhues.
91481 2007-03-01  Bruno Haible  <bruno@clisp.org>
91483         * build-aux/install-reloc: Break long lines.
91485 2007-03-01  Bruno Haible  <bruno@clisp.org>
91487         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91488         Reported by Ralf Wildenhues.
91490 2007-03-01  Bruno Haible  <bruno@clisp.org>
91492         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91493         include ordering constraints.
91495 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91497         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91498         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91499         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91500         as another example.
91501         * lib/time_.h: Fix misspelling.
91502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91503         Require gl_HEADER_TIME_H_DEFAULTS.
91504         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91505         * m4/time_r.m4 (gl_TIME_R): Likewise.
91506         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91508 2007-03-01  Bruno Haible  <bruno@clisp.org>
91510         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91511         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91513 2007-03-01  Jim Meyering  <jim@meyering.net>
91515         * modules/xreadlink (Maintainer): Add my name.
91516         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91518 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91519             Bruno Haible  <bruno@clisp.org>
91521         * build-aux/install-reloc: Compile also c-ctype.c.
91522         * build-aux/relocatable.sh.in: New file.
91523         * doc/relocatable.texi: New file.
91524         * doc/relocatable-maint.texi: New file.
91525         * doc/gnulib.texi: Include relocatable-maint.texi.
91526         * lib/progreloc.c: Include unistd.h unconditionally.
91527         * lib/relocwrapper.c: Include unistd.h unconditionally.
91528         Include c-ctype.h.
91529         (add_dotbin): Use c_tolower.
91530         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91531         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91532         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91533         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91534         to m4/relocatable-lib.m4.
91535         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91536         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91537         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91538         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91539         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91540         * modules/relocatable: New file.
91541         * modules/relocatable-lib: New file.
91542         * modules/relocatable-script: New file.
91544 2007-02-28  Bruno Haible  <bruno@clisp.org>
91546         Import --enable-relocatable infrastructure.
91547         * build-aux/config.libpath: New file, from GNU gettext.
91548         * build-aux/install-reloc: New file, from GNU gettext.
91549         * build-aux/reloc-ldflags: New file, from GNU gettext.
91550         * lib/relocatable.h: New file, from GNU gettext.
91551         * lib/relocatable.c: New file, from GNU gettext.
91552         * lib/relocwrapper.c: New file, from GNU gettext.
91553         * m4/relocatable.m4: New file, from GNU gettext.
91555 2007-02-28  Bruno Haible  <bruno@clisp.org>
91557         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91559         * modules/xreadlink: New file, from GNU gettext with modifications.
91560         * lib/xreadlink.c: New file, from GNU gettext.
91561         * lib/xreadlink.h: Add comments.
91562         (xreadlink): New declaration.
91564         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91565         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91566         lib/xreadlink-with-size.c.
91567         (configure.ac): Remove gl_XREADLINK invocation.
91568         (Makefile.am): Augment lib_SOURCES.
91569         * m4/xreadlink.m4: Remove file.
91570         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91571         (xreadlink_with_size): Renamed from xreadink.
91572         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91573         * modules/canonicalize (Depends-on): Replace xreadlink with
91574         xreadlink-with-size.
91575         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91577 2007-02-25  Jim Meyering  <jim@meyering.net>
91579         * build-aux/announce-gen: When complaining about excess arguments,
91580         list them.
91582 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91584         * README: Document signed integer overflow situation more
91585         accurately.
91587 2007-02-25  Bruno Haible  <bruno@clisp.org>
91589         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91590         'a' or 'A' conversion.
91592 2007-02-25  Bruno Haible  <bruno@clisp.org>
91594         * modules/filename: Renamed from modules/pathname.
91595         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91596         lib/concatpath.c with lib/concat-filename.c.
91597         (Makefile.am): Update.
91598         (Include): Replace pathname.h with filename.h.
91599         * lib/filename.h: Renamed from lib/pathname.h.
91600         (concatenated_filename): Renamed from concatenated_pathname.
91601         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91602         (concatenated_filename): Renamed from concatenated_pathname.
91603         * lib/findprog.c: Include filename.h instead of pathname.h.
91604         (find_in_path): Update.
91605         * lib/javacomp.c: Include filename.h instead of pathname.h.
91606         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91607         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91608         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91609         is_oldgcj_14_13_usable, is_javac_usable): Update.
91610         * lib/javaexec.c: Include filename.h instead of pathname.h.
91611         (execute_java_class): Update.
91612         * modules/findprog: Update.
91613         * modules/javacomp: Update.
91614         * modules/javaexec: Update.
91615         * MODULES.html.sh (File system functions): Add 'filename', remove
91616         'pathname'.
91618 2007-02-25  Bruno Haible  <bruno@clisp.org>
91620         * modules/printf-frexpl-tests: New file.
91621         * tests/test-printf-frexpl.c: New file.
91623         * modules/printf-frexpl: New file.
91624         * lib/printf-frexpl.h: New file.
91625         * lib/printf-frexpl.c: New file.
91626         * m4/printf-frexpl.m4: New file.
91628 2007-02-25  Bruno Haible  <bruno@clisp.org>
91630         * modules/printf-frexp-tests: New file.
91631         * tests/test-printf-frexp.c: New file.
91633         * modules/printf-frexp: New file.
91634         * lib/printf-frexp.h: New file.
91635         * lib/printf-frexp.c: New file.
91636         * m4/printf-frexp.m4: New file.
91638 2007-02-25  Bruno Haible  <bruno@clisp.org>
91640         Assume automake >= 1.10 for the tests.
91641         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91642         * modules/arctwo-tests: Likewise.
91643         * modules/argp-tests: Likewise.
91644         * modules/avltree-list-tests: Likewise.
91645         * modules/avltree-oset-tests: Likewise.
91646         * modules/avltreehash-list-tests: Likewise.
91647         * modules/carray-list-tests: Likewise.
91648         * modules/crc-tests: Likewise.
91649         * modules/des-tests: Likewise.
91650         * modules/gc-arcfour-tests: Likewise.
91651         * modules/gc-arctwo-tests: Likewise.
91652         * modules/gc-des-tests: Likewise.
91653         * modules/gc-hmac-md5-tests: Likewise.
91654         * modules/gc-hmac-sha1-tests: Likewise.
91655         * modules/gc-md2-tests: Likewise.
91656         * modules/gc-md4-tests: Likewise.
91657         * modules/gc-md5-tests: Likewise.
91658         * modules/gc-pbkdf2-sha1-tests: Likewise.
91659         * modules/gc-rijndael-tests: Likewise.
91660         * modules/gc-sha1-tests: Likewise.
91661         * modules/gc-tests: Likewise.
91662         * modules/getaddrinfo-tests: Likewise.
91663         * modules/hmac-md5-tests: Likewise.
91664         * modules/hmac-sha1-tests: Likewise.
91665         * modules/linked-list-tests: Likewise.
91666         * modules/linkedhash-list-tests: Likewise.
91667         * modules/lock-tests: Likewise.
91668         * modules/md2-tests: Likewise.
91669         * modules/md4-tests: Likewise.
91670         * modules/md5-tests: Likewise.
91671         * modules/rbtree-list-tests: Likewise.
91672         * modules/rbtree-oset-tests: Likewise.
91673         * modules/rbtreehash-list-tests: Likewise.
91674         * modules/read-file-tests: Likewise.
91675         * modules/rijndael-tests: Likewise.
91676         * modules/stdint-tests: Likewise.
91677         * modules/tls-tests: Likewise.
91679 2007-02-24  Bruno Haible  <bruno@clisp.org>
91681         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91682         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91683         function; instead check whether isnan with a double argument links.
91684         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91685         function; instead check whether isnan with a 'long double' argument
91686         links.
91687         Reported by Eric Blake <ebb9@byu.net>.
91689 2007-02-24  Bruno Haible  <bruno@clisp.org>
91691         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91692         defined.
91693         * lib/isnanl.c: Remove all code. Just include isnan.c.
91694         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91696 2007-02-25  Jim Meyering  <jim@meyering.net>
91698         Avoid conflicting types for 'unsetenv' on FreeBSD.
91699         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91700         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91701         in stdlib.h.
91703 2007-02-24  Bruno Haible  <bruno@clisp.org>
91705         * modules/isnanl-nolibm-tests: New file.
91706         * tests/test-isnanl.c: New file.
91708         * modules/isnanl-nolibm: New file.
91709         * lib/isnanl.h: New file.
91710         * lib/isnanl.c: New file.
91711         * m4/isnanl.m4: New file.
91713 2007-02-24  Bruno Haible  <bruno@clisp.org>
91715         * modules/isnan-nolibm-tests: New file.
91716         * tests/test-isnan.c: New file.
91718         * modules/isnan-nolibm: New file.
91719         * lib/isnan.h: New file.
91720         * lib/isnan.c: New file.
91721         * m4/isnan.m4: New file.
91723 2007-02-24  Bruno Haible  <bruno@clisp.org>
91725         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91726         assume that an exponent fits in 20 bits.
91728 2007-02-24  Jim Meyering  <jim@meyering.net>
91730         * m4/regex.m4: Update the description of the configure-time option,
91731         --without-included-regex, to state accurately what the defaults are,
91732         and perhaps to give people an idea why using this option is risky.
91734 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91737         loops on small arguments.  This attempts to avoid the problem
91738         Bruno Haible reported for AIX 4.3.2 in
91739         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91741 2007-02-23  Bruno Haible  <bruno@clisp.org>
91743         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91744         Needed for help2man.
91746 2007-02-23  Karl Berry  <karl@gnu.org>
91748         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91749         exists, foo.h should be cvs-ignored, not committed.
91751 2007-02-23  Eric Blake  <ebb9@byu.net>
91753         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91754         * lib/stat-time.h (includes): Likewise.
91755         * lib/utimecmp.c (includes): Likewise.
91756         * lib/utimens.h (includes): Likewise.
91757         * lib/getdate.y (includes): Also include "timespec.h" for use
91758         internal to the module.
91759         * modules/utimens (Depends-on): Revert yesterday's patch.
91760         * modules/nanosleep (Depends-on): Add missing dependency.
91762 2007-02-22  Bruno Haible  <bruno@clisp.org>
91764         * lib/glob.c: Don't include getlogin_r.h.
91766 2007-02-22  Jim Meyering  <jim@meyering.net>
91768         * modules/utimens (Depends-on): Add timespec, required for
91769         utimens.h's inclusion of timespec.h.
91771 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91773         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91774         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91775         Schwab in
91776         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91777         I'll try to think of a better way to fix the Solaris problem.
91779         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91780         like glibc; on Solaris 10, it fails with errno == EINVAL.
91781         POSIX says the behavior is unspecified if the first argument is NULL,
91782         so play it safe and never pass NULL to the system getcwd.
91784 2007-02-21  Jim Meyering  <jim@meyering.net>
91786         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91787         of gettimeofday.  It would conflict with the one now always
91788         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91789         an IRIX 6.5 build failure.
91791 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91793         Minor fixups to port to Solaris 10 with Sun C 5.8.
91794         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91795         * modules/getcwd (Depends-on): Add dirfd.
91796         * lib/putenv.c (putenv): #undef it.
91797         (rpl_putenv): New decl.
91798         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91800 2007-02-20  Bruno Haible  <bruno@clisp.org>
91802         * modules/stdio-tests: New file.
91803         * tests/test-stdio.c: New file.
91805         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91806         (Depends-on): Add stdio.
91807         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91808         (Include): Use <stdio.h> instead of vsnprintf.h.
91809         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91810         HAVE_DECL_VSNPRINTF.
91811         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91813         * modules/snprintf (Files): Remove lib/snprintf.h.
91814         (Depends-on): Add stdio.
91815         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91816         (Include): Use <stdio.h> instead of snprintf.h.
91817         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91818         HAVE_DECL_SNPRINTF.
91819         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91820         * lib/getaddrinfo.c: Likewise.
91822         * modules/stdio: New file.
91823         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91824         * lib/snprintf.h: Remove file.
91825         * lib/vsnprintf.h: Remove file.
91826         * lib/.cppi-disable: Remove snprintf.h.
91827         * m4/stdio_h.m4: New file.
91828         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91830 2007-02-20  Jim Meyering  <jim@meyering.net>
91832         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91833         used by e.g., mingw.  From Bruno Haible.
91835 2007-02-19  Bruno Haible  <bruno@clisp.org>
91837         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91838         warnings.
91839         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91841 2007-02-19  Bruno Haible  <bruno@clisp.org>
91843         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91844         from mingw users.
91846 2007-02-19  Bruno Haible  <bruno@clisp.org>
91848         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91849         warnings.
91850         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91852 2007-02-19  Jim Meyering  <jim@meyering.net>
91854         Don't use FD after a successful "fdopendir (fd)".
91855         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91856         Reset it by calling dirfd on the just-obtained DIR*.
91858         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91859         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91861 2007-02-18  Bruno Haible  <bruno@clisp.org>
91863         * lib/readlink.c: Include <unistd.h>.
91864         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91865         HAVE_READLINK.
91866         * modules/readlink (Depends-on): Add unistd.
91867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91868         (Include): Add <unistd.h>.
91870         * lib/getlogin_r.h: Remove file.
91871         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91872         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91873         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91874         HAVE_DECL_GETLOGIN_R.
91875         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91877         (Include): Use <unistd.h> instead of getlogin_r.h.
91879         * lib/getcwd.h: Remove file.
91880         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91881         * lib/xgetcwd.c: Likewise.
91882         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91883         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91884         * modules/getcwd (Files): Remove lib/getcwd.h.
91885         (Depends-on): Add unistd.
91886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91887         (Include): Use <unistd.h> instad of getcwd.h.
91889         * lib/ftruncate.c: Include <unistd.h> first.
91890         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91891         Set HAVE_FTRUNCATE.
91892         * modules/ftruncate (Depends-on): Add unistd.
91893         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91895         * lib/fchdir.c: Include <unistd.h> first.
91896         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91898         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91899         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91900         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91902         * lib/dup2.c: Include <unistd.h> first.
91903         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91904         HAVE_DUP2.
91905         * modules/dup2 (Depends-on): Add unistd.
91906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91908         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91909         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91910         REPLACE_CHOWN. Don't define chown as a macro here.
91911         * modules/chown (Depends-on): Add unistd.
91912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91914         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91915         Add definition for GL_LINK_WARNING.
91916         (chown, dup2): New declarations.
91917         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91918         link warning.
91919         (ftruncate): New declaration.
91920         (getcwd): New declaration, taken from old getcwd.h.
91921         (getlogin_r): New declaration, taken from old getlogin_r.h.
91922         (readlink): New declaration.
91923         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91924         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91925         (gl_PREREQ_UNISTD): Remove macro.
91926         (gl_UNISTD_MODULE_INDICATOR): New macro.
91927         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91928         many new variables. Don't set UNISTD_H.
91929         * modules/unistd (Description): Change.
91930         (Depends-on): Add link-warning.
91931         (configure.ac): Update.
91932         (Makefile.am): Create unistd.h always. Substitute many new variables
91933         into it.
91935 2007-02-18  Bruno Haible  <bruno@clisp.org>
91937         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91938         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91939         HAVE_GETSUBOPT.
91940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91941         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91942         * lib/getsubopt.h: Remove file.
91943         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91944         (Depends-on): Add stdlib.
91945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91946         (Includes): Use <stdlib.h> instead of getsubopt.h.
91947         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91948         Set HAVE_GETSUBOPT.
91949         * lib/getsubopt.c: Don't include getsubopt.h.
91951 2007-02-18  Bruno Haible  <bruno@clisp.org>
91953         * modules/fchdir (Depends-on): Add dup2.
91955 2007-02-18  Bruno Haible  <bruno@clisp.org>
91957         * lib/stdlib_.h: Handle glibc's special invocation convention
91958         specially.
91960 2007-02-18  Bruno Haible  <bruno@clisp.org>
91962         * modules/stdlib-tests: New file.
91963         * tests/test-stdlib.c: New file.
91965         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91966         (Depends-on): Add stdlib.
91967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91968         (Includes): Use <stdlib.h> instead of mkstemp.h.
91969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91970         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91971         * lib/mkstemp.c: Don't include mkstemp.h.
91972         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91973         * lib/stdlib--.h: Don't include mkstemp.h.
91975         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91976         (Depends-on): Add stdlib.
91977         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91978         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91979         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91980         HAVE_MKDTEMP.
91981         * lib/mkdtemp.c: Don't include mkdtemp.h.
91982         * lib/clean-temp.c: Don't include mkdtemp.h.
91984         * modules/exit (Files): Remove lib/exit.h.
91985         (Depends-on): Add stdlib.
91986         (Makefile.am): Remove lib_SOURCES.
91987         (Include): Use <stdlib.h> instead of exit.h.
91988         * lib/argmatch.c: Don't include exit.h.
91989         * lib/execute.c: Likewise.
91990         * lib/pagealign_alloc.c: Likewise.
91991         * lib/pipe.c: Likewise.
91992         * lib/wait-process.c: Likewise.
91993         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91994         * lib/exitfail.c: Likewise.
91995         * lib/savewd.c: Likewise.
91996         * lib/xsetenv.c: Likewise.
91998         * modules/stdlib: New file.
91999         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
92000         and extra comments about mkstemp().
92001         * lib/exit.h: Remove file.
92002         * lib/mkdtemp.h: Remove file.
92003         * lib/mkstemp.h: Remove file.
92004         * m4/stdlib_h.m4: New file.
92005         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
92007 2007-02-18  Bruno Haible  <bruno@clisp.org>
92009         * modules/math-tests: New file.
92010         * tests/test-math.c: New file.
92012         * modules/math: New file.
92013         * modules/mathl (Files): Remove lib/mathl.h.
92014         (Depends-on): Add math.
92015         (Makefile.am): Don't mention mathl.h.
92016         (Include): Use <math.h> instead of mathl.h.
92017         * lib/math_.h: New file.
92018         * lib/mathl.h: Remove file.
92019         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
92020         mathl.h.
92021         * lib/asinl.c: Likewise.
92022         * lib/atanl.c: Likewise.
92023         * lib/ceill.c: Likewise.
92024         * lib/cosl.c: Likewise.
92025         * lib/expl.c: Likewise.
92026         * lib/floorl.c: Likewise.
92027         * lib/frexpl.c: Likewise.
92028         * lib/ldexpl.c: Likewise.
92029         * lib/logl.c: Likewise.
92030         * lib/sincosl.c: Likewise.
92031         * lib/sinl.c: Likewise.
92032         * lib/sqrtl.c: Likewise.
92033         * lib/tanl.c: Likewise.
92034         * lib/trigl.c: Likewise.
92035         * m4/math_h.m4: New file.
92036         * MODULES.html.sh (Mathematics): Add math.
92038 2007-02-17  Bruno Haible  <bruno@clisp.org>
92040         * modules/wctype-tests: New file.
92041         * tests/test-wctype.c: New file.
92043         * modules/wchar-tests: New file.
92044         * tests/test-wchar.c: New file.
92046         * modules/unistd-tests: New file.
92047         * tests/test-unistd.c: New file.
92049         * modules/time-tests: New file.
92050         * tests/test-time.c: New file.
92052         * modules/sysexits-tests: New file.
92053         * tests/test-sysexits.c: New file.
92055         * modules/sys_time-tests: New file.
92056         * tests/test-sys_time.c: New file.
92058         * modules/sys_stat-tests: New file.
92059         * tests/test-sys_stat.c: New file.
92061         * modules/sys_socket-tests: New file.
92062         * tests/test-sys_socket.c: New file.
92064         * modules/sys_select-tests: New file.
92065         * tests/test-sys_select.c: New file.
92067         * modules/string-tests: New file.
92068         * tests/test-string.c: New file.
92070         * modules/stdbool-tests: New file.
92071         * tests/test-stdbool.c: New file.
92073         * modules/netinet_in-tests: New file.
92074         * tests/test-netinet_in.c: New file.
92076         * modules/inttypes-tests: New file.
92077         * tests/test-inttypes.c: New file.
92079         * modules/fcntl-tests: New file.
92080         * tests/test-fcntl.c: New file.
92082         * modules/byteswap-tests: New file.
92083         * tests/test-byteswap.c: New file.
92085         * modules/arpa_inet-tests: New file.
92086         * tests/test-arpa_inet.c: New file.
92088 2007-02-17  Bruno Haible  <bruno@clisp.org>
92090         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
92091         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
92092         if the corresponding module is not enabled. Emit link warnings if
92093         the function is used nevertheless.
92094         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
92095         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
92096         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
92097         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92098         * modules/inttypes (Depends-on): Add link-warning.
92099         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92100         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
92101         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
92102         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
92103         * modules/imaxdiv (configure.ac): Likewise.
92104         * modules/strtoimax (configure.ac): Likewise.
92105         * modules/strtoumax (configure.ac): Likewise.
92107 2007-02-17  Bruno Haible  <bruno@clisp.org>
92109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
92110         gl_STRING_MODULE_INDICATOR_DEFAULTS.
92111         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
92112         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
92114 2007-02-17  Bruno Haible  <bruno@clisp.org>
92116         * modules/link-warning: New file.
92117         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
92118         * lib/string_.h (GL_LINK_WARNING): Remove definition.
92119         * modules/string (Depends-on): Add link-warning.
92120         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92121         string.h.
92122         * MODULES.html.sh (Support for building libraries and executables): Add
92123         link-warning.
92125 2007-02-17  Bruno Haible  <bruno@clisp.org>
92127         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92128         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92129         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92130         long lines.
92132 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92133             Bruno Haible  <bruno@clisp.org>
92135         * modules/tmpfile: New file.
92136         * lib/tmpfile.c: New file.
92137         * m4/tmpfile.m4: New file.
92138         * MODULES.html.sh (func_all_modules): New section "Input/output".
92140 2007-02-15  Bruno Haible  <bruno@clisp.org>
92142         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92143         (supports_delete_on_close): New function.
92144         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92146 2007-02-14  Bruno Haible  <bruno@clisp.org>
92148         * modules/mbspcasecmp-tests: New file.
92149         * tests/test-mbspcasecmp.sh: New file.
92150         * tests/test-mbspcasecmp.c: New file.
92152         New module mbspcasecmp.
92153         * modules/mbspcasecmp: New file.
92154         * lib/mbspcasecmp.c: New file.
92155         * lib/string_.h (strncasecmp): Change warning message.
92156         (mbspcasecmp): New declaration.
92157         * m4/mbspcasecmp.m4: New file.
92158         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92159         GNULIB_MBSPCASECMP.
92160         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92161         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92163 2007-02-14  Bruno Haible  <bruno@clisp.org>
92165         * modules/mbsncasecmp-tests: New file.
92166         * tests/test-mbsncasecmp.sh: New file.
92167         * tests/test-mbsncasecmp.c: New file.
92169         New module mbsncasecmp.
92170         * modules/mbsncasecmp: New file.
92171         * lib/mbsncasecmp.c: New file.
92172         * lib/string_.h (mbsncasecmp): New declaration.
92173         * m4/mbsncasecmp.m4: New file.
92174         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92175         GNULIB_MBSNCASECMP.
92176         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92177         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92179 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92181         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92182         Verify that it doesn't overlap with our flags.
92183         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92184         do not have the desired effect in multibyte locales; instead, use
92185         mbscasecmp.
92186         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92187         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92188         we don't require GNU fnmatch ourselves (if our users require it, they
92189         should do so explicitly).
92191         Fix regex code so it doesn't rely on strcasecmp.
92192         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92193         Otherwise, include gnulib's langinfo.h.
92194         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92195         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92197         * modules/regex (FILES): Remove m4/codeset.m4.
92198         (Depends-on): Add localcharset.  Remove strcase.
92200 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92202         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92203         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92205 2007-02-13  Bruno Haible  <bruno@clisp.org>
92207         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92210 2007-02-12  Bruno Haible  <bruno@clisp.org>
92212         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92213         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92214         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92215         time warning rather than a link error.
92217 2007-02-12  Bruno Haible  <bruno@clisp.org>
92219         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92220         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92223 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92225         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92226         args, not 2.
92228 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92230         New module 'time', so that apps can include <time.h> as per
92231         POSIX and GNU instead of separate include files like time_r.h
92232         and timegm.h.  This implementation tries out a simpler approach
92233         for replacing decls in standard include files (as compared to
92234         the string module), somewhat as an experiment.
92236         * config/srclist.txt: Comment out mktime.c for now.
92237         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92238         since it doesn't apply any more.  Use generic wording instead.
92239         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92240         'time'.
92241         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92242         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92243         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92244         Don't include <sys/types.h>; no longer needed since we assume C89.
92245         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92246         * lib/strftime.c: Likewise.
92247         * lib/time_r.c: Likewise.
92248         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92249         * lib/nanosleep.c: Include <time.h> first, to check interface.
92250         * lib/strptime.c: Likewise.
92251         * lib/time_r.c: Likewise.
92252         * lib/timegm.c: Likewise.
92253         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92254         needed.
92255         * lib/timegm.c: Don't include timegm.h; no longer needed.
92256         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92257         time.h now handles any problems in that area.
92258         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92259         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92260         that time.h defines struct timespec.
92261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92262         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92263         handles that.
92264         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92265         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92266         needed.  Set REPLACE_LOCALTIME.
92267         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92268         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92269         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92270         nanosleep; time_h.m4 now does that.  Don't require
92271         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92272         module handles this now.
92273         * modules/getdate (Depends-on): Remove timespec.  Add time.
92274         * modules/nanosleep (Depends-on): Likewise.
92275         * modules/stat-time (Depends-on): Likewise.
92276         * modules/nanosleep (Include): Include time.h, not timespec.h.
92277         * modules/strptime (Files): Remove lib/strptime.h.
92278         (Depends-on): Add extensions, time.
92279         (Include): Include time.h, not strptime.h.
92280         * modules/time_r (Files): Remove lib/time_r.h.
92281         (Depends-on): Add time.
92282         (Include): Include time.h, not time_r.h.
92283         * modules/timegm: Likewise.
92284         * modules/timespec (Description): Now does timespec-related decls
92285         of our own, instead of struct timespec itself.
92286         (Depends-on): Add time; remove extensions.
92287         (Maintainer): Add self.
92288         * modules/utimecmp (Depends-on): Add time; remove timespec.
92289         * modules/utimens (Depends-on): Likewise.
92290         * modules/xnanosleep (Depends-on): Likewise.
92292 2007-02-11  Bruno Haible  <bruno@clisp.org>
92294         * lib/c-strstr.c: Include allocsa.h.
92295         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92296         * lib/c-strcasestr.c: Include allocsa.h.
92297         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92298         * lib/strcasestr.c: Include allocsa.h.
92299         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92300         * lib/mbsstr.c: Include allocsa.h.
92301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92302         allocsa/freesa instead of malloc/free.
92303         * lib/mbscasestr.c: Include allocsa.h.
92304         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92305         allocsa/freesa instead of malloc/free.
92306         * modules/c-strstr (Depends-on): Add allocsa.
92307         * modules/c-strcasestr (Depends-on): Likewise.
92308         * modules/strcasestr (Depends-on): Likewise.
92309         * modules/mbsstr (Depends-on): Likewise.
92310         * modules/mbscasestr (Depends-on): Likewise.
92312 2007-02-11  Bruno Haible  <bruno@clisp.org>
92314         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92316         * modules/mbsspn-tests: New file.
92317         * tests/test-mbsspn.sh: New file.
92318         * tests/test-mbsspn.c: New file.
92320 2007-02-11  Bruno Haible  <bruno@clisp.org>
92322         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92324         * modules/mbspbrk-tests: New file.
92325         * tests/test-mbspbrk.sh: New file.
92326         * tests/test-mbspbrk.c: New file.
92328 2007-02-11  Bruno Haible  <bruno@clisp.org>
92330         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92331         unneeded cast.
92333         * modules/mbscspn-tests: New file.
92334         * tests/test-mbscspn.sh: New file.
92335         * tests/test-mbscspn.c: New file.
92337 2007-02-11  Bruno Haible  <bruno@clisp.org>
92339         * modules/mbscasecmp-tests: New file.
92340         * tests/test-mbscasecmp.sh: New file.
92341         * tests/test-mbscasecmp.c: New file.
92343 2007-02-11  Bruno Haible  <bruno@clisp.org>
92345         Ensure O(n) worst-case complexity of mbscasestr.
92346         * lib/mbscasestr.c: Include stdbool.h.
92347         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92348         functions.
92349         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92350         the bookkeeping indicates that it's worth it.
92351         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92353         * modules/mbscasestr-tests: New file.
92354         * tests/test-mbscasestr1.c: New file.
92355         * tests/test-mbscasestr2.sh: New file.
92356         * tests/test-mbscasestr2.c: New file.
92357         * tests/test-mbscasestr3.sh: New file.
92358         * tests/test-mbscasestr3.c: New file.
92359         * tests/test-mbscasestr4.sh: New file.
92360         * tests/test-mbscasestr4.c: New file.
92361         * m4/locale-tr.m4: New file.
92363 2007-02-11  Bruno Haible  <bruno@clisp.org>
92365         Ensure O(n) worst-case complexity of mbsstr.
92366         * lib/mbsstr.c: Include stdbool.h.
92367         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92368         functions.
92369         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92370         bookkeeping indicates that it's worth it.
92371         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92373         * modules/mbsstr-tests: New file.
92374         * tests/test-mbsstr1.c: New file.
92375         * tests/test-mbsstr2.sh: New file.
92376         * tests/test-mbsstr2.c: New file.
92377         * tests/test-mbsstr3.sh: New file.
92378         * tests/test-mbsstr3.c: New file.
92379         * m4/locale-fr.m4: New file.
92381 2007-02-11  Bruno Haible  <bruno@clisp.org>
92383         * lib/mbsrchr.c (mbsrchr): Fix bug.
92385         * modules/mbsrchr-tests: New file.
92386         * tests/test-mbsrchr.sh: New file.
92387         * tests/test-mbsrchr.c: New file.
92389 2007-02-11  Bruno Haible  <bruno@clisp.org>
92391         * lib/mbschr.c (mbschr): Fix bug.
92393         * modules/mbschr-tests: New file.
92394         * tests/test-mbschr.sh: New file.
92395         * tests/test-mbschr.c: New file.
92396         * m4/locale-zh.m4: New file.
92398 2007-02-11  Bruno Haible  <bruno@clisp.org>
92400         Support for copying multibyte string iterators.
92401         * lib/mbiter.h: Include <string.h>.
92402         (mbiter_multi_copy): New function.
92403         (mbi_copy): New macro.
92404         * lib/mbuiter.h: Include <string.h>.
92405         (mbuiter_multi_copy): New function.
92406         (mbui_copy): New macro.
92408 2007-02-11  Bruno Haible  <bruno@clisp.org>
92410         New module mbslen.
92411         * modules/mbslen: New file.
92412         * lib/mbslen.c: New file.
92413         * lib/string_.h (mbslen): New declaration.
92414         * m4/mbslen.m4: New file.
92415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92416         GNULIB_MBSLEN.
92417         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92418         * MODULES.html.sh (Internationalization functions): Add mbslen.
92420 2007-02-11  Bruno Haible  <bruno@clisp.org>
92422         Ensure O(n) worst-case complexity of strcasestr substitute.
92423         * lib/strcasestr.c: Include stdbool.h.
92424         (knuth_morris_pratt): New function.
92425         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92426         bookkeeping indicates that it's worth it.
92427         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92429         * modules/strcasestr-tests: New file.
92430         * tests/test-strcasestr.c: New file.
92432 2007-02-11  Bruno Haible  <bruno@clisp.org>
92434         Ensure O(n) worst-case complexity of c_strcasestr.
92435         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92436         (knuth_morris_pratt): New function.
92437         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92438         the bookkeeping indicates that it's worth it.
92439         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92441         * modules/c-strcasestr-tests: New file.
92442         * tests/test-c-strcasestr.c: New file.
92444 2007-02-11  Bruno Haible  <bruno@clisp.org>
92446         Ensure O(n) worst-case complexity of c_strstr.
92447         * lib/c-strstr.c: Include stdbool.h, string.h.
92448         (knuth_morris_pratt): New function.
92449         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92450         bookkeeping indicates that it's worth it.
92451         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92453         * lib/c-strstr.c: Complete rewrite for maintainability.
92455         * modules/c-strstr-tests: New file.
92456         * tests/test-c-strstr.c: New file.
92458 2007-02-11  Bruno Haible  <bruno@clisp.org>
92460         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92461         5.2.1 and earlier, whereby \055 was treated just like the range
92462         delimiter '-'.
92463         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92465 2007-02-08  Bruno Haible  <bruno@clisp.org>
92467         * modules/regex (Depends-on): Add stdbool.
92468         Reported by Dalibor Topic <robilad@kaffe.org>.
92470 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92472         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92473         Prefer returning from main to exiting from it.
92474         Remove unnecessary parens after sizeof.
92476 2007-02-05  Bruno Haible  <bruno@clisp.org>
92478         New module mbssep.
92479         * modules/mbssep: New file.
92480         * lib/mbssep.c: New file.
92481         * lib/string_.h (strsep): Add a conditional link warning.
92482         (mbssep): New declaration.
92483         * m4/mbssep.m4: New file.
92484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92485         GNULIB_MBSSEP.
92486         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92487         * MODULES.html.sh (Internationalization functions): Add mbssep.
92489 2007-02-05  Bruno Haible  <bruno@clisp.org>
92491         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92492         Optimize search in case of 1 delimiter.
92494 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92496         * lib/acl.h: Include sys/types.h before sys/acl.h.
92498 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92500         Merge upstream fix for glibc bugzilla #3957:
92502         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92504         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92505         bit for RE_HAT_LISTS_NOT_NEWLINE.
92506         (build_charclass_op): Remove bogus comment.
92508 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92510         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92512 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92514         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92515         * lib/memmem.c [!defined _LIBC]: Include config.h.
92517 2007-02-04  Bruno Haible  <bruno@clisp.org>
92519         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92520         warning message.
92522 2007-02-04  Bruno Haible  <bruno@clisp.org>
92524         New module mbstok_r.
92525         * modules/mbstok_r: New file.
92526         * lib/mbstok_r.c: New file.
92527         * lib/string_.h (strtok_r): Change argument names to match the
92528         comments. Add a conditional link warning.
92529         (mbstok_r): New declaration.
92530         * m4/mbstok_r.m4: New file.
92531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92532         GNULIB_MBSTOK_R.
92533         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92534         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92536 2007-02-04  Bruno Haible  <bruno@clisp.org>
92538         New module mbsspn.
92539         * modules/mbsspn: New file.
92540         * lib/mbsspn.c: New file.
92541         * lib/string_.h (strspn): Add a conditional link warning.
92542         (mbsspn): New declaration.
92543         * m4/mbsspn.m4: New file.
92544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92545         GNULIB_MBSSPN.
92546         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92547         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92549 2007-02-04  Bruno Haible  <bruno@clisp.org>
92551         New module mbspbrk.
92552         * modules/mbspbrk: New file.
92553         * lib/mbspbrk.c: New file.
92554         * lib/string_.h (strpbrk): Add a conditional link warning.
92555         (mbspbrk): New declaration.
92556         * m4/mbspbrk.m4: New file.
92557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92558         GNULIB_MBSPBRK.
92559         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92560         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92562 2007-02-04  Bruno Haible  <bruno@clisp.org>
92564         New module mbscspn.
92565         * modules/mbscspn: New file.
92566         * lib/mbscspn.c: New file.
92567         * lib/string_.h (strcspn): Add a conditional link warning.
92568         (mbscspn): New declaration.
92569         * m4/mbscspn.m4: New file.
92570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92571         GNULIB_MBSCSPN.
92572         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92573         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92575 2007-02-04  Bruno Haible  <bruno@clisp.org>
92577         New module mbscasestr, reduced goal of strcasestr.
92578         * modules/mbscasestr: New file.
92579         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92580         (mbscasestr): Renamed from strcasestr.
92581         * lib/strcasestr.c: Don't include mbuiter.h.
92582         (strcasestr): Remove support for multibyte locales.
92583         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92584         Change the conditional link warning.
92585         (mbscasestr): New declaration.
92586         * m4/mbscasestr.m4: New file.
92587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92588         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92589         REPLACE_STRCASESTR.
92590         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92592         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92593         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92594         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92595         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92596         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92597         (Depends-on): Remove mbuiter.
92598         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92600 2007-02-04  Bruno Haible  <bruno@clisp.org>
92602         Simplify handling of strncasecmp.
92603         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92604         the conditional link warning.
92605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92606         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92608         * modules/strcase (configure.ac): Don't invoke
92609         gl_STRING_MODULE_INDICATOR.
92610         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92612 2007-02-04  Bruno Haible  <bruno@clisp.org>
92614         New module mbscasecmp, reduced goal of strcasecmp.
92615         * modules/mbscasecmp: New file.
92616         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92617         (mbscasecmp): Renamed from strcasecmp.
92618         * lib/strcasecmp.c: Don't include mbuiter.h.
92619         (strcasecmp): Remove support for multibyte locales.
92620         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92621         Change the conditional link warning.
92622         (mbscasecmp): New declaration.
92623         * m4/mbscasecmp.m4: New file.
92624         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92625         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92626         REPLACE_STRCASECMP.
92627         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92629         GNULIB_MBSCASECMP.
92630         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92631         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92632         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92633         (Depends-on): Remove mbuiter.
92634         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92636 2007-02-04  Bruno Haible  <bruno@clisp.org>
92638         New module mbsstr. Remove module strstr.
92639         * modules/mbsstr: New file.
92640         * modules/strstr: Remove file.
92641         * lib/mbsstr.c: Renamed from lib/strstr.c.
92642         (mbsstr): Renamed from strstr.
92643         * lib/string_.h (strstr): Remove declaration. Change the conditional
92644         link warning.
92645         (mbsstr): New declaration.
92646         * m4/mbsstr.m4: New file.
92647         * m4/strstr.m4: Remove file.
92648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92649         REPLACE_STRSTR.
92650         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92651         Don't initialize GNULIB_STRSTR.
92652         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92653         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92654         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92655         (Support for systems lacking ANSI C 89): Remove strstr.
92657 2007-02-04  Bruno Haible  <bruno@clisp.org>
92659         New module mbsrchr.
92660         * modules/mbsrchr: New file.
92661         * lib/mbsrchr.c: New file.
92662         * lib/string_.h (strrchr): Add a conditional link warning.
92663         (mbsrchr): New declaration.
92664         * m4/mbsrchr.m4: New file.
92665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92666         GNULIB_MBSRCHR.
92667         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92668         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92670 2007-02-04  Bruno Haible  <bruno@clisp.org>
92672         New module mbschr.
92673         * modules/mbschr: New file.
92674         * lib/mbschr.c: New file.
92675         * lib/string_.h (strchr): Add a conditional link warning.
92676         (mbschr): New declaration.
92677         * m4/mbschr.m4: New file.
92678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92679         GNULIB_MBSCHR.
92680         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92681         * MODULES.html.sh (Internationalization functions): Add mbschr.
92683 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92685         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92687         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92689 2007-02-04  Bruno Haible  <bruno@clisp.org>
92691         New module description section 'configure.ac-early'.
92692         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92693         (func_get_autoconf_early_snippet): New function.
92694         (func_import, func_create_testdir): Use it. Remove special cases for
92695         modules 'extensions' and 'lock'.
92696         * modules/extensions (configure.ac-early): Require
92697         gl_USE_SYSTEM_EXTENSIONS.
92698         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92700 2007-02-04  Bruno Haible  <bruno@clisp.org>
92702         Make use of gcj-4.3's -fsource and -ftarget option.
92703         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92704         and if so try the options -fsource and -ftarget.
92705         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92706         source_version, ftarget_option, target_version arguments.
92707         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92708         (is_envjavac_oldgcj_14_14_usable): Renamed from
92709         is_envjavac_gcj_14_14_usable.
92710         (is_envjavac_oldgcj_14_13_usable): Renamed from
92711         is_envjavac_gcj_14_13_usable.
92712         (is_gcj_present): Update.
92713         (is_gcj_43, is_gcj43_usable): New functions.
92714         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92715         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92716         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92717         try the options -fsource and -ftarget.
92719 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92721         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92722         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92723         larger value.
92725 2007-02-03  Jim Meyering  <jim@meyering.net>
92727         Give tools a better chance to allocate space for very large buffers.
92728         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92730         Make pwd and readlink work also when run with an unreadable parent dir
92731         on systems with openat support.
92732         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92733         provided getcwd function, even when we have openat support.
92734         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92736 2007-02-02  Bruno Haible  <bruno@clisp.org>
92738         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92739         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92740         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92741         portability problems if one of these functions is only used on specific
92742         platforms.
92743         Reported by Paul Eggert.
92745 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92747         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92748         is causing more trouble than it's curing.
92749         * lib/regex_internal.h (__mempcpy): Remove.
92750         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92751         (and make the code a tad smaller to boot).
92752         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92754 2007-02-02  Jim Meyering  <jim@meyering.net>
92756         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92757         section, not in the Makefile.am: one.
92759 2007-02-02  Eric Blake  <ebb9@byu.net>
92761         * lib/strchrnul.c: Always include config.h first.
92763         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92764         gnulib strstr is not necessary here.
92766 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92768         * m4/socklen.m4: Fix typo.
92770 2007-02-02  Eric Blake  <ebb9@byu.net>
92772         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92773         * modules/netinet_in (Makefile.am): Likewise.
92775 2007-02-01  Bruno Haible  <bruno@clisp.org>
92777         * lib/string_.h (GL_LINK_WARNING): New macro.
92778         (strcasecmp, strstr, strcasestr): If provided by the system,
92779         conditionally define as a macro that leads to a warning instead of to
92780         an error.
92781         (strncasecmp): Conditionally define as a macro that leads to a warning.
92783 2007-02-01  Karl Berry  <karl@gnu.org>
92785         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92787 2007-02-01  Bruno Haible  <bruno@clisp.org>
92789         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92790         renamings.
92792 2007-02-01  Eric Blake  <ebb9@byu.net>
92794         * modules/regex (Depends-on): Revert dependence on mempcpy.
92795         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92796         module's definition of mempcpy.
92797         Reported by Paul Eggert.
92799 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92801         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92802         the symbol XYZ before redefining it.  This fixes a problem with
92803         programs that don't use XYZ, when compiled on systems that define
92804         XYZ to something else.
92806 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92808         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92809         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92810         writeable to group or other and (2) is intended to have a special
92811         mode bit that is set or cleared.  In such a case, the directory
92812         should be neither group- nor other-writeable until the special
92813         mode bits are right.
92815 2007-01-31  Eric Blake  <ebb9@byu.net>
92817         * modules/mountlist (Depends-on): Add strstr.
92819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92820         bug.
92821         * modules/string (Makefile.am): Remove redundant replacement.
92822         * modules/regex (Depends-on): Add mempcpy.
92824 2007-01-31  Bruno Haible  <bruno@clisp.org>
92826         New module description field 'Link'.
92827         * gnulib-tool (func_usage): Document --extract-link-directive.
92828         (sed_extract_prog): Recognize 'Link' directive.
92829         (func_get_link_directive): New function.
92830         (func_import): Show summary of link directives.
92831         Handle --extract-link-directive option.
92832         * modules/acl (Link): New section.
92833         * modules/clock-time (Link): New section.
92834         * modules/euidaccess (Link): New section.
92835         * modules/gettext (Link): New section.
92836         * modules/iconv (Link): New section.
92837         * modules/lock (Link): New section.
92838         * modules/nanosleep (Link): New section.
92839         * modules/readline (Link): New section.
92841 2007-01-27  Bruno Haible  <bruno@clisp.org>
92843         Enforce the use of gnulib modules for unportable <string.h> functions.
92844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92845         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92846         (gl_HEADER_STRING_H_BODY): Require it.
92847         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92848         the symbol XYZ to one that gives a link error.
92849         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92850         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92851         * modules/mempcpy (configure.ac): Likewise.
92852         * modules/memrchr (configure.ac): Likewise.
92853         * modules/stpcpy (configure.ac): Likewise.
92854         * modules/stpncpy (configure.ac): Likewise.
92855         * modules/strcase (configure.ac): Likewise.
92856         * modules/strcasestr (configure.ac): Likewise.
92857         * modules/strchrnul (configure.ac): Likewise.
92858         * modules/strdup (configure.ac): Likewise.
92859         * modules/strndup (configure.ac): Likewise.
92860         * modules/strnlen (configure.ac): Likewise.
92861         * modules/strpbrk (configure.ac): Likewise.
92862         * modules/strsep (configure.ac): Likewise.
92863         * modules/strstr (configure.ac): Likewise.
92864         * modules/strtok_r (configure.ac): Likewise.
92866 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92868         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92870 2007-01-30  Jim Meyering  <jim@meyering.net>
92872         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92874 2007-01-29  Bruno Haible  <bruno@clisp.org>
92876         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92877         * lib/execute.c: Likewise.
92878         * lib/pipe.c: Likewise.
92879         * lib/printf-args.h: Likewise.
92880         * lib/printf-args.c: Likewise.
92881         * lib/printf-parse.c: Likewise.
92882         * lib/vasnprintf.c: Likewise.
92884 2007-01-29  Eric Blake  <ebb9@byu.net>
92886         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92887         declaration.
92889 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92891         * lib/strptime.h (strptime): Use 'restrict' for args where
92892         POSIX requires this.
92893         * lib/strptime.c (strptime): Likewise.
92894         Change license notice from LGPL to GPL, since gnulib-tool will
92895         change this as needed.
92896         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92897         defined.
92898         Include "strptime.h" first, to check interface.
92899         Do not #undef _LIBC and _NL_CURRENT.
92900         Do not include <stdlib.h>; no longer needed.
92901         Include "time_r.h" and declare ptime_locale_status
92902         only if _LIBC is not defined.
92903         (__P): Remove unused macro.
92904         (match_string): Bring back glibc version, but use it only if _LIBC
92905         is defined.
92906         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92907         Remove unnecessary assertion and abort() call.
92908         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92909         * m4/strptime.m4: Fix serial number comment.
92910         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92911         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92912         (Depends-on): Add time_r.
92914 2007-01-29  Bruno Haible  <bruno@clisp.org>
92916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92917         strptime.
92918         * modules/strptime (Depends-on): Add stdbool.
92919         * lib/strptime.h: Include <time.h> always. Add comments.
92921 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92923         * modules/strptime: New file.
92924         * lib/strptime.h: New file.
92925         * lib/strptime.c: New file.
92926         * m4/strptime.m4: New file.
92928 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92930         * MODULES.html.sh: New module mpsort.
92931         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92933         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92934         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92935         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92936         All uses changed.
92937         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92938         All uses changed.
92939         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92940         to _Restrict_.
92941         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92942         the parameter matches the prototype.
92944 2007-01-28  Jim Meyering  <jim@meyering.net>
92946         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92947         sys/time.h here, reverting that part of the previous patch:
92948         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92950 2007-01-28  Bruno Haible  <bruno@clisp.org>
92952         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92953         value of $(SYS_TIME_H).
92954         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92955         remove it conditionally, too. [added by Jim Meyering]
92956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92958         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92959         GETTIMEOFDAY_REPLACEMENT to 1.
92961 2007-01-28  Bruno Haible  <bruno@clisp.org>
92963         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92964         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92966         Set UNISTD_H instead of UNISTD_H2.
92967         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92969 2007-01-28  Bruno Haible  <bruno@clisp.org>
92971         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92972         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92974 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92976         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92977         (func_create_testdir): Ensure C locale for `grep' and `tr'
92978         character ranges.
92979         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92980         ACLOCAL_AMFLAGS parsing state machine.
92982 2007-01-27  Bruno Haible  <bruno@clisp.org>
92984         * modules/unistr/base: Update.
92986 2007-01-27  Bruno Haible  <bruno@clisp.org>
92988         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92989         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92990         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92991         modules/unistr/u32-mbtouc.
92992         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92993         * lib/unistr.h: Update.
92994         * lib/linebreak.c: Update.
92995         * modules/unistr/u32-mbtouc: Renamed from
92996         modules/unistr/u32-mbtouc-safe.
92997         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92998         * lib/unistr.h: Update.
92999         * lib/unistr/u32-to-u8.c: Update.
93000         * lib/unistr/u32-to-u16.c: Update.
93002 2007-01-27  Bruno Haible  <bruno@clisp.org>
93004         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
93005         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
93006         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
93007         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
93008         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
93009         * modules/unistr/u16-mbtouc-unsafe: Renamed from
93010         modules/unistr/u16-mbtouc.
93011         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
93012         * lib/unistr.h: Update.
93013         * lib/linebreak.c: Update.
93014         * modules/linebreak: Update.
93015         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
93016         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
93017         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
93018         * modules/unistr/u16-mbtouc: Renamed from
93019         modules/unistr/u16-mbtouc-safe.
93020         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
93021         * lib/unistr.h: Update.
93022         * lib/unistr/u16-to-u8.c: Update.
93023         * modules/unistr/u16-to-u8: Update.
93024         * lib/unistr/u16-to-u32.c: Update.
93025         * modules/unistr/u16-to-u32: Update.
93027 2007-01-27  Bruno Haible  <bruno@clisp.org>
93029         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
93030         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
93031         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
93032         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
93033         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
93034         * modules/unistr/u8-mbtouc-unsafe: Renamed from
93035         modules/unistr/u8-mbtouc.
93036         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
93037         * lib/unistr.h: Update.
93038         * lib/striconveh.c: Update.
93039         * modules/striconveh: Update.
93040         * lib/linebreak.c: Update.
93041         * modules/linebreak: Update.
93042         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
93043         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
93044         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
93045         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
93046         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
93047         * lib/unistr.h: Update.
93048         * lib/striconveh.c: Update.
93049         * modules/striconveh: Update.
93050         * lib/unistr/u8-to-u16.c: Update.
93051         * modules/unistr/u8-to-u16: Update.
93052         * lib/unistr/u8-to-u32.c: Update.
93053         * modules/unistr/u8-to-u32: Update.
93055 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93057         Sync from Libtool.
93058         * lib/argz.c: Do not include strings.h nor memory.h, include
93059         string.h unconditionally.  Patch by Simon Josefsson.
93061 2007-01-27  Bruno Haible  <bruno@clisp.org>
93063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
93064         from gl_HEADER_STRING_H_BODY.
93065         (gl_HEADER_STRING_H_BODY): Require it.
93066         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
93067         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93068         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93069         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93071         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
93072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93073         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93074         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
93075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93076         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
93078         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93079         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93082 2007-01-27  Bruno Haible  <bruno@clisp.org>
93084         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
93085         check_PROGRAMS into noinst_PROGRAMS.
93086         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
93087         check_PROGRAMS in this case.
93088         (func_import): Set for_test to false.
93089         (func_create_testdir): Set for_test to true.
93091 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93092             Bruno Haible  <bruno@clisp.org>
93094         * modules/strcasestr (Files): Remove lib/strcasestr.h.
93095         (Depends-on): Add string.
93096         (Includes): Use <string.h> instead of strcasestr.h.
93097         * modules/string (Makefile.am): Also substitute the value of
93098         REPLACE_STRCASESTR.
93099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
93100         assume strcasestr is declared in <string.h> not <strings.h>. Also
93101         set REPLACE_STRCASESTR.
93102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
93103         REPLACE_STRCASESTR.
93104         * lib/strcasestr.h: Remove file.
93105         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
93106         * lib/string_.h (strcasestr): New declaration.
93108 2007-01-27  Bruno Haible  <bruno@clisp.org>
93110         * lib/string_.h: Use 'extern'.
93112 2007-01-27  Jim Meyering  <jim@meyering.net>
93114         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
93115         of set-but-not-used local, "q".
93117         * lib/mempcpy.c: Include <config.h> before <string.h>.
93118         This fixes a compilation error on HP-UX, due to the system's
93119         "restrict"-using mempcpy prototype.
93121 2007-01-26  Bruno Haible  <bruno@clisp.org>
93123         Small optimization.
93124         * lib/javacomp.c: Include c-strstr.h.
93125          (is_envjavac_gcj): Use c_strstr instead of strstr.
93126         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93128 2007-01-26  Bruno Haible  <bruno@clisp.org>
93130         * MODULES.html.sh (Unicode string functions): Add the new modules.
93132         * modules/uniconv/u32-strconv-to-locale: New file.
93133         * lib/uniconv/u32-strconv-to-locale.c: New file.
93135         * modules/uniconv/u16-strconv-to-locale: New file.
93136         * lib/uniconv/u16-strconv-to-locale.c: New file.
93138         * modules/uniconv/u8-strconv-to-locale: New file.
93139         * lib/uniconv/u8-strconv-to-locale.c: New file.
93141         * modules/uniconv/u32-strconv-from-locale: New file.
93142         * lib/uniconv/u32-strconv-from-locale.c: New file.
93144         * modules/uniconv/u16-strconv-from-locale: New file.
93145         * lib/uniconv/u16-strconv-from-locale.c: New file.
93147         * modules/uniconv/u8-strconv-from-locale: New file.
93148         * lib/uniconv/u8-strconv-from-locale.c: New file.
93150         * modules/uniconv/u32-strconv-to-enc: New file.
93151         * lib/uniconv/u32-strconv-to-enc.c: New file.
93152         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93153         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93155         * modules/uniconv/u16-strconv-to-enc: New file.
93156         * lib/uniconv/u16-strconv-to-enc.c: New file.
93157         * lib/uniconv/u-strconv-to-enc.h: New file.
93158         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93159         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93161         * modules/uniconv/u8-strconv-to-enc: New file.
93162         * lib/uniconv/u8-strconv-to-enc.c: New file.
93163         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93164         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93166         * modules/uniconv/u32-strconv-from-enc: New file.
93167         * lib/uniconv/u32-strconv-from-enc.c: New file.
93168         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93169         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93171         * modules/uniconv/u16-strconv-from-enc: New file.
93172         * lib/uniconv/u16-strconv-from-enc.c: New file.
93173         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93174         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93176         * modules/uniconv/u8-strconv-from-enc: New file.
93177         * lib/uniconv/u8-strconv-from-enc.c: New file.
93178         * lib/uniconv/u-strconv-from-enc.h: New file.
93179         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93180         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93182         * modules/uniconv/u32-conv-from-enc: New file.
93183         * lib/uniconv/u32-conv-from-enc.c: New file.
93184         * modules/uniconv/u32-conv-from-enc-tests: New file.
93185         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93187         * modules/uniconv/u16-conv-from-enc: New file.
93188         * lib/uniconv/u16-conv-from-enc.c: New file.
93189         * lib/uniconv/u-conv-from-enc.h: New file.
93190         * modules/uniconv/u16-conv-from-enc-tests: New file.
93191         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93193         * modules/uniconv/u8-conv-from-enc: New file.
93194         * lib/uniconv/u8-conv-from-enc.c: New file.
93195         * modules/uniconv/u8-conv-from-enc-tests: New file.
93196         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93198         * modules/uniconv/base: New file.
93199         * lib/uniconv.h: New file.
93201 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93203         * doc/gnulib-tool.texi (Initial import): Update to match current
93204         behavior with strdup module.
93205         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93206         * lib/memmem.h: Remove; all uses removed.  This is now done
93207         by <string.h>.
93208         * lib/mempcpy.h: Likewise.
93209         * lib/memrchr.h: Likewise.
93210         * lib/stpcpy.h: Likewise.
93211         * lib/stpncpy.h: Likewise.
93212         * lib/strcase.h: Likewise.
93213         * lib/strchrnul.h: Likewise.
93214         * lib/strdup.h: Likewise.
93215         * lib/strndup.h: Likewise.
93216         * lib/strnlen.h: Likewise.
93217         * lib/strpbrk.h: Likewise.
93218         * lib/strsep.h: Likewise.
93219         * lib/strstr.h: Likewise.
93220         * lib/strtok_r.h: Likewise.
93221         * lib/string_.h: New file.
93222         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93223         Rely on <string.h> instead.
93224         * lib/canon-host.c: Likewise.
93225         * lib/chdir-long.c: Likewise.
93226         * lib/concatpath.c: Likewise.
93227         * lib/exclude.c: Likewise.
93228         * lib/fchdir.c: Likewise.
93229         * lib/getaddrinfo.c: Likewise.
93230         * lib/getcwd.c: Likewise.
93231         * lib/getsubopt.c: Likewise.
93232         * lib/glob.c: Likewise.
93233         * lib/hard-locale.c: Likewise.
93234         * lib/iconvme.c: Likewise.
93235         * lib/javacomp.c: Likewise.
93236         * lib/mempcpy.c: Likewise.
93237         * lib/memrchr.c: Likewise.
93238         * lib/regex_internal.h: Likewise.
93239         * lib/stpncpy.c: Likewise.
93240         * lib/strcasecmp.c: Likewise.
93241         * lib/strchrnul.c: Likewise.
93242         * lib/strdup.c: Likewise.
93243         * lib/striconv.c: Likewise.
93244         * lib/striconveh.c: Likewise.
93245         * lib/striconveha.c: Likewise.
93246         * lib/strncasecmp.c: Likewise.
93247         * lib/strndup.c: Likewise.
93248         * lib/strnlen.c: Likewise.
93249         * lib/strsep.c: Likewise.
93250         * lib/strstr.c: Likewise.
93251         * lib/strtok_r.c: Likewise.
93252         * lib/userspec.c: Likewise.
93253         * lib/w32spawn.h: Likewise.
93254         * lib/xstrndup.c: Likewise.
93255         * lib/mountlist.c (strstr): Remove decl.
93256         * m4/string_h.m4: New file.
93257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93258         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93260         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93261         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93262         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93263         Set REPLACE_STRCASECMP if necessary.
93264         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93265         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93266         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93268         HAVE_DECL_STRDUP if necessary.
93269         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93270         since gl_FUNC_STRNDUP does that now.
93271         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93272         Check for decl here...
93273         (gl_PREREQ_STRNLEN): ... not here.
93274         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93275         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93276         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93278         necessary.
93279         * modules/string: New file.
93280         * modules/memmem (Files): Remove special-purpose include file.
93281         (Depends-on): Add string.
93282         (Include): Include <string.h>, not the removed file.
93283         * modules/mempcpy: Likewise.
93284         * modules/memrchr: Likewise.
93285         * modules/stpcpy: Likewise.
93286         * modules/stpncpy: Likewise.
93287         * modules/strcase: Likewise.
93288         * modules/strchrnul: Likewise.
93289         * modules/strdup: Likewise.
93290         * modules/strndup: Likewise.
93291         * modules/strnlen: Likewise.
93292         * modules/strpbrk: Likewise.
93293         * modules/strsep: Likewise.
93294         * modules/strstr: Likewise.
93295         * modules/strtok_r: Likewise.
93296         * tests/test-dirname.c: Don't include "strdup.h", since
93297         <string.h> now suffices.
93298         * tests/test-memmem.c: Don't include "memmem.h", since
93299         <string.h> now suffices.
93301 2007-01-25  Bruno Haible  <bruno@clisp.org>
93303         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93304         *resultp is 0.
93306         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93307         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93308         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93309         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93311         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93312         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93313         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93314         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93315         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93316         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93318 2007-01-24  Bruno Haible  <bruno@clisp.org>
93320         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93321         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93322         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93323         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93324         gl_FUNC_FTS_CORE.
93325         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93326         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93328         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93329         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93330         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93331         gl_FUNC_FCHOWNAT.
93332         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93333         gl_FUNC_STRFTIME.
93334         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93335         Reported by Ralf Wildenhues.
93337 2007-01-24  Bruno Haible  <bruno@clisp.org>
93339         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93340         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93341         gl_GETADDRINFO.
93342         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93343         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93344         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93346 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93349         Don't use 'exit'; just return from 'main'.
93350         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93352         * lib/fnmatch_.h: Readjust white space and comments to match
93353         glibc, to avoid spurious diffs.
93355 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93357         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93358         2004-12-01 change by Jakub Jelinek, since this code won't compile
93359         if !LIBC.  Problem reported by Bob Proulx.
93361 2007-01-23  Bruno Haible  <bruno@clisp.org>
93363         * lib/striconveh.c: Include c-strcaseeq.h.
93364         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93365         * modules/striconveh (Depends-on): Add c-strcaseeq.
93367 2007-01-23  Bruno Haible  <bruno@clisp.org>
93369         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93371         * modules/c-strcaseeq: New file.
93372         * lib/c-strcaseeq.h: New file.
93374         * modules/streq: New file.
93375         * lib/streq.h: New file.
93377 2007-01-23  Bruno Haible  <bruno@clisp.org>
93379         * modules/striconveha-tests: New file.
93380         * tests/test-striconveha.c: New file.
93382         * lib/striconveha.h: Include <stdbool.h>.
93383         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93384         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93385         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93386         (mem_iconveha): New function.
93387         (str_iconveha_notranslit): Renamed from str_iconveha.
93388         (str_iconveha): New function.
93389         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93390         c-strcase.
93392 2007-01-23  Bruno Haible  <bruno@clisp.org>
93394         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93395         encodings without forgiving before trying any encoding with handler.
93396         (str_iconveha): Try all encodings without forgiving before trying any
93397         encoding with handler.
93399 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93401         Import the following changes from libc.
93403         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93405         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93407         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93409         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93410         normal_bracket label.
93412         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93414         [BZ #361]
93415         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93416         to normal_bracket after fetching the next character.
93418 2007-01-22  Bruno Haible  <bruno@clisp.org>
93420         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93421         argument.
93422         * lib/striconveh.c (iconv_carefully_1): New function.
93423         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93424         argument.
93425         (str_cd_iconveh): Update.
93426         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93427         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93428         * tests/test-striconveh.c (MAGIC): New macro.
93429         (new_offsets): New function.
93430         (main): Test call with and without offsets.
93432 2007-01-22  Bruno Haible  <bruno@clisp.org>
93434         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93435         * modules/sys_select (Makefile.am): Likewise.
93436         * modules/sys_socket (Makefile.am): Likewise.
93437         * modules/sys_time (Makefile.am): Likewise.
93439 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93441         * modules/gettimeofday (License): Change from GPL to LGPL, since
93442         gettimeofday is a library function.
93444 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93446         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93448 2007-01-21  Bruno Haible  <bruno@clisp.org>
93450         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93452 2007-01-21  Bruno Haible  <bruno@clisp.org>
93454         * modules/striconveha: New file.
93455         * lib/striconveha.h: New file.
93456         * lib/striconveha.c: New file.
93457         * MODULES.html.sh (Internationalization functions): Add striconveha.
93458         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93459         string.
93460         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93462 2007-01-21  Bruno Haible  <bruno@clisp.org>
93464         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93465         * lib/striconveh.c (str_iconveh): Likewise.
93467 2007-01-21  Bruno Haible  <bruno@clisp.org>
93469         * lib/striconveh.h (mem_iconveh): New declaration.
93470         * lib/striconveh.c (mem_iconveh): New function.
93471         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93473 2007-01-21  Bruno Haible  <bruno@clisp.org>
93475         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93477         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93478         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93479         original result buffer.
93480         (str_cd_iconveh): Update.
93481         * tests/test-striconveh.c (main): Update.
93483         * lib/striconv.h (mem_cd_iconv): Change specification.
93484         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93485         result buffer.
93486         (str_cd_iconv): Update.
93487         * tests/test-striconv.c (main): Update.
93489 2007-01-21  Bruno Haible  <bruno@clisp.org>
93491         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93493 2007-01-20  Jim Meyering  <jim@meyering.net>
93495         * lib/userspec.c (parse_with_separator): If a user or group string
93496         starts with "+", skip the corresponding name-to-ID look-up, since
93497         such a look-up must fail: user and group names may not include "+".
93499 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93501         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93502         since we now assume the sys_time module.
93503         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93504         check for sys/time.h; no longer needed.
93505         * modules/poll (Depends-on): Depend on sys_time.
93507 2007-01-18  Bruno Haible  <bruno@clisp.org>
93509         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93510         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93512         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93513         gettimeofday.
93515         * tests/test-gettimeofday.c: Include <time.h>.
93516         (dummy): Remove variable.
93518         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93519         gl_HEADER_SYS_TIME_H.
93520         (gl_HEADER_SYS_TIME_H): New macro.
93522         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93525         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93526         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93528         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93529         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93530         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93531         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93532         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93534         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93535         last change; it caused a compilation error when cross-compiling to
93536         Cygwin.
93538 2007-01-18  Jim Meyering  <jim@meyering.net>
93540         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93541         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93542         than the race-prone "test -d sys || mkdir sys".
93543         (configure.ac): Use AC_PROG_MKDIR_P.
93544         * modules/sys_select: Likewise.
93545         * modules/sys_socket: Likewise.
93546         * modules/sys_time: Likewise.
93548 2007-01-18  Eric Blake  <ebb9@byu.net>
93550         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93551         replace gettimeofday.
93552         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93553         name, to avoid infinite recursion.
93555 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93557         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93558         module sys_time.
93559         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93560         assume timespec.h defines struct timeval.
93561         * lib/settime.c: Likewise.
93562         * lib/utimens.c: Likewise.
93563         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93564         since we now assume the gettimeofday module.
93565         * lib/tempname.c (__gen_tempname): Likewise.
93566         * lib/gettimeofday.h: Remove.
93567         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93568         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93569         Include <time.h>, for 'time()'.
93570         (localtime_buffer_addr): Also use this workaround if
93571         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93572         to simplify the uses.  All uses changed.
93573         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93574         that #undef is inside {}, and 'const' follows type name consistently.
93575         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93576         (gettimeofday): Do not use the maximum possible value for
93577         tv->tv_usec, since that might break usages other than ls.c.
93578         Instead, we'll leave ls.c alone.  This undoes today's patch
93579         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93580         we've never observed the problem but might as well keep the
93581         canary.
93582         * lib/nanosleep.c: Include timespec.h first, for interface check.
93583         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93584         now assume the sys_time module.
93585         * lib/tempname.c: Likewise.
93586         * lib/timespec.h: Likewise.
93587         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93588         needed.
93589         * lib/strftime.c: Likewise.
93590         * lib/timespec.h: Likewise.
93591         * lib/posixtm.c: Include posixtm.h first, for interface check.
93592         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93593         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93594         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93595         * lib/sys_time_.h: New file.
93596         * lib/timespec.h (struct timespec): Use long int, not long.
93597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93598         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93599         Remove obsolescent call to AC_HEADER_TIME.
93600         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93602         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93603         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93604         Likewise.
93605         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93606         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93608         into the sys_time module.  Check for gettimeofday just once.
93609         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93610         for gettimeofday signature to just check the signature.  Merely
93611         compile it, since linking doesn't test signature.  Improve test for
93612         whether gettimeofday.o is actually needed.
93613         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93614         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93615         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93616         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93617         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93618         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93619         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93620         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93621         than worrying about sys/time.h.
93622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93623         Don't bother worrying about TIME_WITH_SYS_TIME.
93624         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93625         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93626         * m4/sys_time_h.m4: New file.
93627         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93628         Don't include sys/time.h.  Return from main rather than exiting.
93629         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93630         all uses changed.
93631         * modules/gethrxtime (Depends-on): Add sys_time.
93632         * modules/gettime (Depends-on): Likewise.
93633         * modules/gettimeofday (Depends-on): Likewise.
93634         * modules/nanosleep (Depends-on): Likewise.
93635         * modules/settime (Depends-on): Likewise.
93636         * modules/tempname (Depends-on): Likewise.
93637         * modules/utimens (Depends-on): Likewise.
93638         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93639         (Include): Change back to <sys/time.h>.
93640         (Maintainer): Add self.
93641         * modules/sys_time: New file.
93642         * modules/tempname (Depends-on): Add gettimeofday.
93643         * tests/test-gettimeofday.c: Include <sys/time.h>
93644         rather than gettimeofday.h.
93646 2007-01-17  Bruno Haible  <bruno@clisp.org>
93648         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93649         the license default to GPL.
93650         (func_create_testdir): Don't complain if a module is LGPL and its
93651         tests module depends on GPLed modules.
93653 2007-01-17  Bruno Haible  <bruno@clisp.org>
93655         * lib/gettimeofday.c (gettimeofday): Add code for the case
93656         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93657         maximum possible value for tv->tv_usec, rather than the minimum one.
93659 2005-10-08  Martin Lambers  <marlam@marlam.de>
93660 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93661 2007-01-16  Bruno Haible  <bruno@clisp.org>
93663         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93664         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93665         gl_FUNC_GETTIMEOFDAY.
93666         (Include): Add gettimeofday.h.
93667         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93668         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93669         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93670         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93671         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93672         * lib/gettimeofday.h: New file.
93673         * lib/gettimeofday.c: Include <sys/timeb.h>.
93674         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93675         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93676         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93677         fall back on time().
93679         * tests/test-gettimeofday.c: New file.
93680         * modules/gettimeofday-tests: New file.
93682 2007-01-16  Eric Blake  <ebb9@byu.net>
93684         * modules/fnmatch (Depends-on): Depend on wchar.
93685         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93686         * m4/fnmatch.m4: Likewise.
93687         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93688         * m4/mbchar.m4: Likewise.
93689         * modules/mbswidth (Depends-on): Depend on wchar.
93690         * lib/mbswidth.c: Assume <wchar.h>.
93691         * m4/mbswidth.m4: Likewise.
93692         * modules/quotearg (Depends-on): Depend on wchar.
93693         * lib/quotearg.c: Assume <wchar.h>.
93694         * m4/quotearg.m4: Likewise.
93695         * modules/regex (Depends-on): Depend on wchar.
93696         * lib/regex_internal.h: Assume <wchar.h>.
93697         * m4/regex.m4: Likewise.
93698         * modules/stdint (Depends-on): Depend on wchar.
93699         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93700         * m4/stdint.m4: Likewise.
93701         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93702         * modules/strftime (Depends-on): Depend on wchar.
93703         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93704         * modules/strtol (Depends-on): Depend on wchar.
93705         * lib/strtol.c: Assume <wchar.h>.
93706         * modules/wcwidth (Depends-on): Depend on wchar.
93707         * lib/wcwidth.h: Assume <wchar.h>.
93708         * m4/wcwidth.m4: Likewise.
93710 2007-01-16  Bruno Haible  <bruno@clisp.org>
93712         * modules/csharpexec-script: New, created from...
93713         * modules/csharpexec: ... this.
93715 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93717         * modules/javaexec-script: New, created from...
93718         * modules/javaexec: ... this.
93720 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93722         * modules/poll (Dependencies): Add sys_select.
93724 2007-01-15  Jim Meyering  <jim@meyering.net>
93726         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93727         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93728         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93729         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93731 2007-01-15  Bruno Haible  <bruno@clisp.org>
93733         * modules/striconveh: New file.
93734         * lib/striconveh.h: New file.
93735         * lib/striconveh.c: New file.
93736         * MODULES.html.sh (Internationalization functions): Add striconveh.
93738         * modules/striconveh-tests: New file.
93739         * tests/test-striconveh.c: New file.
93741 2007-01-15  Bruno Haible  <bruno@clisp.org>
93743         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93744         not from GNU libiconv or GNU libc.
93746 2007-01-15  Bruno Haible  <bruno@clisp.org>
93748         * doc/gnulib-intro.texi (Copyright): Explain the different license
93749         terms for module descriptions, autoconf macros, tests, documentation.
93751 2007-01-14  Bruno Haible  <bruno@clisp.org>
93753         * modules/striconv-tests: New file.
93754         * tests/test-striconv.c: New file.
93756 2007-01-14  Bruno Haible  <bruno@clisp.org>
93758         * modules/iconv-tests: New file.
93759         * tests/test-iconv.c: New file.
93761 2007-01-14  Bruno Haible  <bruno@clisp.org>
93763         * gnulib-tool (func_get_license): For test modules, use the license of
93764         the main module.
93766 2007-01-14  Bruno Haible  <bruno@clisp.org>
93768         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93769         if iconv is found to exist.
93771 2007-01-14  Bruno Haible  <bruno@clisp.org>
93773         * modules/c-ctype-tests: New file.
93774         * tests/test-c-ctype.c: New file.
93776 2007-01-14  Bruno Haible  <bruno@clisp.org>
93778         * modules/binary-io-tests: New file.
93779         * tests/test-binary-io.sh: New file.
93780         * tests/test-binary-io.c: New file.
93782 2007-01-14  Bruno Haible  <bruno@clisp.org>
93784         * modules/array-oset-tests: New file.
93785         * tests/test-array_oset.c: New file.
93787 2007-01-14  Bruno Haible  <bruno@clisp.org>
93789         * modules/array-list-tests: New file.
93790         * tests/test-array_list.c: New file.
93792 2007-01-14  Bruno Haible  <bruno@clisp.org>
93794         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93795         and make.
93796         Reported by Simon Josefsson in
93797         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93799 2007-01-14  Bruno Haible  <bruno@clisp.org>
93801         * modules/allocsa-tests: New file.
93802         * tests/test-allocsa.c: New file.
93804 2007-01-14  Bruno Haible  <bruno@clisp.org>
93806         * modules/fchdir (Depends-on): Add absolute-header.
93807         * modules/unistd (Depends-on): Likewise.
93809 2006-12-30  Bruno Haible  <bruno@clisp.org>
93811         * modules/fchdir: New file.
93812         * modules/unistd (Files): Add lib/unistd_.h.
93813         (Makefile.am): Generate unistd.h from unistd_.h.
93814         * lib/fchdir.c: New file.
93815         * lib/dirent_.h: New file.
93816         * lib/unistd_.h: New file.
93817         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93818         * m4/fchdir.m4: New file.
93819         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93820         (gl_HEADER_UNISTD): Invoke it.
93821         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93822         function.
93823         * lib/backupfile.c (opendir, closedir): Undefine.
93824         * lib/chown.c (open, close): Undefine.
93825         * lib/clean-temp.c (open, close): Undefine.
93826         * lib/copy-file.c (open, close): Undefine.
93827         * lib/execute.c (open, close): Undefine.
93828         * lib/fsusage.c (open, close): Undefine.
93829         * lib/gc-gnulib.c (open, close): Undefine.
93830         * lib/getcwd.c (opendir, closedir): Undefine.
93831         * lib/glob.c (opendir, closedir): Undefine.
93832         * lib/javacomp.c (open, close): Undefine.
93833         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93834         * lib/openat-proc.c (open, close): Undefine.
93835         * lib/pagealign_alloc.c (open, close): Undefine.
93836         * lib/pipe.c (open, close): Undefine.
93837         * lib/progreloc.c (open, close): Undefine.
93838         * lib/savedir.c (opendir, closedir): Undefine.
93839         * lib/utime.c (open, close): Undefine.
93840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93842 2007-01-10  Bruno Haible  <bruno@clisp.org>
93844         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93846 2007-01-12  Eric Blake  <ebb9@byu.net>
93848         Provide a robust <wchar.h>.  Further simplifications are now
93849         possible in other modules, but not included here.
93850         * modules/wchar: New module.
93851         * m4/wchar.m4: New file.
93852         * lib/wchar_.h: Likewise.
93853         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93854         of the new module.
93855         * MODULES.html.sh (Extended multibyte and wide character utilities):
93856         New section.
93858 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93860         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93861         to a reasonable default for memory allocation.
93862         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93863         file system that reports garbage st_size values for symlinks.
93864         Problem reported by Liyang Hu.
93866 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93868         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93869         Emacs .#* auto-save files).
93871 2007-01-11  Bruno Haible  <bruno@clisp.org>
93873         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93874         directory.
93876 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93878         Use @...@ consistently in lib/wctype_.h.
93879         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93880         on it being set to 1 or 0.
93881         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93882         go back to AC_SUBSTing it.
93883         * modules/wctype (Makefile.am): Undo previous change.
93885 2007-01-10  Eric Blake  <ebb9@byu.net>
93887         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93888         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93889         * modules/wctype (Makefile.am): Likewise.
93890         Reported by Chris McGuire.
93892 2007-01-10  Jim Meyering  <jim@meyering.net>
93894         fts.c: a small readability/maintainability improvement
93895         * lib/fts.c (fts_read): Make this code slightly more readable and
93896         maintainable by hoisting the "sp->fts_cur = p" assignments to
93897         immediately follow the statements that set P.  Derived from
93898         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93900 2007-01-10  Eric Blake  <ebb9@byu.net>
93902         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93903         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93905         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93906         Reported by Chris McGuire.
93908 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93910         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93911         in sed script.
93913 2007-01-09  Bruno Haible  <bruno@clisp.org>
93915         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93916         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93917         variables.
93918         (func_module): Use them.
93920 2007-01-09  Bruno Haible  <bruno@clisp.org>
93922         * modules/unistr/base: New file.
93923         * lib/unistr.h: New file.
93925         * modules/unistr/u8-to-u16: New file.
93926         * lib/unistr/u8-to-u16.c: New file.
93928         * modules/unistr/u8-to-u32: New file.
93929         * lib/unistr/u8-to-u32.c: New file.
93931         * modules/unistr/u16-to-u8: New file.
93932         * lib/unistr/u16-to-u8.c: New file.
93934         * modules/unistr/u16-to-u32: New file.
93935         * lib/unistr/u16-to-u32.c: New file.
93937         * modules/unistr/u32-to-u8: New file.
93938         * lib/unistr/u32-to-u8.c: New file.
93940         * modules/unistr/u32-to-u16: New file.
93941         * lib/unistr/u32-to-u16.c: New file.
93943         * modules/unistr/u8-check: New file.
93944         * modules/unistr/u16-check: New file.
93945         * modules/unistr/u32-check: New file.
93946         * lib/unistr/u8-check.c: New file.
93947         * lib/unistr/u16-check.c: New file.
93948         * lib/unistr/u32-check.c: New file.
93950         * modules/unistr/u8-chr: New file.
93951         * modules/unistr/u16-chr: New file.
93952         * modules/unistr/u32-chr: New file.
93953         * lib/unistr/u8-chr.c: New file.
93954         * lib/unistr/u16-chr.c: New file.
93955         * lib/unistr/u32-chr.c: New file.
93957         * modules/unistr/u8-cmp: New file.
93958         * modules/unistr/u16-cmp: New file.
93959         * modules/unistr/u32-cmp: New file.
93960         * lib/unistr/u8-cmp.c: New file.
93961         * lib/unistr/u16-cmp.c: New file.
93962         * lib/unistr/u32-cmp.c: New file.
93964         * modules/unistr/u8-cpy: New file.
93965         * modules/unistr/u16-cpy: New file.
93966         * modules/unistr/u32-cpy: New file.
93967         * lib/unistr/u8-cpy.c: New file.
93968         * lib/unistr/u16-cpy.c: New file.
93969         * lib/unistr/u32-cpy.c: New file.
93970         * lib/unistr/u-cpy.h: New file.
93972         * modules/unistr/u8-cpy-alloc: New file.
93973         * modules/unistr/u16-cpy-alloc: New file.
93974         * modules/unistr/u32-cpy-alloc: New file.
93975         * lib/unistr/u8-cpy-alloc.c: New file.
93976         * lib/unistr/u16-cpy-alloc.c: New file.
93977         * lib/unistr/u32-cpy-alloc.c: New file.
93978         * lib/unistr/u-cpy-alloc.h: New file.
93980         * modules/unistr/u8-endswith: New file.
93981         * modules/unistr/u16-endswith: New file.
93982         * modules/unistr/u32-endswith: New file.
93983         * lib/unistr/u8-endswith.c: New file.
93984         * lib/unistr/u16-endswith.c: New file.
93985         * lib/unistr/u32-endswith.c: New file.
93986         * lib/unistr/u-endswith.h: New file.
93988         * modules/unistr/u8-mblen: New file.
93989         * modules/unistr/u16-mblen: New file.
93990         * modules/unistr/u32-mblen: New file.
93991         * lib/unistr/u8-mblen.c: New file.
93992         * lib/unistr/u16-mblen.c: New file.
93993         * lib/unistr/u32-mblen.c: New file.
93995         * modules/unistr/u8-mbtouc: New file.
93996         * modules/unistr/u16-mbtouc: New file.
93997         * modules/unistr/u32-mbtouc: New file.
93998         * lib/unistr/u8-mbtouc.c: New file.
93999         * lib/unistr/u16-mbtouc.c: New file.
94000         * lib/unistr/u32-mbtouc.c: New file.
94002         * modules/unistr/u8-mbtouc-safe: New file.
94003         * modules/unistr/u16-mbtouc-safe: New file.
94004         * modules/unistr/u32-mbtouc-safe: New file.
94005         * lib/unistr/u8-mbtouc-safe.c: New file.
94006         * lib/unistr/u16-mbtouc-safe.c: New file.
94007         * lib/unistr/u32-mbtouc-safe.c: New file.
94009         * modules/unistr/u8-move: New file.
94010         * modules/unistr/u16-move: New file.
94011         * modules/unistr/u32-move: New file.
94012         * lib/unistr/u8-move.c: New file.
94013         * lib/unistr/u16-move.c: New file.
94014         * lib/unistr/u32-move.c: New file.
94015         * lib/unistr/u-move.h: New file.
94017         * modules/unistr/u8-next: New file.
94018         * modules/unistr/u16-next: New file.
94019         * modules/unistr/u32-next: New file.
94020         * lib/unistr/u8-next.c: New file.
94021         * lib/unistr/u16-next.c: New file.
94022         * lib/unistr/u32-next.c: New file.
94024         * modules/unistr/u8-prev: New file.
94025         * modules/unistr/u16-prev: New file.
94026         * modules/unistr/u32-prev: New file.
94027         * lib/unistr/u8-prev.c: New file.
94028         * lib/unistr/u16-prev.c: New file.
94029         * lib/unistr/u32-prev.c: New file.
94031         * modules/unistr/u8-set: New file.
94032         * modules/unistr/u16-set: New file.
94033         * modules/unistr/u32-set: New file.
94034         * lib/unistr/u8-set.c: New file.
94035         * lib/unistr/u16-set.c: New file.
94036         * lib/unistr/u32-set.c: New file.
94037         * lib/unistr/u-set.h: New file.
94039         * modules/unistr/u8-startswith: New file.
94040         * modules/unistr/u16-startswith: New file.
94041         * modules/unistr/u32-startswith: New file.
94042         * lib/unistr/u8-startswith.c: New file.
94043         * lib/unistr/u16-startswith.c: New file.
94044         * lib/unistr/u32-startswith.c: New file.
94045         * lib/unistr/u-startswith.h: New file.
94047         * modules/unistr/u8-stpcpy: New file.
94048         * modules/unistr/u16-stpcpy: New file.
94049         * modules/unistr/u32-stpcpy: New file.
94050         * lib/unistr/u8-stpcpy.c: New file.
94051         * lib/unistr/u16-stpcpy.c: New file.
94052         * lib/unistr/u32-stpcpy.c: New file.
94053         * lib/unistr/u-stpcpy.h: New file.
94055         * modules/unistr/u8-stpncpy: New file.
94056         * modules/unistr/u16-stpncpy: New file.
94057         * modules/unistr/u32-stpncpy: New file.
94058         * lib/unistr/u8-stpncpy.c: New file.
94059         * lib/unistr/u16-stpncpy.c: New file.
94060         * lib/unistr/u32-stpncpy.c: New file.
94061         * lib/unistr/u-stpncpy.h: New file.
94063         * modules/unistr/u8-strcat: New file.
94064         * modules/unistr/u16-strcat: New file.
94065         * modules/unistr/u32-strcat: New file.
94066         * lib/unistr/u8-strcat.c: New file.
94067         * lib/unistr/u16-strcat.c: New file.
94068         * lib/unistr/u32-strcat.c: New file.
94069         * lib/unistr/u-strcat.h: New file.
94071         * modules/unistr/u8-strchr: New file.
94072         * modules/unistr/u16-strchr: New file.
94073         * modules/unistr/u32-strchr: New file.
94074         * lib/unistr/u8-strchr.c: New file.
94075         * lib/unistr/u16-strchr.c: New file.
94076         * lib/unistr/u32-strchr.c: New file.
94078         * modules/unistr/u8-strcmp: New file.
94079         * modules/unistr/u16-strcmp: New file.
94080         * modules/unistr/u32-strcmp: New file.
94081         * lib/unistr/u8-strcmp.c: New file.
94082         * lib/unistr/u16-strcmp.c: New file.
94083         * lib/unistr/u32-strcmp.c: New file.
94085         * modules/unistr/u8-strcpy: New file.
94086         * modules/unistr/u16-strcpy: New file.
94087         * modules/unistr/u32-strcpy: New file.
94088         * lib/unistr/u8-strcpy.c: New file.
94089         * lib/unistr/u16-strcpy.c: New file.
94090         * lib/unistr/u32-strcpy.c: New file.
94091         * lib/unistr/u-strcpy.h: New file.
94093         * modules/unistr/u8-strcspn: New file.
94094         * modules/unistr/u16-strcspn: New file.
94095         * modules/unistr/u32-strcspn: New file.
94096         * lib/unistr/u8-strcspn.c: New file.
94097         * lib/unistr/u16-strcspn.c: New file.
94098         * lib/unistr/u32-strcspn.c: New file.
94099         * lib/unistr/u-strcspn.h: New file.
94101         * modules/unistr/u8-strdup: New file.
94102         * modules/unistr/u16-strdup: New file.
94103         * modules/unistr/u32-strdup: New file.
94104         * lib/unistr/u8-strdup.c: New file.
94105         * lib/unistr/u16-strdup.c: New file.
94106         * lib/unistr/u32-strdup.c: New file.
94107         * lib/unistr/u-strdup.h: New file.
94109         * modules/unistr/u8-strlen: New file.
94110         * modules/unistr/u16-strlen: New file.
94111         * modules/unistr/u32-strlen: New file.
94112         * lib/unistr/u8-strlen.c: New file.
94113         * lib/unistr/u16-strlen.c: New file.
94114         * lib/unistr/u32-strlen.c: New file.
94115         * lib/unistr/u-strlen.h: New file.
94117         * modules/unistr/u8-strmblen: New file.
94118         * modules/unistr/u16-strmblen: New file.
94119         * modules/unistr/u32-strmblen: New file.
94120         * lib/unistr/u8-strmblen.c: New file.
94121         * lib/unistr/u16-strmblen.c: New file.
94122         * lib/unistr/u32-strmblen.c: New file.
94124         * modules/unistr/u8-strmbtouc: New file.
94125         * modules/unistr/u16-strmbtouc: New file.
94126         * modules/unistr/u32-strmbtouc: New file.
94127         * lib/unistr/u8-strmbtouc.c: New file.
94128         * lib/unistr/u16-strmbtouc.c: New file.
94129         * lib/unistr/u32-strmbtouc.c: New file.
94131         * modules/unistr/u8-strncat: New file.
94132         * modules/unistr/u16-strncat: New file.
94133         * modules/unistr/u32-strncat: New file.
94134         * lib/unistr/u8-strncat.c: New file.
94135         * lib/unistr/u16-strncat.c: New file.
94136         * lib/unistr/u32-strncat.c: New file.
94137         * lib/unistr/u-strncat.h: New file.
94139         * modules/unistr/u8-strncmp: New file.
94140         * modules/unistr/u16-strncmp: New file.
94141         * modules/unistr/u32-strncmp: New file.
94142         * lib/unistr/u8-strncmp.c: New file.
94143         * lib/unistr/u16-strncmp.c: New file.
94144         * lib/unistr/u32-strncmp.c: New file.
94146         * modules/unistr/u8-strncpy: New file.
94147         * modules/unistr/u16-strncpy: New file.
94148         * modules/unistr/u32-strncpy: New file.
94149         * lib/unistr/u8-strncpy.c: New file.
94150         * lib/unistr/u16-strncpy.c: New file.
94151         * lib/unistr/u32-strncpy.c: New file.
94152         * lib/unistr/u-strncpy.h: New file.
94154         * modules/unistr/u8-strnlen: New file.
94155         * modules/unistr/u16-strnlen: New file.
94156         * modules/unistr/u32-strnlen: New file.
94157         * lib/unistr/u8-strnlen.c: New file.
94158         * lib/unistr/u16-strnlen.c: New file.
94159         * lib/unistr/u32-strnlen.c: New file.
94160         * lib/unistr/u-strnlen.h: New file.
94162         * modules/unistr/u8-strpbrk: New file.
94163         * modules/unistr/u16-strpbrk: New file.
94164         * modules/unistr/u32-strpbrk: New file.
94165         * lib/unistr/u8-strpbrk.c: New file.
94166         * lib/unistr/u16-strpbrk.c: New file.
94167         * lib/unistr/u32-strpbrk.c: New file.
94168         * lib/unistr/u-strpbrk.h: New file.
94170         * modules/unistr/u8-strrchr: New file.
94171         * modules/unistr/u16-strrchr: New file.
94172         * modules/unistr/u32-strrchr: New file.
94173         * lib/unistr/u8-strrchr.c: New file.
94174         * lib/unistr/u16-strrchr.c: New file.
94175         * lib/unistr/u32-strrchr.c: New file.
94177         * modules/unistr/u8-strspn: New file.
94178         * modules/unistr/u16-strspn: New file.
94179         * modules/unistr/u32-strspn: New file.
94180         * lib/unistr/u8-strspn.c: New file.
94181         * lib/unistr/u16-strspn.c: New file.
94182         * lib/unistr/u32-strspn.c: New file.
94183         * lib/unistr/u-strspn.h: New file.
94185         * modules/unistr/u8-strstr: New file.
94186         * modules/unistr/u16-strstr: New file.
94187         * modules/unistr/u32-strstr: New file.
94188         * lib/unistr/u8-strstr.c: New file.
94189         * lib/unistr/u16-strstr.c: New file.
94190         * lib/unistr/u32-strstr.c: New file.
94191         * lib/unistr/u-strstr.h: New file.
94193         * modules/unistr/u8-strtok: New file.
94194         * modules/unistr/u16-strtok: New file.
94195         * modules/unistr/u32-strtok: New file.
94196         * lib/unistr/u8-strtok.c: New file.
94197         * lib/unistr/u16-strtok.c: New file.
94198         * lib/unistr/u32-strtok.c: New file.
94199         * lib/unistr/u-strtok.h: New file.
94201         * modules/unistr/u8-uctomb: New file.
94202         * modules/unistr/u16-uctomb: New file.
94203         * modules/unistr/u32-uctomb: New file.
94204         * lib/unistr/u8-uctomb.c: New file.
94205         * lib/unistr/u16-uctomb.c: New file.
94206         * lib/unistr/u32-uctomb.c: New file.
94208         * MODULES.html.sh (Unicode string functions): Add the new modules.
94210 2007-01-08  Bruno Haible  <bruno@clisp.org>
94212         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94213         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94214         subdirectories.
94216 2007-01-08  Karl Berry  <karl@gnu.org>
94218         * doc/error.texi: mention that main() fns must set program_name
94219         when progname is used.
94221 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94223         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94224         WCTYPE_H is empty, for the benefit of builds from non-distclean
94225         directories.  Problem reported by Eric Blake in
94226         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94228 2007-01-08  Bruno Haible  <bruno@clisp.org>
94230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94231         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94232         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94233         PROVIDE_CANONICALIZE_FILENAME_MODE.
94234         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94236 2007-01-08  Bruno Haible  <bruno@clisp.org>
94238         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94239         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94240         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94241         * lib/fts.c: Likewise.
94242         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94244 2006-12-25  Bruno Haible  <bruno@clisp.org>
94246         * modules/utf8-ucs4-safe: New file.
94247         * lib/utf8-ucs4-safe.h: New file.
94248         * lib/unistr/utf8-ucs4-safe.c: New file.
94250         * modules/utf16-ucs4-safe: New file.
94251         * lib/utf16-ucs4-safe.h: New file.
94252         * lib/unistr/utf16-ucs4-safe.c: New file.
94254         * MODULES.html.sh (Unicode string functions): Add the new modules.
94256 2007-01-08  Bruno Haible  <bruno@clisp.org>
94258         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94259         (Depends-on): Add unitypes.
94260         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94261         (u8_mbtouc_aux): Move out to separate file.
94262         (u8_mbtouc): Use ucs4_t, uint8_t types.
94263         * lib/unistr/utf8-ucs4.c: New file.
94265         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94266         (Depends-on): Add unitypes.
94267         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94268         (u16_mbtouc_aux): Move out to separate file.
94269         (u16_mbtouc): Use ucs4_t, uint16_t types.
94270         * lib/unistr/utf16-ucs4.c: New file.
94272         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94273         (Depends-on): Add unitypes.
94274         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94275         (u8_uctomb_aux): Move out to separate file.
94276         (u8_uctomb): Use ucs4_t, uint8_t types.
94277         * lib/unistr/ucs4-utf8.c: New file.
94279         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94280         (Depends-on): Add unitypes.
94281         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94282         (u16_uctomb_aux): Move out to separate file.
94283         (u16_uctomb): Use ucs4_t, uint16_t types.
94284         * lib/unistr/ucs4-utf16.c: New file.
94286 2006-12-25  Bruno Haible  <bruno@clisp.org>
94288         * modules/unitypes: New file.
94289         * lib/unitypes.h: New file.
94290         * MODULES.html.sh (func_all_modules): New section "Unicode string
94291         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94292         this section. Add unitypes.
94294 2007-01-08  Bruno Haible  <bruno@clisp.org>
94296         Avoid variable names that conflict with those from libtool.
94297         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94298         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94299         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94300         library_names_spec to acl_library_names_spec, hardcode_* to
94301         acl_hardcode_*.
94302         Reported by Ralf Wildenhues.
94304 2007-01-08  Bruno Haible  <bruno@clisp.org>
94306         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94307         definition.
94308         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94309         definition.
94310         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94311         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94312         definition.
94313         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94314         definition.
94315         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94316         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94317         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94318         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94319         definition.
94320         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94321         definition.
94322         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94323         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94324         GC_USE_<algorithm>.
94325         * lib/gc-libgcrypt.c: Likewise.
94326         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94327         * modules/gc-arctwo (configure.ac): Likewise.
94328         * modules/gc-des (configure.ac): Likewise.
94329         * modules/gc-hmac-md5 (configure.ac): Likewise.
94330         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94331         * modules/gc-md2 (configure.ac): Likewise.
94332         * modules/gc-md4 (configure.ac): Likewise.
94333         * modules/gc-md5 (configure.ac): Likewise.
94334         * modules/gc-random (configure.ac): Likewise.
94335         * modules/gc-rijndael (configure.ac): Likewise.
94336         * modules/gc-sha1 (configure.ac): Likewise.
94338 2007-01-08  Bruno Haible  <bruno@clisp.org>
94340         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94341         macro definition.
94342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94343         definition.
94344         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94345         definition.
94346         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94347         * modules/fcntl-safer (configure.ac): Likewise.
94348         * modules/fopen-safer (configure.ac): Likewise.
94349         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94350         GNULIB_FWRITEERROR macro definition.
94352 2007-01-08  Bruno Haible  <bruno@clisp.org>
94354         * m4/gnulib-common.m4: New file.
94355         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94356         (func_get_filelist): Add m4/gnulib-common.m4.
94358 2007-01-08  Bruno Haible  <bruno@clisp.org>
94360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94361         command.
94363 2007-01-08  Jim Meyering  <jim@meyering.net>
94365         Use a more robust test for a "can't happen" condition.
94366         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94367         narrowed the st_size value.  Presuming the "can't happen" condition
94368         is true, that narrowing could conceivably convert an invalid st_size
94369         value into a valid one.  Instead, use a change based on Matthew
94370         Woehlke's original patch.
94372         Slight readability improvement: use an assert-like macro
94373         in place of literal "abort ()" uses.
94374         * lib/fts.c (fts_assert): Define.
94375         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94376         Use this macro instead of a bare 'abort'.
94378 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94380         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94381         simply work around them.
94382         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94383         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94384         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94385         declaring.
94386         Don't bother to define as macros, since the standard doesn't require it.
94387         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94388         longer worry about IRIX 5.3.
94389         (HAVE_WCTYPE_CTMP_BUG): Remove.
94391 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94393         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94394         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94395         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94396         Problems reported by Georg Schwarz for IRIX 5.3.
94398         * gnulib-tool (autoconf_minversion): Take the maximum version number
94399         found, not the minimum.  Problem reported by James Youngman.
94401 2007-01-03  Karl Berry  <karl@gnu.org>
94403         * doc/error.texi: new file, explaining interaction with progname.
94404         * doc/gnulib.texi: include it.  Update copyright.
94406 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94408         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94409         AC_CANONICAL_HOST, to improve autobuild outputs.
94411 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94412             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94414         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94415         sockets, server sockets, and other file descriptors.  Count errors
94416         to compute the return value.  Reorder the code a bit to be easier
94417         to follow.  Don't set event bits that were not requested (except
94418         POLLERR and POLLHUP).
94420 2007-01-01  Bruno Haible  <bruno@clisp.org>
94422         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94424 2007-01-03  Jim Meyering  <jim@meyering.net>
94426         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94428 2007-01-02  Bruno Haible  <bruno@clisp.org>
94430         * modules/settime (Include): Require timespec.h.
94431         * modules/nanosleep (Include): Likewise.
94433 2007-01-01  Bruno Haible  <bruno@clisp.org>
94435         * gnulib-tool (func_emit_copyright_notice): Bump year.
94436         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94438 2007-01-01  Bruno Haible  <bruno@clisp.org>
94440         Improve support for OpenBSD.
94441         * build-aux/config.rpath (libname_spec): Export.
94442         (library_names_spec): New variable. Export.
94443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94444         library_names_spec from the config.rpath output. Locate shared library
94445         through the name pattern in library_names_spec.
94447 2007-01-01  Eric Blake  <ebb9@byu.net>
94449         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94451 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94453         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94454         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94455         assume the C locale, and avoid an "eval" that could cause trouble.
94456         Problem with SORT reported by Bob Proulx.
94458         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94459         Define.  Trivial patch from Henning Nielsen Lund, originally
94460         sent to bug-grep@gnu.org today.
94462 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94464         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94465         struct stat.  Problem reported by Henning Nielsen Lund.
94466         * lib/acl.c: Include acl.h first, to check interface.  Don't
94467         bother to include sys/types.h and sys/stat.h again.
94469 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94471         Import the following change from libc; problem reported by
94472         Sven Verdoolaege.
94474         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94476         [BZ #1373]
94477         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94479 2006-12-28  Jim Meyering  <jim@meyering.net>
94481         * build-aux/announce-gen: Do not assume that the package
94482         builds any of tar.gz, tar.bz2, and .xdelta files.
94483         Suggestion from Simon Josefsson.
94485 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94487         * modules/announce-gen: New file.
94489 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94491         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94492         handles its gotchas now.
94493         * lib/mbswidth.c: Likewise.
94494         * lib/wcwidth.h: Likewise.
94495         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94496         and iswcntrl; the wctype module does this stuff now.
94497         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94499         * modules/mbchar (Depends-on): Add wctype.
94500         * modules/mbswidth (Depends-on): Likewise.
94501         * modules/wcwidth (Depends-on): Likewise.
94503 2006-12-27  Eric Blake  <ebb9@byu.net>
94505         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94506         module uses more than what <wctype.h> is required to provide.
94508 2006-12-26  Eric Blake  <ebb9@byu.net>
94510         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94512 2006-12-26  Eric Blake  <ebb9@byu.net>
94514         * modules/absolute-header: New module.
94515         * modules/fcntl (Depends-on): Depend on it.
94516         * modules/inttypes (Depends-on): Likewise.
94517         * modules/stdint (Depends-on): Likewise.
94518         * modules/sys_stat (Depends-on): Likewise.
94519         * modules/wctype (Depends-on): Likewise.
94520         * MODULES.html.sh (Support for building libraries and
94521         executables): Document it.
94523 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94525         * gnulib-tool (SED): Remove, undoing previous change.
94526         The problem was that it broke coreutils on Solaris, because
94527         "sed --posix" leaked into a makefile.
94528         (sed): New alias, if 'alias' and GNU sed.
94530 2006-12-24  Jim Meyering  <jim@meyering.net>
94532         Work around an fchownat bug in glibc-2.4:
94533         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94534         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94535         in spite of the -P option.
94536         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94537         New macros.
94538         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94539         * modules/openat (Files): Add lib/fchownat.c.
94540         * lib/openat.c (fchownat): Don't define here.  Move to...
94541         * lib/fchownat.c: ...this new file.
94543 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94545         Fix bug reported by Bruno Haible in
94546         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94547         where quotearg.c didn't compile on Mac OS X 10.2 because it
94548         lacks <wchar.h> and wint_t.
94549         * lib/wctype_.h (__wctype_wint_t): New type.
94550         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94551         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94552         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94553         Arg is now of type __wctype_wint_t, not wint_t.
94554         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94555         substitute HAVE_WINT_T.
94556         * modules/wctype (Files): Add m4/wint_t.m4.
94557         (wctype.h): Substitute HAVE_WINT_T.
94559 2006-12-23  Bruno Haible  <bruno@clisp.org>
94561         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94563 2006-12-23  Bruno Haible  <bruno@clisp.org>
94565         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94566         S_ISLNK.
94567         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94568         mingw.
94570 2006-12-22  Bruno Haible  <bruno@clisp.org>
94572         * lib/copy-file.c: Include acl.h.
94573         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94574         Close the file descriptors only after being done with copy_acl.
94575         * modules/copy-file (Depends-on): Add acl.
94577 2006-12-22  Bruno Haible  <bruno@clisp.org>
94579         * gnulib-tool (SED): New variable.
94580         Use $SED instead of sed everywhere.
94582 2006-12-22  Bruno Haible  <bruno@clisp.org>
94584         * modules/no-c++: New file.
94585         * m4/no-c++.m4: New file.
94586         * MODULES.html.sh (Support for building libraries and executables):
94587         Add no-c++.
94589 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94591         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94592         Include <limits.h>, and use its INT_MAX to rewrite the
94593         j loop so that it does not overflow 'int'.  Problem reported by
94594         Ralf Wildenhues in
94595         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94596         Play it safe by shifting left by 1 rather than multiplying by 2,
94597         as GCC is less likely to optimize this away when the value
94598         is signed (when it assumes overflow leads to undefined behavior).
94599         Also, don't assume time_t uses two's complement.
94601 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94603         * MODULES.html.sh: New module wctype.
94604         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94605         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94606         <wctype.h>, since the new wctype module should fix this.
94607         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94608         the wctype module should arrange for it.
94609         * lib/regex_internal.h: Likewise.
94610         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94611         since the wctype module should handle this now.
94612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94613         * modules/fnmatch (Depends-on): Add wctype.
94614         * modules/quotearg (Depends-on): Likewise.
94615         * modules/regex (Depends-on): Likewise.
94617 2006-12-19  Bruno Haible  <bruno@clisp.org>
94619         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94620         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94622 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94624         * modules/savewd (Depends-on): Fix dependency on fcntl.
94626 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94628         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94629         conforms to C99, rather than relying on the user's environment
94630         setting of STDINT_H.
94632 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94633         and Eric Blake  <ebb9@byu.net>
94635         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94636         This is more consistent with the other defines here.
94637         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94638         Port to z/OS.  Problem reported by Paul Gilmartin.
94639         Change local vars to use gl_ prefix rather than ac_.
94640         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94641         with other defines.
94642         * modules/double-slash-root: New module.
94643         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94644         (Depends-on): Add double-slash-root.
94645         * MODULES.html.sh (File system functions): Mention new module.
94647 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94649         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94650         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94651         This is for the benefit of gzip, which doesn't do i18n.
94653 2006-12-12  Jim Meyering  <jim@meyering.net>
94655         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94656         Reported by Andreas Schwab <schwab@suse.de>.
94658 2006-12-12  Bruno Haible  <bruno@clisp.org>
94660         Merge these changes.
94661         2006-09-05  Bruno Haible  <bruno@clisp.org>
94662         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94663         iconv_alloc succeeded.
94664         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94665         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94666         test for " && dest " at the end - dest is always != NULL there. Call
94667         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94668         with 2xNULL arguments, also to flush the state storage. Handle the
94669         IRIX iconv behaviour. Realloc the final result, to throw away unused
94670         memory.
94672 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94674         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94675         and fchmodat unconditionally, since glibc 2.4 has them.
94676         Problem reported by Arkadiusz Miskiewicz.
94678 2006-12-10  Bruno Haible  <bruno@clisp.org>
94680         * gnulib-tool (func_import): Show the include files only for those
94681         modules that are copied and specified.
94682         Reported by Karl Berry.
94684 2006-12-08  Jim Meyering  <jim@meyering.net>
94686         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94687         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94689         * build-aux/announce-gen: Add two new options, both optional:
94690         --bootstrap-tools=TOOL_LIST
94691               a comma-separated list of tools, e.g.,
94692               autoconf,automake,bison,gnulib
94693         --gnulib-snapshot-date=DATE
94694               if gnulib is in the bootstrap tool list,
94695               then report this as the snapshot date.
94696               If not specified, use the current date/time.
94697               If you specify a date here, be sure it's UTC.
94699 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94701         * tests/test-argp-2.sh: Fix test to match actual output.
94702         (func_compare): Fix sed script to be portable.
94704 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94706         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94707         workaround for this case.  It is not autoconfigured now; offhand
94708         it's hard to see how to autoconfigure it.
94710 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94712         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94713         a directory that is about to be chowned.  Such a directory's
94714         initial file permissions should permit the owner only and this
94715         should not be changed until after the chown, since the group and
94716         other bits would be incorrect if they granted permission before
94717         the chown.
94719         Fix porting problem for iswctype reported by Georg Schwarz in:
94720         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94721         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94722         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94724         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94726 2006-12-03  Jim Meyering  <jim@meyering.net>
94728         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94729         p->fts_statp may not yet be defined.
94730         (fts_read): Instead, set it in the caller, once p->fts_statp is
94731         sure to be defined, and corresponds to a top-level directory.
94732         This bug made du -x fail.  Here's the coreutils test case:
94733         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94734         Reported by Mike Frysinger.
94736 2006-12-01  Jim Meyering  <jim@meyering.net>
94738         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94739         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94740         Reported by Simon Josefsson.
94742 2006-11-30  Jim Meyering  <jim@meyering.net>
94744         * m4/warning.m4: Use the all-permissive copyright notice
94745         recommended by RMS (rather than LGPL).
94746         * m4/vararrays.m4: Likewise.
94747         * m4/flexmember.m4: Likewise.
94749 2006-11-29  Bruno Haible  <bruno@clisp.org>
94751         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94752         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94753         using +=.
94754         Reported by Simon Josefsson <simon@josefsson.org>.
94756 2006-11-28  James Youngman  <jay@gnu.org>
94758         * README: Advise users that they might find the bug-gnulib@gnu.org
94759         and autotools-announce@gnu.org mailing lists useful.
94761 2006-11-28  Bruno Haible  <bruno@clisp.org>
94763         * m4/ptrdiff_max.m4: Remove file.
94765 2006-11-21  Bruno Haible  <bruno@clisp.org>
94767         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94768         _AC_COMPUTE_INT.
94769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94770         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94771         _AC_COMPUTE_INT.
94772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94773         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94774         _AC_COMPUTE_INT.
94775         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94777 2006-11-28  Jim Meyering  <jim@meyering.net>
94779         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94780         warning from "gcc -Wshadow" about shadowing the builtin.
94782 2006-11-27  Bruno Haible  <bruno@clisp.org>
94784         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94785         _AC_COMPUTE_INT.
94786         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94788 2006-11-27  Bruno Haible  <bruno@clisp.org>
94789             Paul Eggert  <eggert@cs.ucla.edu>
94791         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94793 2006-11-26  Bruno Haible  <bruno@clisp.org>
94795         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94796         noinst_LTLIBRARIES.
94798 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94799             Bruno Haible  <bruno@clisp.org>
94801         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94802         if compiling with "gcc -ansi".
94804 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94806         Fix some incompatibilities with gcc -ansi -pedantic.
94807         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94808         if compiling pedantically with GCC, unless it's C99 or later.
94809         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94810         it mishandles gcc -ansi -pedantic as well.
94811         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94812         if gcc -pedantic.
94813         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94814         initializers for struct if -pedantic, unless it's C99 or later.
94816 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94818         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94819         Don't close an fd more than once. Identical atimes indicate
94820         success, not failure.
94822 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94824         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94826 2006-11-23  Jim Meyering  <jim@meyering.net>
94828         * build-aux/announce-gen: New file.  From coreutils.
94830 2006-11-22  Jim Meyering  <jim@meyering.net>
94832         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94833         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94834         (fts_read): Use a temporary to narrow the overused st_size member
94835         before using it in a switch statement.  Reported by Matthew Woehlke.
94837         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94838         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94840 2006-11-20  Bruno Haible  <bruno@clisp.org>
94842         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94843         changequote instead of pairs of brackets.
94844         Reported by Andreas Schwab <schwab@suse.de>.
94846 2006-11-21  Jim Meyering  <jim@meyering.net>
94848         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94849         so as to remain compatible with older compilers.
94850         Patch from Michael Deutschmann.
94852 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94854         * MODULES.html.sh (File system functions): Add openat.
94856         * lib/openat.h (rpl_fstatat): New macro, if
94857         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94858         (fstatat): Define to rpl_fstatat under the same conditions,
94859         unless COMPILING_FSTATAT.
94860         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94861         seems to have the bug.
94862         * lib/fstatat.c: New file.
94863         * modules/openat (Files): Add it.
94865 2006-11-20  Bruno Haible  <bruno@clisp.org>
94867         * Makefile: New file.
94869 2006-11-20  Jim Meyering  <jim@meyering.net>
94871         The beginnings of syntax-related checks for gnulib.
94872         * lib/Makefile: New file.
94873         * lib/t-idcache: New script.  Ensure that the two halves of
94874         idcache.c stay in sync.
94876         * lib/idcache.c: Adjust comments in user- and group- portions to
94877         be more accurate, and to be consistent with one another.
94879 2006-11-20  Jim Meyering  <jim@meyering.net>
94881         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94882         continue using the flexible array member (thus, this module performs
94883         half as many malloc calls), with the addition that...
94884         (getgroup, getuser): Consistently record a non-match via an empty
94885         "name" string, and map an empty string match to a NULL return value.
94886         * modules/idcache (Depends-on): Re-add flexmember.
94888         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94889         (getuidbyname, getgroup, getgidbyname): Likewise.
94891         Use cleaner syntax: NULL rather than 0.
94892         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94894 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94896         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94897         It mishandled the case where the group was missing.
94898         Problem reported by Greg Schafer.
94899         * modules/idcache: Likewise.
94901 2006-11-18  Jim Meyering  <jim@meyering.net>
94903         * check-module (%exempt_header): Add exception for some
94904         conditionally-included headers.
94906         * modules/i-ring (Depends-on): Add verify.
94907         (License): Change to LGPL.
94909 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94911         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94912         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94913         and inttostr.h.  Use snprintf rather than uinttostr, so that
94914         LGPLed code doesn't depend on GPLed.
94916 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94918         * modules/inline (License): Change from GPL to LGPL.
94920 2006-11-17  Jim Meyering  <jim@meyering.net>
94922         * modules/d-type (License): Switch to LGPL.
94924 2006-11-15  Bruno Haible  <bruno@clisp.org>
94926         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94928 2006-11-15  Eric Blake  <ebb9@byu.net>
94930         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94931         the module dependency.
94933 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94934             Bruno Haible  <bruno@clisp.org>
94936         * gnulib-tool (func_create_testdir): Add license consistency check.
94938 2006-11-15  Eric Blake  <ebb9@byu.net>
94940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94941         random "(cached)" in configure output.
94943 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94945         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94946         test for conforming inttypes.h is both announced and cached.
94948         * MODULES.html.sh (seen_modules, seen_files): New variables.
94949         (func_module): Rewrite to use a few less gnulib-tool and sed
94950         invocations.  Avoid a couple of quadratic algorithms for ...
94951         (missed_modules, missed_files): ... these, with ...
94952         (func_append, func_tmpdir): ... these new functions, from
94953         gnulib-tool.  Analogously, install traps for cleanup.
94955         * tests/test-gc.c (main): Remove unused variables.
94956         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94958 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94960         * modules/inttostr (License): Change to LGPL.
94962 2006-11-14  Eric Blake  <ebb9@byu.net>
94964         * modules/tempname (License): Change to LGPL.
94966 2006-11-14  Eric Blake  <ebb9@byu.net>
94968         * doc/functions.texi (Function Portability): *printf functions on
94969         Cygwin now understand all POSIX size specifiers.
94971 2006-11-14  Bruno Haible  <bruno@clisp.org>
94973         * modules/c-ctype (License): Change to LGPL.
94975 2006-11-12  Bruno Haible  <bruno@clisp.org>
94977         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94978         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94979         for GNOME libraries, for which the include files are installed in
94980         subdirectories of $prefix/include.
94982 2006-11-12  Bruno Haible  <bruno@clisp.org>
94984         * m4/lib-link.m4: Require at least autoconf-2.54.
94985         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94986         name to underscores for the --with option.
94988 2006-11-13  Bruno Haible  <bruno@clisp.org>
94990         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94991         the tests directory.
94992         Reported by Ralf Wildenhues.
94994 2006-11-13  Bruno Haible  <bruno@clisp.org>
94996         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94997         (func_emit_initmacro_end): Undo the override here.
94998         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94999         Works around the famous automake error in coreutils.
95001 2006-11-13  Eric Blake  <ebb9@byu.net>
95003         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
95004         element, not its node.
95006 2006-11-12  Bruno Haible  <bruno@clisp.org>
95008         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
95009         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
95011 2006-11-12  Bruno Haible  <bruno@clisp.org>
95013         * gnulib-tool: New option --local-symlink.
95014         (func_usage): Document it.
95015         (lsymbolic): New variable.
95016         (func_import, func_create_testdir): If --symlink was not specified,
95017         test whether --local-symlink was specified and the file comes from
95018         the local_gnulib_dir.
95020 2006-11-12  Bruno Haible  <bruno@clisp.org>
95022         * gnulib-tool (func_ln): New function.
95023         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
95025 2006-11-12  Bruno Haible  <bruno@clisp.org>
95027         Finish support for source files in subdirectories.
95028         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
95029         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
95030         AUTOMAKE_OPTIONS.
95031         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
95033 2006-11-12  Bruno Haible  <bruno@clisp.org>
95035         * gnulib-tool (func_get_automake_snippet): Synthesize also an
95036         EXTRA_lib_SOURCES augmentation.
95037         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
95039 2006-11-12  Jim Meyering  <jim@meyering.net>
95041         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
95042         file descriptors.  This also averts a failure on systems with
95043         native openat support when a traversed directory lacks "x" access.
95044         * lib/fts_.h: Include "i-ring.h"
95045         (struct FTS) [fts_fd_ring]: New member.
95046         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
95047         (FCHDIR): Add parentheses.
95048         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
95049         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
95050         When descending, rather than simply closing the previous
95051         fts_cwd_fd value, push that file descriptor onto the ring.
95052         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
95053         (fts_open): Initialize the new fd_ring member.
95054         (fts_close): Clear the ring.
95055         (fts_safe_changedir): When possible, use our new fd_ring to skip
95056         the diropen and fstat and dev/ino comparison that would normally
95057         accompany a virtual `chdir ("..")'.
95059         * modules/fts (Depends-on): Add i-ring.
95060         * modules/i-ring: New module.
95061         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
95062         * m4/i-ring.m4: New file.
95064 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95066         * gnulib-tool (func_create_testdir): Fix replacement of
95067         `build-aux' in configure.ac.  Run autotools in gltests
95068         subdirectory.
95069         (func_create_testdir, func_create_megatestdir, test): There is
95070         no need for '--force' in most autotool invocations in a new
95071         tree.  Actually fail the whole test if any of the tools, or the
95072         configure or make stages fail.
95074         Sync from Automake.
95075         * build-aux/gnupload: Revert last change.  Add pointer to upload
95076         instructions of the GNU Maintenance Instructions.
95077         Suggestion by Karl Berry.
95079 2006-11-10  Jim Meyering  <jim@meyering.net>
95081         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
95083 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95085         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
95086         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
95087         (bind_textdomain_codeset) [! ENABLE_NLS]:
95088         Evaluate all the arguments.  That way, callers get compatible behavior
95089         if the arguments have side effects.  Also, it avoids some GCC
95090         diagnostics in some cases; Joel E. Denny reported problems when Bison
95091         was configured with --enable-gcc-warnigs.
95093 2006-11-10  Jim Meyering  <jim@meyering.net>
95095         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
95096         relevant options in CFLAGS (like -O, -fno-inline) are taken into
95097         account.
95099 2006-11-10  Jim Meyering  <jim@meyering.net>
95101         * modules/inline: New file/module.
95102         * modules/xalloc (Files): Remove m4/inline.m4.
95103         (Depends-on): Add inline, instead.
95104         * modules/oset: Likewise.
95105         * modules/list: Likewise.
95107 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95109         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
95110         Problem reported by Matthew Woehlke.
95112 2006-11-09  Bruno Haible  <bruno@clisp.org>
95114         * lib/tempname.c (gen_tempname): Remove variant that invokes
95115         __gen_tempname.
95116         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
95117         __gen_tempname.
95119 2006-11-08  Bruno Haible  <bruno@clisp.org>
95121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
95122         to 'yes' instead of 'cross-compiling'.
95124 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95126         * lib/quotearg.h (quotearg_free): New decl.
95127         * lib/quotearg.c (quotearg_free): New function.
95128         (slot0, nslots, slotvec0, slotvec):
95129         Now file-scope so that quotearg_free can get at them.
95131 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95133         Sync from Automake.
95134         * build-aux/gnupload: Add missing 'gnu' to example URL.
95135         Report by Karl Berry.
95137 2006-11-08  Bruno Haible  <bruno@clisp.org>
95139         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95140         Suggested by Paul Eggert.
95142 2006-11-08  Jim Meyering  <jim@meyering.net>
95144         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95145         It's already included if !_LIBC.
95146         (fts_safe_changedir): Add a comment.
95148 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95150         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95151         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95152         Matthew Woehlke.
95154         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95155         definitions up, to avoid colliding with change below.
95156         (static_inline) [HAVE_INLINE]: New macro.
95157         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95158         Provide extern decls when !HAVE_INLINE.  Do not define unless
95159         static_inline is defined, either by us or by xmalloc.c.  Use
95160         static_inline rather than static inline.
95161         (XCALLOC): Optimize sizeof(T) = 1 case.
95162         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95164 2006-11-07  Bruno Haible  <bruno@clisp.org>
95166         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95167         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95168         AC_C_INLINE.
95169         * modules/xalloc (Files): Add m4/inline.m4.
95171 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95173         * README: Fix typo.
95174         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95175         (Miscellanous Notes): ...from this.
95177 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95179         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95180         Mention that offsetof should be used instead of sizeof.
95181         From Bruno Haible.
95183 2006-11-07  Bruno Haible  <bruno@clisp.org>
95185         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95187 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95189         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95190         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95191         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95192         (gl_tree_add_before, gl_tree_add_after):
95193         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95194         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95195         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95196         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95197         (gl_linked_add_after, gl_linked_add_at): Likewise.
95198         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95199         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95200         (gl_tree_add_before, gl_tree_add_after): Likewise.
95201         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95202         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95203         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95205 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95207         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95209 2006-11-06  Bruno Haible  <bruno@clisp.org>
95211         * m4/inline.m4: New file.
95212         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95213         * modules/list (Files): Add m4/inline.m4.
95214         * modules/oset (Files): Likewise.
95216 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95218         * lib/idcache.c: Include <stddef.h>, for offsetof.
95219         (struct userid.name): Change from char * to a flexible array member.
95220         All uses changed.
95221         * modules/idcache (Depends-on): Add flexmember.
95223         * MODULES.html.sh (Core language properties): New module flexmember.
95224         * modules/flexmember, m4/flexmember.m4: New files.
95226         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95227         inline functions that are identical with the old xnmalloc_inline,
95228         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95229         that we can avoid some unnecessary integer multiplications and
95230         divisions in the common case where the element size is known at
95231         compile time.
95232         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95233         needed.
95234         (xnboundedmalloc): Remove.
95235         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95236         arguments, for consistency with rest of this header.
95237         (xcharalloc): Rewrite using XNMALLOC.
95238         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95239         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95240         versions have been moved to lib/xalloc.h and renamed to be the
95241         non-*_inline versions.
95242         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95243         and xnrealloc functions, since those functions are now inline and
95244         now call us.
95245         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95246         renaming described above.
95247         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95248         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95249         captures the dependency in AC_C_INLINE.
95251         New module canonicalize-lgpl, proposed by Charles Wilson in
95252         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95253         with a few small changes afterwards.
95254         * MODULES.html.sh (File system functions): New module
95255         canonicalize-lgpl.
95256         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95257         and canonicalize_file_name.
95258         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95259         * modules/canonicalize-lgpl: New files.
95261 2006-11-05  Bruno Haible  <bruno@clisp.org>
95263         * gnulib-tool (func_import, func_create_testdir): Create directories
95264         also for files in subdirectories of lib/.
95266 2006-11-05  Bruno Haible  <bruno@clisp.org>
95268         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95269         ANSI C compliant.
95271 2006-11-03  Bruno Haible  <bruno@clisp.org>
95273         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95275         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95276         (xnboundedmalloc): New inline function.
95277         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95278         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95279         xmalloc.
95280         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95281         xmalloc.
95282         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95283         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95284         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95285         xmalloc.
95286         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95287         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95288         xmalloc.
95289         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95290         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95291         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95292         xmalloc.
95293         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95294         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95295         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95296         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95297         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95298         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95299         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95301 2006-11-03  Bruno Haible  <bruno@clisp.org>
95303         * lib/c-ctype.h [C++]: Define functions without name mangling.
95304         * lib/fwriteerror.h [C++]: Likewise.
95305         * lib/gcd.h [C++]: Likewise.
95306         * lib/linebreak.h [C++]: Likewise.
95308 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95310         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95311         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95312         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95314         Check for functions and headers just once.
95315         Check for declaration of canonicalize_file_name.
95316         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95318 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95320         * gnulib-tool (func_import): Fix typo in actioncmd.
95322 2006-11-02  Bruno Haible  <bruno@clisp.org>
95324         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95325         newline sequence in the Makefile.am snippet as a space, like "make"
95326         does.
95327         Reported by Roger Persson <perrog@gmail.com>.
95329 2006-11-01  Bruno Haible  <bruno@clisp.org>
95331         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95332         already declared in <string.h>.
95333         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95335 2006-11-01  Bruno Haible  <bruno@clisp.org>
95337         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95338         * lib/strcase.h: Include <string.h>.
95339         (strcasecmp): Define to rpl_strcasecmp here.
95341 2006-11-01  Bruno Haible  <bruno@clisp.org>
95343         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95345 2006-11-01  Eric Blake  <ebb9@byu.net>
95347         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95351 2006-10-29  Bruno Haible  <bruno@clisp.org>
95353         Make it compile in C++ mode.
95354         * lib/full-write.c (full_rw): Add a cast.
95356 2006-11-01  Bruno Haible  <bruno@clisp.org>
95358         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95359         be POSIX compliant.
95360         Reported by Roger Persson <perrog@gmail.com>.
95362 2006-11-01  Eric Blake  <ebb9@byu.net>
95364         * lib/getopt_.h: Fix comments.
95366 2006-10-31  Eric Blake  <ebb9@byu.net>
95368         * modules/tmpdir (Depends-on): Add sys_stat.
95369         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95370         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95371         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95372         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95373         tempname.
95375 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95377         Avoid some C++ diagnostics reported by Bruno Haible.
95378         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95379         xmalloc.
95380         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95381         (struct slotvec): Move to top level.
95382         (quotearg_n_options): Rewrite to avoid xmalloc.
95383         * lib/xalloc.h (xcharalloc): New function.
95384         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95385         [defined __cplusplus]: Add function template that provides result
95386         type propagation.  This part of the change is from Bruno Haible.
95388 2006-10-29  Bruno Haible  <bruno@clisp.org>
95390         Make it compile in C++ mode.
95391         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95392         * lib/strnlen1.c (strnlen1): Cast memchr result.
95393         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95394         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95395         (create_temp_dir): Rename local variable 'template'.
95396         (compile_csharp_using_sscli): Add cast.
95397         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95398         * lib/findprog.c (find_in_path): Likewise.
95399         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95400         * lib/wait-process.c (register_slave_subprocess): Likewise.
95402 2006-10-22  Bruno Haible  <bruno@clisp.org>
95404         * modules/tsearch: New file.
95405         * lib/tsearch.h: New file.
95406         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95407         * m4/tsearch.m4: New file.
95408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95410 2006-10-29  Eric Blake  <ebb9@byu.net>
95412         * lib/arcfour.c: Assume config.h.
95413         * lib/arctwo.c: Likewise.
95414         * lib/base64.c: Likewise.
95415         * lib/check-version.c: Likewise.
95416         * lib/crc.c: Likewise.
95417         * lib/des.c: Likewise.
95418         * lib/gc-gnulib.c: Likewise.
95419         * lib/gc-libgcrypt.c: Likewise.
95420         * lib/gc-pbkdf2-sha1.c: Likewise.
95421         * lib/getaddrinfo.c: Likewise.
95422         * lib/getdelim.c: Likewise.
95423         * lib/getline.c: Likewise.
95424         * lib/hmac-md5.c: Likewise.
95425         * lib/hmac-sha1.c: Likewise.
95426         * lib/iconvme.c: Likewise.
95427         * lib/md2.c: Likewise.
95428         * lib/md4.c: Likewise.
95429         * lib/memxor.c: Likewise.
95430         * lib/read-file.c: Likewise.
95431         * lib/readline.c: Likewise.
95432         * lib/rijndael-alg-fst.c: Likewise.
95433         * lib/rijndael-api-fst.c: Likewise.
95434         * lib/xgetdomainname.c: Likewise.
95436 2006-10-28  Eric Blake  <ebb9@byu.net>
95438         * lib/xstrndup.c: Assume config.h.
95440 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95442         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95443         stat-macros.h is now for our own macros, whereas stat_h is for
95444         macros in the <sys/stat.h> name space.
95445         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95446         (STAT_MACROS_H): Remove.
95447         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95448         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95449         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95450         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95451         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95452         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95453         Move these macros to ...
95454         * lib/stat_.h: here.  Don't include stat-macros.h.
95455         * lib/canonicalize.c: Don't include stat-macros.h.
95456         * lib/chown.c: Likewise.
95457         * lib/euidaccess.c: Likewise.
95458         * lib/file-type.c: Likewise.
95459         * lib/filemode.c: Likewise.
95460         * lib/glob.c: Likewise.
95461         * lib/isapipe.c: Likewise.
95462         * lib/lchown.c: Likewise.
95463         * lib/lstat.c: Likewise.
95464         * lib/mkdir-p.c: Likewise.
95465         * lib/rmdir.c: Likewise.
95466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95468         unless mkdir isn't declared, to speed up 'configure'.
95469         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95470         would define all the S_* symbols.
95471         * modules/canonicalize (Depends-on):
95472         Depend on sys_stat, not stat-macros.
95473         * modules/chown: Likewise.
95474         * modules/euidaccess: Likewise.
95475         * modules/filemode: Likewise.
95476         * modules/file-type: Likewise.
95477         * modules/glob: Likewise.
95478         * modules/isapipe: Likewise.
95479         * modules/lchown: Likewise.
95480         * modules/lstat: Likewise.
95481         * modules/mkancesdirs: Likewise.
95482         * modules/rmdir: Likewise.
95483         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95484         * modules/modechange: Likewise.
95485         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95486         (configure.ac): Remove gl_STAT_MACROS.
95487         * modules/sys_stat (Depends-on): Remove stat-macros.
95489 2006-10-27  Bruno Haible  <bruno@clisp.org>
95491         * m4/signed.m4: Remove file.
95492         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95493         invocation.
95494         * modules/vasnprintf (Files): Remove m4/signed.m4.
95496 2006-10-27  Bruno Haible  <bruno@clisp.org>
95498         Update to GNU gettext 0.16.
95499         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95500         m4/inttypes-h.m4, m4/signed.m4.
95501         * m4/gettext.m4: Update to GNU gettext 0.16.
95502         * m4/intl.m4: New file, from GNU gettext.
95503         * m4/intldir.m4: New file, from GNU gettext.
95504         * config/srclist.txt: Update
95506 2006-10-27  Eric Blake  <ebb9@byu.net>
95508         * MODULES.html.sh: Document tempname.
95509         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95510         dependencies.
95511         (Files): Move lib/tempname.c...
95512         * modules/tempname: ...to this new module.
95513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95514         (gl_PREREQ_TEMPNAME): Move...
95515         * m4/tempname.m4: ...to this new file.
95516         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95517         * modules/sys_stat (Depends-on): Add stat-macros.
95518         * lib/stat_.h (includes): Pick up stat macros.
95519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95520         if stat macros are broken.
95521         * lib/tempname.c (includes): No need to include "stat-macros.h".
95522         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95523         (direxists, __path_search) [!_LIBC]: Don't compile these in
95524         gnulib; the tmpdir module covers that.
95525         * lib/tempname.h: New file.
95527 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95529         * COPYING: Explain how gnulib-tool converts licence headers.
95530         Almost all wording by Eric Blake.
95532 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95534         * lib/mbchar.h (is_basic_table): Make read-only.
95535         * lib/mbchar.c (is_basic_table): Likewise.
95536         Reported by John Darrington.
95538 2006-10-25  Bruno Haible  <bruno@clisp.org>
95540         * lib/progname.h (set_program_name): Undefine before defining.
95542 2006-10-25  Bruno Haible  <bruno@clisp.org>
95544         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95545         false for non-gcc C++ compilers.
95546         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95548 2006-10-24  Bruno Haible  <bruno@clisp.org>
95550         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95551         iconv implementations like Irix iconv.
95553 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95555         * modules/vararrays: New file.
95556         * m4/vararrays.m4: New file, taken from diffutils.
95557         * MODULES.html.sh: New module vararrays.
95559 2006-10-24  Karl Berry  <karl@gnu.org>
95561         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95562         Don't call GNU Unix.
95564 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95566         * users.txt: Add Libtool.
95568         Sync from Libtool:
95570         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95572         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95573         to gnulib's policy of including config.h unconditionally.
95575 2006-10-24  Bruno Haible  <bruno@clisp.org>
95577         * modules/wcwidth (Files): Add m4/wint_t.m4.
95578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95579         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95581 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95583         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95584         to pacify GCC with some -W flags enabled.  Problem reported by
95585         Bruno Haible.
95587 2006-10-24  Jim Meyering  <jim@meyering.net>
95589         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95590         Reported by Karl Berry.
95592 2006-10-23  Bruno Haible  <bruno@clisp.org>
95594         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95596 2006-10-24  Bruno Haible  <bruno@clisp.org>
95598         * lib/gl_list.h: Use C comment style, not C++ comment style.
95600 2006-10-23  Eric Blake  <ebb9@byu.net>
95602         * lib/getaddrinfo.c (includes): Add missing include.
95604 2006-10-23  Bruno Haible  <bruno@clisp.org>
95605             Paul Eggert  <eggert@cs.ucla.edu>
95607         Ability to rename obstack_free.
95608         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95609         obstack_free.
95610         (obstack_free): Invoke the __obstack_free macro.
95611         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95613 2006-10-23  Bruno Haible  <bruno@clisp.org>
95614             Paul Eggert  <eggert@cs.ucla.edu>
95616         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95617         __argc, __argv from the declaration. (They are defined as macros on
95618         mingw.)
95620 2006-10-22  Bruno Haible  <bruno@clisp.org>
95622         * doc/gnulib-intro.texi: New file.
95623         * doc/gnulib.texi: Include it.
95625 2006-10-21  Bruno Haible  <bruno@clisp.org>
95627         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95628         "Introduction", "Miscellanous Notes", "Particular Modules".
95630 2006-10-21  Bruno Haible  <bruno@clisp.org>
95632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95633         Change mostlyclean-local rule to avoid sh syntax error from bash
95634         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95636 2006-10-23  Jim Meyering  <jim@meyering.net>
95638         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95639         in place of snprintf.
95641         * modules/inttostr (Files): Add lib/uinttostr.c.
95642         * lib/uinttostr.c (inttostr): New file/function.
95643         * lib/inttostr.h (uinttostr): Declare.
95644         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95645         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95646         Add uinttostr.
95647         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95649 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95651         * lib/canonicalize.c (ELOOP): Define if not already defined.
95652         Problem reported by Bruno Haible in
95653         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95655 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95657         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95658         Problem reported by Perry Smith and Ville Laurikari.
95660         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95661         uses.
95663 2006-10-19  Bruno Haible  <bruno@clisp.org>
95665         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95666         for mingw.
95668 2006-10-19  Bruno Haible  <bruno@clisp.org>
95670         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95671         Needed for mingw.
95673 2006-10-19  Bruno Haible  <bruno@clisp.org>
95675         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95677 2006-10-19  Bruno Haible  <bruno@clisp.org>
95679         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95680         it.
95682 2006-10-19  Bruno Haible  <bruno@clisp.org>
95684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95685         invocation.
95687 2006-10-19  Bruno Haible  <bruno@clisp.org>
95689         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95690         mountlist by default.
95692 2006-10-16  Bruno Haible  <bruno@clisp.org>
95694         * lib/c-strstr.c: Include c-strstr.h.
95696 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95698         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95699         in a slash.
95701 2006-10-18  Bruno Haible  <bruno@clisp.org>
95703         * lib/lock.h [C++]: Wrap definitions in extern "C".
95705 2006-10-18  Bruno Haible  <bruno@clisp.org>
95707         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95708         gl_LIBOBJS list.
95710 2006-10-18  Bruno Haible  <bruno@clisp.org>
95712         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95714 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95716         * lib/xstrtol.h: Include gettext.h.
95717         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95718         Problem reported by Eric Blake.
95719         * modules/xstrtol (Depends-on): Add gettext-h.
95721 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95723         * lib/strftime.c (advance): New macro.
95724         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95725         incomplete type, so you can't add 0 to it.  Problem and patch
95726         reported by Eelco Dolstra for dietlibc.
95728 2006-10-18  Jim Meyering  <jim@meyering.net>
95730         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95731         type for a local, and rename it: s/up/user_proc/.
95733 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95735         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95736         READ_UTMP_USER_PROCESS.
95737         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95739 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95741         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95742         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95744 2006-10-17  Eric Blake  <ebb9@byu.net>
95746         * lib/sigprocmask.c (sigprocmask): Fix typo.
95748         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95750         * modules/clean-temp (Makefile.am): Don't add to make output...
95751         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95752         config.h.
95754 2006-10-17  Bruno Haible  <bruno@clisp.org>
95756         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95757         differently if DEFAULT_TEXT_DOMAIN is set.
95759 2006-10-16  Bruno Haible  <bruno@clisp.org>
95761         * lib/clean-temp.c: Include fwriteerror.h.
95763 2006-10-16  Bruno Haible  <bruno@clisp.org>
95765         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95767 2006-10-16  Bruno Haible  <bruno@clisp.org>
95769         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95770         * lib/sigprocmask.h: Include <sys/types.h>.
95771         (sigset_t): Use the system's definition if present.
95773 2006-10-17  Eric Blake  <ebb9@byu.net>
95775         * lib/xvasprintf.c (includes): Assume config.h.
95776         * lib/xasprintf.c (includes): Likewise.
95778 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95780         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95781         at least as wide as intmax_t.
95783 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95785         (Imported from Automake.)
95786         * build-aux/gnupload: Update to version 1.1 of directive file.
95788 2006-10-16  Eric Blake  <ebb9@byu.net>
95790         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95791         match Automake 1.10a.
95793 2006-10-14  Bruno Haible  <bruno@clisp.org>
95795         * modules/sigprocmask: New file.
95796         * lib/sigprocmask.h: New file.
95797         * lib/sigprocmask.c: New file.
95798         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95799         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95800         request sigprocmask.o.
95801         (gl_PREREQ_SIGPROCMASK): New macro.
95802         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95803         (Depends-on): Add sigprocmask.
95804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95805         gt_SIGNALBLOCKING. Test for 'raise' only once.
95806         * lib/fatal-signal.c: Include sigprocmask.h.
95807         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95808         unblock_fatal_signals): Define always.
95809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95810         sigprocmask.
95812 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95814         Sync from Automake.
95815         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95816         which incorrectly sets the mode of an existing destination
95817         directory.  In some cases the unpatched install-sh could do the
95818         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95819         system.  We hope this is rare in practice, but it's clearly worth
95820         fixing.  Problem reported by Alex Unleashed in
95821         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95822         Also, don't bother to check for -m bugs unless we're using -m;
95823         suggested by Stepan Kasal.
95825 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95827         Sync from Automake.
95828         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95829         `-c' flag, so they appear at the same position as in %FASTDEP%
95830         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95831         which ignores unknown options only after the first non-option.
95832         Bug report against M4 by Nelson H. F. Beebe.
95834 2006-10-13  Jim Meyering  <jim@meyering.net>
95836         Fix a bug in yesterday's change.
95837         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95838         p->fts_statp->st_dev would be used uninitialized.
95839         Ensures that we always call fts_stat on the very first entry.
95840         Miklos Szeredi reported that find -xdev stopped working.
95842 2006-10-12  Bruno Haible  <bruno@clisp.org>
95844         * gnulib-tool (func_get_automake_snippet): Append an automatically
95845         computed EXTRA_DIST augmentation.
95846         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95847         * modules/alloca-opt (Makefile.am): Likewise.
95848         * modules/allocsa (Makefile.am): Likewise.
95849         * modules/arcfour (Makefile.am): Likewise.
95850         * modules/arctwo (Makefile.am): Likewise.
95851         * modules/argmatch (Makefile.am): Likewise.
95852         * modules/argz (Makefile.am): Likewise.
95853         * modules/atexit (Makefile.am): Likewise.
95854         * modules/backupfile (Makefile.am): Likewise.
95855         * modules/byteswap (Makefile.am): Likewise.
95856         * modules/c-strtod (Makefile.am): Likewise.
95857         * modules/c-strtold (Makefile.am): Likewise.
95858         * modules/calloc (Makefile.am): Likewise.
95859         * modules/canon-host (Makefile.am): Likewise.
95860         * modules/canonicalize (Makefile.am): Likewise.
95861         * modules/chdir-long (Makefile.am): Likewise.
95862         * modules/chdir-safer (Makefile.am): Likewise.
95863         * modules/check-version (Makefile.am): Likewise.
95864         * modules/chown (Makefile.am): Likewise.
95865         * modules/cloexec (Makefile.am): Likewise.
95866         * modules/close-stream (Makefile.am): Likewise.
95867         * modules/closeout (Makefile.am): Likewise.
95868         * modules/crc (Makefile.am): Likewise.
95869         * modules/csharpexec (Makefile.am): Likewise.
95870         * modules/cycle-check (Makefile.am): Likewise.
95871         * modules/des (Makefile.am): Likewise.
95872         * modules/dev-ino (Makefile.am): Likewise.
95873         * modules/dirfd (Makefile.am): Likewise.
95874         * modules/dirname (Makefile.am): Likewise.
95875         * modules/dup2 (Makefile.am): Likewise.
95876         * modules/eealloc (Makefile.am): Likewise.
95877         * modules/error (Makefile.am): Likewise.
95878         * modules/euidaccess (Makefile.am): Likewise.
95879         * modules/exclude (Makefile.am): Likewise.
95880         * modules/exitfail (Makefile.am): Likewise.
95881         * modules/fcntl-safer (Makefile.am): Likewise.
95882         * modules/fcntl (Makefile.am): Likewise.
95883         * modules/file-type (Makefile.am): Likewise.
95884         * modules/fileblocks (Makefile.am): Likewise.
95885         * modules/filemode (Makefile.am): Likewise.
95886         * modules/filenamecat (Makefile.am): Likewise.
95887         * modules/fnmatch (Makefile.am): Likewise.
95888         * modules/fopen-safer (Makefile.am): Likewise.
95889         * modules/fpending (Makefile.am): Likewise.
95890         * modules/fprintftime (Makefile.am): Likewise.
95891         * modules/free (Makefile.am): Likewise.
95892         * modules/fsusage (Makefile.am): Likewise.
95893         * modules/ftruncate (Makefile.am): Likewise.
95894         * modules/fts (Makefile.am): Likewise.
95895         * modules/gc-arcfour (Makefile.am): Likewise.
95896         * modules/gc-des (Makefile.am): Likewise.
95897         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95898         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95899         * modules/gc-md4 (Makefile.am): Likewise.
95900         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95901         * modules/gc-sha1 (Makefile.am): Likewise.
95902         * modules/gc (Makefile.am): Likewise.
95903         * modules/getaddrinfo (Makefile.am): Likewise.
95904         * modules/getcwd (Makefile.am): Likewise.
95905         * modules/getdelim (Makefile.am): Likewise.
95906         * modules/getdomainname (Makefile.am): Likewise.
95907         * modules/getgroups (Makefile.am): Likewise.
95908         * modules/gethostname (Makefile.am): Likewise.
95909         * modules/gethrxtime (Makefile.am): Likewise.
95910         * modules/getline (Makefile.am): Likewise.
95911         * modules/getloadavg (Makefile.am): Likewise.
95912         * modules/getlogin_r (Makefile.am): Likewise.
95913         * modules/getndelim2 (Makefile.am): Likewise.
95914         * modules/getopt (Makefile.am): Likewise.
95915         * modules/getpagesize (Makefile.am): Likewise.
95916         * modules/getpass-gnu (Makefile.am): Likewise.
95917         * modules/getpass (Makefile.am): Likewise.
95918         * modules/getsubopt (Makefile.am): Likewise.
95919         * modules/gettime (Makefile.am): Likewise.
95920         * modules/gettimeofday (Makefile.am): Likewise.
95921         * modules/getugroups (Makefile.am): Likewise.
95922         * modules/getusershell (Makefile.am): Likewise.
95923         * modules/glob (Makefile.am): Likewise.
95924         * modules/group-member (Makefile.am): Likewise.
95925         * modules/hard-locale (Makefile.am): Likewise.
95926         * modules/hash (Makefile.am): Likewise.
95927         * modules/hmac-md5 (Makefile.am): Likewise.
95928         * modules/hmac-sha1 (Makefile.am): Likewise.
95929         * modules/human (Makefile.am): Likewise.
95930         * modules/idcache (Makefile.am): Likewise.
95931         * modules/imaxabs (Makefile.am): Likewise.
95932         * modules/imaxdiv (Makefile.am): Likewise.
95933         * modules/inet_ntop (Makefile.am): Likewise.
95934         * modules/inet_pton (Makefile.am): Likewise.
95935         * modules/intprops (Makefile.am): Likewise.
95936         * modules/inttostr (Makefile.am): Likewise.
95937         * modules/inttypes (Makefile.am): Likewise.
95938         * modules/isapipe (Makefile.am): Likewise.
95939         * modules/javaversion (Makefile.am): Likewise.
95940         * modules/lchmod (Makefile.am): Likewise.
95941         * modules/lchown (Makefile.am): Likewise.
95942         * modules/localcharset (Makefile.am): Likewise.
95943         * modules/long-options (Makefile.am): Likewise.
95944         * modules/lstat (Makefile.am): Likewise.
95945         * modules/malloc (Makefile.am): Likewise.
95946         * modules/mathl (Makefile.am): Likewise.
95947         * modules/mbchar (Makefile.am): Likewise.
95948         * modules/md2 (Makefile.am): Likewise.
95949         * modules/md4 (Makefile.am): Likewise.
95950         * modules/md5 (Makefile.am): Likewise.
95951         * modules/memcasecmp (Makefile.am): Likewise.
95952         * modules/memchr (Makefile.am): Likewise.
95953         * modules/memcmp (Makefile.am): Likewise.
95954         * modules/memcoll (Makefile.am): Likewise.
95955         * modules/memcpy (Makefile.am): Likewise.
95956         * modules/memmem (Makefile.am): Likewise.
95957         * modules/memmove (Makefile.am): Likewise.
95958         * modules/mempcpy (Makefile.am): Likewise.
95959         * modules/memrchr (Makefile.am): Likewise.
95960         * modules/memset (Makefile.am): Likewise.
95961         * modules/memxor (Makefile.am): Likewise.
95962         * modules/mkancesdirs (Makefile.am): Likewise.
95963         * modules/mkdir-p (Makefile.am): Likewise.
95964         * modules/mkdir (Makefile.am): Likewise.
95965         * modules/mkdtemp (Makefile.am): Likewise.
95966         * modules/mkstemp (Makefile.am): Likewise.
95967         * modules/mktime (Makefile.am): Likewise.
95968         * modules/modechange (Makefile.am): Likewise.
95969         * modules/mountlist (Makefile.am): Likewise.
95970         * modules/nanosleep (Makefile.am): Likewise.
95971         * modules/obstack (Makefile.am): Likewise.
95972         * modules/openat (Makefile.am): Likewise.
95973         * modules/pagealign_alloc (Makefile.am): Likewise.
95974         * modules/pathmax (Makefile.am): Likewise.
95975         * modules/physmem (Makefile.am): Likewise.
95976         * modules/poll (Makefile.am): Likewise.
95977         * modules/posixtm (Makefile.am): Likewise.
95978         * modules/posixver (Makefile.am): Likewise.
95979         * modules/putenv (Makefile.am): Likewise.
95980         * modules/quote (Makefile.am): Likewise.
95981         * modules/quotearg (Makefile.am): Likewise.
95982         * modules/raise (Makefile.am): Likewise.
95983         * modules/read-file (Makefile.am): Likewise.
95984         * modules/readline (Makefile.am): Likewise.
95985         * modules/readlink (Makefile.am): Likewise.
95986         * modules/readtokens (Makefile.am): Likewise.
95987         * modules/readutmp (Makefile.am): Likewise.
95988         * modules/realloc (Makefile.am): Likewise.
95989         * modules/regex (Makefile.am): Likewise.
95990         * modules/rename-dest-slash (Makefile.am): Likewise.
95991         * modules/rename (Makefile.am): Likewise.
95992         * modules/rijndael (Makefile.am): Likewise.
95993         * modules/rmdir (Makefile.am): Likewise.
95994         * modules/rpmatch (Makefile.am): Likewise.
95995         * modules/safe-read (Makefile.am): Likewise.
95996         * modules/safe-write (Makefile.am): Likewise.
95997         * modules/same-inode (Makefile.am): Likewise.
95998         * modules/same (Makefile.am): Likewise.
95999         * modules/save-cwd (Makefile.am): Likewise.
96000         * modules/savedir (Makefile.am): Likewise.
96001         * modules/setenv (Makefile.am): Likewise.
96002         * modules/settime (Makefile.am): Likewise.
96003         * modules/sha1 (Makefile.am): Likewise.
96004         * modules/sig2str (Makefile.am): Likewise.
96005         * modules/snprintf (Makefile.am): Likewise.
96006         * modules/stat-macros (Makefile.am): Likewise.
96007         * modules/stat-time (Makefile.am): Likewise.
96008         * modules/stdbool (Makefile.am): Likewise.
96009         * modules/stdint (Makefile.am): Likewise.
96010         * modules/stdlib-safer (Makefile.am): Likewise.
96011         * modules/stpcpy (Makefile.am): Likewise.
96012         * modules/stpncpy (Makefile.am): Likewise.
96013         * modules/strcase (Makefile.am): Likewise.
96014         * modules/strcasestr (Makefile.am): Likewise.
96015         * modules/strchrnul (Makefile.am): Likewise.
96016         * modules/strcspn (Makefile.am): Likewise.
96017         * modules/strdup (Makefile.am): Likewise.
96018         * modules/strerror (Makefile.am): Likewise.
96019         * modules/strftime (Makefile.am): Likewise.
96020         * modules/strndup (Makefile.am): Likewise.
96021         * modules/strnlen (Makefile.am): Likewise.
96022         * modules/strpbrk (Makefile.am): Likewise.
96023         * modules/strsep (Makefile.am): Likewise.
96024         * modules/strstr (Makefile.am): Likewise.
96025         * modules/strtod (Makefile.am): Likewise.
96026         * modules/strtoimax (Makefile.am): Likewise.
96027         * modules/strtok_r (Makefile.am): Likewise.
96028         * modules/strtol (Makefile.am): Likewise.
96029         * modules/strtoll (Makefile.am): Likewise.
96030         * modules/strtoul (Makefile.am): Likewise.
96031         * modules/strtoull (Makefile.am): Likewise.
96032         * modules/strtoumax (Makefile.am): Likewise.
96033         * modules/strverscmp (Makefile.am): Likewise.
96034         * modules/sys_socket (Makefile.am): Likewise.
96035         * modules/sys_stat (Makefile.am): Likewise.
96036         * modules/sysexits (Makefile.am): Likewise.
96037         * modules/time_r (Makefile.am): Likewise.
96038         * modules/timegm (Makefile.am): Likewise.
96039         * modules/timespec (Makefile.am): Likewise.
96040         * modules/tmpfile-safer (Makefile.am): Likewise.
96041         * modules/trim (Makefile.am): Likewise.
96042         * modules/unistd-safer (Makefile.am): Likewise.
96043         * modules/unlinkdir (Makefile.am): Likewise.
96044         * modules/unlocked-io (Makefile.am): Likewise.
96045         * modules/userspec (Makefile.am): Likewise.
96046         * modules/utime (Makefile.am): Likewise.
96047         * modules/utimecmp (Makefile.am): Likewise.
96048         * modules/utimens (Makefile.am): Likewise.
96049         * modules/vasnprintf (Makefile.am): Likewise.
96050         * modules/vasprintf (Makefile.am): Likewise.
96051         * modules/vsnprintf (Makefile.am): Likewise.
96052         * modules/xalloc (Makefile.am): Likewise.
96053         * modules/xgetcwd (Makefile.am): Likewise.
96054         * modules/xnanosleep (Makefile.am): Likewise.
96055         * modules/xreadlink (Makefile.am): Likewise.
96056         * modules/xstrtod (Makefile.am): Likewise.
96057         * modules/xstrtol (Makefile.am): Likewise.
96058         * modules/xstrtold (Makefile.am): Likewise.
96059         * modules/yesno (Makefile.am): Likewise.
96060         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
96062 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96064         * modules/error (Makefile.am): Distribute files through
96065         EXTRA_DIST, not lib_SOURCES.
96067 2006-10-12  Eric Blake  <ebb9@byu.net>
96069         * modules/error (Makefile.am): Distribute files in /lib.
96070         * modules/obstack (Makefile.am): Likewise.
96072 2006-10-12  Bruno Haible  <bruno@clisp.org>
96074         * modules/acl (Makefile.am): Distribute all files in lib/ through
96075         EXTRA_DIST.
96076         * modules/arcfour (Makefile.am): Likewise.
96077         * modules/arctwo (Makefile.am): Likewise.
96078         * modules/argmatch (Makefile.am): Likewise.
96079         * modules/argz (Makefile.am): Likewise.
96080         * modules/atexit (Makefile.am): Likewise.
96081         * modules/backupfile (Makefile.am): Likewise.
96082         * modules/c-strtod (Makefile.am): Likewise.
96083         * modules/c-strtold (Makefile.am): Likewise.
96084         * modules/calloc (Makefile.am): Likewise.
96085         * modules/canon-host (Makefile.am): Likewise.
96086         * modules/canonicalize (Makefile.am): Likewise.
96087         * modules/chdir-long (Makefile.am): Likewise.
96088         * modules/chdir-safer (Makefile.am): Likewise.
96089         * modules/check-version (Makefile.am): Likewise.
96090         * modules/chown (Makefile.am): Likewise.
96091         * modules/cloexec (Makefile.am): Likewise.
96092         * modules/close-stream (Makefile.am): Likewise.
96093         * modules/closeout (Makefile.am): Likewise.
96094         * modules/crc (Makefile.am): Likewise.
96095         * modules/cycle-check (Makefile.am): Likewise.
96096         * modules/des (Makefile.am): Likewise.
96097         * modules/dirfd (Makefile.am): Likewise.
96098         * modules/dirname (Makefile.am): Likewise.
96099         * modules/dup2 (Makefile.am): Likewise.
96100         * modules/euidaccess (Makefile.am): Likewise.
96101         * modules/exclude (Makefile.am): Likewise.
96102         * modules/exitfail (Makefile.am): Likewise.
96103         * modules/fcntl-safer (Makefile.am): Likewise.
96104         * modules/file-type (Makefile.am): Likewise.
96105         * modules/fileblocks (Makefile.am): Likewise.
96106         * modules/filemode (Makefile.am): Likewise.
96107         * modules/filenamecat (Makefile.am): Likewise.
96108         * modules/fnmatch (Makefile.am): Likewise.
96109         * modules/fopen-safer (Makefile.am): Likewise.
96110         * modules/fpending (Makefile.am): Likewise.
96111         * modules/fprintftime (Makefile.am): Likewise.
96112         * modules/free (Makefile.am): Likewise.
96113         * modules/fsusage (Makefile.am): Likewise.
96114         * modules/ftruncate (Makefile.am): Likewise.
96115         * modules/fts (Makefile.am): Likewise.
96116         * modules/gc (Makefile.am): Likewise.
96117         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96118         * modules/getaddrinfo (Makefile.am): Likewise.
96119         * modules/getcwd (Makefile.am): Likewise.
96120         * modules/getdelim (Makefile.am): Likewise.
96121         * modules/getdomainname (Makefile.am): Likewise.
96122         * modules/getgroups (Makefile.am): Likewise.
96123         * modules/gethostname (Makefile.am): Likewise.
96124         * modules/gethrxtime (Makefile.am): Likewise.
96125         * modules/getline (Makefile.am): Likewise.
96126         * modules/getloadavg (Makefile.am): Likewise.
96127         * modules/getlogin_r (Makefile.am): Likewise.
96128         * modules/getopt (Makefile.am): Likewise.
96129         * modules/getpass (Makefile.am): Likewise.
96130         * modules/getpass-gnu (Makefile.am): Likewise.
96131         * modules/getsubopt (Makefile.am): Likewise.
96132         * modules/gettime (Makefile.am): Likewise.
96133         * modules/gettimeofday (Makefile.am): Likewise.
96134         * modules/getugroups (Makefile.am): Likewise.
96135         * modules/getusershell (Makefile.am): Likewise.
96136         * modules/glob (Makefile.am): Likewise.
96137         * modules/group-member (Makefile.am): Likewise.
96138         * modules/hard-locale (Makefile.am): Likewise.
96139         * modules/hash (Makefile.am): Likewise.
96140         * modules/hmac-md5 (Makefile.am): Likewise.
96141         * modules/hmac-sha1 (Makefile.am): Likewise.
96142         * modules/human (Makefile.am): Likewise.
96143         * modules/idcache (Makefile.am): Likewise.
96144         * modules/imaxabs (Makefile.am): Likewise.
96145         * modules/imaxdiv (Makefile.am): Likewise.
96146         * modules/inet_ntop (Makefile.am): Likewise.
96147         * modules/inet_pton (Makefile.am): Likewise.
96148         * modules/inttostr (Makefile.am): Likewise.
96149         * modules/isapipe (Makefile.am): Likewise.
96150         * modules/lchown (Makefile.am): Likewise.
96151         * modules/long-options (Makefile.am): Likewise.
96152         * modules/lstat (Makefile.am): Likewise.
96153         * modules/malloc (Makefile.am): Likewise.
96154         * modules/mathl (Makefile.am): Likewise.
96155         * modules/mbchar (Makefile.am): Likewise.
96156         * modules/md2 (Makefile.am): Likewise.
96157         * modules/md4 (Makefile.am): Likewise.
96158         * modules/md5 (Makefile.am): Likewise.
96159         * modules/memcasecmp (Makefile.am): Likewise.
96160         * modules/memchr (Makefile.am): Likewise.
96161         * modules/memcmp (Makefile.am): Likewise.
96162         * modules/memcoll (Makefile.am): Likewise.
96163         * modules/memcpy (Makefile.am): Likewise.
96164         * modules/memmem (Makefile.am): Likewise.
96165         * modules/memmove (Makefile.am): Likewise.
96166         * modules/mempcpy (Makefile.am): Likewise.
96167         * modules/memrchr (Makefile.am): Likewise.
96168         * modules/memset (Makefile.am): Likewise.
96169         * modules/memxor (Makefile.am): Likewise.
96170         * modules/mkancesdirs (Makefile.am): Likewise.
96171         * modules/mkdir (Makefile.am): Likewise.
96172         * modules/mkdir-p (Makefile.am): Likewise.
96173         * modules/mkdtemp (Makefile.am): Likewise.
96174         * modules/mkstemp (Makefile.am): Likewise.
96175         * modules/mktime (Makefile.am): Likewise.
96176         * modules/modechange (Makefile.am): Likewise.
96177         * modules/mountlist (Makefile.am): Likewise.
96178         * modules/nanosleep (Makefile.am): Likewise.
96179         * modules/openat (Makefile.am): Likewise.
96180         * modules/pagealign_alloc (Makefile.am): Likewise.
96181         * modules/physmem (Makefile.am): Likewise.
96182         * modules/poll (Makefile.am): Likewise.
96183         * modules/posixtm (Makefile.am): Likewise.
96184         * modules/posixver (Makefile.am): Likewise.
96185         * modules/putenv (Makefile.am): Likewise.
96186         * modules/quote (Makefile.am): Likewise.
96187         * modules/quotearg (Makefile.am): Likewise.
96188         * modules/raise (Makefile.am): Likewise.
96189         * modules/read-file (Makefile.am): Likewise.
96190         * modules/readline (Makefile.am): Likewise.
96191         * modules/readlink (Makefile.am): Likewise.
96192         * modules/readtokens (Makefile.am): Likewise.
96193         * modules/readutmp (Makefile.am): Likewise.
96194         * modules/realloc (Makefile.am): Likewise.
96195         * modules/regex (Makefile.am): Likewise.
96196         * modules/rename (Makefile.am): Likewise.
96197         * modules/rename-dest-slash (Makefile.am): Likewise.
96198         * modules/rijndael (Makefile.am): Likewise.
96199         * modules/rmdir (Makefile.am): Likewise.
96200         * modules/rpmatch (Makefile.am): Likewise.
96201         * modules/safe-read (Makefile.am): Likewise.
96202         * modules/safe-write (Makefile.am): Likewise.
96203         * modules/same (Makefile.am): Likewise.
96204         * modules/save-cwd (Makefile.am): Likewise.
96205         * modules/savedir (Makefile.am): Likewise.
96206         * modules/setenv (Makefile.am): Likewise.
96207         * modules/settime (Makefile.am): Likewise.
96208         * modules/sha1 (Makefile.am): Likewise.
96209         * modules/sig2str (Makefile.am): Likewise.
96210         * modules/snprintf (Makefile.am): Likewise.
96211         * modules/stdlib-safer (Makefile.am): Likewise.
96212         * modules/stpcpy (Makefile.am): Likewise.
96213         * modules/stpncpy (Makefile.am): Likewise.
96214         * modules/strcase (Makefile.am): Likewise.
96215         * modules/strcasestr (Makefile.am): Likewise.
96216         * modules/strchrnul (Makefile.am): Likewise.
96217         * modules/strcspn (Makefile.am): Likewise.
96218         * modules/strdup (Makefile.am): Likewise.
96219         * modules/strerror (Makefile.am): Likewise.
96220         * modules/strftime (Makefile.am): Likewise.
96221         * modules/strndup (Makefile.am): Likewise.
96222         * modules/strnlen (Makefile.am): Likewise.
96223         * modules/strpbrk (Makefile.am): Likewise.
96224         * modules/strsep (Makefile.am): Likewise.
96225         * modules/strstr (Makefile.am): Likewise.
96226         * modules/strtod (Makefile.am): Likewise.
96227         * modules/strtoimax (Makefile.am): Likewise.
96228         * modules/strtok_r (Makefile.am): Likewise.
96229         * modules/strtol (Makefile.am): Likewise.
96230         * modules/strtoll (Makefile.am): Likewise.
96231         * modules/strtoul (Makefile.am): Likewise.
96232         * modules/strtoull (Makefile.am): Likewise.
96233         * modules/strtoumax (Makefile.am): Likewise.
96234         * modules/strverscmp (Makefile.am): Likewise.
96235         * modules/time_r (Makefile.am): Likewise.
96236         * modules/timegm (Makefile.am): Likewise.
96237         * modules/tmpfile-safer (Makefile.am): Likewise.
96238         * modules/unistd-safer (Makefile.am): Likewise.
96239         * modules/unlinkdir (Makefile.am): Likewise.
96240         * modules/userspec (Makefile.am): Likewise.
96241         * modules/utime (Makefile.am): Likewise.
96242         * modules/utimecmp (Makefile.am): Likewise.
96243         * modules/utimens (Makefile.am): Likewise.
96244         * modules/vasnprintf (Makefile.am): Likewise.
96245         * modules/vasprintf (Makefile.am): Likewise.
96246         * modules/vsnprintf (Makefile.am): Likewise.
96247         * modules/xalloc (Makefile.am): Likewise.
96248         * modules/xgetcwd (Makefile.am): Likewise.
96249         * modules/xnanosleep (Makefile.am): Likewise.
96250         * modules/xreadlink (Makefile.am): Likewise.
96251         * modules/xstrtod (Makefile.am): Likewise.
96252         * modules/xstrtol (Makefile.am): Likewise.
96253         * modules/xstrtold (Makefile.am): Likewise.
96254         * modules/yesno (Makefile.am): Likewise.
96256 2006-10-12  Jim Meyering  <jim@meyering.net>
96258         * m4/getloadavg.m4: Revert the change below.
96260         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96261         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96262         fail with a symlink, which is what coreutils' ./bootstrap now
96263         creates by default.
96265 2006-10-12  Bruno Haible  <bruno@clisp.org>
96267         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96268         mingw.
96269         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96270         MSVC and mingw explicitly.
96272 2006-10-11  Simon Josefsson  <jas@extundo.com>
96273             Bruno Haible  <bruno@clisp.org>
96275         Add support for multiple gnulib-tool invocations in the scope of a
96276         single configure.ac file.
96277         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96278         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96279         with the same contents as the _LIBADD variable.
96280         (func_emit_initmacro_start, func_emit_initmacro_end,
96281         func_emit_initmacro_done): New functions.
96282         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96283         gl_LIBOBJS and gl_LTLIBOBJS.
96285 2006-10-11  Bruno Haible  <bruno@clisp.org>
96287         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96288         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96289         autoreconf. Instead, invoke autopoint explicitly but move back the
96290         *.m4 files from gnulib.
96292 2006-10-11  Bruno Haible  <bruno@clisp.org>
96294         * gnulib-tool (func_usage): Make module names after --create-testdir
96295         optional.
96296         (func_create_testdir): If no module was specified, use nearly all
96297         modules.
96299 2006-10-12  Jim Meyering  <jim@meyering.net>
96301         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96302         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96303         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96304         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96305         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96306         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96307         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96308         (fts_set_stat_required): New function.
96309         (fts_open): Defer the calls to fts_stat, if possible or requested.
96310         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96311         into fts_stat itself.
96312         (fts_read): Perform any required (deferred) fts_stat call.
96313         (fts_build): Likewise, for the directory we're about to open and read.
96314         In the readdir loop, carefully decide whether each entry will require
96315         an eventual call to fts_stat, using dirent.d_type info if available.
96316         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96317         a command line argument into this function.  Update all callers.
96318         Map a return value of FTS_DOT to FTS_D for a command line argument.
96319         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96320         Thanks to Miklos Szeredi for his tenacity and for the initial
96321         bug report about "find" failing on a FUSE-based file system.
96323         * lib/fts.c (fts_open): Use consistent indentation.
96325 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96327         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96328         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96329         reported by Jim Meyering.  All uses of cache variables renamed
96330         to match Autoconf's.
96331         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96332         the other one.
96334         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96335         Fix misspelling in diagnostic.
96337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96339         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96340         defined.  Problem reported by Matthew Woehlke.
96342         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96343         Add support for Tandem NonStop R series.
96344         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96345         Use new macro.
96347         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96348         (has_trailing_slash): Omit size arg; all callers changed.
96349         Omit 'inline', since it doesn't help performance and we'd
96350         need to configure it.
96351         Don't count //, ///, etc. as having a trailing slash.
96352         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96353         (rpl_rename_dest_slash): On failure, use rename's errno rather
96354         than (in some cases) an incorrect or junk errno.
96355         Simplify code by removing need to compute length; this does
96356         cause it to make two passes instead of one over the file name,
96357         but it's worth it.
96359         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96360         change, since Autoconf's version may no longer be appropriate now
96361         that we are using CVS Autoconf's version.  Add support for Tandem.
96363 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96364             Bruno Haible  <bruno@clisp.org>
96366         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96367         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96368         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96369         gl_AC_TYPE_LONG_LONG.
96371         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96372         instead of HAVE_LONG_LONG.
96373         * lib/printf-args.c (printf_fetchargs): Likewise.
96374         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96375         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96376         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96377         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96378         gl_AC_TYPE_LONG_LONG.
96380 2006-10-11  Bruno Haible  <bruno@clisp.org>
96382         * m4/longlong.m4: Add comments.
96383         * m4/ulonglong.m4: Likewise.
96385 2006-10-10  Bruno Haible  <bruno@clisp.org>
96387         Make it possible to #define stpcpy, strdup to aliases.
96388         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96389         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96391 2006-10-10  Bruno Haible  <bruno@clisp.org>
96393         Make it possible to #define gcd to an alias.
96394         * lib/gcd.c: Include config.h.
96396 2006-10-10  Bruno Haible  <bruno@clisp.org>
96398         Make it possible to #define c_isascii to an alias.
96399         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96400         defined. Undefine the macros before defining them, to avoid gcc
96401         warnings.
96402         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96403         define NO_C_CTYPE_MACROS early.
96405 2006-10-10  Bruno Haible  <bruno@clisp.org>
96407         Make it possible to #define set_program_name to an alias.
96408         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96409         ENABLE_RELOCATABLE early.
96411 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96413         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96414         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96415         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96416         More generally, don't assume that 64-bit signed int is available
96417         if unsigned int is, and vice versa.
96418         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96419         unsigned symbols, not on their signed counterparts.
96420         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96421         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96422         (UINT64_C, UINTMAX_C):
96423         Likewise.
96424         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96425         unsigned counterparts.
96426         (Have_long_long, Unsigned): New macros.
96427         (Int): Renamed from INT.
96428         (strtoimax): Use the new macros.
96429         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96430         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96431         * modules/inttypes (inttypes.h): Substitute
96432         HAVE_UNSIGNED_LONG_LONG_INT.
96433         * modules/stdint (stdint.h): Likewise.
96434         (Files): Add m4/ulonglong.m4.
96436 2006-10-10  Bruno Haible  <bruno@clisp.org>
96438         Fix a gcc -Wshadow warning.
96439         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96440         to 'bucket'.
96441         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96442         gl_linked_indexof_from_to): Likewise.
96443         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96444         Likewise.
96445         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96446         Likewise.
96447         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96448         Reported by Eric Blake.
96450 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96452         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96453         for NetBSD.  Problem reported by Bruno Haible.
96455 2006-10-09  Jim Meyering  <jim@meyering.net>
96457         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96458         Patch from Bruno Haible.
96460 2006-10-09  Jim Meyering  <jim@meyering.net>
96462         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96463         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96464         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96466 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96468         Don't include <config.h> twice; this doesn't work in some cases,
96469         e.g., when config.h has "#define intmax_t long long int" and
96470         we include <config.h>, <inttypes.h>, <config.h> in that order.
96471         Problem reported by Matthew Woehlke in:
96472         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96473         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96474         * lib/fts-cycle.c: Don't include config.h.
96475         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96476         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96477         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96478         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96479         inttypes.h.
96480         * lib/xstrtoumax.c: Likewise.
96481         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96482         __strtol and the like, so that this module is more like its siblings.
96483         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96484         Remove; no longer needed now that we assume gnulib inttypes.h.
96486 2006-10-08  Bruno Haible  <bruno@clisp.org>
96488         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96489         option.
96491 2006-10-07  Jim Meyering  <jim@meyering.net>
96493         * modules/inttypes (inttypes.h): Revert what seems to have been
96494         an inadvertent part of today's change: use "|", not "/" in the
96495         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96497 2006-10-07  Bruno Haible  <bruno@clisp.org>
96499         * modules/sublist: New file.
96501 2006-10-07  Bruno Haible  <bruno@clisp.org>
96503         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96504         * modules/argz (argz.h): Likewise.
96505         * modules/arpa_inet (arpa/inet.h): Likewise.
96506         * modules/byteswap (byteswap.h): Likewise.
96507         * modules/configmake (configmake.h): Likewise.
96508         * modules/fcntl (fcntl.h): Likewise.
96509         * modules/fnmatch (fnmatch.h): Likewise.
96510         * modules/getopt (getopt.h): Likewise.
96511         * modules/glob (glob.h): Likewise.
96512         * modules/inttypes (inttypes.h): Likewise.
96513         * modules/netinet_in (netinet/in.h): Likewise.
96514         * modules/poll (poll.h): Likewise.
96515         * modules/stdbool (stdbool.h): Likewise.
96516         * modules/stdint (stdint.h): Likewise.
96517         * modules/sys_select (sys/select.h): Likewise.
96518         * modules/sys_socket (sys/socket.h): Likewise.
96519         * modules/sys_stat (sys/stat.h): Likewise.
96520         * modules/sysexits (sysexits.h): Likewise.
96521         * modules/unistd (unistd.h): Likewise.
96522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96523         Add a "DO NOT EDIT" comment to the generated file.
96524         (func_import): Likewise for gnulib-comp.m4.
96526 2006-10-07  Bruno Haible  <bruno@clisp.org>
96528         * lib/gl_sublist.h: New file.
96529         * lib/gl_sublist.c: New file.
96531 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96533         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96534         name (relative to the original working directory) and the file
96535         name component (relative to the temporary working directory).  All
96536         callers changed.
96537         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96538         * lib/mkdir-p.c (make_dir_parents): Likewise.
96539         * lib/mkdir-p.h (make_dir_parents): Likewise.
96541 2006-10-06  Eric Blake  <ebb9@byu.net>
96543         Define several macros for use by the clean-temp module.
96544         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96545         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96546         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96548         * lib/clean-temp.h (close_stream_temp): New declaration.
96549         * lib/clean-temp.c (includes): Pull in headers according to what
96550         other modules are in use.
96551         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96553 2006-10-06  Bruno Haible  <bruno@clisp.org>
96555         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96556         instead of fopen, fwriteerror.
96558 2006-10-06  Bruno Haible  <bruno@clisp.org>
96560         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96561         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96562         int.
96563         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96564         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96565         Return an error indicator.
96566         Suggested by Eric Blake.
96568 2006-10-06  Bruno Haible  <bruno@clisp.org>
96570         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96571         Reported by Eric Blake.
96573 2006-10-06  Bruno Haible  <bruno@clisp.org>
96575         * modules/closeout (Description): Mention stderr too.
96577 2006-10-06  Bruno Haible  <bruno@clisp.org>
96578         and Paul Eggert  <eggert@cs.ucla.edu>
96580         * lib/closeout.c (close_stdout): Also close stderr.
96581         * lib/closeout.h: Update comment.
96583 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96585         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96586         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96587         * lib/dirchownmod.c: Include lchown.h.
96588         * lib/lchown.c: Don't include files that lchown.h now includes.
96589         Don't declare chown, since lchown.h now does that.
96590         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96591         (lchown): Define to rpl_chown if lchown is declared but
96592         does not exist.  Declare using a prototype if lchown is not
96593         declared.  Add a copyright notice.
96594         * lib/mkstemp.h: Include <unistd.h>.
96595         * lib/openat.c: Include lchown.h.
96597         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96598         we now test for that separately.
96599         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96600         rather than O_NOFOLLOW, when testing whether it's possible to
96601         avoid a race condition reliably.
96602         * lib/savewd.c (savewd_chdir): Likewise.
96604         Remove macros that are no longer needed now that stdint.h is
96605         reliable.
96606         * lib/fsusage.c (UINTMAX_MAX): Remove.
96607         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96608         * lib/utimecmp.c (SIZE_MAX): Remove.
96610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96612         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96613         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96614         O_NOATIME works.
96616 2006-10-05  Bruno Haible  <bruno@clisp.org>
96618         * lib/gl_list.h (gl_sortedlist_search_from_to,
96619         gl_sortedlist_indexof_from_to): New declarations.
96620         (gl_list_implementation): New fields sortedlist_search_from_to,
96621         sortedlist_indexof_from_to.
96622         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96623         inline functions.
96624         * lib/gl_list.c (gl_sortedlist_search_from_to,
96625         gl_sortedlist_indexof_from_to): New functions.
96626         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96627         function.
96628         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96629         (gl_array_sortedlist_search_from_to): New function.
96630         (gl_array_list_implementation): Update.
96631         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96632         function.
96633         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96634         (gl_carray_sortedlist_search_from_to): New function.
96635         (gl_carray_list_implementation): Update.
96636         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96637         gl_linked_sortedlist_indexof_from_to): New functions.
96638         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96639         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96640         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96641         gl_tree_sortedlist_indexof_from_to): New functions.
96642         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96643         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96644         Update.
96645         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96646         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96647         Update.
96649 2006-10-05  Bruno Haible  <bruno@clisp.org>
96651         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96652         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96653         (struct gl_list_implementation): Add fields search_from_to,
96654         indexof_from_to. Remove fields search, indexof.
96655         (gl_list_search): Use the search_from_to method.
96656         (gl_list_search_from, gl_list_search_from_to): New functions.
96657         (gl_list_indexof): Use the indexof_from_to method.
96658         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96659         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96660         (gl_list_search_from, gl_list_search_from_to): New functions.
96661         (gl_list_indexof): Use the indexof_from_to method.
96662         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96663         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96664         gl_array_indexof. Add start_index, end_index arguments.
96665         (gl_array_search_from_to): Renamed from gl_array_search. Add
96666         start_index, end_index arguments.
96667         (gl_array_remove, gl_array_list_implementation): Update.
96668         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96669         gl_carray_indexof. Add start_index, end_index arguments.
96670         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96671         start_index, end_index arguments.
96672         (gl_carray_remove, gl_carray_list_implementation): Update.
96673         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96674         gl_linked_search. Add start_index, end_index arguments.
96675         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96676         start_index, end_index arguments.
96677         (gl_linked_remove): Update.
96678         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96679         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96680         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96681         field to 'size_t'.
96682         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96683         gl_tree_search. Add start_index, end_index arguments.
96684         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96685         start_index, end_index arguments.
96686         (gl_tree_remove): Update.
96687         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96688         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96689         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96690         function.
96691         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96692         gl_tree_search. Add start_index, end_index arguments.
96693         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96694         start_index, end_index arguments.
96695         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96696         Update.
96697         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96699 2006-10-05  Bruno Haible  <bruno@clisp.org>
96701         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96703         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96704         fwriteerror_temp): New declarations.
96705         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96706         (descriptors): New variable.
96707         (cleanup): First, close the descriptors.
96708         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96709         fclose_temp, fwriteerror_temp): New functions.
96711 2006-10-04  Jim Meyering  <jim@meyering.net>
96713         * lib/fts.c (fts_open): Tiny comment change.
96715 2006-10-04  Bruno Haible  <bruno@clisp.org>
96717         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96718         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96719         gl_LOCK_BODY.
96720         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96721         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96722         gl_LOCK_EARLY_BODY.
96723         (gl_LOCK): Require gl_LOCK_BODY.
96725 2006-10-04  Bruno Haible  <bruno@clisp.org>
96727         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96728         (gl_oset_search_atleast): New declaration.
96729         (struct gl_oset_implementation): Add field 'search_atleast'.
96730         (gl_oset_search_atleast): New inline function.
96731         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96732         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96733         (gl_array_oset_implementation): Update.
96734         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96735         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96736         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96738 2006-10-04  Bruno Haible  <bruno@clisp.org>
96740         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96742 2006-10-03  Bruno Haible  <bruno@clisp.org>
96744         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96745         from gl_avltreehash_list_implementation.
96747 2006-10-03  Bruno Haible  <bruno@clisp.org>
96749         * lib/gl_oset.c (gl_oset_add): Fix return type.
96751 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96753         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96755 2006-10-02  Eric Blake  <ebb9@byu.net>
96757         * modules/strnlen (Depends-on): Add extensions.
96759 2006-10-02  Eric Blake  <ebb9@byu.net>
96761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96762         definition in 2.60+.
96764 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96766         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96767         checks.
96769 2006-10-02  Bruno Haible  <bruno@clisp.org>
96771         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96772         to the AUTOMAKE_OPTIONS.
96773         Reported by Jim Meyering.
96775 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96777         Work around bug in Solaris 10 /proc file system:
96778         /proc/self/fd/NNN/.. isn't the parent directory of
96779         the directory whose file descriptor is NNN.  This needs to
96780         be worked around at run time, not compile time, since a
96781         program might be built on Solaris 8, where things work, and
96782         run on Solaris 10.
96783         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96784         to use the following interface instead:
96785         (OPENAT_BUFFER_SIZE): New macro.
96786         (openat_proc_name): New function.
96787         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96788         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96789         Likewise.
96790         * lib/openat-proc.c: New file.
96791         * modules/openat (Files): Add lib/openat-proc.c.
96792         (Depends-on): Add same-inode, stdbool.
96793         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96795 2006-09-29  Bruno Haible  <bruno@clisp.org>
96797         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96798         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96799         argument. Set stdout_closed before testing for ferror, not after.
96800         (fwriteerror, fwriteerror_no_ebadf): New functions.
96802 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96804         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96806 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96808         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96809         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96811 2006-09-28  Jim Meyering  <jim@meyering.net>
96813         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96814         Include <unistd.h>.
96816 2006-09-28  Bruno Haible  <bruno@clisp.org>
96818         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96819         * modules/linkedhash-list (Depends-on): Likewise.
96820         * modules/rbtreehash-list (Depends-on): Likewise.
96822 2006-09-28  Bruno Haible  <bruno@clisp.org>
96824         * lib/strndup.h: Simplify the redefinition of strndup.
96825         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96828 2006-09-28  Bruno Haible  <bruno@clisp.org>
96830         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96831         * lib/gl_linkedhash_list.c: Likewise.
96832         * lib/gl_rbtreehash_list.c: Likewise.
96834 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96836         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96837         getaddrinfo.
96839         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96840         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96841         it causes <stdio_ext.h> to cause a compile-time error.
96842         Problem reported by Nelson H. F. Beebe.
96843         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96844         of HAVE_DECL___PENDING.
96846         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96848         declaration.
96850 2006-09-27  Jim Meyering  <jim@meyering.net>
96852         This file could end up with a definition for a function
96853         named __strndup, rather than rpl_strndup on a system with
96854         incomplete weak_alias support.
96855         * lib/strndup.c (strndup): Rename from __strndup.
96856         Remove #defines that used to map __strndup to strndup.
96857         Don't use K&R prototypes.
96858         Remove LIBC-related code, since this file is not sync'd with glibc.
96859         * lib/strndup.h: Revamp, accordingly.
96860         * m4/strndup.m4: Modernize.
96862 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96864         * modules/savewd (Depends-on): Add 'raise'.
96865         * lib/savewd.c: Include <signal.h>, for 'raise'.
96867 2006-09-26  Jim Meyering  <jim@meyering.net>
96869         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96870         when we detect Darwin 8.7.0's acl_get_file bug.
96871         Rearrange to perform the new (below) run-test while $LIBS
96872         contains any acl-related library.  Set USE_ACL at the end.
96873         (gl_ACL_GET_FILE): New function.
96875 2006-09-26  Eric Blake  <ebb9@byu.net>
96877         * lib/verror.c: Include <config.h> unconditionally.
96879 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96881         * modules/clock-time (Maintainer): Add self.
96882         * modules/getlogin_r (Depends-on): Add extensions.
96884 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96886         * modules/clock-time: New module.
96887         * modules/nanosleep (Depends-on): Add clock-time.
96888         * modules/gethrxtime (Depends-on): Likewise.
96889         * modules/gettime (Depends-on): Likewise.
96890         * modules/settime (Depends-on): Likewise.
96892         * modules/fts-lgpl: Depend on openat.
96893         * modules/mkancesdirs: Depend on savewd.
96894         * modules/mkdir-p: Likewise.
96896 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96898         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96900         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96901         `gl_have_arbitrary_file_name_length_limit' to
96902         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96903         actually works between configure runs.
96905 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96906             Bruno Haible  <bruno@clisp.org>
96908         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96910 2006-09-25  Jim Meyering  <jim@meyering.net>
96912         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96913         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96915 2006-09-25  Eric Blake  <ebb9@byu.net>
96917         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96918         exec's in 2006-09-18 patch when shuffling fds.
96920 2006-09-25  Bruno Haible  <bruno@clisp.org>
96922         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96923         Reported by Jim Meyering.
96925 2006-09-24  Jim Meyering  <jim@meyering.net>
96927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96928         compare a pointer against a literal "0".  That caused failures with
96929         at least HP-UX's hpcc.
96931 2006-09-22  Simon Josefsson  <jas@extundo.com>
96933         * modules/gc-sha1:
96934         * modules/gc-md4:
96935         * modules/gc-hmac-sha1:
96936         * modules/gc-hmac-md5:
96937         * modules/gc-des:
96938         * modules/gc-arcfour: Distribute more files.
96940 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96942         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96943         (gl_linked_iterator_from_to): Initialize struct completely.
96944         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96945         (gl_tree_iterator_from_to): Likewise
96946         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96947         * lib/gl_array_list.c [lint] (gl_array_iterator)
96948         (gl_array_iterator_from_to): Likewise.
96949         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96950         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96951         (gl_carray_iterator_from_to): Likewise.
96953         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96954         * lib/md4.c (md4_process_block): Remove unused variable.
96955         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96956         parentheses for clarity.
96958 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96960         * modules/bison-i18n (Depends-on): Add gettext.
96962 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96964         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96965         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96966         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96967         also add missing comma that caused broken test.
96968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96969         stdlib.h, for `abort'.
96970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96971         variables.
96972         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96973         include unistd.h if present, for `rmdir'.
96974         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96975         variables.
96976         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96977         in the process include standard headers for prototypes.
96978         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96979         gets declared on GNU/Linux.
96980         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96981         unistd.h, for `rmdir'.
96982         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96985         always true.
96986         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96988         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96992         * gnulib-tool (func_version): Create output all at once.  This
96993         may help avoid triggering unnecessary SIGPIPEs, and at any
96994         rate it doesn't hurt.
96996 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96997             Bruno Haible  <bruno@clisp.org>
96999         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
97000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
97001         * m4/signed.m4 (bh_C_SIGNED): Likewise.
97003         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
97004         (gl_FUNC_VASPRINTF): Invoke it.
97006 2006-09-22  Bruno Haible  <bruno@clisp.org>
97008         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
97009         getloadavg.c as first argument.
97011 2006-09-22  Bruno Haible  <bruno@clisp.org>
97013         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
97014         at the beginning of the gl_INIT macro.
97015         * modules/getloadavg (configure.ac): Pass $gl_source_base to
97016         gl_GETLOADAVG.
97018 2006-09-22  Bruno Haible  <bruno@clisp.org>
97020         * gnulib-tool (func_create_megatestdir): Don't include the config-h
97021         module.
97022         Suggested by Ralf Wildenhues.
97024 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97026         Import this patch from libc:
97028         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
97030         * lib/regex_internal.c (re_string_reconstruct): Handle
97031         offset < pstr->valid_raw_len && pstr->offsets_needed case.
97032         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
97033         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
97034         re_string_context_at.
97036         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
97037         now requires it.
97038         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
97039         gl_REGEX now does it for us.
97040         (gl_REGEX): Add test taken from
97041         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
97043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
97044         Check that large offsets work.  Modernize Autoconf usages.
97045         Prefer "yes" to mean a good thing rather than a bad.
97046         Don't put "#define mkstemp" in config.h, as this might interfere
97047         with standard system headers that "#define mkstemp mkstemp64".
97049         * modules/mkstemp (Depends-on): Add extensions, so that
97050         mkstemp is visible on some platforms.
97051         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
97052         (Include): Change to "mkstemp.h" from <stdlib.h>.
97053         (Files): Add mkstemp.h.
97055         * lib/mkstemp.h: New file, since some standard headers
97056         #define mkstemp.
97057         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
97058         Include "mkstemp.h".
97059         Make the _LIBC code resemble glibc original more,
97060         e.g., use K&R style.
97061         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
97062         (mkstemp): Remove, since mkstemp.h does this for us.
97063         * lib/stdlib--.h: Include mkstemp.h.
97065         Import this patch from libc:
97067         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97069         * lib/tempname.c (__gen_tempname): Change attempts_min
97070         into a macro.  Use preprocessor to decide how to initialize
97071         attempts [Coverity CID 67].
97073 2006-09-20  Bruno Haible  <bruno@clisp.org>
97075         * lib/mkdtemp.c: Import from libc.
97076         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97077                 * sysdeps/posix/tempname.c (__gen_tempname): Change
97078                 attempts_min into a macro.  Use preprocessor to decide how to
97079                 initialize attempts [Coverity CID 67].
97080         2001-11-27  Paul Eggert  <eggert@twinsun.com>
97081                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
97082                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
97084 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97086         * gnulib-tool (func_exit): New function, to allow to pass the
97087         exit status portably through the trap.  Use everywhere.
97088         (--help, --version): Signal a write error.
97089         (trap): catch SIGPIPE, for write errors.
97090         Exit at the end of the trap, with the correct exit status.
97092 2006-09-19  Karl Berry  <karl@gnu.org>
97094         * doc/gnulib.texi: note about the license texinfo files.
97096 2006-09-19  Eric Blake  <ebb9@byu.net>
97098         * gnulib-tool: Avoid space-tab.
97100 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97102         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
97103         that prevented coreutils 6.1 from building.  Problem reported
97104         by Petter Reinholdtsen.
97106 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97108         * gnulib-tool (avoidlist): Fix typo that broke options like
97109         --avoid=lock that are used by coreutils bootstrap.
97111 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
97113         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
97114         more systematically.
97116 2006-09-18  Jim Meyering  <jim@meyering.net>
97118         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
97120 2006-09-18  Bruno Haible  <bruno@clisp.org>
97122         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97124 2006-09-18  Bruno Haible  <bruno@clisp.org>
97126         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97127         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97128         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97129         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97130         * m4/gettext.m4: Require autoconf >= 2.52.
97131         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97132         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97133         of gl_cv_header_inttypes_h.
97135 2006-09-18  Bruno Haible  <bruno@clisp.org>
97137         * lib/javaversion.c: Include configmake.h.
97139 2006-09-18  Bruno Haible  <bruno@clisp.org>
97141         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97142         avoid that the while loops be executed in a subshell.
97144 2006-09-18  Bruno Haible  <bruno@clisp.org>
97146         * MODULES.html.sh (func_module): Break long lines.
97147         Suggested by Bruce Korb <bkorb@gnu.org>.
97149 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97151         Speed up by a factor of 1.12.
97152         * gnulib-tool (nl): New variable.
97153         (func_import): Rewrite include directive extraction to only read each
97154         directive once.
97156 2006-09-17  Bruno Haible  <bruno@clisp.org>
97158         * modules/javaversion (Makefile.am): Remove DEFS setting.
97159         (Depends-on): Add configmake, for PKGDATADIR definition.
97161 2006-09-17  Bruno Haible  <bruno@clisp.org>
97163         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97165 2006-09-17  Bruno Haible  <bruno@clisp.org>
97167         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97168         (func_modules_transitive_closure, func_modules_add_dummy,
97169         func_modules_to_filelist, func_import, func_create_testdir,
97170         func_create_megatestdir, ...): Use it wherever possible.
97171         Suggested by Ralf Wildenhues.
97173 2006-09-16  Karl Berry  <karl@gnu.org>
97175         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97176         to avoid sectioning errors.
97177         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97178         [ifinfo]: blank line after @center-ed titles.
97179         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97180         Spell FSF address consistently with others.
97181         (These changes approved by rms.)
97183 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97185         Speed up by a factor of 1.61.
97186         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97187         already checked module names again.
97189 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97191         Speed up by a factor of 1.13.
97192         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97193         for new_files, and the input to func_add_or_update.
97195 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97197         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97198         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97200 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97202         * modules/mkancesdirs (Depends-on): Add fcntl.
97203         * modules/savewd: New file.
97204         * MODULES.html.sh (File system functions): Add savewd.
97206         * modules/configmake (Makefile.am): Add support for the
97207         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97209 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97211         * m4/savewd.m4: New file.
97213 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97215         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97216         (dirchownmod): New arg FD.  All callers changed.
97217         Use FD rather than opening the directory ourself, as opening is
97218         now the caller's responsibility.
97219         * lib/dirchownmod.h: Likewise.
97220         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97221         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97222         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97223         (test_dir): Remove.
97224         (mkancesdirs): Return length of prefix of FILE that has already
97225         been made, or -2 if there is a child doing the work.  Redo
97226         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97227         ".", and treat ".." specially since it might stray back into
97228         already-created areas.  Use a subprocess if necessary.  New arg
97229         WD; all users changed.  MAKE_DIR function should now return 1
97230         if it creates a directory that is not readable.  Return -2 if
97231         a child process is spun off.
97232         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97233         Adjust signature to match code.
97234         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97235         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97236         all users changed.
97237         * lib/savewd.c, lib/savewd.h: New files.
97239 2006-09-15  Jim Meyering  <jim@meyering.net>
97241         * modules/rename-dest-slash: New module.
97242         * MODULES.html.sh (posix_compat): Add it here.
97244         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97246 2006-09-15  Jim Meyering  <jim@meyering.net>
97248         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97249         file.
97251         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97253 2006-09-15  Jim Meyering  <jim@meyering.net>
97255         * lib/rename-dest-slash.c (has_trailing_slash): Use
97256         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97257         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97258         test before testing whether SRC is a directory.
97259         Suggestions from Bruno Haible.
97261         Avoid a warning about an unused variable.
97262         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97263         into the #ifdef block where it's used.
97265         * lib/rename-dest-slash.c: New file.
97267 2006-09-14  Bruno Haible  <bruno@clisp.org>
97269         * lib/allocsa.c: Include <config.h> unconditionally.
97270         * lib/asnprintf.c: Likewise.
97271         * lib/asprintf.c: Likewise.
97272         * lib/c-strcasecmp.c: Likewise.
97273         * lib/c-strcasestr.c: Likewise.
97274         * lib/c-strncasecmp.c: Likewise.
97275         * lib/c-strstr.c: Likewise.
97276         * lib/classpath.c: Likewise.
97277         * lib/clean-temp.c: Likewise.
97278         * lib/concatpath.c: Likewise.
97279         * lib/copy-file.c: Likewise.
97280         * lib/csharpcomp.c: Likewise.
97281         * lib/csharpexec.c: Likewise.
97282         * lib/execute.c: Likewise.
97283         * lib/fatal-signal.c: Likewise.
97284         * lib/findprog.c: Likewise.
97285         * lib/fwriteerror.c: Likewise.
97286         * lib/gl_array_list.c: Likewise.
97287         * lib/gl_array_oset.c: Likewise.
97288         * lib/gl_avltree_list.c: Likewise.
97289         * lib/gl_avltree_oset.c: Likewise.
97290         * lib/gl_avltreehash_list.c: Likewise.
97291         * lib/gl_carray_list.c: Likewise.
97292         * lib/gl_linked_list.c: Likewise.
97293         * lib/gl_linkedhash_list.c: Likewise.
97294         * lib/gl_list.c: Likewise.
97295         * lib/gl_oset.c: Likewise.
97296         * lib/gl_rbtree_list.c: Likewise.
97297         * lib/gl_rbtree_oset.c: Likewise.
97298         * lib/gl_rbtreehash_list.c: Likewise.
97299         * lib/imaxabs.c: Likewise.
97300         * lib/imaxdiv.c: Likewise.
97301         * lib/javacomp.c: Likewise.
97302         * lib/javaexec.c: Likewise.
97303         * lib/javaversion.c: Likewise.
97304         * lib/linebreak.c: Likewise.
97305         * lib/localcharset.c: Likewise.
97306         * lib/lock.c: Likewise.
97307         * lib/mbchar.c: Likewise.
97308         * lib/mbswidth.c: Likewise.
97309         * lib/mkdtemp.c: Likewise.
97310         * lib/pipe.c: Likewise.
97311         * lib/printf-args.c: Likewise.
97312         * lib/printf-parse.c: Likewise.
97313         * lib/progname.c: Likewise.
97314         * lib/progreloc.c: Likewise.
97315         * lib/readlink.c: Likewise.
97316         * lib/sh-quote.c: Likewise.
97317         * lib/stpcpy.c: Likewise.
97318         * lib/stpncpy.c: Likewise.
97319         * lib/strcasecmp.c: Likewise.
97320         * lib/strcasestr.c: Likewise.
97321         * lib/strcspn.c: Likewise.
97322         * lib/striconv.c: Likewise.
97323         * lib/strncasecmp.c: Likewise.
97324         * lib/strnlen1.c: Likewise.
97325         * lib/strstr.c: Likewise.
97326         * lib/strtok_r.c: Likewise.
97327         * lib/tls.c: Likewise.
97328         * lib/tmpdir.c: Likewise.
97329         * lib/unicodeio.c: Likewise.
97330         * lib/unsetenv.c: Likewise.
97331         * lib/vasnprintf.c: Likewise.
97332         * lib/vasprintf.c: Likewise.
97333         * lib/wait-process.c: Likewise.
97334         * lib/xallocsa.c: Likewise.
97335         * lib/xsetenv.c: Likewise.
97336         * lib/xstriconv.c: Likewise.
97338 2006-09-13  Simon Josefsson  <jas@extundo.com>
97340         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97341         that internally, suggested by Ralf Wildenhues
97342         <Ralf.Wildenhues@gmx.de>.
97344 2006-09-13  Simon Josefsson  <jas@extundo.com>
97346         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97347         @LIBOBJS@.
97348         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97350 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97352         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97353         longer worry about uses that don't define HAVE_CONFIG_H.
97354         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97355         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97356         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97357         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97358         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97359         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97360         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97361         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97362         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97363         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97364         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97365         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97366         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97367         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97368         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97369         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97370         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97371         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97372         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97373         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97374         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97375         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97376         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97377         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97378         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97379         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97380         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97381         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97382         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97383         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97384         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97385         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97386         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97387         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97388         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97389         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97390         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97391         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97392         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97393         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97394         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97395         Likewise.
97397 2006-09-13  Eric Blake  <ebb9@byu.net>
97399         * lib/getopt.c: Fix typo in last commit.
97401 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97403         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97404         dgettext.
97406 2006-09-12  Jim Meyering  <jim@meyering.net>
97408         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97409         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97410         Reported by Nelson H. F. Beebe.
97412 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97414         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97415         program_invocation_name and program_invocation_short_name are
97416         initialized.
97417         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97418         and program_invocation_short_name to argp.h, so they are visible
97419         to user programs.
97420         * lib/argp.h: Likewise
97422 2006-09-10  Bruno Haible  <bruno@clisp.org>
97424         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97425         m4/inttypes_h.m4, m4/uintmax_t.m4.
97427 2006-09-10  Bruno Haible  <bruno@clisp.org>
97429         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97430         gl_AC_TYPE_UINTMAX_T.
97432 2006-09-10  Bruno Haible  <bruno@clisp.org>
97434         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97436 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97438         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97439         convention.  Text proposed by Bruno Haible.
97440         (struct argp_option): Document the use of N_() wrappers.
97442         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97443         '\v', and translate the two parts separately, instead of feeding
97444         the whole string to gettext.  This allows to exclude
97445         '\v' from the strings visible to the translator by writing doc
97446         strings as N_("..") "\v" N_("..").
97448 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97450         * config/srclist.txt: Undo latest change; the bug was fixed.
97452 2006-09-09  Bruno Haible  <bruno@clisp.org>
97454         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97455         assignments if building a library without libtool.
97456         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97457         in func_emit_lib_Makefile_am.
97458         (func_import): When building a static library libfoo.a, arrange to
97459         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97460         (func_create_testdir): Likewise.
97461         * modules/gc (configure.ac, Makefile.am): If building statically,
97462         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97463         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97464         * modules/striconv (configure.ac, Makefile.am): Likewise.
97465         Based on a suggestion by Ralf Wildenhues.
97467 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97469         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97470         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97471         Also:
97473         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97474         Add year_2050_test to catch glibc bug 2821
97475         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97477         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97478         Prefer #ifdef to #if.
97480         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97481         Return from 'main' instead of calling 'exit'.
97483 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97485         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97486         returned the maximum time_t value rather than (time_t) -1.
97487         Problem originally reported by William Bardwell
97488         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97490         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97491         Moved to here ...
97492         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97493         ... from here.
97495 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97497         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97498         2821 is fixed.
97500 2006-09-08  Jim Meyering  <jim@meyering.net>
97502         Don't make generated files read-only.  That would bother too many
97503         people.  However, do retain the ability to work when targets are
97504         read-only: remove the destination and temporary files before writing
97505         them (when generated via sed or echo), or by using the -f option for
97506         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97507         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97508         * modules/byteswap, modules/configmake, modules/fcntl:
97509         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97510         * modules/localcharset, modules/netinet_in, modules/poll:
97511         * modules/stdbool, modules/stdint, modules/sys_select:
97512         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97514 2006-09-08  Jim Meyering  <jim@meyering.net>
97516         Avoid new build failure on FreeBSD 6.0.
97517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97518         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97519         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97521 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97525 2006-09-07  Jim Meyering  <jim@meyering.net>
97527         Fix global typo in last change: use chmod u-w, not chmod u-x.
97528         Spotted by Paul Eggert and Bruce Korb.
97529         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97530         * modules/byteswap, modules/configmake, modules/fcntl:
97531         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97532         * modules/localcharset, modules/netinet_in, modules/poll:
97533         * modules/stdbool, modules/stdint, modules/sys_select:
97534         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97536 2006-09-06  Jim Meyering  <jim@meyering.net>
97538         Make generated files be read-only.
97539         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97540         Ensure that each generated file is now read-only.
97541         * modules/argz: Likewise.
97542         * modules/arpa_inet: Likewise.
97543         * modules/byteswap: Likewise.
97544         * modules/configmake: Likewise.
97545         * modules/fcntl: Likewise.
97546         * modules/fnmatch: Likewise.
97547         * modules/getopt: Likewise.
97548         * modules/glob: Likewise.
97549         * modules/inttypes: Likewise.
97550         * modules/netinet_in: Likewise.
97551         * modules/poll: Likewise.
97552         * modules/stdbool: Likewise.
97553         * modules/stdint: Likewise.
97554         * modules/sys_select: Likewise.
97555         * modules/sys_socket: Likewise.
97556         * modules/sys_stat: Likewise.
97557         * modules/sysexits: Likewise.
97558         * modules/localcharset: Same as above, but continue using temporary
97559         file named "t-$@" (why different?) rather than the "$@-t" used
97560         everywhere else.
97562         * modules/sysexits (Makefile.am): Replace literal occurrences
97563         of "sysexit.h" more readable, and more consistent, "$@".
97565 2006-09-06  Bruno Haible  <bruno@clisp.org>
97567         * modules/striconv: New file.
97568         * modules/xstriconv: New file.
97569         * MODULES.html.sh (Internationalization functions): Add striconv,
97570         xstriconv.
97572 2006-09-06  Bruno Haible  <bruno@clisp.org>
97574         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97575         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97576         not using libtool correctly.
97578 2006-09-06  Bruno Haible  <bruno@clisp.org>
97580         * lib/striconv.h: New file.
97581         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97582         iconvstring.c.
97583         * lib/xstriconv.h: New file.
97584         * lib/xstriconv.c: New file.
97586 2006-09-06  Bruno Haible  <bruno@clisp.org>
97588         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97589         lib_..._LDFLAGS.
97591 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97593         * lib/argz_.h: Sync from Libtool.
97595         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97596                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97598         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97600 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97602         * modules/trim: New file.
97604 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97606         * lib/trim.h: New file.
97607         * lib/trim.c: New file.
97609 2006-09-05  Bruno Haible  <bruno@clisp.org>
97611         * MODULES.html.sh (String handling): Add trim.
97613 2006-09-04  Karl Berry  <karl@gnu.org>
97615         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97616         until next release.
97618 2006-09-03  Bruno Haible  <bruno@clisp.org>
97620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97621         correctly.
97623 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97625         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97626         not gl_GETLOADAVG.  Omit unneeded semicolons.
97627         Problems reported by Ralf Wildenhues in
97628         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97629         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97630         at the end, which is the usual gnulib style.
97632         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97633         of doing all the work ourselves.
97634         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97635         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97637 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97639         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97640         Problem reported by Ralf Wildenhues in
97641         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97643         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97644         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97646 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97648         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97649         yesterday's patch by changing test -n to test -z.
97651 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97653         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97654         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97655         the former is now obsolescent.
97657         * modules/chdir-long (Depends-on): Add fcntl.
97659 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97661         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97662         obsolescent, and programs should use gnulib instead.
97663         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97664         but with prefixes changed.
97666 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97668         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97669         or stdbool.h, because they might not exist while configuring.
97671         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97672         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97673         does that for us.
97674         (O_DIRECTORY): Remove.
97676 2006-08-31  Eric Blake  <ebb9@byu.net>
97678         * gnulib-tool: Don't let emacs change spaces to TAB.
97680 2006-08-31  Bruno Haible  <bruno@clisp.org>
97682         * gnulib-tool: When calling func_import more than once, do it in a
97683         subshell.
97684         Reported by Eric Blake <ebb9@byu.net>.
97686 2006-08-31  Bruno Haible  <bruno@clisp.org>
97688         * gnulib-tool (nl): Remove variable.
97689         (sed_transform_lib_file): Use more robust test for config-h module.
97690         (func_import): Fix typo in 2006-08-25 patch.
97692 2006-08-31  Bruno Haible  <bruno@clisp.org>
97694         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97695         specified, augment Makefile.am variables instead of assigning them.
97697 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97699         Work around a bug in both the Linux and SunOS 64-bit kernels:
97700         nanosleep mishandles sleeps for longer than 2**31 seconds.
97701         Problem reported by Frank v Waveren in
97702         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97704         Check for nanosleep bug.
97705         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97709         Work around a bug in both the Linux and SunOS 64-bit kernels:
97710         nanosleep mishandles sleeps for longer than 2**31 seconds.
97711         Problem reported by Frank v Waveren in
97712         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97713         * lib/nanosleep.c (BILLION): New constant.
97714         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97715         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97716         implementation.
97718 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97720         * modules/nanosleep (Depends-on): Add gettime.
97722 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97723         and Simon Josefsson  <jas@extundo.com>
97724         and Oskar Liljeblad  <oskar@osk.mine.nu>
97726         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97727         * gnulib-tool (func_import): New license type 'unmodifiable license
97728         text'.
97729         * modules/fdl: Use it.  Longer description.
97730         * module/gpl, module/lgpl: New files.
97732 2006-08-30  Jim Meyering  <jim@meyering.net>
97734         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97735         shadowing the parameter.
97737 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97739         Sync from Libtool:
97741         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97743         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97744         sharing with gnulib.  Report by Eric Blake.
97746 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97748         * modules/isapipe: New file.
97749         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97751 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97753         * modules/configmake (Makefile.am): Add a comment, and omit
97754         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97755         by Bruno Haible.
97757 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97759         * m4/isapipe.m4: New file.
97761 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97763         * lib/isapipe.c, lib/isapipe.h: New files.
97765 2006-08-29  Jim Meyering  <jim@meyering.net>
97767         * modules/configmake (Makefile.am): Make configmake.h depend on
97768         Makefile.  Otherwise, a stale configmake.h could hang around.
97770 2006-08-29  Eric Blake  <ebb9@byu.net>
97772         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97773         resolution of upstream bug 3044.
97775 2006-08-29  Bruno Haible  <bruno@clisp.org>
97777         * modules/localcharset (Depends-on): Add configmake.
97778         (Makefile.am): Remove setting of LIBDIR through DEFS.
97780 2006-08-29  Bruno Haible  <bruno@clisp.org>
97782         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97783         defined.
97785 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97787         * modules/fcntl: New file.
97788         * modules/chdir-safer (Depends-on): Add fcntl.
97789         * modules/fts: Likewise.
97790         * modules/mkdir-p: Likewise.
97792         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97793         This undoes the most recent change, since we're now addressing the
97794         problem in a different way.
97796         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97797         into output, since the output might be called Makefile.am even
97798         if $makefile_name is something different.
97799         (func_import): Use $makefile_am rather than
97800         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97801         empty.
97803         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97807         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97808         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97809         recent change to stdint.m4, since we're now addressing the problem in a
97810         different way.
97812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97814         * m4/fcntl_h.m4: New file.
97816 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97818         * lib/fcntl_.h: New file.
97819         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97820         the fcntl module.
97821         * lib/dirchownmod.c: Likewise.
97822         * lib/fts.c: Likewise.
97824         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97825         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97826         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97827         just before including <inttypes.h>, to avoid circular inclusion.
97829 2006-08-28  Jim Meyering  <jim@meyering.net>
97831         * doc/visibility.texi: Actually read and correct the grammar of the
97832         sentence affected by yesterday's change.
97834 2006-08-28  Eric Blake  <ebb9@byu.net>
97836         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97837         needs wrapper.
97839 2006-08-28  Eric Blake  <ebb9@byu.net>
97841         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97843 2006-08-28  Eric Blake  <ebb9@byu.net>
97845         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97847 2006-08-28  Bruno Haible  <bruno@clisp.org>
97849         * modules/c-strstr: New file, from GNU gettext.
97850         * MODULES.html.sh (String handling): Add c-strstr.
97852 2006-08-28  Bruno Haible  <bruno@clisp.org>
97854         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97855         macros.
97856         Reported by Eric Blake.
97858 2006-08-28  Bruno Haible  <bruno@clisp.org>
97860         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97861         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97862         * lib/vasprintf.c: Include errno.h, limits.h.
97863         (EOVERFLOW): New fallback definition.
97864         (vasprintf): Test here whether the string length is > INT_MAX.
97865         * lib/vsnprintf.c: Include errno.h, limits.h.
97866         (EOVERFLOW): New fallback definition.
97867         (vsnprintf): Fix bug when generated string was too long for the buffer.
97868         Test here whether the string length is > INT_MAX.
97870 2006-08-28  Bruno Haible  <bruno@clisp.org>
97872         * lib/inttypes_.h (SCNX*): Remove definitions.
97873         Reported by Eric Blake.
97875 2006-08-28  Bruno Haible  <bruno@clisp.org>
97877         * lib/c-strstr.h: New file, from GNU gettext.
97878         * lib/c-strstr.c: New file, from GNU gettext.
97880 2006-08-28  Bruno Haible  <bruno@clisp.org>
97882         * gnulib-tool: Reorder some statements.
97884 2006-08-28  Bruno Haible  <bruno@clisp.org>
97886         * gnulib-tool: New option --makefile-name.
97887         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97888         $makefile_name.
97889         (func_import): Write $makefile_name to the cache file, and read it from
97890         there unless explicitly specified. Use $makefile_name as file name
97891         instead of Makefile.am. Adjust the recommendations accordingly.
97893 2006-08-28  Bruno Haible  <bruno@clisp.org>
97895         * gnulib-tool (func_verify_module): Check against misapplying patch.
97897 2006-08-28  Bruno Haible  <bruno@clisp.org>
97899         * gnulib-tool (func_relativize, func_relconcat): New functions.
97900         Give an error if --local-dir is given with --update.
97901         Remove trailing slashes from $local_gnulib_dir.
97902         (func_import): Store the relativized $local_gnulib_dir in
97903         gnulib-cache.m4, and read it from there if not specified explicitly.
97905 2006-08-28  Bruno Haible  <bruno@clisp.org>
97907         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97908         is the current directory. Respect also $local_gnulib_dir.
97910 2006-08-28  Bruno Haible  <bruno@clisp.org>
97911             Simon Josefsson  <jas@extundo.com>
97913         BeOS portability.
97914         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97916 2006-08-27  Jim Meyering  <jim@meyering.net>
97918         * doc/visibility.texi: Remove duplicate word: "pointer".
97920 2006-08-26  Bruno Haible  <bruno@clisp.org>
97922         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97923         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97924         (Makefile.am): Create inttypes.h from inttypes_.h.
97925         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97927         * modules/imaxabs: New file.
97929         * modules/imaxdiv: New file.
97931 2006-08-26  Bruno Haible  <bruno@clisp.org>
97933         * m4/inttypes.m4: New file.
97934         * m4/_inttypes_h.m4: Remove file.
97935         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97936         PRI_MACROS_BROKEN.
97937         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97939         * m4/imaxabs.m4: New file.
97941         * m4/imaxdiv.m4: New file.
97943 2006-08-26  Bruno Haible  <bruno@clisp.org>
97945         * lib/inttypes_.h: New file.
97946         * lib/inttypes.h: Remove file.
97947         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97949         * lib/imaxabs.c: New file.
97951         * lib/imaxdiv.c: New file.
97953 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97955         New config-h module, so that "make" output needn't be cluttered
97956         by -DHAVE_CONFIG_H.
97957         * MODULES.html.sh (Support for building libraries and executables):
97958         Add config-h.
97959         * modules/config-h: New file.
97960         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97961         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97962         the config-h module is used.
97964         New configmake module, so that "make" output needn't be cluttered
97965         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97966         * MODULES.html.sh (Support for building libraries and executables):
97967         Add configmake.
97968         * modules/configmake: New file.
97970 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97972         * m4/config-h.m4: New file.
97974 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97976         * config/srclist.txt: Add elisp-comp.
97978 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97980         * MODULES.html.sh (Support for building libraries and executables):
97981         Add elisp-comp.
97982         * build-aux/elisp-comp: New file.
97983         * modules/elisp-comp: New file.
97985 2006-08-24  Bruno Haible  <bruno@clisp.org>
97987         * gnulib-tool (func_create_testdir): Use non-default values of
97988         sourcebase and m4base.
97990 2006-08-24  Bruno Haible  <bruno@clisp.org>
97992         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97993         HTML structure.
97995 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97997         * modules/openat (Depends-on): Add lchown.
97999 2006-08-23  Bruno Haible  <bruno@clisp.org>
98001         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
98002         of gl_LOCK_EARLY instead of gl_LOCK.
98004 2006-08-23  Bruno Haible  <bruno@clisp.org>
98006         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
98007         on OSF/1 to no.
98008         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
98010 2006-08-23  Bruno Haible  <bruno@clisp.org>
98012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
98013         as unusable.
98015         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
98016         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
98017         (gl_LOCK): New macro.
98019 2006-08-22  Simon Josefsson  <jas@extundo.com>
98021         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
98022         to md5 module.
98024 2006-08-22  Simon Josefsson  <jas@extundo.com>
98026         * MODULES.html.sh: Add "Support for maintaining and release
98027         projects".
98029         * build-aux/gnupload: New file, from coreutils.
98031 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98033         Avoid the need for AC_LIBSOURCES in m4 macros.
98034         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
98035         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
98036         * modules/check-version (EXTRA_DIST): Add check-version.h.
98037         * modules/crc (EXTRA_DIST): Add crc.h.
98038         * modules/des (EXTRA_DIST): Add des.h.
98039         * modules/gc (EXTRA_DIST): Add gc.h.
98040         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
98041         * modules/getline (EXTRA_DIST): Add getline.h.
98042         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
98043         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
98044         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
98045         * modules/md2 (EXTRA_DIST): Add md2.h.
98046         * modules/md4 (EXTRA_DIST): Add md4.h.
98047         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
98048         * modules/read-file (EXTRA_DIST): Add read-file.h.
98049         * modules/readline (EXTRA_DIST): Add readline.h.
98050         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
98051         rijndael-api-fst.h.
98053 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98055         * m4/rijndael.m4 (gl_ARCFOUR):
98056         * m4/arctwo.m4 (gl_ARCTWO):
98057         * m4/check-version.m4 (gl_CHECK_VERSION):
98058         * m4/crc.m4 (gl_CRC):
98059         * m4/des.m4 (gl_DES):
98060         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
98061         * m4/gc.m4 (gl_GC):
98062         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
98063         * m4/getline.m4 (gl_FUNC_GETLINE):
98064         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
98065         * m4/hmac-md5.m4 (gl_HMAC_MD5):
98066         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
98067         * m4/md2.m4 (gl_MD2):
98068         * m4/md4.m4 (gl_MD4):
98069         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
98070         * m4/read-file.m4 (gl_FUNC_READ_FILE):
98071         * m4/readline.m4 (gl_FUNC_READLINE):
98072         * m4/rijndael.m4 (gl_RIJNDAEL):
98073         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98074         to get the necessary .h files and whatnot.
98076 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98078         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
98079         gnulib rather than the other way around.
98080         * config/srclistvars.sh (COREUTILS): Remove.
98082 2006-08-22  Jim Meyering  <jim@meyering.net>
98084         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
98086         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
98088 2006-08-22  Eric Blake  <ebb9@byu.net>
98090         * modules/regexprops-generic: New file.
98091         * MODULES.html.sh (Support for building documentation): List it.
98093 2006-08-22  Eric Blake  <ebb9@byu.net>
98095         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
98096         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
98097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
98098         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
98100 2006-08-22  Bruno Haible  <bruno@clisp.org>
98102         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
98103         and lib_LTLIBRARIES like the other lib_* variables.
98105 2006-08-22  Bruno Haible  <bruno@clisp.org>
98107         * build-aux/x-to-1.in: New file, from GNU gettext.
98109 2006-08-22  Bruno Haible  <bruno@clisp.org>
98111         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
98112         <utmpx.h> exists.
98114 2006-08-22  Bruno Haible  <bruno@clisp.org>
98116         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
98117         <utmpx.h> exists.
98119 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98121         BeOS portability.
98122         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
98123         exist.
98124         Problem reported by Bruno Haible.
98126 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98128         Avoid the need for AC_LIBSOURCES in m4 macros.
98129         * modules/acl (EXTRA_DIST): Add acl.h.
98130         * modules/argmatch (Files): Add m4/argmatch.m4.
98131         (configure.ac): Add gl_ARGMATCH.
98132         (EXTRA_DIST): Renamed from lib_SOURCES, for
98133         consistency with the other modules.  Remove argmatch.c.
98134         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98135         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98136         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98137         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98138         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98139         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98140         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98141         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98142         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98143         * modules/closeout (EXTRA_DIST): Add closeout.h.
98144         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98145         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98146         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98147         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98148         dirname.h; remove basename.c and stripslash.c.
98149         * modules/exclude (EXTRA_DIST): Add exclude.h.
98150         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98151         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98152         * modules/file-type (EXTRA_DIST): Add file-type.h.
98153         * modules/filemode (EXTRA_DIST): Add filemode.h.
98154         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98155         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98156         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98157         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98158         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98159         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98160         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98161         * modules/getdate (EXTRA_DIST): Add getdate.c.
98162         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98163         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98164         * modules/getpass (EXTRA_DIST): Add getpass.h.
98165         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98166         * modules/group-member (EXTRA_DIST): Add group-member.h.
98167         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98168         * modules/hash (EXTRA_DIST): Add hash.h.
98169         * modules/human (EXTRA_DIST): Add human.h.
98170         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98171         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98172         * modules/lchown (EXTRA_DIST): Add lchown.h.
98173         * modules/long-options (EXTRA_DIST): Add long-options.h.
98174         * modules/lstat (EXTRA_DIST): Add lstat.h.
98175         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98176         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98177         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98178         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98179         * modules/memxor (EXTRA_DIST): Add memxor.h.
98180         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98181         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98182         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98183         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98184         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98185         * modules/physmem (EXTRA_DIST): Add physmem.h.
98186         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98187         * modules/posixver (EXTRA_DIST): Add posixver.h.
98188         * modules/quote (EXTRA_DIST): Add quote.h.
98189         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98190         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98191         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98192         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98193         regex_internal.h regexec.c.
98194         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98195         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98196         * modules/same (EXTRA_DIST): Add same.h.
98197         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98198         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98199         * modules/savedir (EXTRA_DIST): Add savedir.h.
98200         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98201         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98202         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98203         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98204         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98205         * modules/strdup (EXTRA_DIST): Add strdup.h.
98206         * modules/strftime (EXTRA_DIST): Add strftime.h.
98207         * modules/strndup (EXTRA_DIST): Add strndup.h.
98208         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98209         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98210         * modules/time_r (EXTRA_DIST): Add time_r.h.
98211         * modules/timespec (EXTRA_DIST): Add timespec.h.
98212         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98213         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98214         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98215         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98216         * modules/userspec (EXTRA_DIST): Add userspec.h.
98217         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98218         * modules/utimens (EXTRA_DIST): Add utimens.h.
98219         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98220         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98221         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98222         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98223         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98224         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98225         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98226         * modules/yesno (EXTRA_DIST): Add yesno.h.
98228 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98232         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98233         * m4/dev-ino.m4, same-inode.m4: Remove.
98235         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98236         * m4/acl.m4 (AC_FUNC_ACL):
98237         * m4/backupfile.m4 (gl_BACKUPFILE):
98238         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98239         * m4/canon-host.m4 (gl_CANON_HOST):
98240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98242         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98243         * m4/cloexec.m4 (gl_CLOEXEC):
98244         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98245         * m4/closeout.m4 (gl_CLOSEOUT):
98246         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98247         * m4/dirname.m4 (gl_DIRNAME):
98248         * m4/exclude.m4 (gl_EXCLUDE):
98249         * m4/exitfail.m4 (gl_EXITFAIL):
98250         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98251         * m4/file-type.m4 (gl_FILE_TYPE):
98252         * m4/filemode.m4 (gl_FILEMODE):
98253         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98254         * m4/fpending.m4 (gl_FUNC_FPENDING):
98255         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98256         * m4/fts.m4 (gl_FUNC_FTS):
98257         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98258         * m4/getdate.m4 (gl_GETDATE):
98259         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98260         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98261         * m4/getpass.m4 (gl_FUNC_GETPASS):
98262         * m4/gettime.m4 (gl_GETTIME):
98263         * m4/getugroups.m4 (gl_GETUGROUPS):
98264         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98265         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98266         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98267         * m4/hash.m4 (gl_HASH):
98268         * m4/idcache.m4 (gl_IDCACHE):
98269         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98270         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98271         * m4/long-options.m4 (gl_LONG_OPTIONS):
98272         * m4/lstat.m4 (gl_FUNC_LSTAT):
98273         * m4/md5.m4 (gl_MD5):
98274         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98275         * m4/memcoll.m4 (gl_MEMCOLL):
98276         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98278         * m4/memxor.m4 (gl_MEMXOR):
98279         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98281         * m4/modechange.m4 (gl_MODECHANGE):
98282         * m4/mountlist.m4 (gl_MOUNTLIST):
98283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98284         * m4/openat.m4 (gl_FUNC_OPENAT):
98285         * m4/pathmax.m4 (gl_PATHMAX):
98286         * m4/physmem.m4 (gl_PHYSMEM):
98287         * m4/posixtm.m4 (gl_POSIXTM):
98288         * m4/posixver.m4 (gl_POSIXVER):
98289         * m4/quote.m4 (gl_QUOTE):
98290         * m4/quotearg.m4 (gl_QUOTEARG):
98291         * m4/readtokens.m4 (gl_READTOKENS):
98292         * m4/readutmp.m4 (gl_READUTMP):
98293         * m4/regex.m4 (gl_REGEX):
98294         * m4/safe-read.m4 (gl_SAFE_READ):
98295         * m4/safe-write.m4 (gl_SAFE_WRITE):
98296         * m4/same.m4 (gl_SAME):
98297         * m4/save-cwd.m4 (gl_SAVE_CWD):
98298         * m4/savedir.m4 (gl_SAVEDIR):
98299         * m4/settime.m4 (gl_SETTIME):
98300         * m4/sha1.m4 (gl_SHA1):
98301         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98302         * m4/stat-macros.m4 (gl_STAT_MACROS):
98303         * m4/stat-time.m4 (gl_STAT_TIME):
98304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98305         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98306         * m4/strdup.m4 (gl_FUNC_STRDUP):
98307         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98308         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98309         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98310         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98311         * m4/time_r.m4 (gl_TIME_R):
98312         * m4/timespec.m4 (gl_TIMESPEC):
98313         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98314         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98315         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98316         * m4/userspec.m4 (gl_USERSPEC):
98317         * m4/utimecmp.m4 (gl_UTIMECMP):
98318         * m4/utimens.m4 (gl_UTIMENS):
98319         * m4/xalloc.m4 (gl_XALLOC):
98320         * m4/xgetcwd.m4 (gl_XGETCWD):
98321         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98322         * m4/xreadlink.m4 (gl_XREADLINK):
98323         * m4/xstrtod.m4 (gl_XSTRTOD):
98324         * m4/yesno.m4 (gl_YESNO):
98325         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98326         to get the necessary .h files and whatnot.
98328 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98329             Bruno Haible  <bruno@clisp.org>
98331         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98332         /bin/sh understanding of '!' conditional negation.
98334 2006-08-21  Jim Meyering  <jim@meyering.net>
98336         * modules/openat (Depends-on): Really alphabetize.
98338         * modules/acl (Depends-on): Add error and quote.
98340         * check-module (find_included_lib_files): Add at-func.c to the
98341         ok-to-include-more-than-once white list.
98343         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98345 2006-08-21  Bruno Haible  <bruno@clisp.org>
98347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98348         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98349         Reported by Martin Lambers <marlam@marlam.de>.
98351 2006-08-21  Bruno Haible  <bruno@clisp.org>
98353         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98354         specify an installation location, don't emit a noinst_LIBRARIES or
98355         noinst_LTLIBRARIES assignment.
98357 2006-08-21  Bruno Haible  <bruno@clisp.org>
98359         BeOS portability.
98360         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98361         BeOS has mbrtowc() but no <wctype.h>.
98363 2006-08-21  Bruno Haible  <bruno@clisp.org>
98365         BeOS portability.
98366         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98367         exist.
98369 2006-08-21  Bruno Haible  <bruno@clisp.org>
98371         BeOS portability.
98372         * lib/mbchar.h: Include <wctype.h> only if it exists.
98374 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98376         Remove files that are no longer needed by their respective modules.
98377         * m4/obstack.m4: Remove.
98378         * m4/strerror_r.m4: Remove.
98379         * m4/uint32_t.m4: Remove.
98380         * m4/uintptr_t.m4: Remove.
98381         * m4/ullong_max.m4: Remove.
98382         * m4/xstrtoimax.m4: Remove.
98383         * m4/xstrtoumax.m4: Remove.
98385         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98386         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98387         dependencies now capture this.
98389         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98390         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98391         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98392         * m4/human.m4 (gl_HUMAN): Likewise.
98393         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98394         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98396         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98398         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98399         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98400         stdint.
98401         * m4/human.m4 (gl_HUMAN): Likewise.
98402         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98403         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98404         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98405         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98406         * m4/xstrtol (gl_XSTRTOL): Likewise.
98408         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98409         AC_TYPE_LONG_LONG_INT.
98410         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98411         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98412         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98413         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98415         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98416         on stdbool.
98418         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98419         (gl_PREREQ_XSTRTOUL): Remove.
98421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98423         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98424         mode.
98426 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98428         Add and change modules to make it easier for coreutils to use
98429         gnulib-tool.
98430         * modules/backupfile (Files): Remove m4/d-ino.m4.
98431         (Depends-on): Add d-ino.
98432         * modules/cycle-check (Depends-on): Add stdint.
98433         (lib_SOURCES): Add cycle-check.h.
98434         * modules/d-ino: New module.
98435         * modules/d-type: New module.
98436         * modules/error (Files): Remove m4/strerror_r.m4.
98437         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98438         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98439         m4/inttypes_h.m4, m4/uintmax_t.m4.
98440         (Depends-on): Add stdint.
98441         (lib_SOURCES): Add fsusage.h.
98442         * modules/getcwd (Files): Remove d-ino.m4.
98443         (Depends-on): Add d-ino.
98444         * modules/getndelim2 (Depends-on): Add stdint.
98445         * modules/glob (Files): Remove m4/d-type.m4.
98446         (Depends-on): Add d-type.
98447         * modules/host-os: New module.
98448         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98449         m4/inttypes_h.m4, m4/uintmax_t.m4.
98450         * Depends-on: Add stdint.
98451         (lib_SOURCES): Add human.h.
98452         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98453         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98454         m4/uintmax_t.m4, m4/ulonglong.m4.
98455         (Depends-on): Add stdint.
98456         (EXTRA_DIST): Add inttostr.h.
98457         * modules/lchmod: New module.
98458         * modules/link-follow: New module.
98459         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98460         (Depends-on): Add lchmod.
98461         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98462         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98463         (Depends-on): Add stdint.
98464         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98465         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98466         (Depends-on): Add stdint.
98467         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98468         * modules/perl: New module.
98469         * modules/regex (Depends-on): Add stdint.
98470         * modules/rmdir-errno: New module.
98471         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98472         m4/intmax_t.m4.
98473         (Depends-on): Add stdint.
98474         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98475         m4/uintmax_t.m4.
98476         (Depends-on): Add stdint.
98477         * modules/unlink-busy: New module.
98478         * modules/utimecmp (Depends-on): Add stdint.
98479         * modules/uptime: New module.
98480         * modules/winsz-ioctl: New module.
98481         * modules/winsz-termios: New module.
98482         * modules/xnanosleep (Depends-on): Add nanosleep.
98483         * modules/ullong_max: Remove.
98484         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98485         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98486         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98487         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98488         (Depends-on): Add inttypes.
98489         (lib_SOURCES): Add xstrtol.h.
98490         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98491         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98492         * MODULES.html.sh: Move 'assert' into the assert section.
98493         Move 'dummy' into the linking section.
98494         Remove ullong_max.
98495         Add section for compatibility checks for POSIX:2001 functions,
98496         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98497         winsz-ioctl, and winsz-termios into it.
98498         Add lchmod.
98499         Add top-level Misc section and put host-os, perl, and uptime
98500         into it.
98502 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98504         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98505         now assume the stdint module.  Do not include inttypes.h.
98506         * lib/fsusage.h: Likewise.
98507         * lib/getndelim2.c: Likewise.
98508         * lib/human.h: Likewise.
98509         * lib/inttostr.h: Likewise.
98510         * lib/obstack.c: Likewise.
98511         * lib/regex_internal.h: Likewise.
98512         * lib/tempname.c: Likewise.
98513         * lib/utimecmp.c: Likewise.
98514         * lib/xstrtol.h: Likewise.
98516         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98518         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98519         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98520         * lib/xtime.h: Likewise.
98522 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98524         * modules/openat (Files): Add lib/fchmodat.c.
98525         Fixes problem reported by Jay Youngman.
98527 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98529         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98530         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98532 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98533             Bruno Haible  <bruno@clisp.org>
98535         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98536         and is a script that invokes bison. Tighten the code. Add comments.
98538 2006-08-18  Jim Meyering  <jim@meyering.net>
98540         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98541         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98542         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98543         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98545 2006-08-18  Bruno Haible  <bruno@clisp.org>
98547         * modules/bison-i18n: New file.
98548         * MODULES.html.sh (Internationalization functions): Add it.
98550 2006-08-18  Bruno Haible  <bruno@clisp.org>
98552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98553         sys/statvfs.h. When getmntinfo was found, check its declaration and
98554         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98556 2006-08-18  Bruno Haible  <bruno@clisp.org>
98558         * m4/bison-i18n.m4: New file, from bison.
98560 2006-08-18  Bruno Haible  <bruno@clisp.org>
98562         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98563         (ME_DUMMY): Treat "kernfs" as a dummy.
98564         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98566 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98568         Update from coreutils.
98570         2006-08-15  Jim Meyering  <jim@meyering.net>
98572         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98574         2006-01-17  Jim Meyering  <jim@meyering.net>
98576         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98578         2006-01-11  Jim Meyering  <jim@meyering.net>
98580         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98581         Check for the lchmod function.
98583 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98585         Update from coreutils.
98587         * lib/__fpending.h: Add copyright notice.
98588         * lib/fprintftime.h: Likewise.
98589         * lib/savedir.c: Use (C) in copyright notice.
98590         * lib/savedir.h: Likewise.
98592         2006-08-15  Jim Meyering  <jim@meyering.net>
98594         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98595         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98596         in support of the EXPECTED_ERRNO macro.
98597         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98598         definitions.  Instead, define the appropriate symbols and include
98599         "at-func.c".
98600         * lib/mkdirat.c (mkdirat): Likewise.
98601         * lib/fchmodat.c (fchmodat): Likewise.
98602         (ENOSYS): Remove definition.
98603         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98604         it.  Don't include "unistd--.h" -- it wasn't ever used.
98606         2006-01-17  Jim Meyering  <jim@meyering.net>
98608         Rewrite fts.c not to change the current working directory,
98609         by using openat, fstatat, fdopendir, etc..
98611         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98612         (HAVE_OPENAT_SUPPORT): Define.
98613         [_LIBC] (fchdir): Don't undef or define; no longer used.
98614         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98615         Now, this `function' always succeeds, and consumes its file descriptor
98616         parameter -- so callers must not close such FDs.  Update callers.
98617         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98618         (diropen): Add parameter, SP.  Adjust all callers.
98619         Implement using diropen_fd, rather than open.
98620         (fts_open): Initialize new member, fts_cwd_fd.
98621         Remove fts_rft-setting code.
98622         (fts_close): Close fts_cwd_fd, if necessary.
98623         (__opendir2): Define in terms of opendir or opendirat,
98624         depending on whether the FST_NOCHDIR flag is set.
98625         (fts_build): Since fts_safe_changedir consumes its FD, and since
98626         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98627         and close the dup'd file descriptor upon failure.
98628         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98629         (fts_safe_changedir): Tweak semantics to reflect that this function
98630         now calls cwd_advance_fd and hence consumes its FD argument.
98631         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98632         [struct FTS] (fts_rft): Remove now-unused member.
98633         [struct FTS] (fts_cycle.state): Improve comment.
98635         * lib/openat.c (openat_needs_fchdir): New function.
98636         * lib/openat.h (openat_needs_fchdir): Declare it.
98638 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98640         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98641         Problem and fix reported by Pádraig Brady in
98642         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98644 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98646         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98648 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98650         * lib/memcoll.c (memcoll): Optimize for the common case where the
98651         arguments are bytewise equal.
98653 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98655         * doc/regexprops-generic.texi: Add a copyright notice.
98657 2006-08-15  Bruno Haible  <bruno@clisp.org>
98659         * modules/tmpdir (License): Change to LGPL.
98661 2006-08-15  Bruno Haible  <bruno@clisp.org>
98663         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98664         module.
98666 2006-08-14  Simon Josefsson  <jas@extundo.com>
98668         * config/srclist.txt: Add gnupload.
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         * tests/test-lock.c: Likewise.
98675         * tests/test-stdint.c: Likewise.
98676         * tests/test-tls.c: Likewise.
98678         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98679         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98680         Add copyright notice.
98682         * check-module: Add copyright notice.  Output a copyright
98683         notice if "--version" is specified.
98684         * modules/COPYING: New file.
98685         * tests/test-getaddrinfo.c: Add copyright notice.
98686         * tests/test-verify.c: Likewise.
98688 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98690         Change copyright notice from LGPL 2 to GPL 2, since that's the
98691         standard form used in the gnulib repository.
98692         * lib/lock.c: LGPL -> GPL.
98693         * lib/lock.h: Likewise.
98694         * lib/strnlen1.c: Likewise.
98695         * lib/strnlen1.h: Likewise.
98696         * lib/tls.c: Likewise.
98697         * lib/tls.h: Likewise.
98698         * lib/tmpdir.c: Likewise.
98700         * lib/TODO: Remove; this belongs only in coreutils.
98702 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98704         Add copyright notices to long-enough files that lack them, since
98705         otherwise the files aren't clearly free.  Use the same notice that
98706         getdate.texi already uses.
98707         * doc/alloca-opt.texi: Add copyright notice.
98708         * doc/alloca.texi: Likewise.
98709         * doc/ctime.texi: Likewise.
98710         * doc/functions.texi: Likewise.
98711         * doc/gcd.texi: Likewise.
98712         * doc/gnulib-tool.texi: Likewise.
98713         * doc/inet_ntoa.texi: Likewise.
98714         * doc/visibility.texi: Likewise.
98716         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98717         * doc/quote.texi: Add copyright notice.
98719         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98720         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98721         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98722         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98723         is now obsolete, and give a pointer to the Sun list.
98724         Add copyright notice.
98726 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98728         * config/srclistvars.sh: Add copyright notice.
98730 2006-08-14  Eric Blake  <ebb9@byu.net>
98732         Import the following change from libc:
98734         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98736         Upstream bug 2997.
98737         * lib/misc/error.c: Add space between program name and message if file
98738         name is missing.
98740 2006-08-12  Karl Berry  <karl@gnu.org>
98742         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98743         remove, these originate in gnulib now.
98745 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98747         * doc/Makefile (standards.info standards.html standards.dvi):
98748         Also depend on make-stds.texi.
98750 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98752         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98753         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98755         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98756         in wchar_t.  Problem reported by Eric Blake.
98758         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98759         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98760         Also, help the compiler to keep LEN in a register.
98762 2006-08-11  Eric Blake  <ebb9@byu.net>
98764         * users.txt: Sort.  Add tar.
98766 2006-08-11  Bruno Haible  <bruno@clisp.org>
98768         * users.txt: New file.
98770 2006-08-11  Bruno Haible  <bruno@clisp.org>
98772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98773         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98775 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98777         * modules/snprintf (Depends-on): Remove minmax.
98778         (Maintainer): Add self and Bruno.
98780 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98782         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98783         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98784         (EOVERFLOW): Define if the system does not.
98785         Do not include "minmax.h"; it wasn't used.
98786         (snprintf): Don't assume size_t promotes to an unsigned type.
98787         Fix bug when generated string was too long for the buffer: the
98788         buffer's contents are supposed to be the initial prefix of the
98789         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98790         exceeds INT_MAX; do the check ourselves.
98792         Import the following changes from libc:
98794         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98796         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98797         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98798         set wc to the byte which couldn't be converted.
98799         (re_string_reconstruct): Don't clear valid_raw_len before calling
98800         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98801         tip_context using re_string_context_at.
98803         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98805         * lib/posix/regex.h: g++ still cannot handled [restrict].
98807         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98809         * lib/posix/regex.h: Remove special handling for VMS.
98811 2006-08-10  Jim Meyering  <jim@meyering.net>
98813         * modules/same-inode: New module.
98814         * modules/dev-ino: New module.
98815         * modules/cycle-check: Depend on these modules, rather than simply
98816         including their .h files.
98817         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98818         required via m4/cycle-check.m4.
98819         * modules/same: Depend on new same-inode module, rather than
98820         including same-inode.h.
98821         * modules/chdir-safer: New file.
98823         * modules/chown (Depends-on): Add stat-macros.
98825 2006-08-10  Jim Meyering  <jim@meyering.net>
98827         * m4/cycle-check.m4: New file.
98828         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98829         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98831 2006-08-10  Eric Blake  <ebb9@byu.net>
98833         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98834         in from original proposal.
98836 2006-08-10  Eric Blake  <ebb9@byu.net>
98837         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98839         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98840         namespace.
98842 2006-08-10  Bruno Haible  <bruno@clisp.org>
98844         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98845         as well.
98847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98849         Sync from coreutils.
98851         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98853         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98854         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98856 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98858         * modules/restrict: Remove; no longer needed now that we assume
98859         Autoconf 2.59 or later.
98860         * MODULES.html.sh: Remove 'restrict'.
98861         * modules/argp (Depends-on): Remove 'restrict'.
98862         * modules/base64 (Depends-on): Likewise.
98863         * modules/gc (Depends-on): Likewise.
98864         * modules/getaddrinfo (Depends-on): Likewise.
98865         * modules/glob (Depends-on): Likewise.
98866         * modules/inet_ntop (Depends-on): Likewise.
98867         * modules/inet_pton (Depends-on): Likewise.
98868         * modules/memxor (Depends-on): Likewise.
98869         * modules/regex (Depends-on): Likewise.
98870         * modules/strtok_r (Depends-on): Likewise.
98871         * modules/time_r (Depends-on): Likewise.
98873 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98875         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98876         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98877         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98878         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98879         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98880         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98881         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98882         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98884         Merge from coreutils.
98885         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98886         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98887         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98888         * m4/time_r.m4 (gl_TIME_R): Likewise.
98890 2006-08-09  Karl Berry  <karl@gnu.org>
98892         * config/srclist.txt: no more gettext-tools, per Bruno.
98894 2006-08-08  Eric Blake  <ebb9@byu.net>
98896         * modules/verror: New module.
98897         * MODULES.html.sh: Document it.
98899 2006-08-08  Eric Blake  <ebb9@byu.net>
98901         * lib/verror.h, lib/verror.c: New files.
98903 2006-08-08  Eric Blake  <ebb9@byu.net>
98905         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98906         verror_at_line output complies with GNU Coding Standards even when
98907         file is NULL.
98909 2006-08-07  Bruno Haible  <bruno@clisp.org>
98911         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98912         versions of AIX.
98913         Reported by Ralf Wildenhues.
98915 2006-08-07  Bruno Haible  <bruno@clisp.org>
98917         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98918         in an AC_DEFUN. Needed so that the autoconf snippets can use
98919         AC_REQUIRE.
98921 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98924         Initialize pkgdata_DATA.
98925         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98926         overriding it.
98928 2006-08-06  Eric Blake  <ebb9@byu.net>
98930         * lib/error.h: Fold in some upstream changes from glibc.
98931         * lib/error.c: Likewise.
98933 2006-08-04  Bruno Haible  <bruno@clisp.org>
98935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98936         Make the mostlyclean-local rule depend on mostlyclean-generic.
98937         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98939 2006-07-31  Bruno Haible  <bruno@clisp.org>
98941         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98942         <stdlib.h>, <string.h>.
98944 2006-07-30  Bruno Haible  <bruno@clisp.org>
98946         * modules/readlink (License): Change to LGPL.
98948 2006-07-30  Bruno Haible  <bruno@clisp.org>
98950         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98951         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98952         set PKGDATADIR to point to it.
98954 2006-07-30  Bruno Haible  <bruno@clisp.org>
98956         * modules/csharpexec (configure.ac): Comment out macro invocation.
98957         * modules/javaexec (configure.ac): Likewise.
98958         * modules/javacomp-script (configure.ac): Likewise.
98960         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98962 2006-07-30  Bruno Haible  <bruno@clisp.org>
98964         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98965         linked-list.
98967 2006-07-30  Bruno Haible  <bruno@clisp.org>
98969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98971 2006-07-30  Bruno Haible  <bruno@clisp.org>
98973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98974         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98975         get removed.
98977 2006-07-29  Bruno Haible  <bruno@clisp.org>
98979         Make it possible for gnulib-tool to work with locally modified or
98980         augmented gnulib repositories.
98981         * gnulib-tool (func_usage): Document --local-dir option.
98982         (local_gnulib_dir): New variable.
98983         Handle --local-dir option.
98984         (func_lookup_file): New function.
98985         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98986         (func_get_description, func_get_filelist, func_get_description,
98987         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98988         func_get_automake_snippet, func_get_include_directive,
98989         func_get_license, func_get_maintainer): Use func_lookup_file.
98990         (func_import, func_create_testdir): Use func_lookup_file.
98992 2006-07-29  Bruno Haible  <bruno@clisp.org>
98994         * modules/setenv (Depends-on): Add unistd.
98996 2006-07-29  Bruno Haible  <bruno@clisp.org>
98998         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
99000 2006-07-29  Bruno Haible  <bruno@clisp.org>
99002         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
99004 2006-07-29  Bruno Haible  <bruno@clisp.org>
99006         * gnulib-tool (import, update): If there is no Makefile.am, look at
99007         aclocal.m4, instead of bailing out.
99009 2006-07-29  Bruno Haible  <bruno@clisp.org>
99011         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
99012         Categorize the options by when they are useful.
99014 2006-07-29  Bruno Haible  <bruno@clisp.org>
99016         * gnulib-tool (func_usage): Document option --no-libtool.
99017         Handle option --no-libtool.
99018         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
99019         for changed semantics of $libtool variable.
99020         (func_import): Likewise. If libtool is not used, show this through
99021         an option --no-libtool.
99022         (func_create_testdir): Update.
99024 2006-07-29  Bruno Haible  <bruno@clisp.org>
99026         * gnulib-tool (func_import): Extend error message about missing
99027         --doc-base.
99029 2006-07-29  Bruno Haible  <bruno@clisp.org>
99031         * gnulib-tool (func_import): Don't create the $docbase directory if
99032         there is no file to store there.
99034 2006-07-29  Bruno Haible  <bruno@clisp.org>
99036         * gnulib-tool (autoconf_minversion): If a --dir option is given and
99037         relevant, look for configure.ac there, not in the current directory.
99038         Also use a simple search for AC_PREREQ, not "autoconf --trace".
99040 2006-07-29  Bruno Haible  <bruno@clisp.org>
99042         * gnulib-tool (SORT): New variable.
99043         (func_usage): Undocument --assume-autoconf option.
99044         Remove --assume-autoconf option handling.
99045         (autoconf_minversion): Determine from the contents of configure.ac.
99046         (func_import): Remove autoconf_minversion handling.
99047         Suggested by Eric Blake.
99049 2006-07-29  Bruno Haible  <bruno@clisp.org>
99051         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
99053 2006-07-29  Bruno Haible  <bruno@clisp.org>
99055         * config/srclist.txt (*setenv.[ch]): Remove rules.
99057 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99059         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
99061 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99063         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
99064         arpa/inet.h.
99066 2006-07-28  Simon Josefsson  <jas@extundo.com>
99068         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
99069         * modules/inet_pton (Depends-on): Likewise.
99071 2006-07-28  Simon Josefsson  <jas@extundo.com>
99073         * m4/netinet_in_h.m4: New file.
99075 2006-07-28  Simon Josefsson  <jas@extundo.com>
99077         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
99078         #include's.
99080 2006-07-28  Simon Josefsson  <jas@extundo.com>
99082         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
99083         #include's.
99085 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
99087         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
99088         setgid on directories only if they set these bits.
99089         * lib/modechange.h: Remove obsolete comment about masks.
99091 2006-07-28  Eric Blake  <ebb9@byu.net>
99093         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
99094         macro expansion.
99096 2006-07-28  Bruno Haible  <bruno@clisp.org>
99098         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
99100 2006-07-28  Bruno Haible  <bruno@clisp.org>
99102         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
99104 2006-07-28  Bruno Haible  <bruno@clisp.org>
99106         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
99107         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
99108         Define fallbacks.
99109         Avoids link error on FreeBSD 4.x.
99110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99112         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
99113         encoding.
99114         * lib/mbswidth.c (iswcntrl): Likewise.
99116 2006-07-27  Bruno Haible  <bruno@clisp.org>
99118         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
99119         test.
99121 2006-07-27  Bruno Haible  <bruno@clisp.org>
99123         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99124         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99125         defined.
99127 2006-07-26  Eric Blake  <ebb9@byu.net>
99129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99131 2006-07-26  Eric Blake  <ebb9@byu.net>
99133         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99134         like mingw that lack mkstemp.
99135         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99136         avoid compilation warning on mingw.
99138 2006-07-26  Bruno Haible  <bruno@clisp.org>
99140         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99141         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99142         INT_FAST*_MIN, INTPTR_MIN.
99144 2006-07-25  Bruno Haible  <bruno@clisp.org>
99146         * modules/version-etc (Depends-on): Add stdarg.
99148 2006-07-25  Bruno Haible  <bruno@clisp.org>
99150         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99151         complex commands.
99153 2006-07-25  Bruno Haible  <bruno@clisp.org>
99155         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99156         defined in <stdarg.h> or config.h.
99158 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99161         (gl_STDIO_SAFER): Remove.
99163 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99165         * MODULES.html.sh (File stream based Input/Output):
99166         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99167         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99168         * modules/fopen-safer, modules/tmpfile-safer: New files.
99169         * modules/stdio-safer: Remove.
99171 2006-07-24  Bruno Haible  <bruno@clisp.org>
99173         * modules/tmpdir: New file.
99174         * MODULES.html.sh (File system functions): Add it.
99176 2006-07-24  Bruno Haible  <bruno@clisp.org>
99178         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99179         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99181 2006-07-24  Bruno Haible  <bruno@clisp.org>
99183         * modules/clean-temp: New file.
99185 2006-07-24  Bruno Haible  <bruno@clisp.org>
99187         * m4/tmpdir.m4: New file, from GNU gettext.
99189 2006-07-24  Bruno Haible  <bruno@clisp.org>
99191         * lib/tmpdir.h: New file, from GNU gettext.
99192         * lib/tmpdir.c: New file, from GNU gettext.
99194 2006-07-24  Bruno Haible  <bruno@clisp.org>
99196         * lib/clean-temp.h: New file, from GNU gettext.
99197         * lib/clean-temp.c: New file, from GNU gettext.
99199 2006-07-23  Eric Blake  <ebb9@byu.net>
99201         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99202         (Depends-on): Add binary-io.
99204 2006-07-23  Eric Blake  <ebb9@byu.net>
99206         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99208 2006-07-23  Eric Blake  <ebb9@byu.net>
99210         * lib/tmpfile-safer.c: New file.
99211         * lib/stdio-safer.h (fopen_safer): Add prototype.
99212         * lib/stdio--.h (tmpfile): Make safer.
99214 2006-07-23  Bruno Haible  <bruno@clisp.org>
99216         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99217         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99218         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99219         gl_linked_remove_at): Use it.
99221 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99222         and Simon Josefsson <jas@extundo.com>
99224         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99226         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99228 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99230         * modules/close-stream: New file.
99231         * modules/closeout (Description): Make it clear that it exits
99232         with a diagnostic on error.
99233         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99234         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99236 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99238         * m4/close-stream.m4: New file.
99240 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99242         * lib/close-stream.c, lib/close-stream.h: New files.
99244 2006-07-22  Bruno Haible  <bruno@clisp.org>
99246         Merge from GNU gettext 0.15.
99248         2006-05-01  Bruno Haible  <bruno@clisp.org>
99250                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99252         2006-07-22  Bruno Haible  <bruno@clisp.org>
99254                 * modules/javaversion: New file.
99255                 * MODULES.html.sh (Java): Add javaversion.
99257         2006-03-12  Bruno Haible  <bruno@clisp.org>
99259                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99261         2005-12-04  Bruno Haible  <bruno@clisp.org>
99263                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99264                 (untested).
99266         2006-06-21  Bruno Haible  <bruno@clisp.org>
99268                 Avoid warnings from recent versions of mcs.
99269                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99270                 -o, -L, -r any more. Use options documented since mcs-1.0
99271                 instead. Similarly for -g.
99273         2005-12-04  Bruno Haible  <bruno@clisp.org>
99275                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99276                 .resources, not .resource.
99278         2005-07-09  Bruno Haible  <bruno@clisp.org>
99280                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99281                 add a .dll suffix.
99282                 Reported by Mark Junker <mjscod@gmx.de>.
99284         2006-07-22  Bruno Haible  <bruno@clisp.org>
99286                 * modules/gettext: Upgrade to gettext-0.15.
99287                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99288                 m4/visibility.m4.
99289                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99291 2006-07-22  Bruno Haible  <bruno@clisp.org>
99293         Merge from GNU gettext 0.15.
99295         2006-03-25  Bruno Haible  <bruno@clisp.org>
99297                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99299         2006-07-21  Bruno Haible  <bruno@clisp.org>
99301                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99302                 "1.1".
99304         2006-05-09  Bruno Haible  <bruno@clisp.org>
99306                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99307                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99308                 for the conftestver execution.
99310         2006-05-01  Bruno Haible  <bruno@clisp.org>
99312                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99313                 optional target-version argument. Verify that the compiler
99314                 groks source of the specified source-version, or add -source
99315                 option as necessary. Verify that the compiler produces
99316                 bytecode in the specified target-version, or add -target and
99317                 -source options as necessary. Make the result of the test
99318                 available as variable CONF_JAVAC. Also log error output in
99319                 config.log.
99321         2006-03-11  Bruno Haible  <bruno@clisp.org>
99323                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99325         2006-05-09  Bruno Haible  <bruno@clisp.org>
99327                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99328                 CLASSPATH_SEPARATOR to a semicolon.
99330         2006-03-12  Bruno Haible  <bruno@clisp.org>
99332                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99333                 available as variable CONF_JAVA, for subsequent autoconf
99334                 tests. Also log error output in config.log.
99336         2006-07-19  Bruno Haible  <bruno@clisp.org>
99338                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99339                 that getline works on glibc2 systems. Needed to avoid trouble
99340                 in relocatable.c.
99341                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99343         2005-12-04  Bruno Haible  <bruno@clisp.org>
99345                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99346                 launcher (untested).
99348         2005-12-04  Bruno Haible  <bruno@clisp.org>
99350                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99352         2006-07-22  Bruno Haible  <bruno@clisp.org>
99354                 * gettext.m4: Update from GNU gettext-0.15.
99355                 * nls.m4: Likewise.
99356                 * po.m4: Likewise.
99357                 * inttypes-pri.m4: Likewise.
99358                 * inttypes-h.m4: Renamed from inttypes.m4.
99359                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99361 2006-07-22  Bruno Haible  <bruno@clisp.org>
99363         Merge from GNU gettext 0.15.
99365         2005-07-05  Bruno Haible  <bruno@clisp.org>
99367                 * printf-args.c (printf_fetchargs): Work around broken
99368                 definition of wint_t on mingw.
99370         2005-02-12  Bruno Haible  <bruno@clisp.org>
99372                 * xallocsa.h: Add extern "C" for C++.
99374         2006-05-17  Bruno Haible  <bruno@clisp.org>
99376                 Cygwin portability.
99377                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99379         2006-04-30  Bruno Haible  <bruno@clisp.org>
99381                 * progreloc.c: Include <mach-o/dyld.h> if available.
99382                 (find_executable): Use _NSGetExecutablePath when possible.
99384         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99386                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99387                 function.
99389         2005-12-29  Bruno Haible  <bruno@clisp.org>
99391                 * progreloc.c (set_program_name_and_installdir): Fix
99392                 compilation error.
99394         2005-12-04  Bruno Haible  <bruno@clisp.org>
99396                 Cygwin portability.
99397                 * progreloc.c: Include <windows.h> also on Cygwin.
99398                 (find_executable): Add support for Cygwin.
99399                 (set_program_name_and_installdir): Handle also platforms with
99400                 nonempty EXEEXT.
99402         2006-07-11  Bruno Haible  <bruno@clisp.org>
99404                 * javacomp.c: Fix a comment.
99405                 Reported by Jim Meyering.
99407         2006-04-30  Bruno Haible  <bruno@clisp.org>
99409                 * javacomp.h (compile_java_class): Add source_version,
99410                 target_version arguments.
99411                 * javacomp.c: Rewritten to choose only a compiler that
99412                 respects the specified source_version and target_version.
99414         2006-06-27  Bruno Haible  <bruno@clisp.org>
99416                 Assume correct S_ISDIR macro.
99417                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99419         2006-07-22  Bruno Haible  <bruno@clisp.org>
99421                 * javaversion.h: New file, from GNU gettext.
99422                 * javaversion.c: New file, from GNU gettext.
99423                 * javaversion.java: New file, from GNU gettext.
99424                 * javaversion.class: New file, from GNU gettext.
99426         2006-05-17  Bruno Haible  <bruno@clisp.org>
99428                 Cygwin portability.
99429                 * javaexec.c (execute_java_class): Test for jview program
99430                 also on Cygwin.
99432         2006-04-09  Bruno Haible  <bruno@clisp.org>
99434                 * fatal-signal.c: Don't include string.h.
99435                 (at_fatal_signal): Use a copying loop instead of memcpy.
99437         2005-12-04  Bruno Haible  <bruno@clisp.org>
99439                 * csharpexec.c: Add support for 'clix' launcher (untested).
99440                 (execute_csharp_using_sscli): New function.
99441                 (execute_csharp_program): Call it.
99443         2006-06-21  Bruno Haible  <bruno@clisp.org>
99445                 Avoid warnings from recent versions of mcs.
99446                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99447                 -o, -L, -r any more. Use options documented since mcs-1.0
99448                 instead. Similarly for -g.
99450         2005-07-09  Bruno Haible  <bruno@clisp.org>
99452                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99453                 add a .dll suffix.
99454                 Reported by Mark Junker <mjscod@gmx.de>.
99456         2006-06-17  Bruno Haible  <bruno@clisp.org>
99458                 * config.charset: Update for NetBSD 3.0.
99460         2006-05-17  Bruno Haible  <bruno@clisp.org>
99462                 Cygwin portability.
99463                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99465         2006-05-16  Bruno Haible  <bruno@clisp.org>
99467                 * localcharset.c [CYGWIN]: Include <windows.h>.
99468                 (get_charset_aliases): For Cygwin, return the same CPxxx
99469                 aliases list as under WIN32.
99470                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99471                 the environment variables. Fall back to GetACP().
99473         2006-04-05  Bruno Haible  <bruno@clisp.org>
99475                 * config.charset: Update Juan Manuel Guerrero's address.
99477         2005-02-12  Bruno Haible  <bruno@clisp.org>
99479                 * allocsa.h: Add extern "C" for C++.
99481         2005-02-10  Bruno Haible  <bruno@clisp.org>
99483                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99484                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99486         2006-07-22  Bruno Haible  <bruno@clisp.org>
99488                 * gettext.h: Update to GNU gettext-0.15.
99490 2006-07-22  Bruno Haible  <bruno@clisp.org>
99492         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99493         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99494         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99496 2006-07-21  Eric Blake  <ebb9@byu.net>
99498         * modules/stdlib-safer: New file.
99499         * MODULES.html.sh (File stream based Input/Output): Add
99500         stdlib-safer.
99502 2006-07-21  Eric Blake  <ebb9@byu.net>
99504         * lib/stdlib-safer.h: New file from coreutils, required by
99505         stdlib--.h.
99507 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99509         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99511 2006-07-20  Bruno Haible  <bruno@clisp.org>
99513         * gnulib-tool: Recognize new option --assume-autoconf.
99514         (autoconf_minversion): New variable.
99515         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99517 2006-07-20  Bruno Haible  <bruno@clisp.org>
99519         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99521 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99523         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99524         Reindent and repaginate.
99526 2006-07-19  Derek Price  <derek@ximbiot.com>
99528         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99529         Correct grammar.
99531 2006-07-17  Bruno Haible  <bruno@clisp.org>
99533         * modules/list: New file.
99534         * modules/array-list: New file.
99535         * modules/carray-list, modules/carray-list-tests: New files.
99536         * modules/linked-list, modules/linked-list-tests: New files.
99537         * modules/avltree-list, modules/avltree-list-tests: New files.
99538         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99539         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99540         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99541         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99542         * modules/oset: New file.
99543         * modules/array-oset: New file.
99544         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99545         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99546         * tests/test-carray_list.c: New file.
99547         * tests/test-linked_list.c: New file.
99548         * tests/test-avltree_list.c: New file.
99549         * tests/test-rbtree_list.c: New file.
99550         * tests/test-linkedhash_list.c: New file.
99551         * tests/test-avltreehash_list.c: New file.
99552         * tests/test-rbtreehash_list.c: New file.
99553         * tests/test-avltree_oset.c: New file.
99554         * tests/test-rbtree_oset.c: New file.
99555         * MODULES.html.sh (Container data structures): New section.
99557 2006-07-17  Bruno Haible  <bruno@clisp.org>
99559         * m4/gl_list.m4: New file.
99561 2006-07-17  Bruno Haible  <bruno@clisp.org>
99563         * lib/gl_list.h: New file.
99564         * lib/gl_list.c: New file.
99565         * lib/gl_array_list.h: New file.
99566         * lib/gl_array_list.c: New file.
99567         * lib/gl_carray_list.h: New file.
99568         * lib/gl_carray_list.c: New file.
99569         * lib/gl_linked_list.h: New file.
99570         * lib/gl_linked_list.c: New file.
99571         * lib/gl_anylinked_list1.h: New file.
99572         * lib/gl_anylinked_list2.h: New file.
99573         * lib/gl_avltree_list.h: New file.
99574         * lib/gl_avltree_list.c: New file.
99575         * lib/gl_anyavltree_list1.h: New file.
99576         * lib/gl_anyavltree_list2.h: New file.
99577         * lib/gl_rbtree_list.h: New file.
99578         * lib/gl_rbtree_list.c: New file.
99579         * lib/gl_anyrbtree_list1.h: New file.
99580         * lib/gl_anyrbtree_list2.h: New file.
99581         * lib/gl_anytree_list1.h: New file.
99582         * lib/gl_anytree_list2.h: New file.
99583         * lib/gl_linkedhash_list.h: New file.
99584         * lib/gl_linkedhash_list.c: New file.
99585         * lib/gl_anyhash_list1.h: New file.
99586         * lib/gl_anyhash_list2.h: New file.
99587         * lib/gl_avltreehash_list.h: New file.
99588         * lib/gl_avltreehash_list.c: New file.
99589         * lib/gl_rbtreehash_list.h: New file.
99590         * lib/gl_rbtreehash_list.c: New file.
99591         * lib/gl_anytreehash_list1.h: New file.
99592         * lib/gl_anytreehash_list2.h: New file.
99594         * lib/gl_oset.h: New file.
99595         * lib/gl_oset.c: New file.
99596         * lib/gl_array_oset.h: New file.
99597         * lib/gl_array_oset.c: New file.
99598         * lib/gl_avltree_oset.h: New file.
99599         * lib/gl_avltree_oset.c: New file.
99600         * lib/gl_rbtree_oset.h: New file.
99601         * lib/gl_rbtree_oset.c: New file.
99602         * lib/gl_anytree_oset.h: New file.
99604 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99606         * m4/mkancesdirs.m4: New file.
99607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99608         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99609         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99610         it.
99612 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99614         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99615         * lib/mkancesdirs.h: New files.
99616         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99617         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99618         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99619         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99620         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99621         callers changed.  Revamp internals significantly, by not
99622         attempting to create directories that are temporarily more
99623         permissive than the final results.  Do not attempt to use
99624         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99625         This removes some race conditions, fixes some bugs, and simplifies
99626         things.  Use new dirchownmod function to do owner and mode changes.
99627         * lib/mkdir-p.h: Likewise.
99628         * lib/modechange.c (octal_to_mode): New function.
99629         (struct mode_change): New member mentioned.
99630         (make_node_op_equals): New arg mentioned.  All callers changed.
99631         (mode_compile): Keep track of which mode bits the user has explicitly
99632         mentioned.
99633         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99634         New arg PMODE_BITS, to keep track of which mode bits the user
99635         mentioned; it treats S_ISUID and S_ISGID speciall.
99636         All callers changed.
99637         * lib/modechange.h: Likewise.
99639 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99641         * MODULES.html.sh: Add mkancestors.
99642         * modules/mkancesdirs: New module.
99643         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99644         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99645         The chdir-safer and afs files are now orphans; I'll remove them
99646         unless someone speaks up.
99647         Add lib/dirchownmod.c, lib/dirchownmod.h.
99648         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99649         Add lchown, mkancesdirs.
99650         (Maintainer): Add self.
99652 2006-07-15  Karl Berry  <karl@gnu.org>
99654         * gnulib-tool: help message wording/arrangement.
99656 2006-07-14  Simon Josefsson  <jas@extundo.com>
99658         * doc/gnulib.texi (Libtool and Windows): New section.
99660 2006-07-12  Simon Josefsson  <jas@extundo.com>
99662         * modules/gendocs (License): Fix license, approved by Karl.
99664 2006-07-12  Eric Blake  <ebb9@byu.net>
99666         * MODULES.html.sh: Add gendocs.
99668 2006-07-11  Eric Blake  <ebb9@byu.net>
99670         * modules/fdl: New module, to install doc/fdl.texi.
99671         * MODULES.html.sh: Add new section for documentation modules.
99672         * gnulib-tool: Avoid space-tab.
99673         (--doc-base): New option, to manage files from doc.
99675 2006-07-11  Eric Blake  <ebb9@byu.net>
99677         * m4/absolute-header.m4: Fix comments to match recent change.
99679 2006-07-11  Eric Blake  <ebb9@byu.net>
99681         * gnulib-tool: List --doc-base before --tests-base.
99683 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99685         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99687 2006-07-11  Bruno Haible  <bruno@clisp.org>
99689         * README: Mention where to put documentation.
99691 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99693         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99695 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99698         to stdint.m4.
99700 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99702         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99703         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99704         "no/such/file/stdint.h" when there is no such file, so that
99705         the resulting C code can be parsed by dodgy compilers.
99706         Problems reported by Bob Proulx.
99708 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99710         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99711         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99712         macros into the GNU _D_EXACT_NAMLEN.
99713         * lib/savedir.c:  Likewise.
99714         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99716 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99717         and Paul Eggert  <eggert@cs.ucla.edu>
99719         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99720         * m4/savedir.m4:
99721         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99722         macros into the GNU _D_EXACT_NAMLEN.
99724 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99727         around the absolute name, to work around a problem with the HP-UX
99728         11.23 native C compiler, reported by Bob Proulx.
99730 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99732         * doc/maintain.texi, make-stds.texi: Sync from
99733         <http://savannah.gnu.org/projects/gnustandards>.
99735 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99737         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99739 2006-07-09  Jim Meyering  <jim@meyering.net>
99741         * m4/glob.m4: Remove a doubled word in a comment.
99743 2006-07-09  Jim Meyering  <jim@meyering.net>
99745         * lib/argp-pv.c: Remove a doubled word in a comment.
99746         * lib/check-version.c (check_version): Likewise.
99747         * lib/javacomp.c (compile_java_class): Likewise.
99749 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99751         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99752         for the benefit of people using Autoconf 2.60.  If you want to
99753         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99754         (or m4/onceonly.m4, if pre-2.57) manually.
99756 2006-07-08  Jim Meyering  <jim@meyering.net>
99758         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99759         comment.
99760         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99761         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99762         comment.
99764 2006-07-08  Jim Meyering  <jim@meyering.net>
99766         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99768 2006-07-07  Simon Josefsson  <jas@extundo.com>
99770         * tests/test-crc.c: Change expected crc value, the test vector
99771         were probably computed using the old broken crc.c?
99773 2006-07-06  Simon Josefsson  <jas@extundo.com>
99775         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99776         now the canonical place for the M4 file).
99778         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99779         from the sys_socket dependency now.
99781         * modules/inet_pton (Files): Ditto.
99783         * modules/inet_ntop (Files): Ditto.
99785 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99787         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99788         not gl_PREREQ_GETUSERSHELL.
99790 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99792         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99793         with only one argument, for Autoconf 2.60.
99794         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99795         expand to nothing, so add a shell command to avoid syntax error.
99796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99798 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99800         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99802 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99805         no longer needed.  Check for isblank decl.
99806         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99807         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99808         of existence.
99810 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99812         * lib/getloadavg.c: Use __VMS, not VMS.
99813         * lib/getopt.c: Likewise.
99814         * lib/getpagesize.h: Likewise.
99815         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99816         and probably does not work.
99818 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99820         * lib/.cppi-disable: Add wcwidth.
99821         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99822         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99823         (ISGRAPH): Remove.  All uses changed to isgraph.
99824         (FOLD) [!defined _LIBC]: Remove special case.
99825         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99826         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99827         HAVE_ISBLANK.
99828         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99829         case.
99831 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99833         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99834         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99835         brackets.  Other minor changes to suppress some compiler
99836         warnings.
99838 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99839         and Paul Eggert  <eggert@cs.ucla.edu>
99841         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99842         of invoking obsolescent AC_HEADER_DIRENT macro.
99843         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99844         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99845         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99847         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99848         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99849         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99850         * m4/readdir.m4: Remove; no longer needed.
99852 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99853         and Paul Eggert  <eggert@cs.ucla.edu>
99855         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99856         Don't worry about this obsolete case any more.
99857         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99858         directories.
99859         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99860         worry about this obsolete case any more.
99861         * lib/fts.c: Likewise.
99862         * lib/getcwd.c: Likewise.
99863         * lib/glob.h: Likewise.
99864         * lib/savedir.c: Likewise.
99866 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99869         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99870         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99871         needed.
99872         All uses removed.
99873         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99874         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99875         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99876         needed.
99877         * m4/getdate.m4 (gl_GETDATE): Likewise.
99878         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99880         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99881         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99882         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99883         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99884         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99885         needed.
99887 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99889         * lib/memcasecmp.c: Include <limits.h>.
99890         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99891         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99892         Don't assume isdigit succeeds only on '0' through '9'.
99894 2006-07-05  Eric Blake  <ebb9@byu.net>
99896         * modules/getaddrinfo (Depends-on): Add snprintf.
99898 2006-07-05  Eric Blake  <ebb9@byu.net>
99900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99901         to avoid 'header present but could not be compiled' on cygwin.
99903 2006-07-05  Eric Blake  <ebb9@byu.net>
99905         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99906         missing from netdb.h.
99907         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99909 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99911         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99912         no longer needed.
99913         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99914         * m4/getdate.m4 (gl_GETDATE): Likewise.
99915         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99916         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99917         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99918         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99919         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99921 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99923         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99924         All uses of is_space replaced by isspace.
99925         * lib/exit.h: Don't talk about STDC_HEADERS.
99926         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99927         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99928         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99929         replaced by isprint etc.
99930         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99931         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99932         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99933         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99934         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99935         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99937 2006-07-05  Bruno Haible  <bruno@clisp.org>
99939         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99940         the function exists, before testing against AIX.
99941         Reported by Martin Lambers <marlam@marlam.de>.
99943 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99945         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99946         From Mark D. Baushke.
99948 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99951         to the absolute name, not just one, to bypass Sun C 5.8's
99952         "warning: #include of /usr/include/... may be non-portable".
99954 2006-07-04  Eric Blake  <ebb9@byu.net>
99956         * modules/dirname-tests: New test module.
99957         * tests/test-dirname.c: New file, replacing dirname.c
99958         TEST_DIRNAME section that was recently deleted.
99960 2006-07-04  Bruno Haible  <bruno@clisp.org>
99962         Assume ANSI C header files and <ctype.h> functions.
99963         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99964         (mbsnwidth): Use isprint, iscntrl instead.
99966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99968         Merge from coreutils.
99969         * MODULES.html.sh: Add xstrtold.
99970         * modules/xstrtold: New file.
99971         * modules/cycle-check (Files): Add lib/same-inode.h.
99972         * modules/dirname (Files): Add m4/double-slash-root.m4.
99973         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99974         * modules/mkdir-p (Files): Add lib/same-inode.h.
99975         * modules/same (Files): Add lib/same-inode.h.
99977 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99979         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99980         This is to keep the terminology clean; POSIX talks about
99981         "absolute pathnames", not "full pathnames", but the GNU
99982         Coding Standards say to use "path" for something else;
99983         so use "absolute" to keep both sides happy.
99984         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99985         Set gl_absolute_header, not gl_full_header_path.
99986         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99987         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99988         All uses changed.
99990         Merge from coreutils.
99992         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99994         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99995         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99996         want to require the building of c-strtod.o.
99997         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99998         needs -lm directly.
99999         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
100001         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100003         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
100004         --as-needed option if available.  Problem reported by Albert Chin in
100005         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
100006         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
100007         cc merely issues a bunch of annoying warnings for --as-needed
100008         (this problem was reported by Bob Proulx).  Also, try linking with
100009         -lm to detect a bug in binutils 2.16 (this problem was reported
100010         by Ralf Wildenhues).
100012         2006-06-18  Jim Meyering  <jim@meyering.net>
100014         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
100015         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
100016         macro.
100017         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
100018         also check for glibc-2.4's abort-inducing bug.
100020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
100021         Low-probability clean-up should be to use rmdir to get rid of
100022         the just-created directory, not unlink.
100024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
100025         configure fail, and request a bug report to inform us about it.
100026         Add a comment that, barring reports to the contrary, in 2007 we'll
100027         assume ftruncate is universally available.
100029         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100031         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
100033         2006-03-12  Jim Meyering  <jim@meyering.net>
100035         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
100036         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
100037         * m4/same.m4 (gl_SAME): Likewise.
100038         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
100040         2006-03-11  Eric Blake  <ebb9@byu.net>
100042         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
100043         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
100044         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
100045         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
100047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100049         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
100050         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
100051         reported by Mark D. Baushke, one in
100052         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
100054         Merge from coreutils.
100056         * lib/.cppi-disable: Add stdint_.h.
100057         * lib/.cvsignore: Add stdint.h.
100059         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100061         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
100062         both double and long double versions.
100063         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
100064         * lib/xstrtold.c: New file.
100065         * lib/xstrtod.h (xstrtold): New decl.
100067         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100069         * lib/filemode.c (setst): Remove.
100070         (strmode): Rewrite to avoid setst.  This makes the code shorter,
100071         (arguably) clearer, and the generated code is a bit smaller on my
100072         Debian GNU/Linux stable x86 host.
100074         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100076         * lib/filemode.c: Include "filemode.h" first, to test the interface.
100077         Assume that filemode.h includes sys/types.h and sys/stat.h.
100078         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
100079         (ftypelet): Reorder to put common cases first, for efficiency.
100080         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
100081         to do 'M'.
100082         (strmode): Renamed from mode_string, and now stores 12 bytes instead
100083         of 10, for compatibility with FreeBSD.  All callers changed.
100084         (filemodestring): Now stores 12 bytes instead of 10, and sets file
100085         types that can't be deduced solely from st_mode.  First arg is now a
100086         const pointer.
100087         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
100088         (strmode): Renamed from mode_string.
100089         (filemodestring): New decl.
100090         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
100091         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
100092         needed.
100093         (S_ISPORT, S_ISWHT): New macros, if not already defined.
100095         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100097         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
100098         fsusage.h now does that.  Include fsusage.h first, to test interface.
100099         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
100100         at most one method (the old code could have generated decls that
100101         didn't conform to C89, not that this was ever exercised).
100102         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
100104         2006-03-19  Jim Meyering  <jim@meyering.net>
100106         Work even in a chroot where d_ino values for entries in "/"
100107         don't match the stat.st_ino values for the same names.
100108         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
100109         number, iterate through all entries again, using lstat instead.
100110         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
100111         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
100113         * lib/getcwd.c (__getcwd): Clarify a comment.
100114         Use memcpy in place of a call to strcpy.
100116         2006-03-12  Jim Meyering  <jim@meyering.net>
100118         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
100119         matches that of the current directory (which we're about to chdir ".."
100120         out of), then save the dev-ino of the parent, instead.
100122         * lib/same-inode.h (SAME_INODE): New file/macro.
100123         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100124         Include "same-inode.h", instead.
100125         * lib/same.c: Likewise.
100126         * lib/cycle-check.h: Include "same-inode.h".
100127         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100128         * lib/cycle-check.c (SAME_INODE): Remove definition.
100129         * lib/root-dev-ino.h: Include "same-inode.h".
100131         2006-03-11  Eric Blake  <ebb9@byu.net>
100133         * lib/same.c (same_name): s/base_name/last_component/
100134         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100135         * lib/filenamecat.c (file_name_concat): Likewise.
100137         2006-03-11  Eric Blake  <ebb9@byu.net>,
100138                     Paul Eggert  <eggert@cs.ucla.edu>
100140         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100141         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100142         drive prefix.
100143         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100144         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100145         (last_component): New method.
100146         * lib/dirname.c (dir_len): Determine when drive letters need a
100147         subsequent slash.  Preserve // when it is special.
100148         (dir_name): Don't append dot when drive letter is absolute.
100149         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100150         * lib/basename.c (base_name): New semantics - malloc the result.
100151         Preserve // when it is special.  Preserve relative files that look
100152         like drive letters.
100153         (base_len): Preserve // when it is special.
100154         (last_component): New method, similar to old base_name semantics.
100155         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100156         base_name.  Strip redundant slashes from ///.
100158 2006-07-03  Jim Meyering  <jim@meyering.net>
100160         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100161         macro is used before the first cycle_check call.
100163 2006-07-03  Eric Blake  <ebb9@byu.net>
100165         * modules/dirname (Depends-on): Add xstrndup.
100167 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100169         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100170         test cases, so that config.log is a bit easier to follow.
100172 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100174         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100175         both are 64 bits, since this seems to be the tradition, and this
100176         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100177         we ever run into a host that prefers long long to long in this
100178         case, we'll need another configure-time test.  Problem reported by
100179         Jim Meyering.
100181 2006-07-02  Eric Blake  <ebb9@byu.net>
100183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100185 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100187         * modules/inttypes (Depends-on): No longer depends on stdint.
100188         * modules/stdint (Description): Say more about assumptions.
100189         Say that the fast types might differ.  Say macros are used.
100190         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100191         (Makefile.am): Revise list of substituted symbols to match
100192         new stdint.m4.
100193         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100194         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100195         * tests/test-stdint.c (verify_same_types)
100196         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100197         the code conforms to C99/C89.
100198         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100199         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100201 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100203         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100204         but fix a bug, by requiring at least 64 bits.
100205         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100206         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100207         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100208         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100210         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100211         changes.  Make 2.59 a prerequisite.  Check and substitute for
100212         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100213         inttypes.h.  Do not use special include files; just use the
100214         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100215         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100216         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100217         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100218         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100219         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100220         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100221         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100222         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100223         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100224         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100225         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100226         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100227         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100228         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100229         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100230         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100231         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100232         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100233         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100234         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100235         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100236         not check for things that C99 does not require, e.g., int8_t.  If
100237         a test isn't needed unless <stdint.h> isn't working, and is
100238         unlikely to be needed for any other reason, then don't do it
100239         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100240         size_t, since we assume C89 freestanding at least.  Do not check
100241         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100242         the right thing even if the types are not defined.  Instead use:
100243         (gl_STDINT_TYPE_PROPERTIES): New macro.
100244         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100245         testing whether <sys/types.h> clashes, as Autoconf does this for
100246         us now.  All uses removed.
100247         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100248         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100249         (gl_CHECK_TYPE_SAME):
100250         Remove; no longer needed.
100251         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100252         exists, since we'll return 0 anyway in that case.
100253         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100255 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100257         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100258         possible collision with system files.
100259         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100260         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100261         WCHAR_MIN and WCHAR_MAX in this case.
100262         (<stddef.h>): Do not include; no longer needed.
100263         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100264         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100265         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100266         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100267         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100268         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100269         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100270         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100271         !defined(__c99))]: Include in this case too, since it's harmless
100272         now.
100273         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100274         dangerous to do so.
100275         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100276         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100277         (_STDINT_MIN, _STDINT_MAX): New macros.
100278         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100279         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100280         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100281         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100282         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100283         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100284         macros, not typedefs; this simplifies things quite a bit.
100285         Use long int for all types narrower than int64_t.
100286         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100287         Define in terms of long long int or int64_t or long int,
100288         not int64_t or int32_t.  This saves some compile-time testing.
100289         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100290         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100291         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100292         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100293         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100294         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100295         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100296         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100297         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100298         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100299         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100300         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100301         undef any previous version and define our own version, for
100302         simplicity and consistency with the new macros for types.
100303         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100304         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100305         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100306         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100307         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100308         @WINT_T_SUFFIX@ to keep things simple here.
100309         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100310         Simplify by assuming typical 8/16/32/64 host, since we're
100311         already doing that elsewhere anyway.
100312         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100313         and assume long long int is 64 bits if available.  This
100314         speeds up 'configure'.
100316 2006-07-01  Eric Blake  <ebb9@byu.net>
100318         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100319         Reported by Andreas Buening.
100321 2006-07-01  Eric Blake  <ebb9@byu.net>
100323         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100325 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100327         * lib/getaddrinfo.c: fixed typo
100329 2006-06-29  Jim Meyering  <jim@meyering.net>
100331         * modules/strftime (Maintainer): Add my name, since with the
100332         FPRINTFTIME changes strftime.c has forked from glibc.
100334 2006-06-29  Eric Blake  <ebb9@byu.net>
100336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100338 2006-06-29  Eric Blake  <ebb9@byu.net>
100340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100342 2006-06-29  Eric Blake  <ebb9@byu.net>
100344         * lib/stat_.h: New file.
100346 2006-06-29  Eric Blake  <ebb9@byu.net>
100348         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100349         unused static function.
100351 2006-06-29  Eric Blake  <ebb9@byu.net>
100353         * doc/functions.texi (Function Portability): Document missing lstat
100354         on mingw.
100356 2006-06-29  Eric Blake  <ebb9@byu.net>
100358         * MODULES.html.sh: Add sys_stat.
100359         * modules/sys_stat: New module.
100360         * modules/mkstemp (Depends-on): Add sys_stat.
100362 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100364         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100366 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100368         * m4/c-bs-a.m4: Removed.
100370 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100372         * lib/strftime.c: Assume strftime() exists.
100374 2006-06-29  Derek Price  <derek@ximbiot.com>
100376         * modules/c-bs-a: Removed - \a is C89.
100377         * MODULES.html.sh: Remove c-bs-a.
100379 2006-06-29  Bruno Haible  <bruno@clisp.org>
100381         * modules/wcwidth (License): Change to LGPL.
100383 2006-06-28  Simon Josefsson  <jas@extundo.com>
100385         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100386         on _WIN32.
100388         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100389         getnameinfo.
100391 2006-06-28  Simon Josefsson  <jas@extundo.com>
100393         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100395 2006-06-28  Simon Josefsson  <jas@extundo.com>
100397         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100398         functions there.  It will succeed on Windows XP, but on Windows
100399         2000 and (presumably) earlier, it will fail, and use the internal
100400         re-implementation.
100401         (use_win32_p): New function.
100402         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100403         Support AI_NUMERICSERV to disable getservbyname.
100404         (getnameinfo): New function, only supports
100405         NI_NUMERICHOST|NI_NUMERICSERV for now.
100407         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100408         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100409         getnameinfo.
100411 2006-06-28  Eric Blake  <ebb9@byu.net>
100413         * modules/wcwidth: New file.
100414         * modules/mbchar (Depends-on): Add wcwidth.
100415         * modules/mbswidth (Depends-on): Add wcwidth.
100416         * MODULES.html.sh: Add wcwidth.
100418 2006-06-28  Eric Blake  <ebb9@byu.net>
100420         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100423 2006-06-28  Eric Blake  <ebb9@byu.net>
100425         * lib/xvasprintf.h: Fix comments.
100427 2006-06-28  Eric Blake  <ebb9@byu.net>
100429         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100430         * lib/mbswidth.c (wcwidth): Move from here...
100431         * lib/wcwidth.h: ...to this new file.
100433 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100435         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100438         it's obsolete.
100439         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100441 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100443         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100444         Autoconf 2.60 says this stuff was obsolete.
100446 2006-06-28  Bruno Haible  <bruno@clisp.org>
100448         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100450 2006-06-28  Bruno Haible  <bruno@clisp.org>
100452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100453         gt_TYPE_WCHAR_T.
100455 2006-06-28  Bruno Haible  <bruno@clisp.org>
100457         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100458         declaration for wcwidth.
100459         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100461 2006-06-28  Bruno Haible  <bruno@clisp.org>
100463         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100464         (mkdir): Define using _mkdir.
100466 2006-06-28  Bruno Haible  <bruno@clisp.org>
100468         * lib/getaddrinfo.h: Fix POSIX URL.
100469         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100470         _WIN32.
100471         (use_win32_p): Make static.
100472         (getaddrinfo): Reject service name if it is empty or does not consist
100473         solely of decimal digits, or if its value is > 65535.
100474         (getnameinfo): Remove useless casts.
100476 2006-06-27  Simon Josefsson  <jas@extundo.com>
100478         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100479         Eggert and Martin Lambers.
100481 2006-06-27  Simon Josefsson  <jas@extundo.com>
100483         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100484         Eggert and Martin Lambers.
100486 2006-06-27  Bruno Haible  <bruno@clisp.org>
100488         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100489         result to 0, not to empty.
100490         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100492 2006-06-27  Bruno Haible  <bruno@clisp.org>
100494         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100496 2006-06-26  Simon Josefsson  <jas@extundo.com>
100498         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100499         present.
100501 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100503         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100504         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100505         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100507 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100509         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100511 2006-06-26  Bruno Haible  <bruno@clisp.org>
100513         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100515 2006-06-26  Bruno Haible  <bruno@clisp.org>
100517         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100519 2006-06-26  Bruno Haible  <bruno@clisp.org>
100521         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100522         SGI C compiler in pre-C99 mode.
100523         Suggested by Mark D. Baushke and Larry Jones.
100525 2006-06-26  Bruno Haible  <bruno@clisp.org>
100527         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100528         WCHAR_MAX.
100529         Reported by Mark D. Baushke and Larry Jones.
100531 2006-06-26  Bruno Haible  <bruno@clisp.org>
100533         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100534         in pre-C99 mode.
100535         Suggested by Mark D. Baushke and Larry Jones.
100537 2006-06-23  Simon Josefsson  <jas@extundo.com>
100538             Bruno Haible  <bruno@clisp.org>
100540         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100541         Emit mostlyclean-local rule.
100542         (func_emit_tests_Makefile_am): Likewise.
100543         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100545 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100547         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100549 2006-06-23  Bruno Haible  <bruno@clisp.org>
100551         * tests/test-stdint.c: Update to match ISO C 99 Technical
100552         Corrigendum 1.
100554 2006-06-23  Bruno Haible  <bruno@clisp.org>
100556         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100558 2006-06-23  Bruno Haible  <bruno@clisp.org>
100560         * lib/stdint_.h: Treat IRIX like OpenBSD.
100562 2006-06-23  Bruno Haible  <bruno@clisp.org>
100564         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100565         ISO C 99 Technical Corrigendum 1.
100567 2006-06-22  Simon Josefsson  <jas@extundo.com>
100569         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100570         MinGW.
100572 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100574         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100575         needed.  Some compiler complained about some of them.  Problem reported
100576         by Larry Jones in
100577         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100579 2006-06-21  Simon Josefsson  <jas@extundo.com>
100581         * tests/test-getaddrinfo.c: New file.
100583         * modules/getaddrinfo-tests: New file.
100585         * MODULES.html.sh: Add inet_pton.
100587         * modules/inet_pton: New file.
100589 2006-06-21  Simon Josefsson  <jas@extundo.com>
100591         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100592         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100593         of using the (limited) gnulib implementation on Windows XP.
100595         * m4/inet_pton.m4: New file.
100597 2006-06-21  Simon Josefsson  <jas@extundo.com>
100599         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100600         variable.
100602         * lib/socket_.h: Don't define WINVER.
100604         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100605         slightly modified to work in gnulib.
100607 2006-06-21  Simon Josefsson  <jas@extundo.com>
100609         * doc/gnulib.texi (Windows sockets): Add.
100611 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100613         * lib/read-file.c (fread_file): Start with buffer allocation of
100614         0 bytes rather than 1 byte; this simplifies the code.
100615         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100616         code to free buffer and save/restore errno.
100617         (internal_read_file): Remove unused local.
100619 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100621         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100622         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100623         Problem reported by Denis Excoffier in
100624         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100626 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100628         * modules/sys_socket, modules/socklen: Include sys/types since
100629         FreeBSD 4.x's sys/socket.h needs it.
100631 2006-06-19  Simon Josefsson  <jas@extundo.com>
100633         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100635 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100637         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100639 2006-06-19  Bruno Haible  <bruno@clisp.org>
100641         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100642         and FULL_PATH_INTTYPES_H in angle brackets.
100643         Reported by Mark D. Baushke <mdb@gnu.org>.
100645 2006-06-17  Eric Blake  <ebb9@byu.net>
100647         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100648         errno.
100650 2006-06-17  Bruno Haible  <bruno@clisp.org>
100652         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100653         <sys/inttypes.h>.
100655 2006-06-17  Bruno Haible  <bruno@clisp.org>
100657         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100658         whether errno is declared. Assume <errno.h> declares errno.
100660 2006-06-17  Bruno Haible  <bruno@clisp.org>
100662         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100664 2006-06-17  Bruno Haible  <bruno@clisp.org>
100666         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100667         problem on Solaris 2.5.1.
100669 2006-06-16  Eric Blake  <ebb9@byu.net>
100671         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100672         * lib/unicodeio.c [!defined errno]: Likewise.
100673         * lib/strtol.c [!defined errno]: Likewise.
100674         * lib/strtod.c [!defined errno]: Likewise.
100676 2006-06-15  Eric Blake  <ebb9@byu.net>
100678         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100680 2006-06-15  Eric Blake  <ebb9@byu.net>
100682         * config/srclist.txt (ssize_t.m4): Lose sync.
100684 2006-06-15  Bruno Haible  <bruno@clisp.org>
100686         * modules/stdint (Files): Include m4/full-header-path.m4,
100687         m4/size_max.m4, m4/wchar_t.m4.
100688         (Makefile.am): Many more substitutions.
100689         * modules/stdint-tests: New file.
100690         * tests/test-stdint.c: New file.
100692 2006-06-15  Bruno Haible  <bruno@clisp.org>
100694         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100695         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100696         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100697         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100698         gl_CHECK_TYPE_SAME): New macros.
100700 2006-06-15  Bruno Haible  <bruno@clisp.org>
100702         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100704 2006-06-15  Bruno Haible  <bruno@clisp.org>
100706         * lib/stdint_.h: Rewritten to be fully auto-configured.
100707         Fixes bug on HP-UX/IA64.
100709 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100711         * lib/getdate.y (__attribute__): Don't define if already defined.
100712         Problem reported by Larry Jones.
100713         * lib/utimens.c (__attribute__): Likewise.
100715 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100717         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100718         reported by Andreas Schwab.
100720 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100721             Bruno Haible  <bruno@clisp.org>
100723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100724         check for the declaration of strnlen and a run test that exposes the
100725         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100726         rpl_strndup.
100728 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100729             Bruno Haible  <bruno@clisp.org>
100731         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100733 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100735         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100736         compile test, for Tru64 4.0D.
100738 2006-05-28  Karl Berry  <karl@gnu.org>
100740         * config/srclist.txt (printf-args.c): lose sync.
100742 2006-05-26  Martin Lambers  <marlam@marlam.de>
100744         * lib/getpass.c: Updates the test for the native W32 API, and adds
100745         missing includes, thus fixing compilation warnings.
100747 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100749         * lib/exclude.c (exclude_fnmatch): New function.
100750         (excluded_file_name): Call exclude_fnmatch.
100751         * lib/exclude.h (excluded_file_name): New prototype
100753 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100755         * lib/tempname.c (small_open, large_open): New macros.
100756         (__open, __open64) [!_LIBC]: Remove.
100757         (__gen_tempname): Use small_open and large_open instead of __open
100758         and __open64.  This fixes a portability bug on HP-UX 11.11i
100759         reported by Simon Wing-Tang in
100760         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100762 2006-05-24  Bruno Haible  <bruno@clisp.org>
100764         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100765         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100766         Reported by Thorsten Maerz <torte@netztorte.de> via
100767         Aaron Stone <aaron@serendipity.cx>.
100769 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100772         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100773         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100774         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100775         not really conditional on the cache.
100776         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100778 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100780         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100781         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100782         (my_usleep): Don't mishandle maximum value.
100784 2006-05-19  Jim Meyering  <jim@meyering.net>
100786         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100788 2006-05-17  Bruno Haible  <bruno@clisp.org>
100790         Cygwin portability.
100791         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100793 2006-05-17  Bruno Haible  <bruno@clisp.org>
100795         * lib/stdint_.h: Fix recognition of Cygwin.
100797 2006-05-15  Bruno Haible  <bruno@clisp.org>
100799         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100800         on libtool patch by Ralf Wildenhues.
100802 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100805         test for C99 conformance; (bool) 0.5 is an integer constant
100806         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100807         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100809 2006-05-11  Simon Josefsson  <jas@extundo.com>
100811         * m4/xvasprintf.m4: Fix obvious typo.
100813 2006-05-11  Jim Meyering  <jim@meyering.net>
100815         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100816         James Lemley.
100818 2006-05-10  Simon Josefsson  <jas@extundo.com>
100820         * lib/md4.c: Typo fix, update copyright years.
100821         (K1, K2): Don't use L because it turn computations into 64-bit on
100822         64-bit platforms.
100824 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100826         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100827         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100828         unwanted sign propagation, e.g., on hosts with 64-bit int.
100829         There still are some problems with reeelly weird theoretical hosts
100830         (e.g., 33-bit int) but it's not worth worrying about now.
100831         * lib/sha1.c (rol): Likewise.
100832         (K1, K2, K3, K4): Remove unnecessary L suffix.
100834 2006-05-10  Bruno Haible  <bruno@clisp.org>
100836         * lib/des.c: Cast to avoid warnings.
100838 2006-05-09  Bruno Haible  <bruno@clisp.org>
100840         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100841         (Depends-on): Depend also on xsize, stdarg.
100842         (configure.ac): Add gl_XVASPRINTF.
100844 2006-05-09  Bruno Haible  <bruno@clisp.org>
100846         * m4/xvasprintf.m4: New file.
100848 2006-05-09  Bruno Haible  <bruno@clisp.org>
100850         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100851         (EOVERFLOW): Define fallback value.
100852         (xstrcat): New function.
100853         (xvasprintf): Recognize the special case of a string concatenation.
100855 2006-05-08  Eric Blake  <ebb9@byu.net>
100857         * gnulib-tool (func_version): Base copyright year on CVS date.
100858         (func_emit_copyright_notice): New function.
100859         (func_emit_lib_Makefile_am): Use it.
100860         (func_emit_tests_Makefile_am): Likewise.
100861         (func_import): Likewise.
100863 2006-05-08  Bruno Haible  <bruno@clisp.org>
100865         * modules/stdarg: New file.
100866         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100868 2006-05-08  Bruno Haible  <bruno@clisp.org>
100870         * m4/stdarg.m4: New file, from GNU gettext.
100872 2006-05-08  Bruno Haible  <bruno@clisp.org>
100874         * config/srclist.txt (build-aux/config.rpath): different from latest
100875         release.
100877 2006-05-08  Bruno Haible  <bruno@clisp.org>
100879         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100881 2006-05-05  Jim Meyering  <jim@meyering.net>
100883         * m4/warning.m4: New file, derived from bison's file by the same name.
100885 2006-05-03  Bruno Haible  <bruno@clisp.org>
100887         * lib/stdint_.h: Shorter URL.
100888         * lib/inttypes.h: Likewise.
100890 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100892         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100894 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100896         * lib/verify.h: Document the internals better.  Most of this change
100897         was written by Bruno Haible.
100899 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100901         * doc/verify.texi: New file, partly based on a proposal by
100902         Bruno Haible.
100904 2006-05-02  Bruno Haible  <bruno@clisp.org>
100906         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100907         test from here...
100908         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100910 2006-04-29  Bruno Haible  <bruno@clisp.org>
100912         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100913         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100915 2006-04-29  Bruno Haible  <bruno@clisp.org>
100917         * gnulib-tool: Make --update option actually work.
100919 2006-04-29  Bruno Haible  <bruno@clisp.org>
100921         * doc/gcd.texi: New file.
100922         * doc/gnulib.texi: Include it.
100924 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100926         * lib/getdate.y (get_date): When adding relative date, start with the
100927         initial time, not with the result of the first mktime call.
100929 2006-04-25  Bruno Haible  <bruno@clisp.org>
100931         * gnulib-tool (func_import): Output the include directives in three
100932         blocks, sorted separately.
100933         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100935 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100937         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100938         to define main with arguments, for C++.  Reported by Eric Blake.
100939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100940         Prefer 'int main ()' to 'int main (void)', for C++.
100941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100943         for 'main', for C99 and C++.
100945 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100948         Don't assume that exit status -1 is valid.
100949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100950         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100952         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100953         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100954         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100955         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100956         functions can be used without declaring them, or that you can
100957         exit with status -1.
100958         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100960 2006-04-24  Karl Berry  <karl@gnu.org>
100962         * config/srclist.txt (longdouble.m4): sync lost.
100964 2006-04-24  Eric Blake  <ebb9@byu.net>
100966         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100968 2006-04-24  Bruno Haible  <bruno@clisp.org>
100970         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100971         poll() implementation in AIX.
100972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100974 2006-04-24  Bruno Haible  <bruno@clisp.org>
100976         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100977         assigned exactly once.
100979 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100980             Bruno Haible  <bruno@clisp.org>
100982         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100983         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100984         for AM_CPPFLAGS.
100986 2006-04-23  Bruno Haible  <bruno@clisp.org>
100988         * modules/copy-file: Depend on unistd.
100989         * modules/execute: Likewise.
100990         * modules/fatal-signal: Likewise.
100991         * modules/findprog: Likewise.
100992         * modules/mkdtemp : Likewise.
100993         * modules/pipe: Likewise.
100994         * modules/wait-process: Likewise.
100996 2006-04-23  Bruno Haible  <bruno@clisp.org>
100998         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100999         condition was already detected.
101000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101002 2006-04-23  Bruno Haible  <bruno@clisp.org>
101004         * lib/copy-file.c: Include <unistd.h> unconditionally.
101005         * lib/execute.c: Likewise.
101006         * lib/fatal-signal.c: Likewise.
101007         * lib/findprog.c: Likewise.
101008         * lib/mkdtemp.c: Likewise.
101009         * lib/pipe.h: Likewise.
101010         * lib/pipe.c: Likewise.
101011         * lib/wait-process.h: Likewise.
101013 2006-04-23  Bruno Haible  <bruno@clisp.org>
101015         * gnulib-tool (func_usage): Fix --import description. Document
101016         --update.
101017         (func_import): Create temporary file in a temporary directory, if
101018         --dry-run is specified. Silence errors from 'grep' when there are no
101019         m4 files in $m4dir.
101020         (func_create_testdir): Silence errors from 'grep' when there are no
101021         m4 files in $m4dir.
101022         Reported by Karl Berry <karl@freefriends.org>.
101024 2006-04-20  Bruno Haible  <bruno@clisp.org>
101026         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
101027         one argument, so that the code will be portable to Autoconf 2.60.
101028         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
101029         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
101030         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
101032 2006-04-19  Derek Price  <derek@ximbiot.com>
101033             Eric Blake  <ebb9@byu.net>
101035         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
101036         rather than "/full/path.h".  Update comment to match.  Shorten &
101037         generalize m4_translit call via AS_TR_CPP.
101039 2006-04-19  Derek Price  <derek@ximbiot.com>
101040             Eric Blake  <ebb9@byu.net>
101042         * lib/inttypes.h: Correct grammar in comment.
101044 2006-04-18  Derek Price  <derek@ximbiot.com>
101045             Paul Eggert  <eggert@cs.ucla.edu>
101047         * modules/inttypes: New file.
101048         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
101050 2006-04-18  Derek Price  <derek@ximbiot.com>
101051             Paul Eggert  <eggert@cs.ucla.edu>
101053         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
101054         New files.
101056 2006-04-18  Derek Price  <derek@ximbiot.com>
101057             Paul Eggert  <eggert@cs.ucla.edu>
101059         * lib/inttypes.h: New file.
101060         * lib/strtoimax.c: Assume <inttypes.h>.
101062 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
101064         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
101065         isn't mounted.  Problem reported by Kir Kolyshkin.
101067 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101069         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
101070         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
101071         Derek R. Price.
101072         * lib/regex.h (RE_DUP_MAX): Update comment to match current
101073         implementation.
101075 2006-04-12  Eric Blake  <ebb9@byu.net>
101077         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
101078         is now done automatically by the corresponding Autoconf macro.
101080 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
101082         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
101083         time_r.h.
101085 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101087         Merge regex changes from libc, removing some of our
101088         POSIX-conformance changes that were rejected and redoing them in a
101089         less-intrusive way.
101091         * lib/regcomp.c (re_compile_internal, init_dfa):
101092         Length arg is now size_t, not Idx.  All uses changed.
101093         (peek_token): Forward decl now says internal_function.
101094         (__re_error_msgid, __re_error_msgid_idx):
101095         Now static rather than extern with attribute_hidden.
101096         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
101097         For some reason libc prefers K&R style defns for external functions.
101098         (regerror) [!defined _LIBC]: Likewise.
101099         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
101100         (seek_collating_symbol_entry, lookup_collation_sequence_value):
101101         (build_range_exp, build_collating_symbol):
101102         Use K&R-style defn.
101103         (re_compile_fastmap): Use '\0' to memset, not 0.
101104         (utf8_sb_map): Make the calculations more obvious.
101105         (init_dfa, parse_bracket_exp, build_charclass_op):
101106         Call calloc and cast result, as glibc does.
101107         (init_word_char, fetch_token, peek_token, peek_token_bracket):
101108         (build_range_exp, build_collating_symbol):
101109         Now internal functions.
101111         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
101113         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
101114         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
101115         Don't depend on VMS; depend on __VMS instead, for POSIX
101116         namespace cleanness.
101117         (regoff_t): Define to ssize_t, not long int.
101119         Remove the REG_ macros named below.  Instead, make the old names
101120         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
101121         __USE_GNU_REGEX.
101122         (REG_BACKSLASH_ESCAPE_IN_LISTS):
101123         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101124         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101125         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101126         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101127         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101128         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101129         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101130         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101131         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101132         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101133         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101134         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101135         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101136         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101137         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101138         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101139         (REG_NREGS):
101140         Remove.  All uses replaced by the old RE_* names.
101141         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101142         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101143         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101144         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101145         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101146         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101147         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101148         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101149         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101150         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101151         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101152         Don't bother having these macros be independent of each others'
101153         values, since they no longer exist in the POSIX name space.
101155         Rename the following member names back to their old names,
101156         unless !__USE_GNU_REGEX.  All uses changed back.
101157         (buffer): Renamed from re_buffer.
101158         (allocated): Renamed from re_allocated.
101159         (used): Renamed from re_used.
101160         (syntax): Renamed from re_syntax.
101161         (fastmap): Renamed from re_fastmap.
101162         (translate): Renamed from re_translate.
101163         (can_be_null): Renamed from re_can_be_null.
101164         (regs_allocated): Renamed from re_regs_allocated.
101165         (fastmap_accurate): Renamed from re_fastmap_accurate.
101166         (no_sub): Renamed from re_no_sub.
101167         (not_bol): Renamed from re_not_bol.
101168         (not_eol): Renamed from re_not_eol.
101169         (newline_anchor): Renamed from re_newline_anchor.
101170         (num_regs): Renamed from rm_num_regs.
101171         (start): Renamed from rm_start.
101172         (end): Renamed from rm_end.
101174         (free_state): Move up a bit.
101176         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101177         #define to be empty.
101178         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101179         when that is what is intended.
101180         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101181         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101182         (MAX): New macro.
101183         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101184         All uses changed back to re_malloc, etc.  It's now the caller's
101185         responsibility to check for overflow; all callers changed.
101186         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101187         (re_x2nrealloc): Remove.
101188         (free_state): Remove decl.
101190         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101191         (re_set_registers, re_exec):
101192         Use K&R-style defn.
101194         2006-01-31  Roland McGrath  <roland@redhat.com>
101196         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101197         Reported by Mike Frysinger <vapier@gentoo.org>.
101199         2006-01-15  Andreas Jaeger  <aj@suse.de>
101201         [BZ #1950]
101202         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101203         build_wcs_upper_buffer change.
101204         (build_wcs_upper_buffer): Change return type.
101206         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101208         * lib/regex_internal.h: Include <stdint.h> if available.
101210         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101212         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101214         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101216         * lib/regcomp.c: Adjust for changed secondary hash function.
101218         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101220         * lib/regex.h: Pretty printing.
101221         Clean up namespace a bit.
101223         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101225         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101226         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101228         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101229                     Ulrich Drepper  <drepper@redhat.com>
101231         [BZ #1302]
101232         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101233         changed.
101234         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101236         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101238         [BZ #281]
101239         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101240         * lib/regcomp.c: Remove unnecessary uses of
101241         unsigned RE_TRANSLATE_TYPE.
101242         * lib/regex_internal.h: Likewise.
101243         * lib/regex_internal.c: Likewise.
101244         * lib/regexec.c: Likewise.
101245         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101247         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101249         * lib/regexec.c (find_recover_state): Remove unnecessary
101250         initialization.
101251         (transit_state_bkref): Make DFA a const pointer.
101252         (get_subexp): Likewise.
101253         (check_arrival): Likewise.
101254         (update_cur_sifted_state): Likewise.
101255         (re_search_internal): Likewise.
101256         (prune_impossible_nodes): Likewise.
101257         (acquire_init_state_context): Likewise.
101258         (proceed_next_node): Likewise.
101259         (set_regs): Likewise.
101260         (free_fail_stack_return): Likewise.
101261         (check_arrival_expand_ecl): Mark DFA parameter as const.
101262         (check_arrival_expand_ecl_sub): Likewise.
101263         (check_subexp_limits): Likewise.
101264         (sub_epsilon_src_nodes):  Likewise.
101265         (add_epsilon_src_nodes):  Likewise.
101266         (merge_state_array): Likewise.
101267         (update_regs): Likewise.
101268         (build_trtable): Likewise.
101269         (sift_states_backward): Mark MCTX parameter as const.
101270         (build_sifted_states): Likewise.
101271         (update_cur_sifted_state): Likewise.
101272         (sift_states_mkref): Likewise.
101273         (check_arrival_expand_ecl): Mark eclosure as const.
101274         (check_dst_limits_calc_pos_1): Likewise.
101275         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101276         pointer.
101278         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101280         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101281         (transit_state_sb): Likewise.
101282         (transit_state_mb): Likewise.
101283         (sift_states_iter_mb): Likewise.
101284         (check_arrival_add_next_nodes): Likewise.
101285         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101286         [_LIBC] (re_search_2_stub): Use mempcpy.
101288         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101289         mbrtowc for very simple UTF-8 case.
101291         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101292         a pointer-to-const.
101293         (re_acquire_state_context): Likewise.
101294         * lib/regex_internal.h: Adjust prototypes.
101296         * lib/regex.c: Prevent using C++ compilers.
101298         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101299         (re_acquire_state_context): Likewise.
101301 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101303         * modules/regex (Depends-on): Add ssize_t.
101305 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101307         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101308         translation table.
101310 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101312         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101314 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101315             Bruno Haible  <bruno@clisp.org>
101317         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101318         <sys/types.h> and <inttypes.h>.
101320 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101322         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101323         `__error_t_defined', so argp.h will not typedef the former.
101325 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101327         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101328         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101329         glibc names.  Even if glibc is changed to conform to POSIX, the
101330         traditional names will be available anyway, since regex depends on
101331         the extensions module.  Also, fix a longstanding typo in the
101332         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101333         reported by Emanuele Giaquinta.  Also, change sense of cached
101334         variable, so that the message makes sense.
101336 2006-03-24  Simon Josefsson  <jas@extundo.com>
101338         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101339         including some doc fixes.
101340         (base64_encode_alloc): Fix +1 bug on allocation failures.
101342 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101344         * lib/base64.c (base64_encode): Do not read past end of array with
101345         unsanitized input on systems with CHAR_BIT > 8.
101347 2006-03-24  Eric Blake  <ebb9@byu.net>
101349         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101351 2006-03-22  Karl Berry  <karl@gnu.org>
101353         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101354         * config/srclistvars.sh (COREUTILS): new var.
101356 2006-03-17  Jim Meyering  <jim@meyering.net>
101358         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101359         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101361 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101363         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101364         no longer needs it.  Instead, check that regoff_t is as least
101365         as wide as ptrdiff_t.
101367         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101368         so that our regex.h stays compatible with the installed regex.
101369         This is helpful for installers who configure --without-included-regex.
101370         Problem reported by Emanuele Giaquinta.
101372 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101374         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101375         Typedef to long int, not to off_, as POSIX will likely change
101376         in that direction.
101378 2006-03-15  Eric Blake  <ebb9@byu.net>
101380         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101382 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101384         * lib/argp-help.c (validate_uparams): Fix typo
101385         * lib/argp-parse.c (argp_default_options): Consistently begin help
101386         messages with a lowercase letter.
101388 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101390         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101391         overrun buffers and shouldn't be used (much as gets shouldn't be
101392         used).
101393         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101395 2006-03-08  Simon Josefsson  <jas@extundo.com>
101397         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101398         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101400 2006-03-08  Simon Josefsson  <jas@extundo.com>
101402         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101403         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101405 2006-03-08  Simon Josefsson  <jas@extundo.com>
101407         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101408         signal that configure disabled the device.
101410 2006-03-08  Simon Josefsson  <jas@extundo.com>
101412         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101413         languages.
101415 2006-03-07  Simon Josefsson  <jas@extundo.com>
101417         * modules/getopt (Depends-on): Add unistd.
101419         * modules/unistd: New file.
101421 2006-03-07  Simon Josefsson  <jas@extundo.com>
101423         * modules/gc-random: New file.
101425 2006-03-07  Simon Josefsson  <jas@extundo.com>
101427         * m4/unistd_h.m4: New file.
101429 2006-03-07  Simon Josefsson  <jas@extundo.com>
101431         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101432         test to be side-effect free by storing the result in the cache
101433         variable gl_cv_lib_readline, and moving the assignment of
101434         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101435         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101437 2006-03-07  Simon Josefsson  <jas@extundo.com>
101439         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101440         error on missing devices (the functions will return an error).
101442         * m4/gc.m4: Move random stuff to gc-random.m4
101444 2006-03-07  Simon Josefsson  <jas@extundo.com>
101446         * lib/unistd_.h: New file.
101448 2006-03-07  Simon Josefsson  <jas@extundo.com>
101450         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101452 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101454         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101455         Problem reported by Juan Manuel Guerrero.
101457 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101459         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101460         the unistd module.
101461         * lib/getlogin_r.c: Likewise.
101462         * lib/getlogin_r.h: Likewise.
101463         * lib/glob.c: Likewise.
101464         * lib/pagealign_alloc.c: Likewise.
101465         * lib/unistd_.h: Remove; no longer needed.
101467 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101469         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101470         Add unistd.
101471         * modules/c-stack (Depends-on): Add unistd.
101472         * modules/getlogin_r: Likewise.
101473         * modules/glob: Likewise.
101474         * modules/pagealign_alloc: Likewise.
101475         * modules/unistd (Files): Remove lib/unistd_.h.
101476         (EXTRA_DIST): Remove.
101477         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101478         need unistd_.h.
101479         (MOSTLYCLEANFILES): Remove unistd.h-t.
101481 2006-03-03  Simon Josefsson  <jas@extundo.com>
101483         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101485 2006-03-03  Simon Josefsson  <jas@extundo.com>
101487         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101488         libidn and bison.
101490 2006-03-03  Simon Josefsson  <jas@extundo.com>
101492         * build-aux/maint.mk: Add indent target.
101494 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101496         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101497         our replacement poll.h in any case, to avoid a differing
101498         declaration from a system header.  Seen on AIX.
101500 2006-03-01  Simon Josefsson  <jas@extundo.com>
101502         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101503         <kasal@ucw.cz>.
101505 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101507         * modules/gettime (Depends-on): Add extensions module.
101508         * modules/nanosleep (Depends-on): Likewise.
101509         * modules/settime (Depends-on): Likewise.
101511 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101513         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101514         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101515         pedantically.
101516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101517         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101519         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101520         not "==".  Reported by Ralf Wildenhues.
101522 2006-03-01  Karl Berry  <karl@gnu.org>
101524         * doc/Copyright/request-*: new files, synced from gnuorg.
101526 2006-03-01  Karl Berry  <karl@gnu.org>
101528         * config/srclist.txt (Copyright/*): new entries.
101530 2006-02-28  Simon Josefsson  <jas@extundo.com>
101532         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101534 2006-02-27  Simon Josefsson  <jas@extundo.com>
101536         * lib/base64.h: Indent #define's.  From Jim Meyering
101537         <jim@meyering.net>.
101539 2006-02-27  Jim Meyering  <jim@meyering.net>
101541         Revert the change of 2006-02-24, so these files can continue
101542         to be sync'd from gettext.
101543         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101544         of `config.h'.
101546 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101548         * modules/intprops: New file.
101549         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101550         Add intprops.
101551         * modules/getloadavg (Files): Remove lib/intprops.h.
101552         (Depends-on): Add intprops.
101553         * modules/human: Likewise.
101554         * modules/inttostr: Likewise.
101555         * modules/openat: Likewise.
101556         * modules/sig2str: Likewise.
101557         * modules/userspec: Likewise.
101558         * modules/utimecmp: Likewise.
101559         * modules/xnanosleep: Likewise.
101560         * modules/xstrtol: Likewise.
101562 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101564         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101565         * modules/lock-tests (TESTS): Use $(EXEEXT).
101566         * modules/tls-tests: Likewise.
101567         * modules/argp-tests: Likewise.
101568         (check_PROGRAMS): New var, replacing...
101569         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101571 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101573         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101574         `config.h'.
101576 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101578         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101580 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101582         Sync from coreutils.
101583         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101584         gl_CHDIR_SAFER.
101586 2006-02-22  Jim Meyering  <jim@meyering.net>
101588         Sync from coreutils.
101589         * m4/chdir-safer.m4: New file.
101591 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101593         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101594         AT_FDCWD exceeds INT_MAX.
101595         * lib/openat.h (AT_FDCWD): Likewise.
101597 2006-02-17  Eric Blake  <address@hidden>
101599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101601 2006-02-16  Simon Josefsson  <jas@extundo.com>
101603         * modules/getaddrinfo (Depends-on): Add sys_socket.
101605 2006-02-15  Simon Josefsson  <jas@extundo.com>
101607         * build-aux/maint.mk: Add dsyntax-check rule.
101609 2006-02-15  Eric Blake  <ebb9@byu.net>
101611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101612         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101613         'present but cannot compile' warnings on cygwin.
101614         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101615         use ws2tcpip.h if sys/socket.h works.
101616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101617         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101619 2006-02-14  Simon Josefsson  <jas@extundo.com>
101621         * modules/maintainer-makefile (Files): Rename.
101623         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101624         and (the local) Makefile.cfg to maint-cfg.mk.
101626         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101627         to the latter.
101629         * modules/maintainer-makefile: New module.
101631         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101632         severaly stripped to make it possible to build it up from scratch
101633         with reliable tests.
101635         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101636         fixes to permit overriding the default actions when configure and
101637         makefile are not available.
101639 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101641         Sync from coreutils.
101642         * modules/lstat (Depends-on): Don't depend on xalloc.
101643         (License): Change from GPL to LGPL, since this is now simply a
101644         replacement for a libc function.
101646 2006-02-14  Jim Meyering  <jim@meyering.net>
101648         Sync from coreutils.
101650         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101651         failure on deficient systems, and simplify gnulib lgpl dependencies.
101652         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101653         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101655         * lib/xalloc-die.c: Remove unused definition of N_.
101657 2006-02-14  Jim Meyering  <jim@meyering.net>
101659         Sync from coreutils.
101660         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101661         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101662         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101663         double-quote uses of that variable, to accommodate the rare case in
101664         which getmntent is available in none of the libraries checked.  This
101665         happens at least on FreeBSD 5.0.
101667 2006-02-13  Simon Josefsson  <jas@extundo.com>
101669         * gnulib-tool (Usage): Fix --import, from
101670         karl@freefriends.org (Karl Berry).
101672 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101674         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101676 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101678         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101679         "autoupdate" on 2005-12-12.
101681 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101683         * modules/closeout (Depends-on): Remove atexit.
101685 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101687         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101688         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101690 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101692         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101693         __EXTENSIONS__ if this causes compilation to fail.  Problem
101694         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101695         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101697 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101699         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101700         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101701         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101702         All uses changed.
101704 2006-01-26  Simon Josefsson  <jas@extundo.com>
101706         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101707         prototype is visible on mingw32.
101709         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101710         for mingw32.
101712         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101713         mingw32).
101715 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101717         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101718         attempt to open for write; this always fails, at least on POSIX
101719         hosts.  This reinstates the 2006-01-09 change, which was
101720         inadvertently removed.
101722 2006-01-26  Bruno Haible  <bruno@clisp.org>
101724         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101725         Reported by Paul Eggert.
101727 2006-01-26  Bruno Haible  <bruno@clisp.org>
101728             Paul Eggert  <eggert@cs.ucla.edu>
101730         * lib/stdbool_.h (_Bool)
101731         [(! (defined __cplusplus || defined __BEOS__)
101732           && !defined __GNUC__
101733           && !(defined __HP_cc || defined __xlc__
101734                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101735                || defined __sgi))]:
101736         #define to signed char in these cases too; this simplifies
101737         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101738         etc., separately) and makes it more conservative.
101740 2006-01-25  Simon Josefsson  <jas@extundo.com>
101742         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101743         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101744         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101746 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101748         * lib/argp-namefrob.h: Bugfix. Remove stray #
101750 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101753         so that we test the test.
101754         Check for yet another HP-UX cc bug involving *bool |= bool.
101756 2006-01-25  Karl Berry  <karl@gnu.org>
101758         * config/srclist.txt (vasnprintf.c): sync lost.
101760 2006-01-25  Jim Meyering  <jim@meyering.net>
101762         Sync from the stable (b5) branch of coreutils:
101764         * lib/fts.c (fts_children): Don't let close() clobber errno from
101765         failed fchdir().
101767         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101768         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101769         a dangling symlink.  That can also happen at least for ELOOP.
101770         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101771         FYI, this bug predates the inclusion of fts.c in coreutils.
101773         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101774         in their own block, so pre-c99 compilers don't object.
101776         Avoid the double-free (first in fts_read, second in fts_close) that
101777         would occur when an `active' directory is made inaccessible (e.g.,
101778         via chmod a-x) during a traversal.
101779         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101780         before returning.  Reproduce this failure by
101781         mkdir -p a/b; cd a; chmod a-x . b
101782         Reported by Stavros Passas.
101784 2006-01-25  Jim Meyering  <jim@meyering.net>
101786         * lib/fileblocks.c: Remove more useless parentheses.
101787         * lib/readutmp.h: Likewise.
101789 2006-01-25  Bruno Haible  <bruno@clisp.org>
101791         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101792         warnings.
101793         Reported by Paul Eggert.
101795 2006-01-25  Bruno Haible  <bruno@clisp.org>
101797         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101798         rid of a trap command. For Solaris sh.
101799         Reported by Mark D. Baushke <mdb@gnu.org>.
101801 2006-01-24  Simon Josefsson  <jas@extundo.com>
101803         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101804         Bruno.
101806 2006-01-24  Karl Berry  <karl@gnu.org>
101808         * config/srclist.txt (argp-namefrob.h): sync lost.
101810 2006-01-24  Jim Meyering  <jim@meyering.net>
101812         * modules/openat (Files): Add lib/intprops.h.
101813         From Mark D. Baushke.
101815 2006-01-24  Jim Meyering  <jim@meyering.net>
101817         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101818         Reported by Mark D. Baushke.
101820 2006-01-24  Jim Meyering  <jim@meyering.net>
101822         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101824 2006-01-24  Bruno Haible  <bruno@clisp.org>
101826         * modules/strnlen (Maintainer): Change from glibc to all.
101828 2006-01-24  Bruno Haible  <bruno@clisp.org>
101830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101831         Patch by Paul Eggert.
101833 2006-01-24  Bruno Haible  <bruno@clisp.org>
101835         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101836         already has it.
101837         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101838         2005-11-26.
101840         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101841         'signed char' to avoid problems with the built-in _Bool type.
101842         Reported by Paul Eggert on 2005-11-26.
101844 2006-01-24  Bruno Haible  <bruno@clisp.org>
101846         * gnulib-tool (func_import): Avoid constructing complicated sed
101847         expressions inside backquote.
101848         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101850 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101852         These changes imported from libc.
101853         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101854         test and two separate function calls.
101855         * lib/strndup.c (__strndup): Add libc_hidden_def.
101857 2006-01-23  Simon Josefsson  <jas@extundo.com>
101859         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101860         Remove the test_*_SOURCES variable: automake infers it by default.
101861         * modules/tls-tests: Likewise.
101863 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101865         Work around porting bugs reported by Dieter in
101866         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101867         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101868         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101869         Include "getopt.h" first, to check interface.
101870         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101871         !HAVE_DECL_GETENV.
101872         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101873         (__strndup): Revert to K&R-style function dfns, the glibc style.
101874         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101875         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101876         Include strnlen.h first, to get prototype properly.
101877         (strnlen): Renamed from __strnlen.
101878         Remove weak alias.
101880 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101882         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101884 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101886         * config/srclist.txt: Adjust to reflect glibc reorganization.
101887         This affects only comments.
101889 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101891          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101892          Reported by Bruce Korb <bkorb@gnu.org>.
101894 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101896         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101897         to pacify gcc -Wswitch-default.
101899 2006-01-22  Bruno Haible  <bruno@clisp.org>
101901         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101902         temporary buffer for sprintf, take into account the precision also
101903         for 'd', 'i', 'u', 'o', 'x', 'X'.
101905 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101907         * modules/argp-tests: New module
101908         * tests/test-argp.c: New file
101909         * tests/test-argp-2.sh: New file
101911 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101913         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101914         (__argp_base_name): Removed
101915         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101916         typo.
101917         (__argp_base_name): Provide macro definition or extern declaration
101918         depending on the configuration
101920 2006-01-20  Simon Josefsson  <jas@extundo.com>
101922         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101924 2006-01-20  Simon Josefsson  <jas@extundo.com>
101926         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101928 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101930         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101931         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101932         Suggested by Bruno Haible.
101934 2006-01-20  Karl Berry  <karl@gnu.org>
101936         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101937         until changes propagate, I guess.
101939 2006-01-19  Simon Josefsson  <jas@extundo.com>
101941         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101943 2006-01-19  Simon Josefsson  <jas@extundo.com>
101945         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101947 2006-01-19  Simon Josefsson  <jas@extundo.com>
101949         * gnulib-tool: Set check_PROGRAMS.
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: Use
101960         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101961         test_*_SOURCES.
101963 2006-01-18  Simon Josefsson  <jas@extundo.com>
101965         * modules/socklen (Depends-on): Depend on sys_socket.
101967 2006-01-18  Simon Josefsson  <jas@extundo.com>
101969         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101970         modules/des-tests, modules/gc-arcfour-tests,
101971         modules/gc-arctwo-tests, modules/gc-des-tests,
101972         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101973         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101974         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101975         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101976         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101977         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101978         $(EXEEXT) to automake TESTS variable, for mingw32.
101980 2006-01-17  Simon Josefsson  <jas@extundo.com>
101982         * modules/socklen (Include): Need sys/socket.h.
101984 2006-01-17  Bruno Haible  <bruno@clisp.org>
101986         * modules/ssize_t (Include): Add <sys/types.h>.
101988 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101990         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101991         it's not portable and it doesn't work with cross-compiles.
101992         Problem reported by Bruno Haible.  Fix missing-$ typo in
101993         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101994         -zignore from being used with Sun's C compiler.
101996 2006-01-12  Simon Josefsson  <jas@extundo.com>
101998         * lib/base64.c: Fix warning, reported by Bruno Haible
101999         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
102001 2006-01-12  Bruno Haible  <bruno@clisp.org>
102003         * modules/ldd: New file.
102004         * build-aux/ldd.sh.in: New file.
102005         * MODULES.html.sh (Support for building libraries and executables): Add
102006         ldd.
102008 2006-01-12  Bruno Haible  <bruno@clisp.org>
102010         * m4/ldd.m4: New file.
102012 2006-01-12  Bruno Haible  <bruno@clisp.org>
102014         * gnulib-tool (func_import, func_create_testdir): Don't go into an
102015         endless loop while replacing $auxdir with build-aux.
102017 2006-01-11  Simon Josefsson  <jas@extundo.com>
102019         * lib/stdint_.h (SIZE_MAX): Add missing (.
102021 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
102023         Sync from coreutils.
102024         * lib/md5.c: Fix commentary typos.
102025         (alignof, UNALIGNED_P): No need for a GCC-specific version.
102026         * lib/md5.h (__attribute__): Remove; unused.
102027         * lib/sha1.c: Fix commentary to match md5 better.
102028         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
102029         so that we don't need to worry about alignment.  All uses changed.
102030         This merges the 2005-10-28 md5 change into sha1.
102032 2006-01-11  Jim Meyering  <jim@meyering.net>
102034         Sync from coreutils.
102035         * lib/md5.c (OP): Fix spacing.
102037 2006-01-11  Bruno Haible  <bruno@clisp.org>
102039         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102040         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
102041         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
102043 2006-01-11  Bruno Haible  <bruno@clisp.org>
102045         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102046         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
102047         the "early" section as well.
102049 2006-01-11  Bruno Haible  <bruno@clisp.org>
102051         Avoid "ar: no archive members specified" error on MacOS X.
102052         * gnulib-tool (func_modules_add_dummy): New function.
102053         (func_import, func_create_testdir): Invoke it.
102055 2006-01-11  Bruno Haible  <bruno@clisp.org>
102057         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
102058         with $auxdir in AC_CONFIG_FILES statements.
102060 2006-01-11  Bruno Haible  <bruno@clisp.org>
102062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102063         Initialize also noinst_HEADERS to empty.
102065 2006-01-11  Bruno Haible  <bruno@clisp.org>
102067         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
102068         variables.
102069         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
102070         autoreconf.
102072 2006-01-11  Bruno Haible  <bruno@clisp.org>
102074         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
102075         overridable by the user.
102076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102078 2006-01-10  Simon Josefsson  <jas@extundo.com>
102080         * modules/sys_socket: New file.
102082 2006-01-10  Simon Josefsson  <jas@extundo.com>
102084         * m4/sys_socket_h.m4: New file.
102086 2006-01-10  Simon Josefsson  <jas@extundo.com>
102088         * lib/socket_.h: New file.
102090 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102092         * modules/readutmp (Maintainer): Add myself.
102094 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102096         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
102097         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
102098         People who are still concerned with buggy memcmp implementations
102099         can invoke gl_FUNC_MEMCMP themselves.
102101 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102103         * lib/regex_internal.h (BITSET_WORD_BITS):
102104         Work around a bug in 64-bit PGC (before version 6.1-2), where the
102105         preprocessor mishandles large unsigned values as if they were signed.
102106         Problem reported by Claudio Fontana in
102107         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
102109 2006-01-10  Jim Meyering  <jim@meyering.net>
102111         Avoid the double-free (first in fts_read, second in fts_close) that
102112         would occur when an `active' directory is made inaccessible (e.g.,
102113         via chmod a-x) during a traversal.
102114         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102115         before returning.  Reproduce this failure by
102116         mkdir -p a/b; cd a; chmod a-x . b
102117         Reported by Stavros Passas.
102119         Sync from coreutils.
102120         * lib/sha1.c: Tweak grammar in a comment.
102122 2006-01-10  Jim Meyering  <jim@meyering.net>
102124         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102125         Patch by Joerg Sonnenberger.
102127 2006-01-10  Bruno Haible  <bruno@clisp.org>
102129         * modules/readutmp: Depend on module free.
102130         * modules/strtok_r: Depend on module restrict.
102132 2006-01-10  Bruno Haible  <bruno@clisp.org>
102134         * modules/gettext (configure.ac): Add an invocation of
102135         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102137 2006-01-10  Bruno Haible  <bruno@clisp.org>
102139         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102140         Reported by Werner Lemberg <wl@gnu.org>.
102142 2006-01-10  Bruno Haible  <bruno@clisp.org>
102144         * lib/localcharset.c: Update from GNU gettext.
102146 2006-01-10  Bruno Haible  <bruno@clisp.org>
102148         * lib/argp.h (__const): Remove macro. Use const instead.
102149         * lib/argp-fmtstream.h (__const): Likewise.
102150         * lib/glob_.h (__const): Remove macro.
102151         * lib/glob-libc.h: Use const instead of __const.
102153 2006-01-10  Bruno Haible  <bruno@clisp.org>
102155         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102156         variable.
102157         Needed to avoid an automake error regarding the 'gettext' module.
102159 2006-01-09  Simon Josefsson  <jas@extundo.com>
102161         * modules/inet_ntop (Depends-on): Add restrict.
102163 2006-01-09  Simon Josefsson  <jas@extundo.com>
102165         * modules/gc-rijndael-tests (License): Put under LGPL.
102167         * modules/gc-des-tests (License): Likewise.
102169         * modules/gc-arcfour-tests (License): Likewise.
102171         * modules/gc-arctwo-tests (License): Likewise.
102173         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102175         * modules/gc-hmac-sha1-tests (Files): Likewise.
102177         * modules/gc-hmac-md5-tests (License): Likewise.
102179         * modules/gc-sha1-tests (License): Likewise.
102181         * modules/gc-md5-tests (License): Likewise.
102183         * modules/gc-md4-tests (License): Likewise.
102185         * modules/gc-md2-tests (License): Likewise.
102187         * modules/gc-tests (License): Likewise.
102189         * modules/des-tests (License): Likewise.
102191         * modules/md4-tests (License): Likewise.
102193         * modules/md2-tests (License): Likewise.
102195 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102197         Sync from coreutils:
102199         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102200         * modules/lib-ignore: New file.
102201         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102202         chdir-safer.m4, lchmod.m4.
102203         * modules/openat: Add mkdirat.c, openat-priv.h.
102205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102207         Sync from coreutils.
102208         * m4/lib-ignore.m4: New file.
102209         * m4/lchmod.m4: New file.
102211 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102213         Sync from coreutils.
102214         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102215         for write access: POSIX says that must fail.
102216         * lib/fts.c (diropen): Likewise.
102217         * lib/save-cwd.c (save_cwd): Likewise.
102218         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102219         well, for minor improvements on hosts that lack O_DIRECTORY.
102220         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102221         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102222         Fall back on chown if open failed with EACCES.
102224         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102225         Report an error at compile-time if only a 1-second nominal clock
102226         resolution is found.
102228         * lib/lchmod.h: New file.
102229         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102230         (make_dir_parents): Use lchown rather than chown, and
102231         lchmod rather than chmod.
102233         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102234         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102235         "proc" reported by n0dalus.
102237         * lib/mountlist.c: Include <limits.h>.
102238         (dev_from_mount_options)
102239         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102240         New function.  It no longer assumes "dev=" has the System V meaning
102241         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102242         (read_file_system_list)
102243         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102244         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102245         dev= in that case.
102247         * lib/posixtm.h (PDS_PRE_2000): New macro.
102248         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102249         allow_century.  All usages changed.  Reject dates outside the range
102250         1969-1999 if PDS_PRE_2000 is used.
102252 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102254         Sync from coreutils.
102255         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102256         (Time of day items): Mention the possibility of leap seconds.
102257         Problem reported by Dr. David Alan Gilbert.
102259 2006-01-09  Jim Meyering  <jim@meyering.net>
102261         Sync from coreutils.
102263         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102265         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102267         * lib/modechange.c (mode_compile): Reject an invalid mode string
102268         that starts with an octal digit.  From Andreas Gruenbacher.
102270         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102271         and dup to open_safer and dup_safer, respectively.
102272         (openat_permissive): Fix typo in comment.
102274         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102275         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102276         (_): Remove; no longer needed.
102277         (openat): Renamed from rpl_openat; no need for rpl_openat
102278         since openat.h renames openat for us.
102279         Replace most of the body with a call to openat_permissive,
102280         to avoid duplicate code.
102281         Port to (probably hypothetical) environments were mode_t is
102282         wider than int.
102283         (openat_permissive): Require mode arg, so that we can check
102284         types better.  Put it just after flags.  Change cwd failure
102285         indicator from pointer-to-bool to pointer-to-errno-value.
102286         All callers changed.
102287         Invoke openat_save_fail and/or openat_restore_fail if
102288         cwd_errno is null, so that openat can call us.
102289         (openat_permissive, fdopendir, fstatat, unlinkat):
102290         Simplify errno handling to avoid some duplicate code,
102291         as it's OK to set errno on success.
102292         * lib/openat.h: Revamp code so that function macros depend on
102293         __OPENAT_PREFIX only, not also on AT_FDCWD.
102294         (openat_ro): Remove.  Caller changed to use openat_permissive.
102295         (openat_permissive): Now a macro, if not a function.
102296         (openat_restore_fail, openat_save_fail): Now always functions,
102297         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102299         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102300         and openat.c.
102301         * lib/mkdirat.c: Include openat-priv.h.
102302         Remove definitions of macros defined therein.
102303         * lib/openat.c: Likewise.
102305         * lib/mkdirat.c (mkdirat): New file and function.
102306         * lib/openat.h (mkdirat): Declare.
102308         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102310         * lib/openat.h (openat_permissive): Declare.
102311         (openat_ro): Define.
102313         * lib/openat.c (EXPECTED_ERRNO): New macro.
102314         (openat_permissive): New function -- used in remove.c rewrite.
102315         (all functions): Set errno just before returning, only if there
102316         was an actual failure.
102317         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102319         Emulate openat-family functions using Linux's procfs, if possible.
102320         Idea and some code based on Ulrich Drepper's glibc changes.
102322         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102323         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102324         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102325         before falling back on save_cwd and restore_cwd.
102326         (fdopendir, fstatat, unlinkat): Likewise.
102328         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102329         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102331         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102332         as second argument to va_arg.  Otherwise, some versions of gcc
102333         warn that `if this code is reached, the program will abort'.
102335 2006-01-09  Jim Meyering  <jim@meyering.net>
102337         Sync from coreutils.
102338         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102339         Require openat-priv.h.
102341 2006-01-09  Bruno Haible  <bruno@clisp.org>
102343         * modules/strnlen (Include): Use strnlen.h.
102345 2006-01-09  Bruno Haible  <bruno@clisp.org>
102347         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102349 2006-01-09  Bruno Haible  <bruno@clisp.org>
102351         * lib/sysexit_.h (EX_OK): New macro.
102352         Suggested by Martin Lambers <marlam@marlam.de>.
102354 2006-01-09  Bruno Haible  <bruno@clisp.org>
102356         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102357         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102359 2006-01-09  Bruno Haible  <bruno@clisp.org>
102361         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102362         numbers.
102364 2006-01-09  Bruno Haible  <bruno@clisp.org>
102366         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102367         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102368         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102369         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102371 2006-01-09  Bruno Haible  <bruno@clisp.org>
102373         * build-aux/javacomp.sh.in: New file, moved from lib/.
102374         * modules/javacomp-script (Files): Update.
102375         (configure.ac): Add AC_CONFIG_FILES invocation.
102376         (EXTRA_DIST): Remove variable.
102378         * build-aux/javaexec.sh.in: New file, moved from lib/.
102379         * modules/javaexec (Files): Update.
102380         (configure.ac): Add AC_CONFIG_FILES invocation.
102381         (EXTRA_DIST): Remove javaexec.sh.in.
102383         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102384         * modules/csharpcomp-script (Files): Update.
102385         (configure.ac): Add AC_CONFIG_FILES invocation.
102386         (EXTRA_DIST): Remove variable.
102388         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102389         * modules/csharpexec (Files): Update.
102390         (configure.ac): Add AC_CONFIG_FILES invocation.
102391         (EXTRA_DIST): Remove csharpexec.sh.in.
102393 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102395         Sync from coreutils.
102397         Add POSIX ACL support
102398         * lib/acl.h (copy_acl, set_acl): Add declarations.
102399         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102400         systems other than Linux.
102401         (chmod_or_fchmod): New function: use fchmod when possible,
102402         and chmod otherwise.
102403         (file_has_acl): Add a POSIX ACL implementation, with a
102404         Linux-specific subcase.
102405         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102406         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102407         acls are unsupported.
102408         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102409         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102410         are unsupported.
102412 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102414         Sync from coreutils.
102415         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102417 2006-01-07  Bruno Haible  <bruno@clisp.org>
102419         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102420         gl_EARLY.
102422 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102424         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102425         Problem reported for Mingw by Mark Junker.
102427 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102429         * README: Gnulib normally doesn't generate a tarball.
102431 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102433         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102434         long int, not int, for nanosecond counts, so that people who are
102435         used to POSIX struct timespec won't be surprised.  Reported by Jim
102436         Meyering.
102438 2005-12-28  Bruno Haible  <bruno@clisp.org>
102440         * build-aux/config.rpath: Update from GNU gettext.
102442 2005-12-16  Jim Meyering  <jim@meyering.net>
102444         * modules/fprintftime: New module.
102445         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102447 2005-12-16  Jim Meyering  <jim@meyering.net>
102449         * m4/fprintftime.m4: New file.
102451 2005-12-16  Jim Meyering  <jim@meyering.net>
102453         * lib/fprintftime.c, lib/fprintftime.h: New files.
102455 2005-12-15  Simon Josefsson  <jas@extundo.com>
102457         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102458         new m4/socklen.m4.
102460 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102462         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102463         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102465 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102467         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102468         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102469         struct uparams is valid. Fall back to the default values if it is
102470         not.
102472 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102474         * modules/argp (Files): Add argp-pin.c
102475         (Depends-on): dirname
102476         (lib_SOURCES): Add argp-pin.c
102478 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102480         * m4/argp.m4:  Check if program_invocation_name and
102481         program_invocation_short_name are declared and define appropriate
102482         macros if they are not.
102484 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102486         * lib/argp-help.c (__argp_base_name): New function
102487         (__argp_short_program_name): Rewrite using __argp_base_name
102488         * lib/argp-namefrob.h: Define program_invocation_name and
102489         program_invocation_short_name if requested
102490         (__argp_base_name): Add prototype
102491         * lib/argp-parse.c (argp_def): Use gettext wrappers
102492         (argp_default_parser): Use __argp_base_name
102493         * lib/argp-pin.c: New file. Defines program_invocation_name and
102494         program_invocation_short_name on systems that lack them.
102496 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102498         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102499         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102500         porting problem reported by Georg Schwarz in
102501         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102503 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102505         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102506         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102507         porting problem reported by Georg Schwarz in
102508         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102510 2005-12-05  Bruno Haible  <bruno@clisp.org>
102512         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102513         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102514         Reported by Mark Junker <mjscod@gmx.de>.
102516 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102518         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102519         Use implementation from Albert Chin, with some
102520         comments/corrections by Stepan Kasal and myself.
102522 2005-12-02  Bruno Haible  <bruno@clisp.org>
102524         * gnulib-tool (func_import): Accept GPLed build tool modules when
102525         --lgpl is given.
102526         * modules/csharpcomp-script: New file.
102527         * modules/csharpcomp: Depend on it.
102528         * modules/javacomp-script: New file.
102529         * modules/javacomp: Depend on it.
102530         Suggested by Simon Josefsson.
102532 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102534         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102535         statement, to work around an HP-UX 10.20 compiler bug reported by
102536         Peter O'Gorman.
102538 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102540         * modules/savedir (Depends-on): Add openat.
102542 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102544         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102545         (uintmax_t) [defined uintmax_t]: Do not declare.
102546         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102547         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102548         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102549         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102550         sake of portability to weird hosts that C allows (though we don't
102551         know of any practical examples).
102553         * lib/savedir.h (fdsavedir): New decl.
102554         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102555         contains most of the former guts of savedir.
102556         (savedir): Use savedirstream.
102557         Include "openat.h".
102559 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102561         * modules/obstack (Files): Add m4/ulonglong.m4.
102562         Problem reported by Davide Angelocola.
102564 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102566         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102567         coreutils no longer futzes with rounding modes.
102569 2005-11-14  Jim Meyering  <jim@meyering.net>
102571         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102572         replacement of mkstemp.
102574 2005-11-10  Simon Josefsson  <jas@extundo.com>
102576         * lib/readline.c: Remove EOL.
102578 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102580         * modules/gethrxtime (Depends-on): Add gettime.
102582 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102584         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102585         or gettimeofday; no longer needed.
102587 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102589         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102590         time business.
102591         (gethrxtime) [! (HAVE_NANOUPTIME
102592         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102593         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102594         our own approximation.
102596 2005-11-08  Eric Blake  <ebb9@byu.net>
102598         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102600 2005-11-08  Eric Blake  <ebb9@byu.net>
102602         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102604 2005-11-04  Bruno Haible  <bruno@clisp.org>
102606         * gnulib-tool: Implement --update mode.
102608 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102610         Fix porting problem reported by Theodoros V. Kalamatianos.
102611         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102612         Don't assume that futimes failing means we must fail.
102614 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102616         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102617         variables to suggest the intended function of the PATH_MAX check.
102619 2005-10-30  Kean Johnston  <jkj@sco.com>
102621         Trivial changes to support SCO systems.
102622         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102623         as PATH_MAX.
102624         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102625         where __ptr is null when no I/O is pending.
102627 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102629         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102630         leave errno alone.  Problem reported by Dmitry V. Levin.
102632 2005-10-28  Simon Josefsson  <jas@extundo.com>
102634         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102635         Test more.
102637         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102639         * modules/md2, modules/md2-tests: New files.
102641 2005-10-28  Simon Josefsson  <jas@extundo.com>
102643         * m4/inet_ntop.m4: More tests.
102645         * m4/gc-md2.m4, md2.m4: New file.
102647 2005-10-28  Simon Josefsson  <jas@extundo.com>
102649         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102650         "restrict" keywords, as per POSIX.  Protect the function
102651         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102652         Don't use K&R prototypes.  Check the sprintf return values.
102653         Re-define EAFNOSUPPORT if not present.  Indent.
102655         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102656         suggested by Bruno Haible <bruno@clisp.org>.
102658         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102660         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102662         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102663         libgcrypt).
102665         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102667         * lib/md2.h, lib/md2.c: New files.
102669 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102671         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102672         errno alone.  Problem reported by Frederic Jolliton.
102674 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102676         * modules/verify (License): Change from GPL to LGPL.  This is a
102677         tiny module and there are apparently near-equivalents that are
102678         under the BSD license.
102680 2005-10-24  Simon Josefsson  <jas@extundo.com>
102682         * modules/sha1: Relicense to LGPL.
102684 2005-10-24  Simon Josefsson  <jas@extundo.com>
102686         * lib/md4.h: Shrink buffer size, now that we changed the type.
102688 2005-10-23  Simon Josefsson  <jas@extundo.com>
102690         * gnulib-tool (func_import): Fix --tests-base.
102692 2005-10-22  Simon Josefsson  <jas@extundo.com>
102694         * modules/arcfour (Depends-on): Need stdint.
102696 2005-10-22  Simon Josefsson  <jas@extundo.com>
102698         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102699         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102701 2005-10-22  Simon Josefsson  <jas@extundo.com>
102703         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102704         suggested by Bruno Haible <bruno@clisp.org>.
102706 2005-10-22  Simon Josefsson  <jas@extundo.com>
102708         * lib/crc.h: Include stddef.h, for size_t.
102710 2005-10-22  Simon Josefsson  <jas@extundo.com>
102712         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102713         arcfour_context struct (simplify test vector testing in GNU
102714         Shishi).
102716 2005-10-21  Simon Josefsson  <jas@extundo.com>
102718         * modules/des, modules/des-tests: New files.
102720         * modules/gc-des, modules/gc-des-tests: New files.
102722         * tests/test-des.c, tests/test-gc-des.c: New file.
102724 2005-10-21  Simon Josefsson  <jas@extundo.com>
102726         * modules/arctwo, modules/arctwo-tests: New files.
102728         * tests/test-arctwo.c: New file.
102730         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102732         * tests/test-gc-arctwo.c: New file.
102734 2005-10-21  Simon Josefsson  <jas@extundo.com>
102736         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102737         Bruno Haible <bruno@clisp.org>.
102739         * m4/gc-des.m4: New file.
102741 2005-10-21  Simon Josefsson  <jas@extundo.com>
102743         * m4/arctwo.m4: New file.
102745         * m4/gc-arctwo.m4: New file.
102747 2005-10-21  Simon Josefsson  <jas@extundo.com>
102749         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102750         block.
102752 2005-10-21  Simon Josefsson  <jas@extundo.com>
102754         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102755         <bruno@clisp.org>.
102757         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102759         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102760         Bruno Haible <bruno@clisp.org>.
102762         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102763         <bruno@clisp.org>.
102765 2005-10-21  Simon Josefsson  <jas@extundo.com>
102767         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102769 2005-10-21  Simon Josefsson  <jas@extundo.com>
102771         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102773 2005-10-21  Simon Josefsson  <jas@extundo.com>
102775         * lib/des.h, lib/des.c: New files.
102777         * lib/gc-gnulib.c: Support DES.c
102779 2005-10-21  Simon Josefsson  <jas@extundo.com>
102781         * lib/arctwo.h, lib/arctwo.c: New files.
102783         * lib/gc-gnulib.c: Support ARCTWO.
102785 2005-10-21  Simon Josefsson  <jas@extundo.com>
102787         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102788         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102790 2005-10-21  Simon Josefsson  <jas@extundo.com>
102792         * gnulib-tool (func_import, func_create_testdir): Define automake
102793         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102794         Makefile.am snippet),
102795         suggested by Bruno Haible <bruno@clisp.org>.
102797         * modules/gc (Makefile.am): Use it.
102799 2005-10-21  Bruno Haible  <bruno@clisp.org>
102801         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102802         patch.
102804 2005-10-19  Simon Josefsson  <jas@extundo.com>
102806         * tests/test-gc-rijndael.c: New file.
102808         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102810 2005-10-19  Simon Josefsson  <jas@extundo.com>
102812         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102813         interface too.
102815 2005-10-19  Simon Josefsson  <jas@extundo.com>
102817         * tests/test-gc-arcfour.c: New file.
102819         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102821 2005-10-19  Simon Josefsson  <jas@extundo.com>
102823         * modules/gc-md4, modules/gc-md4-tests: New file.
102825         * tests/test-gc-md4.c: New file.
102827 2005-10-19  Simon Josefsson  <jas@extundo.com>
102829         * m4/gc-md4.m4: New file.
102831 2005-10-19  Simon Josefsson  <jas@extundo.com>
102833         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102834         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102835         <kasal@ucw.cz>.
102837 2005-10-19  Simon Josefsson  <jas@extundo.com>
102839         * m4/gc-arcfour.m4: New file.
102841         * m4/gc-rijndael.m4: New file.
102843 2005-10-19  Simon Josefsson  <jas@extundo.com>
102845         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102847 2005-10-19  Simon Josefsson  <jas@extundo.com>
102849         * lib/gc-gnulib.c: Support ARCFOUR.
102851 2005-10-19  Simon Josefsson  <jas@extundo.com>
102853         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102854         support.
102856         * lib/gc.h: Add ECB enum type.
102858         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102860 2005-10-18  Simon Josefsson  <jas@extundo.com>
102862         * tests/test-md5.c: New file.
102864         * modules/md5-tests: New file.
102866 2005-10-18  Simon Josefsson  <jas@extundo.com>
102868         * tests/test-md4.c: New file.
102870         * modules/md4, modules/md4-tests: New files.
102872 2005-10-18  Simon Josefsson  <jas@extundo.com>
102874         * m4/md4.m4: New file.
102876 2005-10-18  Simon Josefsson  <jas@extundo.com>
102878         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102880 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102882         * gnulib-tool (func_create_testdir): Omit the second check whether
102883         BUILT_SOURCES in nonempty.
102885 2005-10-17  Simon Josefsson  <jas@extundo.com>
102887         * tests/test-rijndael.c: New file.
102889 2005-10-17  Simon Josefsson  <jas@extundo.com>
102891         * modules/sha1: Depend on stdint instead of md5.
102893         * modules/md5: Depend on stdint, remove uint32_t.
102895 2005-10-17  Simon Josefsson  <jas@extundo.com>
102897         * modules/gc-sha1-tests: New file.
102899         * tests/test-gc-sha1.c: New file.
102901 2005-10-17  Simon Josefsson  <jas@extundo.com>
102903         * m4/md5.m4: Remove call to uint32_t.m4.
102905 2005-10-17  Simon Josefsson  <jas@extundo.com>
102907         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102909         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102910         md5.h.
102912         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102914         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102916 2005-10-17  Simon Josefsson  <jas@extundo.com>
102918         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102920 2005-10-17  Simon Josefsson  <jas@extundo.com>
102922         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102924 2005-10-17  Simon Josefsson  <jas@extundo.com>
102926         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102928         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102930 2005-10-17  Bruno Haible  <bruno@clisp.org>
102932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102933         that it can also be used in a test.
102935 2005-10-16  Bruno Haible  <bruno@clisp.org>
102937         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102938         TESTS_ENVIRONMENT, so that individual tests can augment it.
102940         * gnulib-tool (func_create_testdir): Use an intermediate target for
102941         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102942         macros, like $(ALLOCA_H), which cannot be passed through the command
102943         line.
102945 2005-10-15  Simon Josefsson  <jas@extundo.com>
102947         * modules/rijndael-tests: New file.
102949         * modules/rijndael: New file.
102951 2005-10-15  Simon Josefsson  <jas@extundo.com>
102953         * m4/rijndael.m4: New file.
102955 2005-10-15  Simon Josefsson  <jas@extundo.com>
102957         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102959         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102961 2005-10-14  Simon Josefsson  <jas@extundo.com>
102963         * tests/test-arcfour.c: New file.
102965         * modules/arcfour, modules/arcfour-tests: New files.
102967 2005-10-14  Simon Josefsson  <jas@extundo.com>
102969         * m4/arcfour.m4: New file.
102971 2005-10-14  Simon Josefsson  <jas@extundo.com>
102973         * lib/arcfour.h, lib/arcfour.c: New files.
102975 2005-10-14  Roland McGrath  <roland@redhat.com>
102977         Import from libc.  [BZ #1331]
102978         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102979         macro argument.
102980         Reported by Matej Vela <vela@debian.org>.
102982 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102984         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102985         include <wchar.h>; no longer needed.
102987 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102989         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102991 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102992         and  Ulrich Drepper  <drepper@redhat.com>
102994         Import from libc.
102995         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102996         instead of inline stream orientation test and two separate
102997         function calls.  Pay no attention to USE_IN_LIBIO.
102999 2005-10-13  Simon Josefsson  <jas@extundo.com>
103001         * modules/gc-hmac-md5-tests: New file.
103003         * tests/test-gc-hmac-sha1.c: New file.
103005         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
103007         * modules/gc-hmac-md5-tests: New file.
103009         * tests/test-gc-md5.c: New file.
103011         * modules/gc-md5-tests: New file.
103013 2005-10-13  Simon Josefsson  <jas@extundo.com>
103015         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
103016         Move memory allocation outside of loop.
103018 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
103020         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
103021         intermediate directory is in a read-only file system.  Problem
103022         reported by Eric Blake.
103024 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
103026         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
103028 2005-10-12  Simon Josefsson  <jas@extundo.com>
103030         * tests/test-hmac-sha1.c: New file.
103032         * modules/hmac-sha1-tests: New file.
103034         * modules/hmac-sha1: New file.
103036 2005-10-12  Simon Josefsson  <jas@extundo.com>
103038         * modules/gc-sha1: New file.
103040 2005-10-12  Simon Josefsson  <jas@extundo.com>
103042         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
103044         * tests/test-gc-pbkdf2-sha1.c: New file.
103046 2005-10-12  Simon Josefsson  <jas@extundo.com>
103048         * modules/gc-md5, modules/gc-hmac-md5: New files.
103050         * modules/gc (Files): Remove md5, memxor and hmac files.
103052 2005-10-12  Simon Josefsson  <jas@extundo.com>
103054         * m4/gc-pbkdf2-sha1.m4: New file.
103056         * m4/gc-hmac-sha1.m4: New file.
103058         * m4/gc-sha1: New file.
103060         * m4/hmac-sha1.m4: New file.
103062 2005-10-12  Simon Josefsson  <jas@extundo.com>
103064         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
103066         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
103068 2005-10-12  Simon Josefsson  <jas@extundo.com>
103070         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
103071         suggested by Bruno Haible <bruno@clisp.org>.
103073 2005-10-12  Simon Josefsson  <jas@extundo.com>
103075         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
103077 2005-10-12  Simon Josefsson  <jas@extundo.com>
103079         * lib/gc-pbkdf2-sha1.c: New file.
103081         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
103083 2005-10-12  Simon Josefsson  <jas@extundo.com>
103085         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
103087         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
103089 2005-10-12  Simon Josefsson  <jas@extundo.com>
103091         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
103092         GC_USE_HMAC_MD5, respectively.
103094         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
103095         (gc_md5): Fix typo.
103097         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
103099         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
103101         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
103103 2005-10-12  Bruno Haible  <bruno@clisp.org>
103105         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
103106         Reported by Stepan Kasal <kasal@ucw.cz>.
103108 2005-10-11  Simon Josefsson  <jas@extundo.com>
103110         * tests/test-crc.c: New file.
103112         * modules/crc, modules/crc-tests: New files.
103114 2005-10-11  Simon Josefsson  <jas@extundo.com>
103116         * m4/crc.m4: New file.
103118 2005-10-11  Simon Josefsson  <jas@extundo.com>
103120         * lib/gc.h: Add gc_hash and gc_hash_buffer.
103122         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103124         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103126 2005-10-11  Simon Josefsson  <jas@extundo.com>
103128         * lib/crc.h, lib/crc.c: New files.
103130         * lib/gc.h (gc_hash_buffer): Add doc.
103132 2005-10-11  Bruno Haible  <bruno@clisp.org>
103134         * modules/c-strcasestr: New file.
103135         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103137 2005-10-11  Bruno Haible  <bruno@clisp.org>
103139         * modules/c-strcase: New file.
103140         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103142 2005-10-11  Bruno Haible  <bruno@clisp.org>
103144         * lib/strcasecmp.c: Include limits.h.
103145         (strcasecmp): Avoid integer overflow on exotic platforms.
103146         * lib/strncasecmp.c: Include limits.h.
103147         (strncasecmp): Avoid integer overflow on exotic platforms.
103148         Reported by Paul Eggert.
103150 2005-10-11  Bruno Haible  <bruno@clisp.org>
103152         * lib/c-strcasestr.h: New file, from GNU gettext.
103153         * lib/c-strcasestr.c: New file, from GNU gettext.
103155 2005-10-11  Bruno Haible  <bruno@clisp.org>
103157         * lib/c-strcase.h: New file, from GNU gettext.
103158         * lib/c-strcasecmp.c: New file, from GNU gettext.
103159         * lib/c-strncasecmp.c: New file, from GNU gettext.
103161 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103163         * modules/mempcpy (License): GPL -> LGPL.
103164         * modules/strchrnul (License): Likewise.
103165         * modules/sysexits (License): Likewise.
103167 2005-10-08  Simon Josefsson  <jas@extundo.com>
103169         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103171 2005-10-07  Simon Josefsson  <jas@extundo.com>
103173         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103175 2005-10-06  Simon Josefsson  <jas@extundo.com>
103177         * tests/test-hmac-md5.c: New file.
103179         * modules/hmac-md5-tests: New file.
103181         * modules/hmac-md5: New file.
103183 2005-10-06  Simon Josefsson  <jas@extundo.com>
103185         * m4/hmac-md5.m4: New file.
103187         * m4/memxor.m4: Require gl_C_RESTRICT.
103189 2005-10-06  Simon Josefsson  <jas@extundo.com>
103191         * lib/memxor.c (memxor): Avoid casts and warnings.
103193 2005-10-06  Simon Josefsson  <jas@extundo.com>
103195         * lib/hmac-md5.c: New file.
103197         * lib/hmac.h: New file.
103199 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103201         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103202         promotes to int, not unsigned int, to catch the AIX 5.3
103203         compiler bug.
103205 2005-10-05  Simon Josefsson  <jas@extundo.com>
103207         * modules/memxor: New file.
103209         * modules/iconv (Files): Move config.rpath to havelib, it is used
103210         there.
103212         * modules/havelib (Files): Add config.rpath.
103214 2005-10-05  Simon Josefsson  <jas@extundo.com>
103216         * m4/memxor.m4: New file.
103218 2005-10-05  Simon Josefsson  <jas@extundo.com>
103220         * lib/memxor.c (memxor): Fix compiler error.
103222         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103223         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103225         * lib/memxor.h, lib/memxor.c: New files.
103227         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103228         we assume all systems have it, suggested by Jim Meyering
103229         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103230         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103231         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103232         same reasons.
103234 2005-10-05  Simon Josefsson  <jas@extundo.com>
103236         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103238 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103240         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103241         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103242         needed, since the source code now assumes these .h files.
103244 2005-10-05  Derek Price  <derek@ximbiot.com>
103246         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103248 2005-10-05  Bruno Haible  <bruno@clisp.org>
103250         * modules/stdint (License): Change to LGPL.
103252 2005-10-04  Simon Josefsson  <jas@extundo.com>
103254         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103255         D. Baushke" <mdb@gnu.org>.
103257 2005-10-04  Bruno Haible  <bruno@clisp.org>
103259         * lib/verify.h (verify_true): Provide alternative definition for C++.
103261 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103263         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103264         (SSIZE_MAX): New macro, if not already defined.
103265         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103266         than 2 GiB.
103268 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103270         Sync from coreutils.
103271         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103272         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103273         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103274         ULLONG_MAX doesn't work with 2.7.2.1.
103276 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103278         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103279         From Ben Pfaff.
103281         * modules/exclude (Depends-on): Depend on verify.
103282         * modules/strtoimax (Depends-on): Likewise.
103283         * modules/utimecmp (Depends-on): Likewise.
103285 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103287         * lib/exclude.c: Include verify.h.
103288         (verify): Remove.  All callers changed to use verify.h's version.
103289         * lib/strtoimax.c: Likewise.
103290         * lib/utimecmp.c: Likewis.e
103292         Sync from coreutils.
103293         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103294         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103295         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103296         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103297         bother returning ENOSYS if settimeofday or stime fails; just let
103298         them return whatever errno they want to return.
103299         * lib/utimens.c: Include unistd.h, for dup2.
103300         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103301         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103303 2005-10-02  Jim Meyering  <jim@meyering.net>
103305         Sync from coreutils.
103306         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103307         from glibc-2.2.5 that fails for read-only files.
103309 2005-10-02  Jim Meyering  <jim@meyering.net>
103311         Sync from coreutils.
103312         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103313         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103314         `#if HAVE_CONFIG_H'.
103315         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103316         Remove AT_FDCWD test.
103317         Do not consume the fd unless successful.
103318         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103319         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103320         block, so that we don't even try to compile it if settimeofday is
103321         available.  This works around a compilation failure on OSF1 V5.1,
103322         due to stime requiring a `long int*' while tv_sec is `int'.
103324 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103326         Sync from coreutils.
103327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103328         against `yes', rather than just testing for nonempty.
103330 2005-10-01  Simon Josefsson  <jas@extundo.com>
103332         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103333         and Darwin.
103335         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103336         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103337         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103338         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103339         Check if struct addrinfo is declared.
103341 2005-10-01  Simon Josefsson  <jas@extundo.com>
103343         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103344         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103345         AI_* and EAI_* definitions.  Protect function declarations.
103347 2005-10-01  Jim Meyering  <jim@meyering.net>
103349         Sync from coreutils.
103351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103352         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103353         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103355         in the inet and nsl libraries.  Required on Solaris 5.7.
103357 2005-10-01  Jim Meyering  <jim@meyering.net>
103359         Sync from coreutils.
103360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103361         in the inet and nsl libraries.  Required on Solaris 5.7.
103363 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103365         * lib/getdelim.c (getdelim): Remove unused variables.
103367 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103369         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103370         so that the code works even with ancient cpp.  Portability problem
103371         with GCC 2.7.2.1 reported by Thomas M.Ott.
103373 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103375         * modules/regex (Depends-on): Add strcase.
103377         * modules/gethostname (Licence): Change from GPL to LGPL, since
103378         gethostname.c is a trivial implementation of a standard library
103379         function.
103380         * modules/poll (License): Change from GPL to LGPL, since it's
103381         derived from LGPL code.
103383 2005-09-27  Jim Meyering  <jim@meyering.net>
103385         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103386         HAVE_CONFIG_H.
103388         * lib/intprops.h (signed_type_or_expr__): Define.
103389         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103390         for unsigned types.
103392 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103394         * lib/verify.h (verify_expr): Remove, replacing with:
103395         (verify_true): New macro that returns true instead of void.
103396         (verify_type__): Remove.
103397         (verify): Use verify_true rather than verify_type__.
103399 2005-09-26  Bruno Haible  <bruno@clisp.org>
103401         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103402         is necessary.
103403         (lib_SOURCES): Remove mbchar.c.
103404         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103405         (Files): Add m4/mbrtowc.m4.
103406         * modules/mbiter: Likewise.
103407         * modules/mbuiter: Likewise.
103409 2005-09-26  Bruno Haible  <bruno@clisp.org>
103411         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103412         compile mbchar.c if they are not both present.
103413         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103414         * m4/mbiter.m4 (gl_MBITER): Likewise.
103415         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103416         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103417         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103419 2005-09-25  Jim Meyering  <jim@meyering.net>
103421         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103422         also uses socklen_t.
103424 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103426         * lib/utimens.c (ENOSYS): Define if not already defined.
103427         (futimens): Support having a null PATH if the file descriptor
103428         is nonnegative.
103430         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103431         Remove.
103432         (__attribute): Define to empty unless GCC 3.1 or later.
103433         This works around a core dump on OpenBSD 3.4, which has GCC
103434         2.95.3, which dumps core when given __attribute__(()).  It also
103435         simplifies other tests, since we really don't want to bother with
103436         worrying about which ancient version of GCC supported what.
103437         Original problem reported by Yoann Vandoorselaere, with part of
103438         the fix suggested by Derek Price.
103440 2005-09-24  Jim Meyering  <jim@meyering.net>
103442         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103443         so we can once again use a positive bitfield width of 1 -- now we
103444         don't have to explain why we were using a bitfield width of 2.
103446 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103448         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103449         and similarly for the other external symbols.  Problem reported
103450         by James Gallager.
103452         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103453         bug reported by Jim Meyering.
103455         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103456         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103457         not needed, since socklen is a prerequisite module.
103459 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103461         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103462         Problem reported by Eric Blake.
103463         (getaddrinfo): Initialize se so that it's not garbage.
103464         Redo internal storage allocation so that it doesn't make unportable
103465         assumptions about alignment.
103466         Fix a memory leak.
103468         * lib/utimens.c (futimens): Use futimesat if available.
103469         Prefer it to futimes since it doesn't have the futimes bug.
103471         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103472         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103473         Instead, declare a function that returns a pointer to an array,
103474         and use verify_type__ to declare the size of the array.
103475         Problem and germ of a solution reported by Bruno Haible.
103476         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103477         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103479 2005-09-23  Jim Meyering  <jim@meyering.net>
103481         Sync from coreutils.
103482         Correct build failure (socklen_t not defined) on at least
103483         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103486 2005-09-23  Jim Meyering  <jim@meyering.net>
103488         * modules/getaddrinfo (Depends-on): Add socklen.
103490 2005-09-23  Bruno Haible  <bruno@clisp.org>
103492         * tests/test-verify.c: New file.
103494 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103496         Sync from coreutils.
103498         * modules/argmatch (Depends-on): Add verify.
103499         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103500         unistd-safer.
103501         * modules/save-cwd (Depends-on): Likewise.
103503         * modules/openat (Files): Add lib/openat-die.c.
103504         (Depends-on): Remove error, exitfail.
103505         Add dirname.
103507         * modules/verify: New file.
103508         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103509         with "verify" module.
103511 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103513         Sync from coreutils.
103515         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103516         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103517         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103518         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103519         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103520         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103521         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103522         Don't bother checking for string.h, stdlib.h, unistd.h.
103523         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103524         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103525         module's job.
103526         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103527         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103530         (gl_GETDATE): Use it.
103532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103534 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103536         Sync from coreutils.
103538         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103539         stat-time.h.
103540         * lib/argmatch.h: Include verify.h
103541         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103542         (ARGMATCH_ASSERT): Remove; unused.
103543         * lib/canonicalize.c: Assume STDC_HEADERS.
103544         * lib/exclude.c: Include "strcase.h".
103545         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103546         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103547         and stdio-safer.h.
103548         (getusershell): Call fopen, not fopen_safer.
103549         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103550         Do not include unistd-safer.h.
103551         (save_cwd): Don't call fd_safer; no longer needed
103552         now that we include fcntl--.h.
103554         * lib/getdate.y (relative_time): New type.
103555         (RELATIVE_TIME_0): New constant.
103556         (parser_control): Use relative_time instead of doing it ourselves.
103557         (%union): Add new relative_time rel member.
103558         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103559         Now typeless.
103560         (relunit, relunit_snumber): Now of type rel.
103561         (zone, rel, relunit, get_date): Adjust to above changes.
103563         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103564         Do not include unistd-safer.h.
103565         (getloadavg): Don't call fd_safer; no longer needed
103566         now that we include fcntl--.h.
103568         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103569         (make_dir_parents): Treat ENOSYS like EEXIST.
103571         Improve quality of diagnostics on restore_cwd failure.
103572         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103573         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103574         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103575         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103576         each time through the loop.  Do not diagnose restore_cwd failure;
103577         that is the caller's job (and perhaps the caller does not care).
103579         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103580         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103581         If the file already exists but is not a directory, don't bother
103582         to try to make its parents.
103583         Close potential file descriptor leak if we can't chdir("/") (!).
103584         Don't always return true if chdir($PWD) fails; return true only
103585         if the requested action was done successfully (except for the
103586         chdir($PWD)).
103587         Don't log final directory unless we actually made it.
103588         Refactor to avoid duplicate code to fix up permissions.
103589         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103591         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103592         to make it a bit faster and (I hope) clearer.
103593         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103594         Fix bug in formats like %2N.
103596         * lib/verify.h: New file.
103598 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103600         Sync from coreutils.
103601         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103603 2005-09-22  Jim Meyering  <jim@meyering.net>
103605         Sync from coreutils.
103607         * m4/lstat.m4 (gl_FUNC_LSTAT):
103608         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103609         Remove obsolete comment.
103610         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103611         * m4/xstrtod.m4: Likewise.
103613         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103615 2005-09-22  Jim Meyering  <jim@meyering.net>
103617         Sync from coreutils.
103619         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103621         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103622         the .tm_year member, since otherwise gcc-4.0 would now warn about
103623         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103625         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103626         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103628         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103629         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103630         when run in a time zone for which daylight savings time is in effect
103631         for the starting date.
103633         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103634         stop us from restricting permissions of just-created absolute-named
103635         directories.
103636         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103637         to restore initial working directory.
103638         * lib/mkdir-p.c (make_dir_parents): New parameter:
103639         different_working_dir, to tell caller if/when we change the working
103640         directory and are unable to return to the initial one.
103641         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103642         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103643         `return false'.  This fixes a bug introduced on 2004-07-30.
103645         * lib/openat.c (fdopendir): Be sure to close the supplied
103646         file descriptor before returning.  This makes our replacement
103647         implementation a little closer to Solaris's, where fdopendir
103648         ties the file descriptor to the returned DIR* pointer.
103649         * lib/openat.c (unlinkat): New function.
103650         * lib/openat.h (unlinkat): Add prototype.
103651         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103652         (openat_restore_fail): Rename from openat_restore_die.
103653         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103655         Provide an alternative to exiting immediately upon save_cwd or
103656         restore_cwd failure.  Now, an application can arrange e.g.,
103657         to perform a longjump in that case.
103658         * lib/openat.c: Include dirname.h.
103659         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103660         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103661         and openat_restore_die rather than calling error directly.
103662         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103664         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103665         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103666         define.
103668         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103669         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103670                             int utc, int nanoseconds);
103671         Background:
103672         date should not have to allocate a megabyte of virtual memory to
103673         handle a format argument like +%1048575T.  When implemented with
103674         strftime, it must allocate such a buffer, use strftime to fill it
103675         in, print it, then free it.
103676         With fprintftime, it simply prints everything and exits.
103677         With no need for memory allocation, that's one fewer way to fail.
103678         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103679         optional field width, not before, so we accept %9:z, not %:9z.
103680         (my_strftime): Be sure to use L_('x') for literals.
103682         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103683         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103684         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103685         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103686         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103687         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103688         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103689         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103690         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103691         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103692         * lib/xgethostname.c, lib/xreadlink.c:
103693         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103695         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103696         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103697         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103698         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103699         and don't include <sys/file.h>).
103701 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103703         Sync from coreutils.
103705         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103706         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103707         [!LDAV_DONE]: Avoid unused variable warning.
103709 2005-09-21  Bruno Haible  <bruno@clisp.org>
103711         * lib/unicodeio.h (unicode_to_mb): New declaration.
103713 2005-09-20  Derek Price  <derek@ximbiot.com>
103715         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103716         getaddrinfo.h.
103718 2005-09-20  Bruno Haible  <bruno@clisp.org>
103720         * gnulib-tool: Remove trailing slashes from the values specified for
103721         --source-base, --m4-base, --tests-base, --aux-dir.
103722         Suggested by Simon Josefsson <jas@extundo.com>.
103724 2005-09-20  Bruno Haible  <bruno@clisp.org>
103726         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103727         func_modules_to_filelist, func_import, func_create_testdir): Make all
103728         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103729         change when gnulib-tool is invoked in a different locale.
103731 2005-09-19  Simon Josefsson  <jas@extundo.com>
103733         * m4/socklen.m4: Fix typo.
103735 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103737         Use a consistent style for including <config.h>.
103738         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103739         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103740         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103741         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103742         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103743         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103744         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103745         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103746         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103747         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103748         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103749         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103750         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103751         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103752         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103753         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103754         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103755         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103756         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103757         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103758         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103759         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103760         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103761         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103762         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103763         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103764         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103765         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103766         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103767         lib/xstrtoumax.c, lib/yesno.c:
103768         Standardize inclusion of config.h.
103769         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103770         lib/inttostr.h:  Removed inclusion of config.h from header files.
103771         * lib/inttostr.c:  Adjusted in-tree users.
103772         * lib/timespec.h: Remove superfluous warning to include config.h.
103773         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103774         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103775         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103776         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103777         config.h with HAVE_CONFIG_H.
103779 2005-09-19  Jim Meyering  <jim@meyering.net>
103781         * modules/pathmax (License): Change to LGPL.
103783 2005-09-19  Derek Price  <derek@ximbiot.com>
103785         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103787 2005-09-19  Bruno Haible  <bruno@clisp.org>
103789         * gnulib-tool (import): Provide default for --tests-base.
103791 2005-09-19  Bruno Haible  <bruno@clisp.org>
103793         * doc/quote.texi: New file, extracted from gnulib.texi.
103794         * doc/ctime.texi: New file, extracted from gnulib.texi.
103795         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103796         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103797         * doc/gnulib.texi: Include them.
103799 2005-09-18  Bruno Haible  <bruno@clisp.org>
103801         Portability fix.
103802         * gnulib-tool (func_readlink): New function.
103803         (func_ln_if_changed): Use it.
103805 2005-09-18  Bruno Haible  <bruno@clisp.org>
103807         * gnulib-tool: Support --with-tests also with --import.
103808         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103809         (func_import): Use variables $testsbase and $inctests. Emit a
103810         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103811         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103812         SUBDIRS += $testsdir.
103813         (func_create_testdir): Update.
103815 2005-09-18  Bruno Haible  <bruno@clisp.org>
103817         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103818         instead of $dry_run.
103819         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103820         (func_ln_if_changed): Don't handle dry-run here.
103821         (func_import): In dry-run mode, detect more precisely which actions
103822         would be performed, and don't use "...ing" verbs.
103824 2005-09-18  Bruno Haible  <bruno@clisp.org>
103826         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103827         (func_import): Use join on two temporary files instead of three nested
103828         loops, in order to determine which files are new or old.
103830 2005-09-18  Bruno Haible  <bruno@clisp.org>
103832         * gnulib-tool (func_import): Comment out code that spits out the
103833         new files with --dry-run.
103835 2005-09-18  Bruno Haible  <bruno@clisp.org>
103837         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103839 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103841         * lib/stat-time.h: New file.
103842         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103843         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103844         in a different way.
103845         (timespec_cmp): New function.
103846         * lib/utimecmp.c: Include stat-time.h.
103847         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103848         members exist, not on the obsolescent ST_MTIM_NSEC.
103849         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103851 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103853         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103855 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103857         * MODULES.html.sh (File system functions): Add stat-time.
103858         * modules/stat-time: New file.
103859         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103860         is now done in a different way, by the stat-time module.
103861         * modules/utimecmp (Depends-on): Add stat-time.
103863 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103865         * m4/st_mtim.m4: Remove.  Superseded by...
103866         * m4/stat-time.m4: New file.
103867         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103868         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103870 2005-09-15  Derek Price  <derek@ximbiot.com>
103872         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103874 2005-09-15  Derek Price  <derek@ximbiot.com>
103876         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103877         * lib/regex_internal.c: Ditto, using this...
103878         (__GNUC_PREREQ): ...new macro.
103879         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103880         using...
103881         (__GNUC_PREREQ): ...this new macro.
103883         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103885 2005-09-15  Derek Price  <derek@ximbiot.com>
103886             Paul Eggert  <eggert@cs.ucla.edu>
103888         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103889         changes, consolidating in...
103890         * lib/regex_internal.h: ...this file.
103892 2005-09-13  Jim Meyering  <jim@meyering.net>
103894         * lib/canon-host.c: Filter through gnu indent and reword comments
103895         slightly.
103896         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103898 2005-09-13  Derek Price  <derek@ximbiot.com>
103900         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103901         failure.
103902         Reported by Jim Meyering  <jim@meyering.net>.
103904 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103906         * lib/base64.c: Typo.
103907         (base64_encode): Put b64str in initialized data section.
103909 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103911         Merge glibc and coreutils changes into gnulib, plus a few
103912         extra fixes.
103913         * lib/md5.c: Use #error rather than a string.
103914         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103915         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103916         (__attribute__): Define to empty for non recent-GCC.
103917         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103918         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103919         Renamed from their non-__ counterparts, with new macros replacing
103920         them if not _LIBC.  Add __THROW attribute.
103921         (rol): Remove.
103922         (struct md5_ctx): Align buffer if using GCC.
103923         * lib/sha1.h (struct sha1_ctx): Likewise.
103924         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103925         The old name was backwards.
103926         (NOTSWAP): Remove; not used.
103927         (rol): New macro, moved here from md5.h.
103928         (sha1_process_block): Remove a FIXME that doesn't make sense.
103930 2005-09-12  Derek Price  <derek@ximbiot.com>
103932         Return usable errors from canon-host.
103933         * lib/canon-host.h: New file.
103934         * lib/canon-host.c (canon_host): Wrap...
103935         (canon_host_r): ...this new function, which now relies exclusively on
103936         getaddrinfo.
103937         (ch_strerror): New function.
103938         (last_cherror): New global.
103939         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103940         interface.
103941         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103942         void *.
103943         (freeaddrinfo): Free ai->ai_canonname when set.
103945 2005-09-12  Derek Price  <derek@ximbiot.com>
103947         Make canon-host require getaddrinfo.
103948         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103949         AC_LIBSOURCE canon-host.h.  Call...
103950         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103951         gl_GETADDRINFO.
103952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103954 2005-09-12  Derek Price  <derek@ximbiot.com>
103956         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103957         LGPL.
103958         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103960 2005-09-12  Derek Price  <derek@ximbiot.com>
103962         * lib/gai_strerror.c: Include config.h when available.  Include
103963         getaddrinfo.h before other headers to test interface.
103964         Reported by Larry Jones <lawrence.jones@ugs.com>.
103966 2005-09-12  Derek Price  <derek@ximbiot.com>
103967             Paul Eggert  <eggert@cs.ucla.edu>
103969         * modules/glob (Files): Add glob-libc.h.
103971 2005-09-12  Derek Price  <derek@ximbiot.com>
103972             Paul Eggert  <eggert@cs.ucla.edu>
103974         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103975         glob_.h, glob-libc.h.
103976         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103978 2005-09-12  Derek Price  <derek@ximbiot.com>
103979             Paul Eggert  <eggert@cs.ucla.edu>
103981         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103982         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103983         protecting things that should be done only in gnulib contexts.
103984         * lib/glob_.h: New file, containing only the glob things needed for
103985         gnulib.
103986         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103987         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103988         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103989         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103990         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103991         and to respect the namespace rules better.
103993 2005-09-08  Simon Josefsson  <jas@extundo.com>
103995         * modules/socklen: New file.
103997 2005-09-08  Simon Josefsson  <jas@extundo.com>
103999         * m4/socklen.m4: New file.
104001 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104003         * modules/utimens (Files): Add m4/utimbuf.m4, since
104004         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
104005         Reported by Sergey Poznyakoff.
104007 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104009         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
104010         definitions, since that's the preferred style in glibc.
104011         Fix a minor spacing issue, and update copyright notice to match
104012         glibc's.
104014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104016         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
104018 2005-09-06  Simon Josefsson  <jas@extundo.com>
104020         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
104021         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
104023 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104025         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
104026         warning.
104028 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104030         * config/srclist.txt: Add glibc bug 1302.
104032 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
104034         Change bitset word type from unsigned int to unsigned long int,
104035         as this has better performance on typical 64-bit hosts.
104036         Port bitset code to hosts with unusual word sizes.
104037         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
104038         (build_collating_symbol):
104039         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
104040         argument is a bitset.  This is merely a style issue, but it makes
104041         it clearer that an entire array is expected.
104042         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
104043         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
104044         Port to the case where bitset_word is not the same as unsigned int.
104045         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104046         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
104047         Likewise.
104048         * lib/regexec.c (check_dst_limits_calc_pos_1,
104049         check_subexp_matching_top):
104050         (build_trtable, group_nodes_into_DFAstates):
104051         Likewise.
104052         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
104053         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
104054         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
104055         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
104056         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
104057         * lib/regcomp.c (optimize_subexps, lower_subexp):
104058         Work even if bitset_word has holes in its bitwise representation.
104059         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
104060         * lib/regexec.c (check_dst_limits_calc_pos_1,
104061         check_subexp_matching_top):
104062         Likewise.
104063         * lib/regex_internal.c (re_string_reconstruct):
104064         Don't assume UCHAR_MAX == 255.
104065         * lib/regex_internal.h (bitset_set_all): Likewise.
104066         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
104067         All uses changed.
104068         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
104069         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
104070         All uses changed.
104071         (BITSET_WORD_MAX): New macro.
104072         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
104073         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
104074         (bitset_empty, bitset_copy):
104075         Prefer sizeof (bitset) to multiplying it out ourselves.
104076         (bitset_not_merge): Remove; unused.
104077         (bitset_contain): Return bool, not unsigned int with one bit on.
104078         All callers changed.
104079         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
104080         alignment than re_node_set; do this by defining a new internal
104081         type struct dests_alloc and using it to allocate memory.
104083 2005-09-05  Bruno Haible  <bruno@clisp.org>
104085         * gnulib-tool (func_import): Fix comparison in handling of symbolic
104086         links.
104088 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
104090         * modules/size_max (Makefile.am): Add size_max.h
104092 2005-09-04  Derek Price  <derek@ximbiot.com>
104094         * gnulib-tool (func_import): Fix reversed $symbolic logic.
104096 2005-09-03  Simon Josefsson  <jas@extundo.com>
104098         * gnulib-tool: Fix typo.
104100 2005-09-03  Simon Josefsson  <jas@extundo.com>
104102         * config/srclist.txt: Add glibc bug 1293.
104104 2005-09-03  Derek Price  <derek@ximbiot.com>
104106         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
104107         From Larry Jones <lawrence.jones@ugs.com>.
104109 2005-09-02  Simon Josefsson  <jas@extundo.com>
104111         * modules/socklen: New file.
104113 2005-09-02  Simon Josefsson  <jas@extundo.com>
104115         * modules/havelib: New module.
104117         * modules/gettext, modules/iconv, modules/lock, modules/readline:
104118         Use havelib.
104120 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104122         Check for arithmetic overflow when calculating sizes, to prevent
104123         some buffer-overflow issues.  These patches are conservative, in the
104124         sense that when I couldn't determine whether an overflow was possible,
104125         I inserted a run-time check.
104126         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104127         macros.
104128         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104129         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104130         (re_xnrealloc, re_x2nrealloc): New inline functions.
104131         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104132         parse_bracket_exp):
104133         (build_equiv_class, build_charclass): Check for arithmetic overflow
104134         in size expression calculations.
104135         * lib/regex_internal.c (re_string_realloc_buffers):
104136         (build_wcs_upper_buffer, re_node_set_add_intersect):
104137         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104138         (re_dfa_add_node, register_state): Likewise.
104139         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104140         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104141         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104142         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104144 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104146         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104147         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104149 2005-09-02  Bruno Haible  <bruno@clisp.org>
104151         Support for lib vs. lib64 distinction on biarch platforms.
104152         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104153         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104156 2005-09-02  Bruno Haible  <bruno@clisp.org>
104158         * gnulib-tool (import): In the other first-use case, provide defaults
104159         as well.
104161 2005-09-02  Bruno Haible  <bruno@clisp.org>
104163         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104164         patches not yet found in the latest gettext release.
104166 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104168         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104169         to avoid a collision with bits/local_lim.h in glibc.
104170         All uses changed.  Problem reported by Dmitry V. Levin in
104171         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104173         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104174         bugs in int versus size_t comparisons.
104175         (re_string_context_at): Fix bug where the code assumed that
104176         Idx is signed.
104178         Use bool where appropriate.
104179         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104180         All callers changed.
104181         (calc_eclosure_iter): Likewise, for ROOT arg.
104182         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104183         (build_charclass_op): Likewise, for NON_MATCH arg.
104184         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104185         (re_string_construct_common): Likewise, for ICASE arg.
104186         * lib/regexec.c (re_search_2_stub, re_search_stub):
104187         Likewise, for RET_LEN arg.
104188         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104189         (set_regs): Likewise, for FL_BACKTRACK arg.
104190         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104191         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104192         (calc_eclosure_iter, parse_bracket_exp):
104193         Use bool for internal variables that are booleans.
104194         * lib/regexec.c (re_search_internal, check_matching,
104195         proceed_next_node):
104196         (set_regs, build_sifted_states, sift_states_bkref):
104197         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104198         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104199         (find_collation_sequence_value):
104200         Likewise.
104201         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104202         (re_node_set_compare):
104203         Return bool, not int. All callers changed.
104204         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104205         (build_trtable, check_node_accept): Likewise.
104206         * lib/regex_internal.h: Include stdbool.h.
104208         Fix bugs uncovered when converting to bool.
104209         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104210         failure instead of charging ahead blindly.
104211         * lib/regex_internal.c (register_state): Likewise.
104212         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104213         for freeing internal storage.
104214         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104215         bitset pieces used as boolean, to avoid undefined behavior
104216         on hosts that do int overflow checking.
104218 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104220         * config/srclist.txt: Add glibc bugs 1285-1287.
104222 2005-09-01  Jim Meyering  <jim@meyering.net>
104224         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104225         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104226         Require gl_STAT_MACROS, too.
104228 2005-09-01  Bruno Haible  <bruno@clisp.org>
104230         * gnulib-tool (import): In the first-use case, provide defaults.
104232 2005-09-01  Bruno Haible  <bruno@clisp.org>
104234         * gnulib-tool (func_import): Remove the .tmp files.
104236 2005-09-01  Bruno Haible  <bruno@clisp.org>
104238         * gnulib-tool (func_import): Fix handling of symbolic links.
104240 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104242         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104243         old glibc regex code mishandles strings longer than 2**31 bytes.
104244         This patch fixes this when the regex code is used in gnulib
104245         (i.e., outside glibc).
104247         This patch should not affect the use of the regex code inside
104248         glibc.  No doubt this problem also needs to be handled for glibc
104249         as well, but the result will be an incompatible change to the
104250         glibc ABI, and the old ABI will have to be supported too.  That
104251         can be the subject for another patch.
104253         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104254         governing whether the rest of this patch is active.  By default,
104255         the macro is disabled and the patch has no effect.
104256         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104257         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104258         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104259         (re_match_2, re_set_registers): Use the new types.
104260         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104261         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104262         New macros.
104263         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104264         (re_string_context_at, bin_tree_t, re_dfastate_t):
104265         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104266         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104267         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104268         (re_string_char_size_at, re_string_wchar_at):
104269         (re_string_elem_size_at):
104270         Use the new types and macros to port to 64-bit hosts.
104271         Use unsigned types for internal values, so that the code
104272         mostly works even for arrays larger than SSIZE_MAX.
104273         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104274         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104275         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104276         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104277         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104278         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104279         (calc_inveclosure, parse_dup_op, build_range_exp):
104280         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104281         (fetch_number, create_token_tree, mark_opt_subexp):
104282         Likewise.
104283         * lib/regex_internal.c (re_string_construct_common,
104284         create_ci_newstate):
104285         (create_cd_newstate, re_string_allocate, re_string_construct):
104286         (re_string_realloc_buffers, build_wcs_upper_buffer):
104287         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104288         (re_string_reconstruct, re_string_peek_byte_case):
104289         (re_string_fetch_byte_case, re_string_context_at):
104290         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104291         (re_node_set_init_copy, re_node_set_add_intersect):
104292         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104293         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104294         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104295         (re_acquire_state, re_acquire_state_context, register_state):
104296         Likewise.
104297         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104298         search_cur_bkref_entry):
104299         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104300         (re_search_internal, re_search_2_stub, re_search_stub)
104301         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104302         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104303         (update_cur_sifted_state, check_dst_limits):
104304         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104305         (check_subexp_limits, sift_states_bkref, merge_state_array):
104306         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104307         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104308         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104309         (expand_bkref_cache, check_node_accept_bytes):
104310         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104311         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104312         (acquire_init_state_context, check_halt_node_context):
104313         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104314         (sift_states_backward, clean_state_log_if_needed):
104315         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104316         (find_recover_state, transit_state_sb, transit_state_mb):
104317         (transit_state_bkref, build_trtable, match_ctx_clean):
104318         Likewise.
104319         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104320         to work around an assumption that REG_MISSING is negative.
104322         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104323         (seek_collating_symbol_entry) [defined _LIBC]:
104324         (lookup_collation_sequence_value) [defined _LIBC]:
104325         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104326         Use prototypes rather than old-style function definitions.
104327         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104328         (transit_state_sb) [0]:
104329         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104331         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104332         rm_eo.
104334         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104335         (optimize_subexps, lower_subexp):
104336         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104337         since the signed shift might overflow.  Use 1u<<31 instead.
104338         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104339         Likewise.
104340         * lib/regexec.c (check_dst_limits_calc_pos_1,
104341         check_subexp_matching_top): Likewise.
104343         * lib/regcomp.c (optimize_subexps, lower_subexp):
104344         Use CHAR_BIT rather than 8, for clarity.
104345         * lib/regexec.c (check_dst_limits_calc_pos_1):
104346         (check_subexp_matching_top): Likewise.
104347         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104348         have to worry about portability issues when shifting it left.
104349         Remove no-longer-needed test for table_size > 0.
104350         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104351         in a word, as the resulting behavior is undefined.
104352         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104353         in one case, a <= should have been an <, and in another case the
104354         whole test was missing.
104355         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104356         the standard name CHAR_BIT.
104357         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104358         this is not true on one's complement and signed-magnitude hosts.
104360         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104361         next_last_offset.
104362         (struct re_dfa_t): Remove unused member states_alloc.
104363         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104365 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104367         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104368         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104369         and large-file glibc and in 32-bit large-file Solaris.
104371 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104373         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104374         lengths fit in regoff_t; this isn't true if regoff_t is the same
104375         width as size_t.
104376         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104377         (= START + RANGE) instead of RANGE.  This avoids overflow
104378         problems when regoff_t is the same width as size_t.
104379         All callers changed.
104380         (re_search_2_stub): Check for overflow when adding the
104381         sizes of the two strings.
104382         (re_search_stub): Check for overflow when adding START
104383         to RANGE; if it occurs, substitute the extreme value.
104385 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104387         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104389 2005-08-31  Jim Meyering  <jim@meyering.net>
104391         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104392         a pointer-to-const.
104393         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104394         (register_state): Likewise.
104395         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104396         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104397         (group_nodes_into_DFAstates): Likewise.
104399 2005-08-31  Jim Meyering  <jim@meyering.net>
104401         * check-module: Add a FIXME comment.
104403 2005-08-31  Eric Blake  <ebb9@byu.net>
104405         * modules/unistd-safer (Files): Add unistd--.h.
104406         * modules/stdio-safer (Files): Add stdio--.h.
104408 2005-08-31  Derek Price  <derek@ximbiot.com>
104410         * lib/getdelim.c (getdelim): Return EOF on EOF.
104411         Reported by Larry Jones <lawrence.jones@ugs.com>.
104413 2005-08-31  Bruno Haible  <bruno@clisp.org>
104415         Avoid unnecessary diffs in the generated lib/Makefile.am.
104416         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104417         the generated files.
104418         (func_import): Don't set cmd.
104420 2005-08-31  Bruno Haible  <bruno@clisp.org>
104422         * lib/strstr.c: Include <stddef.h>, for NULL.
104423         * lib/strcasestr.c: Likewise.
104424         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104426 2005-08-31  Bruno Haible  <bruno@clisp.org>
104428         * gnulib-tool: New option --macro-prefix.
104429         (func_import): Use macro_prefix.
104430         (import): Handle option --macro-prefix.
104432 2005-08-31  Bruno Haible  <bruno@clisp.org>
104434         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104435         Also use new variables cached_lgpl, cached_libtool.
104437 2005-08-31  Bruno Haible  <bruno@clisp.org>
104439         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104440         always instantiating them.
104442 2005-08-31  Bruno Haible  <bruno@clisp.org>
104444         * gnulib-tool (func_import): Read the previous cached settings
104445         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104446         earlier added by gnulib but are now dropped. Warn when a gnulib file
104447         overwrites a non-gnulib file.
104449 2005-08-31  Bruno Haible  <bruno@clisp.org>
104451         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104452         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104453         projects that don't keep autogenerated files in CVS. Put into
104454         actioncmd only the specified modules, not the transitive closure.
104456 2005-08-31  Bruno Haible  <bruno@clisp.org>
104458         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104459         Create directories that shall be filled.
104460         (import): Don't look for gl_* macros in configure.ac. Recurse across
104461         all directories containing a gnulib-cache.m4 files, if meaningful.
104463 2005-08-31  Bruno Haible  <bruno@clisp.org>
104465         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104466         (import): Set seen_libtool when we see gl_LIBTOOL.
104468 2005-08-31  Bruno Haible  <bruno@clisp.org>
104470         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104471         declaration macro definitions from generated gnulib.m4.
104473 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104475         * lib/iconvme.h: Add prototype for iconv_alloc.
104477 2005-08-29  Simon Josefsson  <jas@extundo.com>
104479         * lib/iconvme.c: Fix errno.
104481 2005-08-29  Bruno Haible  <bruno@clisp.org>
104483         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104484         that it works when the directory contains spaces.
104486 2005-08-29  Bruno Haible  <bruno@clisp.org>
104488         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104490 2005-08-29  Bruno Haible  <bruno@clisp.org>
104492         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104493         Emit more advice.
104495 2005-08-29  Bruno Haible  <bruno@clisp.org>
104496         and Stepan Kasal  <kasal@ucw.cz>
104498         * check-module: If more parameters are given, check each of them
104499         separately; add more exceptions, as noted by Jim Meyering.
104500         (check_module): New procedure.
104501         (%exempt_header): Now contains all exceptions.
104503 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104505         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104507 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104509         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104511 2005-08-28  Bruno Haible  <bruno@clisp.org>
104513         * m4/gnulib-tool.m4: New file.
104515 2005-08-27  Jim Meyering  <jim@meyering.net>
104517         * modules/unistd-safer (Files): Add pipe-safer.c.
104518         * modules/fcntl-safer (Files): Add creat-safer.c.
104520 2005-08-27  Jim Meyering  <jim@meyering.net>
104522         * m4/stdlib-safer.m4: New file.  From coreutils.
104523         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104524         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104525         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104526         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104527         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104529 2005-08-27  Jim Meyering  <jim@meyering.net>
104531         * lib/fopen-safer.c: Merge minor changes from coreutils.
104532         * lib/dup-safer.c: Likewise.
104533         * lib/fd-safer.c: Likewise.
104535         Merge from coreutils.
104536         * lib/stdio--.h: New file.
104537         * lib/stdlib--.h: New file.
104538         * lib/mkstemp-safer.c: New file.
104540         GNU tar needs these.
104541         * lib/pipe-safer.c: New file.
104542         * lib/creat-safer.c: New file.
104543         * lib/fcntl--.h (creat): Define to creat_safer.
104544         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104545         * lib/unistd--.h (pipe): Define to pipe_safer.
104546         * lib/unistd-safer.h: Declare pipe_safer.
104548 2005-08-26  Simon Josefsson  <jas@extundo.com>
104550         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104551         Haible <bruno@clisp.org>.
104553 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104555         * lib/regex_internal.h: Remove all references to
104556         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104557         or better.
104558         (bitset_not, bitset_merge, bitset_not_merge):
104559         (bitset_mask, re_string_allocate, re_string_construct):
104560         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104561         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104562         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104563         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104564         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104565         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104566         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104567         (re_acquire_state_context):
104568         Remove unnecessary forward decls.
104569         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104570         Put __attribute at function definition,
104571         now that the function decl has been removed.
104572         * lib/regex_internal.c (re_string_peek_byte_case):
104573         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104574         Likewise.
104576 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104578         * m4/regex.m4: Add AC_PREREQ(2.50).
104579         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104581 2005-08-25  Simon Josefsson  <jas@extundo.com>
104583         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104584         __fsetlocking.
104586 2005-08-25  Simon Josefsson  <jas@extundo.com>
104588         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104589         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104590         GLIBC specific code.
104592 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104594         Make regex safe for g++.  This fixes one real bug (an "err"
104595         that should have been "*err").  g++ problem reported by
104596         Sam Steingold.
104597         * lib/regex_internal.h (re_calloc): New macro, consistent with
104598         re_malloc etc.  All callers of calloc changed to use re_calloc.
104599         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104600         not int.  All callers changed.
104601         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104602         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104603         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104604         (find_recover_state): Change "err" to "*err"; this fixes what
104605         appears to be a real bug.
104606         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104607         versus int.
104609 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104611         * modules/regex (Depends-on): Add malloc, since the code
104612         assumes that !malloc(0) means failure.
104614 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104616         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104618         alloca modernization/simplification for regex.
104619         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104620         needs to be at the start of the file, and can be moved into
104621         regex_internal.h and simplified.
104622         * lib/regex_internal.h: Include <alloca.h>.
104623         (__libc_use_alloca) [!defined _LIBC]: New macro.
104624         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104625         now works outside glibc.
104627 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104629         * config/srclist.txt: Add glibc bugs 1241, 1245.
104631 2005-08-25  Jim Meyering  <jim@meyering.net>
104633         * lib/open-safer.c: Include <config.h>.
104634         Otherwise, we'd lose LARGEFILE support in any file using
104635         e.g. "fcntl--.h"
104637 2005-08-25  Bruno Haible  <bruno@clisp.org>
104639         * m4/minmax.m4: Require autoconf 2.52.
104640         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104641         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104642         alternatives of translit over the alphabet.
104643         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104645 2005-08-24  Simon Josefsson  <jas@extundo.com>
104647         * tests/test-getpass.c: New file.
104649 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104651         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104652         for GNU regex features.
104654 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104656         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104657         * lib/regex.h (regerror): Likewise.
104659         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104660         requires this.  (The code never needed it.)
104662         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104663         All uses of recently-renamed identifiers changed to use the new,
104664         POSIX-compliant names.  The code will build and run just fine
104665         without these changes, but it's better to eat our own dog food
104666         and use the standard-conforming names.
104668         * lib/regex.h: Fix a multitude of POSIX name space violations.
104669         These changes have an effect only for programs that define
104670         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104671         do not change anything for programs compiled in the normal way.
104672         Also, there is no effect on the ABI.
104674         (_REGEX_SOURCE): New macro.
104675         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104676         defined and _GNU_SOURCE is not; this fixes a name space violation.
104678         Rename the following macros to obey POSIX requirements.
104679         The old names are still visible as macros if _REGEX_SOURCE is defined.
104680         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104681         RE_BACKSLASH_ESCAPE_IN_LISTS.
104682         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104683         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104684         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104685         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104686         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104687         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104688         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104689         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104690         (REG_INTERVALS): renamed from RE_INTERVALS.
104691         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104692         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104693         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104694         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104695         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104696         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104697         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104698         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104699         RE_UNMATCHED_RIGHT_PAREN_ORD.
104700         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104701         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104702         (REG_DEBUG): renamed from RE_DEBUG.
104703         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104704         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104705         unusual, since we can't clash with the POSIX REG_ICASE.
104706         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104707         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104708         (REG_NO_SUB): renamed from RE_NO_SUB.
104709         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104710         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104711         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104712         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104713         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104714         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104715         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104716         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104717         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104718         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104719         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104720         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104721         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104722         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104723         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104724         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104725         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104726         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104727         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104728         (REG_FIXED): Renamed from REGS_FIXED.
104729         (REG_NREGS): Renamed from RE_NREGS.
104731         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104732         of other REG_* macros, since POSIX says the user is allowed to
104733         #undef these macros selectively.
104735         (reg_errcode_t): Update comment stating what other tables need
104736         to be consistent.
104738         Rename the following enum values to obey POSIX requirements.
104739         The old names are still visible as macros.
104740         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104741         is not defined, since GNU is supposed to be a superset of POSIX as
104742         much as possible, and since we want reg_errcode_t to be a signed
104743         type for implementation consistency.
104744         (_REG_NOERROR): Renamed from REG_NOERROR.
104745         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104746         (_REG_BADPAT): Renamed from REG_BADPAT.
104747         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104748         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104749         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104750         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104751         (_REG_EBRACK): Renamed from REG_EBRACK.
104752         (_REG_EPAREN): Renamed from REG_EPAREN.
104753         (_REG_EBRACE): Renamed from REG_EBRACE.
104754         (_REG_BADBR): Renamed from REG_BADBR.
104755         (_REG_ERANGE): Renamed from REG_ERANGE.
104756         (_REG_ESPACE): Renamed from REG_ESPACE.
104757         (_REG_BADRPT): Renamed from REG_BADRPT.
104758         (_REG_EEND): Renamed from REG_EEND.
104759         (_REG_ESIZE): Renamed from REG_ESIZE.
104760         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104761         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104762         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104763         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104764         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104766         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104767         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104768         changed.  But support the old name if the new one is not defined
104769         and if _REGEX_SOURCE.
104771         Change the following member names in struct re_pattern_buffer.
104772         The old names are still supported if !_REGEX_SOURCE.
104773         The new names are always supported, regardless of _REGEX_SOURCE.
104774         (re_buffer): Renamed from buffer.
104775         (re_allocated): Renamed from allocated.
104776         (re_used): Renamed from used.
104777         (re_syntax): Renamed from syntax.
104778         (re_fastmap): Renamed from fastmap.
104779         (re_translate): Renamed from translate.
104780         (re_can_be_null): Renamed from can_be_null.
104781         (re_regs_allocated): Renamed from regs_allocated.
104782         (re_fastmap_accurate): Renamed from fastmap_accurate.
104783         (re_no_sub): Renamed from no_sub.
104784         (re_not_bol): Renamed from not_bol.
104785         (re_not_eol): Renamed from not_eol.
104786         (re_newline_anchor): Renamed from newline_anchor.
104788         Change the following member names in struct re_registers.
104789         The old names are still supported if !_REGEX_SOURCE.
104790         The new names are always supported, regardless of _REGEX_SOURCE.
104791         (rm_num_regs): Renamed from num_regs.
104792         (rm_start): Renamed from start.
104793         (rm_end): Renamed from end.
104795         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104796         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104797         Prepend __ to parameter names.
104799         Undo yesterday's changes.
104801 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104803         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104804         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104805         lib/regex.c.
104807 2005-08-24  Jim Meyering  <jim@meyering.net>
104809         Sync from coreutils.
104810         * m4/fcntl-safer.m4: New file.
104812         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104813         and object files for this module.
104815 2005-08-24  Jim Meyering  <jim@meyering.net>
104817         Sync from coreutils.
104818         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104820 2005-08-24  Jim Meyering  <jim@meyering.net>
104822         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104823         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104825 2005-08-24  Jim Meyering  <jim@meyering.net>
104827         * modules/fcntl-safer: New module.
104828         * modules/fts (Depends-on): Add fcntl-safer.
104829         * MODULES.html.sh (File descriptor based Input/Output):
104830         Add fcntl-safer.
104832 2005-08-24  Bruno Haible  <bruno@clisp.org>
104834         Support for unit test modules.
104835         * modules/README: Mention tests modules.
104836         * modules/TEMPLATE-TESTS: New file.
104837         * gnulib-tool: New options --extract-tests-module, --with-tests and
104838         --tests-base (unused for the moment).
104839         (testsbase, inctests): New variables.
104840         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104841         (func_verify_module): Exclude TEMPLATE-TESTS.
104842         (func_verify_nontests_module, func_verify_tests_module): New functions.
104843         (func_get_dependencies): Add implicit dependency for tests modules.
104844         (func_get_tests_module): New function.
104845         (func_modules_transitive_closure): When --with-tests was specified,
104846         include the unit tests as well, unless explicitly avoided.
104847         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104848         (func_emit_tests_Makefile_am): New function.
104849         (func_create_testdir): When --with-tests was specified, emit a
104850         tests/ directory.
104851         * MODULES.html.sh (Future developments): Update.
104853 2005-08-24  Bruno Haible  <bruno@clisp.org>
104855         * modules/tls-tests: New file.
104856         * tests/test-tls.c: New file, from GNU gettext.
104858 2005-08-24  Bruno Haible  <bruno@clisp.org>
104860         * modules/lock-tests: New file.
104861         * tests/test-lock.c: New file, from GNU gettext.
104863 2005-08-24  Bruno Haible  <bruno@clisp.org>
104865         * lib/lock.h: Add multiple inclusion guard.
104866         * lib/tls.h: Add multiple inclusion guard.
104868 2005-08-24  Bruno Haible  <bruno@clisp.org>
104870         * gnulib-tool: Add support for the --aux-dir option to
104871         --create-testdir, --create-megatestdir, --test, --megatest.
104872         (func_create_testdir, func_create_megatestdir): Optionally emit a
104873         AC_CONFIG_AUX_DIR directive.
104874         (create-testdir, create-megatestdir, test, megatest): Provide a
104875         default value for $auxdir.
104877 2005-08-24  Bruno Haible  <bruno@clisp.org>
104879         * gnulib-tool (import): Use compound statement instead of subshell
104880         where possible.
104882 2005-08-24  Bruno Haible  <bruno@clisp.org>
104884         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104886 2005-08-24  Bruno Haible  <bruno@clisp.org>
104888         * gnulib-tool (func_version): Update.
104890 2005-08-24  Bruno Haible  <bruno@clisp.org>
104892         * gnulib-tool (func_import, func_create_testdir,
104893         func_create_megatestdir): Quote all autoconf macro arguments.
104895 2005-08-24  Bruno Haible  <bruno@clisp.org>
104897         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104898         option --force, because --force causes the aclocal.m4 of each
104899         subdirectory to be newer than the corresponding config.h.in.
104901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104903         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104904         All contents moved to gl_REGEX.
104905         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104906         assume that it does.
104908 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104910         * lib/regex.h (REG_NOSYS)
104911         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104912         Define, since POSIX requires it as of 2001.
104913         (_REG_ENOSYS)
104914         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104915         New private symbol, used to keep the enum signed in all cases.
104916         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104917         Youngman in
104918         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104920         * lib/regex_internal.c (re_string_skip_chars, register_state):
104921         (calc_state_hash):
104922         Remove forward decls; no longer needed now that we use prototypes.
104923         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104924         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104925         (clean_state_log_if_needed): Likewise.
104927 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104929         * config/srclist.txt: Add glibc bugs 1231-1233.
104931 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104933         Fix problems reported by Sam Steingold in
104934         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104935         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104936         assumed that reg_errcode_t is a signed type, which is not
104937         necessarily true if _XOPEN_SOURCE is not defined.
104938         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104939         since some compilers warn about it otherwise.
104941 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104943         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104944         (init_word_char, create_initial_state, duplicate_node_closure):
104945         (fetch_token, peek_token_bracket, build_range_exp):
104946         (build_collating_symbol): Remove forward decls; no longer needed
104947         now that we use prototypes.
104949         * lib/regcomp.c:
104950         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104951         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104952         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104953         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104954         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104955         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104956         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104957         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104958         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104959         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104960         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104961         (build_charclass, build_charclass_op, fetch_number, create_tree):
104962         (create_token_tree, mark_opt_subexp, duplicate_tree):
104963         Use prototypes rather than old-style definitions.
104965         * lib/regex_internal.c:
104966         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104967         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104968         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104969         (re_string_reconstruct, re_string_peek_byte_case):
104970         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104971         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104972         (re_node_set_init_copy, re_node_set_add_intersect):
104973         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104974         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104975         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104976         (re_acquire_state, re_acquire_state_context, register_state):
104977         (create_ci_newstate, create_cd_newstate, free_state):
104978         Likewise.
104979         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104980         re_search_2):
104981         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104982         (re_search_internal, prune_impossible_nodes):
104983         (acquire_init_state_context, check_matching, static):
104984         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104985         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104986         (update_regs, sift_states_backward, build_sifted_states):
104987         (clean_state_log_if_needed, merge_state_array):
104988         (update_cur_sifted_state, add_epsilon_src_nodes):
104989         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104990         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104991         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104992         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104993         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104994         (check_arrival, check_arrival_add_next_nodes):
104995         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104996         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104997         (check_node_accept_bytes, check_node_accept, extend_buffers):
104998         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104999         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
105000         (sift_ctx_init):
105001         Likewise.
105003         * lib/regex_internal.h:
105004         (re_string_allocate, re_string_construct, re_string_reconstruct):
105005         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
105006         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
105007         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
105008         (re_string_context_at, re_string_peek_byte_case):
105009         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
105010         is defined, since we now use prototypes always.
105012         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
105013         C89 or better.  All uses removed.
105015 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105017         * config/srclist.txt: Add glibc bugs 1220-1227.
105019 2005-08-20  Jim Meyering  <jim@meyering.net>
105021         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
105022         of unused local, dfa.
105024 2005-08-20  Bruno Haible  <bruno@clisp.org>
105026         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
105028 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105030         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
105031         (re_node_set_insert_last, re_dfa_add_node):
105032         Rename local variables to avoid GCC shadowing warnings.
105034 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105036         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
105037         [defined lint]: Suppress bogus uninitialized-variable warnings.
105039         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
105040         and let the caller return REG_ESPACE if out of space.  This
105041         removes an uninitialied-variable warning with GCC 4.0.1, and also
105042         avoids taking the address of a local variable.  All callers
105043         changed.
105045 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105047         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
105048         $LIBCSRC/posix/regexec.c.
105049         Add glibc bug 1217 for regcomp.c.
105051 2005-08-19  Jim Meyering  <jim@meyering.net>
105053         * lib/regexec.c (proceed_next_node): Redo local variables to
105054         avoid GCC shadowing warnings.
105056 2005-08-18  Bruno Haible  <bruno@clisp.org>
105058         * lib/strstr.c (strstr): Fix return value in multibyte case.
105059         * lib/strcasestr.c (strcasestr): Likewise.
105061 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105063         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
105065 2005-08-17  Jim Meyering  <jim@meyering.net>
105067         Make the %s format (seconds since the epoch) work for a negative
105068         number and when used with a zero-padded field width, e.g. %015s.
105070         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
105071         label so that it precedes the code to set `digits'.  Otherwise,
105072         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
105073         print `00-22'.  Now, it prints `-0022', as it should.
105075 2005-08-17  Bruno Haible  <bruno@clisp.org>
105077         * modules/strstr (Files): Add m4/mbrtowc.m4.
105078         (Depends-on): Add mbuiter.
105080 2005-08-17  Bruno Haible  <bruno@clisp.org>
105082         * modules/strcasestr: New file.
105083         * MODULES.html.sh (String handling, based on ANSI C 89): Add
105084         strcasestr.
105086 2005-08-17  Bruno Haible  <bruno@clisp.org>
105088         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
105090 2005-08-17  Bruno Haible  <bruno@clisp.org>
105092         * modules/mbuiter: New file.
105093         * MODULES.html.sh (Extended multibyte and wide character utilities):
105094         Add mbuiter.
105096 2005-08-17  Bruno Haible  <bruno@clisp.org>
105098         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
105099         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
105101 2005-08-17  Bruno Haible  <bruno@clisp.org>
105103         * m4/strcasestr.m4: New file.
105105 2005-08-17  Bruno Haible  <bruno@clisp.org>
105107         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
105108         * lib/strstr.c: Completely rewritten, with multibyte locale support.
105110 2005-08-17  Bruno Haible  <bruno@clisp.org>
105112         * lib/strcasestr.h: New file.
105113         * lib/strcasestr.c: New file.
105115 2005-08-17  Bruno Haible  <bruno@clisp.org>
105117         * lib/strcasecmp.c: Use mbuiter.h.
105119 2005-08-17  Bruno Haible  <bruno@clisp.org>
105121         * lib/mbuiter.h: New file.
105123 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105126         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105127         and gl_GETOPT are both invoked via different paths (as happens
105128         with GNU tar CVS because it uses both argp and getopt), the former
105129         wins.
105131 2005-08-16  Bruno Haible  <bruno@clisp.org>
105133         * modules/tls: New file.
105134         * MODULES.html.sh (Multithreading): Add tls.
105136 2005-08-16  Bruno Haible  <bruno@clisp.org>
105138         * modules/strnlen1: New file.
105139         * MODULES.html.sh (String handling): Add strnlen1.
105141 2005-08-16  Bruno Haible  <bruno@clisp.org>
105143         * modules/strcase (Files): Add m4/mbrtowc.m4.
105144         (Depends-on): Add strnlen1, mbchar.
105146 2005-08-16  Bruno Haible  <bruno@clisp.org>
105148         * modules/mbiter: New file.
105149         * MODULES.html.sh (Extended multibyte and wide character utilities):
105150         Add mbiter.
105152 2005-08-16  Bruno Haible  <bruno@clisp.org>
105154         * modules/mbfile: New file.
105155         * MODULES.html.sh (Extended multibyte and wide character utilities):
105156         Add mbfile.
105158 2005-08-16  Bruno Haible  <bruno@clisp.org>
105160         * modules/mbchar: New file.
105161         * MODULES.html.sh (Extended multibyte and wide character utilities):
105162         New section.
105164 2005-08-16  Bruno Haible  <bruno@clisp.org>
105166         * m4/tls.m4: New file, from GNU gettext.
105168 2005-08-16  Bruno Haible  <bruno@clisp.org>
105170         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105171         always.
105172         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105174 2005-08-16  Bruno Haible  <bruno@clisp.org>
105176         * m4/mbiter.m4: New file.
105178 2005-08-16  Bruno Haible  <bruno@clisp.org>
105180         * m4/mbfile.m4: New file.
105182 2005-08-16  Bruno Haible  <bruno@clisp.org>
105184         * m4/mbchar.m4: New file.
105186 2005-08-16  Bruno Haible  <bruno@clisp.org>
105188         * lib/tls.h: New file, from GNU gettext.
105189         * lib/tls.c: New file, from GNU gettext.
105191 2005-08-16  Bruno Haible  <bruno@clisp.org>
105193         * lib/strnlen1.h: New file.
105194         * lib/strnlen1.c: New file.
105196 2005-08-16  Bruno Haible  <bruno@clisp.org>
105198         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105199         (mbi_init): Update.
105200         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105201         NUL byte, not after it.
105203 2005-08-16  Bruno Haible  <bruno@clisp.org>
105205         * lib/strcase.h (strcasecmp): Add note in comments.
105206         * lib/strncasecmp.c: Use code from strcasecmp.c.
105207         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105208         (strcasecmp): Work correctly in multibyte locales.
105210 2005-08-16  Bruno Haible  <bruno@clisp.org>
105212         * lib/mbiter.h: New file.
105214 2005-08-16  Bruno Haible  <bruno@clisp.org>
105216         * lib/mbfile.h: New file.
105218 2005-08-16  Bruno Haible  <bruno@clisp.org>
105220         * lib/mbchar.h: New file.
105221         * lib/mbchar.c: New file.
105223 2005-08-16  Bruno Haible  <bruno@clisp.org>
105225         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105226         the valid ones. Makes the comparison operations transitive:
105227         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105228         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105230 2005-08-15  Simon Josefsson  <jas@extundo.com>
105232         * modules/ssize_t (License): Change to 'unlimited'.
105234         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105236 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105238         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105239         Add comments for each pending glibc patch.
105241 2005-08-15  Bruno Haible  <bruno@clisp.org>
105243         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105244         __cplusplus is defined.
105246 2005-08-14  Jim Meyering  <jim@meyering.net>
105248         Sync from coreutils.
105250         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105251         Use the hash-table-based cycle-detection code not just when
105252         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105253         Reported by James Youngman in
105254         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105255         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105256         FTS_TIGHT_CYCLE_CHECK.
105257         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105258         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105259         once again.
105260         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105261         * lib/fts.c (fd_safer): Remove decl.
105262         Include fcntl--.h rather than unistd-safer.h
105263         (fts_safe_changedir): Don't call fd_safer; no longer needed
105264         now that we include fcntl--.h.
105266 2005-08-12  Simon Josefsson  <jas@extundo.com>
105268         * modules/getndelim2: Use ssize_t module.
105269         * modules/getnline: Likewise.
105270         * modules/safe-read: Likewise.
105271         * modules/xreadlink: Likewise.
105273         * modules/ssize_t: New file.
105275 2005-08-12  Simon Josefsson  <jas@extundo.com>
105277         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105279 2005-08-12  Simon Josefsson  <jas@extundo.com>
105281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105282         ssize_t.
105284 2005-08-12  Simon Josefsson  <jas@extundo.com>
105286         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105287         readline, getdelim and check_version.
105288         (Support for systems lacking ISO C 99: Sizes of integer types):
105289         Add size_max.
105291 2005-08-12  Bruno Haible  <bruno@clisp.org>
105293         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105295 2005-08-11  Simon Josefsson  <jas@extundo.com>
105297         * modules/readline: New file.
105299         * modules/strnlen (Files): Add strnlen.h.
105301 2005-08-11  Simon Josefsson  <jas@extundo.com>
105303         * m4/readline.m4: New file.
105305 2005-08-11  Simon Josefsson  <jas@extundo.com>
105307         * lib/readline.h, readline.c: New file.
105309 2005-08-11  Simon Josefsson  <jas@extundo.com>
105311         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105312         gl_AVOID.
105314 2005-08-11  Bruno Haible  <bruno@clisp.org>
105316         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105318 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105320         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105322 2005-08-10  Simon Josefsson  <jas@extundo.com>
105324         * tests/test-iconvme.c: New file.
105326 2005-08-10  Simon Josefsson  <jas@extundo.com>
105328         * m4/strnlen.m4: New file.
105330         * m4/strndup.m4: Don't check for strnlen declaration, done in
105331         strnlen.m4.
105333 2005-08-10  Simon Josefsson  <jas@extundo.com>
105335         * lib/strndup.c: Use strnlen.h.
105337         * lib/strnlen.h: New file.
105339 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105341         * README: Typos.
105343 2005-08-02  Simon Josefsson  <jas@extundo.com>
105345         * modules/readline: New file.
105347 2005-08-02  Simon Josefsson  <jas@extundo.com>
105349         * modules/getdelim: New file.
105351         * modules/getline: Rewrite, don't use getndelim2.
105353 2005-08-02  Simon Josefsson  <jas@extundo.com>
105355         * m4/getline.m4: Separate out getdelim stuff into separate module.
105357         * m4/getdelim.m4: New file.
105359 2005-08-02  Simon Josefsson  <jas@extundo.com>
105361         * lib/getline.h, getline.c: Rewrite.
105363         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105365 2005-07-31  Bruno Haible  <bruno@clisp.org>
105367         * lib/lock.h (gl_lock_initializer): New macro.
105368         (gl_lock_define_initialized): Use it.
105369         (gl_rwlock_initializer): New macro.
105370         (gl_rwlock_define_initialized): Use it.
105371         (gl_recursive_lock_initializer): New macro.
105372         (gl_recursive_lock_define_initialized): Use it.
105374 2005-07-30  Karl Berry  <karl@gnu.org>
105376         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105377         Report from Ben Pfaff, regarding getopt.
105379 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105381         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105382         normal way.
105383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105384         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105385         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105386         (gl_GETOPT): Use the new macros.  Most of the implementation
105387         is moved to the new macros.  This is for programs like Emacs
105388         that don't want all the functionality of gl_GETOPT.
105390 2005-07-26  Bruno Haible  <bruno@clisp.org>
105392         * m4/lock.m4: Update from GNU gettext.
105394 2005-07-26  Bruno Haible  <bruno@clisp.org>
105396         * lib/lock.h: Update from GNU gettext.
105397         * lib/lock.c: Update from GNU gettext.
105399 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105401         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105402         obsolescent AC_TRY_RUN.  Include the default includes files, for
105403         'exit'.
105405 2005-07-24  Bruno Haible  <bruno@clisp.org>
105407         * modules/visibility: New file.
105408         * MODULES.html.sh (Misc): Add visibility.
105410 2005-07-24  Bruno Haible  <bruno@clisp.org>
105412         * m4/visibility.m4: New file.
105414 2005-07-24  Bruno Haible  <bruno@clisp.org>
105416         * doc/visibility.texi: New file.
105418 2005-07-22  Bruno Haible  <bruno@clisp.org>
105420         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105421         $(ALLOCA_H), redundant through BUILT_SOURCES.
105422         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105423         redundant through BUILT_SOURCES.
105424         * modules/byteswap (Makefile.am): Remove explicit dependency on
105425         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105426         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105427         $(FNMATCH_H), redundant through BUILT_SOURCES.
105428         * modules/getopt (Makefile.am): Remove explicit dependency on
105429         $(GETOPT_H), redundant through BUILT_SOURCES.
105430         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105431         redundant through BUILT_SOURCES.
105432         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105433         redundant through BUILT_SOURCES.
105434         * modules/stdbool (Makefile.am): Remove explicit dependency on
105435         $(STDBOOL_H), redundant through BUILT_SOURCES.
105436         * modules/stdint (Makefile.am): Remove explicit dependency on
105437         $(STDINT_H), redundant through BUILT_SOURCES.
105438         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105439         Remove explicit dependency on $(SYSEXITS_H).
105440         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105442 2005-07-18  Simon Josefsson  <jas@extundo.com>
105444         * lib/check-version.c (check_version): Accept identical versions too.
105446 2005-07-18  Bruno Haible  <bruno@clisp.org>
105448         * modules/lock: New file.
105449         * MODULES.html.sh (Multithreading): New section.
105451 2005-07-18  Bruno Haible  <bruno@clisp.org>
105453         * m4/lock.m4: New file, from GNU gettext.
105455 2005-07-18  Bruno Haible  <bruno@clisp.org>
105457         * lib/lock.h: New file, from GNU gettext.
105458         * lib/lock.c: New file, from GNU gettext.
105460 2005-07-18  Bruno Haible  <bruno@clisp.org>
105462         * lib/lock.h (gl_once_t): New type.
105463         (gl_once_define, gl_once): New macros.
105464         * lib/lock.c (fresh_once): New variable.
105465         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105466         functions.
105468 2005-07-16  Simon Josefsson  <jas@extundo.com>
105470         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105471         workaround, suggested by Bruno.
105473 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105475         * modules/xalloc (Depends-on): Add xalloc-die.
105476         * modules/xvasprintf (Depends-on): Add xalloc-die.
105478 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105480         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105481         with a minor change.
105483 2005-07-15  Bruno Haible  <bruno@clisp.org>
105485         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105486         When using lib/poll.c, define poll as rpl_poll.
105488 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105490         * modules/argp (Depends-on): Remove unlocked-io.
105492 2005-07-14  Derek Price  <derek@ximbiot.com>
105494         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105495         for glob symlink bug.
105497 2005-07-14  Bruno Haible  <bruno@clisp.org>
105499         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105500         Instead, test for *_unlocked function declarations directly.
105502 2005-07-11  Simon Josefsson  <jas@extundo.com>
105504         * modules/size_max: New file.
105506         * modules/xsize: Depend on size_max module for size_max.m4.
105508 2005-07-11  Simon Josefsson  <jas@extundo.com>
105510         * lib/size_max.h: New file.
105512 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105514         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105515         copyright symbol and the year.
105516         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105517         (version_etc_va): Use parameterized copyright notice.
105518         Reword to conform to the current GNU coding standards.
105520 2005-07-11  Karl Berry  <karl@gnu.org>
105522         * doc/gnulib.texi (Quoting): new node.
105523         (Initial import): more info, from Patrice.
105525 2005-07-11  Bruno Haible  <bruno@clisp.org>
105527         * gnulib-tool (func_usage): Document option --avoid.
105528         (Command line options): Handle --avoid.
105529         (func_acceptable): New function.
105530         (func_modules_transitive_closure): Use it.
105532 2005-07-11  Bruno Haible  <bruno@clisp.org>
105534         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105535         Reported by Jim Meyering.
105537 2005-07-10  Bruno Haible  <bruno@clisp.org>
105539         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105540         Needed when size_t is smaller than 'unsigned int'.
105541         Reported by Paul Eggert.
105543 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105545         * modules/argp (Depends-on): Add unlocked-io
105547 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105549         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105550         block of defines.
105552 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105554         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105555         fix now.
105557 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105558         and Paul Eggert  <eggert@cs.ucla.edu>
105560         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105561         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105565         * modules/regex (Files): Add lib/regex_internal.c,
105566         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105567         (Depends-on): Add extensions.
105568         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105572         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105573         pathconf.
105574         * m4/same.m4 (gl_SAME): Likewise.
105575         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105577         * m4/regex.m4: Adjust to new libc regex implementation.
105578         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105579         all the .c and .h parts of (the new) regex.
105580         Quote the m4 stuff better.
105581         Check for RE_ICASE bug of old gnulib.
105582         Check for REG_STARTEND of recent libc.
105583         Rename local variables from jm_* to gl_*.
105584         Quote operand of "test -f".
105585         Say "recent enough" version of libc, not "version 2".
105586         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105587         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105588         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105589         Remove check for btowc, isascii.
105590         Require AM_LANGINFO_CODESET.
105592 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105594         * lib/regex.c, regex.h: Sync from libc.
105595         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105596         * lib/regexec.c:
105597         New files, synced from libc, except that regex_internal.h
105598         currently has a small porting fix.
105600 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105602         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105603         regex_internal.c, regexec.c.
105604         Add regex_internal.h too, but as a comment, since the libc version
105605         is currently broken in gnulib mode.
105607 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105609         Support programs like Emacs that use gnulib but not gettext.
105610         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105611         * modules/gettext-h: New file.
105612         * modules/gettext (Files): Remove lib/gettext.h.
105613         (Depends-on): Add gettext-h.
105614         (Makefile.am): Remove lib_SOURCES.
105615         * modules/argmatch, modules/c-stack, modules/closeout:
105616         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105617         * modules/execute, modules/file-type, modules/getaddrinfo:
105618         * modules/getopt, modules/human, modules/javacomp:
105619         * modules/javaexec, modules/mkdir-p, modules/obstack:
105620         * modules/openat, modules/pagealign_alloc, modules/pipe:
105621         * modules/quotearg, modules/regex, modules/rpmatch:
105622         * modules/unicodeio, modules/userspec, modules/version-etc:
105623         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105624         * modules/xsetenv:
105625         Depend on gettext-h, not gettext.
105627 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105629         * gnulib-tool (func_import): Add support for 'public domain' license.
105630         * modules/alloca, modules/atexit, modules/memmove:
105631         Now public domain, not GPL.
105632         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105633         * modules/realloc, modules/strerror, modules/strtod:
105634         Now LGPL, not GPL.
105636 2005-07-05  Bruno Haible  <bruno@clisp.org>
105638         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105639         autoconf CVS. Needed for mingw.
105641 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105643         Remove the dependency of the strftime module on the tzset module.
105644         * modules/strftime (Depends-on): Remove dependency on tzset.
105646 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105648         Remove the dependency of the strftime module on the tzset module.
105649         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105650         gl_FUNC_TZSET_CLOBBER.
105652 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105654         Remove the dependency of the strftime module on the tzset module.
105655         * lib/strftime.c (my_strftime)
105656         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105657         Copy the input structure, to work around some of the bug with
105658         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105659         Solaris releases, you should also use the tzset module, but we won't
105660         require it as a dependency any more since we don't want LGPLed code
105661         to depend on GPLed code.
105663 2005-07-02  Jim Meyering  <jim@meyering.net>
105665         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105666         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105667         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105668         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105670 2005-07-02  Jim Meyering  <jim@meyering.net>
105672         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105674 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105676         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105677         declares only 'struct timespec;' (!).
105679 2005-07-01  Jim Meyering  <jim@meyering.net>
105681         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105682         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105683         * lib/save-cwd.c, tempname.c:
105684         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105685         and don't include <sys/file.h>).
105687 2005-06-29  Jim Meyering  <jim@meyering.net>
105689         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105690         type name.  Use the variable name instead.
105691         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105692         Likewise.
105694 2005-06-28  Simon Josefsson  <jas@extundo.com>
105696         * modules/check-version (Files): Add check-version.m4.
105698 2005-06-28  Simon Josefsson  <jas@extundo.com>
105700         * m4/check-version.m4: New file, suggested by Jim Meyering
105701         <jim@meyering.net>.
105703 2005-06-28  Simon Josefsson  <jas@extundo.com>
105705         * lib/check-version.h, lib/check-version.c: New files.
105707 2005-06-28  Simon Josefsson  <jas@extundo.com>
105709         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105710         collision with global variable.  Better indentation.  Don't
105711         increment buffer pointer beyond buffer end.  Based on comments
105712         from Paul Eggert <eggert@cs.ucla.edu>.
105714         * lib/base64.h: Indent.
105716 2005-06-28  Simon Josefsson  <jas@extundo.com>
105718         * doc/gnulib.texi (Library version handling): New section.
105720 2005-06-28  Jim Meyering  <jim@meyering.net>
105722         * check-module (find_included_lib_files): Hard-code another
105723         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105724         but modules/fts-lgpl (correctly) does not list those files.
105726         * modules/canonicalize (Files): Add lib/pathmax.h.
105728 2005-06-25  Simon Josefsson  <jas@extundo.com>
105730         * modules/check-version: New file.
105732 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105734         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105735         initializer of struct addrinfo, as an indication that we don't
105736         care how many members the structure has.
105738 2005-06-24  Derek Price  <derek@ximbiot.com>
105739         and Bruno Haible  <bruno@clisp.org>
105741         Remove stat module & update lstat.
105742         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105744         * m4/stat.m4: Remove this file.
105746 2005-06-24  Derek Price  <derek@ximbiot.com>
105747         and Bruno Haible  <bruno@clisp.org>
105749         Remove stat module & update lstat.
105750         * lib/stat.c: Remove this file...
105751         (slash_aware_lstat): ...moving this content and its support...
105752         * lib/lstat.c (rpl_lstat): ...into here.
105753         * lib/lstat.h: New file.
105755 2005-06-24  Derek Price  <derek@ximbiot.com>
105756         and Bruno Haible  <bruno@clisp.org>
105758         Remove stat module & update lstat.
105759         * config/srclist.txt (libc sources): Remove stat.
105761 2005-06-24  Derek Price  <derek@ximbiot.com>
105762         and Bruno Haible  <bruno@clisp.org>
105764         Remove stat module & update lstat.
105765         * MODULES.html.sh (stat): Remove.
105766         * MODULES.html: Regenerated.
105767         * modules/lstat (Description): Correct function name.
105768         (Files): Add "lstat.h".
105769         (Depends-on): Remove stat, add xalloc, stat-macros.
105770         * modules/stat: Remove this file.
105771         (Include): Add "lstat.h", remove <sys/stat.h>.
105773 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105775         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105776         (ranged_convert): Don't save conversion in a temporary struct.
105777         This causes a warning with GCC 4.0.0, and anyway in the typical
105778         case it's not worth the extra 100 bytes or so of code.
105779         (ranged_convert, __mktime_internal): When calling a function via a
105780         pointer P, use P () rather than (*P) (), as we now assume C89 or
105781         better.
105783 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105785         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105786         "who -r" failed to give output.  Problem reported by Tim Waugh.
105788         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105789         (xcalloc): Use it to avoid needless tests.
105790         Problem reported by Jim Meyering.
105792 2005-06-20  Derek Price  <derek@ximbiot.com>
105794         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105795         unnecessary for Autoconfs > 2.59c.
105797 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105799         * lib/argp.h (__option_is_short): Check upper limit of
105800         __key. Isprint() requires its argument to have the value
105801         of an unsigned char or EOF.
105803 2005-06-16  Jim Meyering  <jim@meyering.net>
105805         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105806         when either N or S is zero.
105808 2005-06-16  Derek Price  <derek@ximbiot.com>
105810         * m4/bison.m4: Declare YACC & YFLAGS precious.
105812 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105814         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105815         multibyte string or pattern, fall back on unibyte matching.
105816         Problem reported by James Youngman.
105818 2005-06-08  Bruno Haible  <bruno@clisp.org>
105820         * modules/csharpcomp: New file.
105821         * MODULES.html.sh (C#): Add csharpcomp.
105823 2005-06-08  Bruno Haible  <bruno@clisp.org>
105825         * m4/csharpcomp.m4: New file, from GNU gettext.
105827 2005-06-08  Bruno Haible  <bruno@clisp.org>
105829         * lib/csharpcomp.h: New file, from GNU gettext.
105830         * lib/csharpcomp.c: New file, from GNU gettext.
105831         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105833 2005-06-08  Bruno Haible  <bruno@clisp.org>
105835         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105836         warning on mingw.
105838 2005-06-07  Derek Price  <derek@ximbiot.com>
105840         Sync from CVS.
105841         * lib/glob_.h: Indent nested #ifdef.
105843 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105845         Sync from coreutils.
105846         Use "file name" when talking about file names, instead of "filename"
105847         or "path", as per the GNU coding standards.
105848         * lib/mkdir-p.c: Renamed from makepath.c.
105849         (make_dir_parents): Renamed from make_path.  All callers changed.
105850         * lib/mkdir-p.h: Likewise.  All includers changed.
105851         * lib/filenamecat.c: Renamed from path-concat.c.
105852         (file_name_concat): Renamed from path_concat.  All callers changed.
105853         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105854         * lib/filenamecat.h: Likewise.  All includers changed.
105855         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105856         in comments or local variable names.
105857         * lib/basename.c: Likewise.
105858         * lib/canonicalize.c, canonicalize.h: Likewise.
105859         * lib/dirname.c, dirname.h: Likewise.
105860         * lib/euidaccess.c: Likewise.
105861         * lib/exclude.c: Likewise
105862         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105863         * lib/fsusage.c, fsuage.h: Likewise.
105864         * lib/fts.c, fts_.h: Likewise.
105865         * lib/getcwd.c: Likewise.
105866         * lib/getloadavg.c: Likewise.
105867         * lib/mkstemp.c: Likewise.
105868         * lib/mountlist.c, mountlist.h: Likewise.
105869         * lib/openat.c, openat.h: Likewise.
105870         * lib/readlink-stub.c: Likewise.
105871         * lib/readutmp.c, readutmp.h: Likewise.
105872         * lib/rename.c: Likewise.
105873         * lib/rmdir.c: Likewise.
105874         * lib/same.c: Likewise.
105875         * lib/savedir.c: Likewise.
105876         * lib/stripslash.c: Likewise.
105877         * lib/tempname.c: Likewise.
105878         * lib/xreadlink.c: Likewise.
105879         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105880         All uses changed.
105881         * lib/exclude.h: Likewise.
105883         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105884         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105885         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105886         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105887         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105888         files have been getting away with it for years (MORE/BSD 4.3
105889         is extinct now).
105890         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105891         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105893         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105894         Define to 256, not 255, as per modern POSIX.
105896 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105898         Sync from coreutils.
105899         Use "file name" when talking about file names, instead of "filename"
105900         or "path", as per the GNU coding standards.
105901         * MODULES.html.sh: mkdir-p renamed from makepath.
105902         filenamecat renamed from path-concat.
105903         * modules/filenamecat: Renamed from modules/path-concat.
105904         (Files): filenamecat.h and filenamecat.c renamed from
105905         path-concat.h and path-concat.c.
105906         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105907         (Include): filenamecat.h, not path-concat.h.
105908         * modules/mkdir-p: Renamed from modules/makepath.
105909         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105910         makepath.c.
105911         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105912         (Include): mkdir-p.h, not makepath.h.
105914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105916         Sync from coreutils.
105917         * m4/mkdir-p.m4: Renamed from makepath.m4.
105918         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105919         Rename files from makepath.c to mkdir-p.c, and from
105920         makepath.h to mkdir-p.h.
105921         * m4/filenamecat.m4: Renamed from path-concat.m4.
105922         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105923         Rename files from path-concat.c to filenamecat.c,
105924         and from path-concat.h to filenamecat.h.
105925         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105926         "file name" in local variables or comments.
105927         * m4/rename.m4: Likewise.
105929 2005-06-01  Bruno Haible  <bruno@clisp.org>
105931         * modules/csharpexec: New file.
105932         * MODULES.html.sh (C#): New section.
105934 2005-06-01  Bruno Haible  <bruno@clisp.org>
105936         * m4/csharp.m4: New file, from GNU gettext.
105937         * m4/csharpexec.m4: New file, from GNU gettext.
105939 2005-06-01  Bruno Haible  <bruno@clisp.org>
105941         * lib/csharpexec.h: New file, from GNU gettext.
105942         * lib/csharpexec.c: New file, from GNU gettext.
105943         * lib/csharpexec.sh.in: New file, from GNU gettext.
105945 2005-05-31  Derek Price  <derek@ximbiot.com>
105946             Paul Eggert  <eggert@cs.ucla.edu>
105948         Sync from cvs.
105949         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105951 2005-05-31  Derek Price  <derek@ximbiot.com>
105952             Paul Eggert  <eggert@cs.ucla.edu>
105954         Sync from cvs.
105955         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105957 2005-05-29  Derek Price  <derek@ximbiot.com>
105959         * config/srclist.txt (glob_.h, glob.c): Add these files.
105961 2005-05-29  Derek Price  <derek@ximbiot.com>
105963         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105964         * modules/glob: New file.
105965         * modules/getlogin_r: Add link to POSIX spec in description.
105967 2005-05-29  Derek Price  <derek@ximbiot.com>
105968             Paul Eggert  <eggert@cs.ucla.edu>
105970         * m4/glob.m4: New file.
105972 2005-05-29  Derek Price  <derek@ximbiot.com>
105973             Paul Eggert  <eggert@cs.ucla.edu>
105975         * lib/glob_.h, lib/glob.c: New files.
105977 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105979         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105980         * modules/fts-lgpl (Depends-on): Remove gettext.
105982 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105984         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105985         and don't require gt_INTTYPES_PRI.
105987 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105989         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105991         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105992         the configuration hassle isn't worth it.
105993         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105994         (LONGEST_MODIFIER, PRIuMAX): Remove.
105996 2005-05-27  Bruno Haible  <bruno@clisp.org>
105998         * lib/getlogin_r.h: Remove second include of <stddef.h>.
106000 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
106002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
106003         _POSIX_PTHREAD_SEMANTICS for Solaris.
106005 2005-05-25  Derek Price  <derek@ximbiot.com>
106007         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
106009 2005-05-25  Derek Price  <derek@ximbiot.com>
106010             Paul Eggert  <eggert@cs.ucla.edu>
106012         * modules/getlogin_r, m4/getlogin_r.m4: New files.
106013         * lib/getlogin_r.c, getlogin_r.h: New files.
106015 2005-05-25  Bruno Haible  <bruno@clisp.org>
106016             Derek Price  <derek@ximbiot.com>
106018         * lib/getlogin_r.h: Simplify API documentation.
106020 2005-05-23  Derek Price  <derek@ximbiot.com>
106022         * modules/minmax (Files): Add m4/minmax.m4.
106023         (configure.ac): Add gl_MINMAX.
106025 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106027         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
106028         so that unistd-safer.h (GPL'ed code) need not be included.
106030 2005-05-22  Bruno Haible  <bruno@clisp.org>
106032         * m4/minmax.m4: New file.
106033         Based on a patch by Derek Price <derek@ximbiot.com>.
106035 2005-05-22  Bruno Haible  <bruno@clisp.org>
106037         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
106038         (INT64_MIN): Fix definition.
106039         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
106041         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
106042         NEED_SIGNED_INT_TYPES.
106044         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
106045         HAVE_SYSTEM_INTTYPES.
106047 2005-05-22  Bruno Haible  <bruno@clisp.org>
106049         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
106050         Also include <sys/param.h> if it defines MIN, MAX.
106051         Based on a patch by Derek Price <derek@ximbiot.com>.
106053 2005-05-21  Jim Meyering  <jim@meyering.net>
106055         * modules/fts (Files): Add m4/inttypes-pri.m4.
106056         (Depends-on): Add lstat and remove gettext.  Alphabetize.
106058 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106060         New fts module.
106061         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
106062         (setup_dir, free_dir): New functions.
106063         (enter_dir, leave_dir): Define trivial
106064         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
106065         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
106066         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
106067         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
106068         Move to fts-cycle.c.
106069         (fts_open): Use setup_dir.
106070         (fts_close): Use free_dir.
106071         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
106072         This adds a label and some gotos, but the alternatives were messier.
106073         Check for memory allocation failure when entering a dir.
106074         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
106075         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
106076         (FTS): New member fts_cycle, that is a union that contains the
106077         old active_dir_ht and cycle_state.  All uses changed to mention
106078         fts_cycle.ht and fts_cycle.state.
106079         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
106080         fts.c, with the following changes:
106081         (setup_dir, free_dir): New functions.
106082         (enter_dir): Now returns bool.  Return true if successful, false
106083         if memory exhausted.  All callers changed.
106084         Do not bother partly cleaning up on
106085         memory allocation failure; that is free_dir's job.
106086         However, free ad if hash_insert fails, to avoid memory leak.
106087         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
106088         fts->fts_options to see which union member to use.
106090 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106092         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
106093         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
106095 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106097         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
106099 2005-05-20  Jim Meyering  <jim@meyering.net>
106101         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
106102         Now a macro, to pacify GCC.
106104 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106106         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
106107         of -1.
106109 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106111         * lib/chown.c (rpl_chown): Return -1 on failure.
106113 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
106116         Don't check for stddef.h.
106117         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
106118         don't use its results.
106119         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
106120         since we include them unconditionally.  Don't require
106121         AM_STDBOOL_H, since stdbool is a prerequisite.
106122         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
106123         since we assume C89 or better.
106124         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106125         as we don't use their results.
106126         Don't check for fchdir, memmove, memset, strrchr, as we use
106127         them unconditionally.
106128         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106129         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106131 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106133         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106134         Include <stddef.h> unconditionally, since we assume C89 now.
106135         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106136         * lib/fts.c: Include fts_.h first, to check interface.
106137         Do not include intprops.h; no longer needed.
106138         Include cycle-check.h and hash.h, since fts_.h no longer does.
106139         Remove unnecessary casts of closedir to void.
106140         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106141         decide whether to decrement nlinks.
106142         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106143         (FTS): Use struct hash_table * instead of Hash_table, so that
106144         we no longer need to include hash.h here.
106146 2005-05-18  Jim Meyering  <jim@meyering.net>
106148         * modules/dirfd (License): Change to LGPL.  Most of the code
106149         is already in the public domain.
106151 2005-05-18  Jim Meyering  <jim@meyering.net>
106153         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106154         Reported by Yoann Vandoorselaere.
106156 2005-05-17  Jim Meyering  <jim@meyering.net>
106158         * m4/fts.m4: New file, from coreutils.
106160 2005-05-17  Jim Meyering  <jim@meyering.net>
106162         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106164 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106166         Sync from coreutils.
106167         * m4/unlinkdir.m4: New file.
106169 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106171         Sync from coreutils.
106172         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106173         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106174         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106175         White space changes only.
106176         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106177         special.
106178         * lib/yesno.c: Include getline.h, not ctype.h.
106179         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106180         Use getline to remove arbitrary restriction on response length.
106182 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106184         * config/srclist-update: Spell out "Street" in FSF postal
106185         mail address; this is the style the FSF seems to prefer.
106187         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106188         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106189         this updates FSF postal mail address.
106191         Sync from coreutils.
106192         * modules/unlinkdir: New file.
106193         * modules/yesno (Depends-on): Add getline.
106194         * MODULES.html.sh (File system functions): Add unlinkdir.
106196 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106198         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106199         lib/strsep.h:
106200         Change the initial comment to refer to GPL, not LGPL.
106201         gnulib-tool will change it to LGPL as needed.
106203         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106204         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106205         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106206         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106207         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106208         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106209         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106210         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106211         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106212         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106213         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106214         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106215         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106216         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106217         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106218         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106219         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106220         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106221         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106222         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106223         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106224         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106225         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106226         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106227         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106228         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106229         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106230         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106231         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106232         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106233         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106234         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106235         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106236         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106237         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106238         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106239         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106240         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106241         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106242         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106243         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106244         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106245         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106246         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106247         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106248         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106249         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106250         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106251         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106252         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106253         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106254         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106255         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106256         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106257         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106258         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106259         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106260         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106261         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106262         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106263         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106264         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106265         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106266         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106267         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106268         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106269         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106270         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106271         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106272         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106273         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106274         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106275         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106276         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106277         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106278         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106279         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106280         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106281         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106282         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106283         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106284         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106285         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106286         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106287         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106288         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106289         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106290         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106291         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106292         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106293         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106294         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106295         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106296         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106297         lib/yesno.c, lib/yesno.h:
106298         Update FSF postal mail address.
106300 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106302         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106303         tests/test-memmem.c, tests/test-stpncpy.c:
106304         Update FSF postal mail address.
106306 2005-05-13  Bruno Haible  <bruno@clisp.org>
106308         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106309         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106310         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106311         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106312         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106313         Add support for 64-bit integers in the MSVC compiler.
106315 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106317         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106319 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106321         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106323 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106325         * doc/getdate.texi (General date syntax): Don't say that date
106326         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106327         Problem reported by Nic Ferrier.
106329 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106331         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106332         specified in ai_socktype. Fix invalid ai_protocol
106333         check. ai_protocol is usually set to 0 or depending on
106334         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106335         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106336         ai_socktype / ai_protocol in the returned addrinfo structure.
106338 2005-05-10  Simon Josefsson  <jas@extundo.com>
106340         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106341         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106343 2005-05-10  Karl Berry  <karl@gnu.org>
106345         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106346         (from http://www.gnu.org/licenses).
106347         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106348         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106349         fdl.texi suffices.
106351 2005-05-10  Karl Berry  <karl@gnu.org>
106353         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106354         (COPYING.DOC): remove.
106356         * config/srclist-update: new FSF address.
106358 2005-05-10  Derek Price  <derek@ximbiot.com>
106360         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106361         possible.
106363 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106364             Bruno Haible  <bruno@clisp.org>
106366         * modules/inet_ntop: New file.
106367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106368         inet_ntop.
106370 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106371             Bruno Haible  <bruno@clisp.org>
106373         * m4/inet_ntop.m4: New file.
106375 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106376             Bruno Haible  <bruno@clisp.org>
106378         * lib/inet_ntop.h: New file.
106379         * lib/inet_ntop.c: New file, from glibc with modifications.
106381 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106383         * modules/time_r (License): Change to LGPL.
106384         * modules/extensions (License): Change to LGPL.  Actually,
106385         the license is more permissive than that, but currently gnulib-tool
106386         doesn't know how to handle more-permissive licenses.
106388         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106389         Problem reported by Dave Love.
106391 2005-05-08  Jim Meyering  <jim@meyering.net>
106393         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106394         blank.
106396 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106398         * modules/argmatch (Depends-on): Add stdbool.
106399         * modules/backupfile (Depends-on): Likewise.
106400         * modules/chdir-long (Depends-on): Likewise.
106401         * modules/closeout (Depends-on): Likewise.
106402         * modules/cycle-check (Depends-on): Likewise.
106403         * modules/dirname (Depends-on): Likewise.
106404         * modules/fnmatch (Depends-on): Likewise.
106405         * modules/fsusage (Depends-on): Likewise.
106406         * modules/fwriteerror (Depends-on): Likewise.
106407         * modules/getcwd (Depends-on): Likewise.
106408         * modules/getloadavg (Depends-on): Likewise.
106409         * modules/hard-locale (Depends-on): Likewise.
106410         * modules/makepath (Depends-on): Likewise.
106411         * modules/mountlist (Depends-on): Likewise.
106412         * modules/nanosleep (Depends-on): Likewise.
106413         * modules/posixtm (Depends-on): Likewise.
106414         * modules/quotearg (Depends-on): Likewise.
106415         * modules/readtokens (Depends-on): Likewise.
106416         * modules/readtokens0 (Depends-on): Likewise.
106417         * modules/readutmp (Depends-on): Likewise.
106418         * modules/save-cwd (Depends-on): Likewise.
106419         * modules/strftime (Depends-on): Likewise.
106420         * modules/userspec (Depends-on): Likewise.
106421         * modules/utimecmp (Depends-on): Likewise.
106422         * modules/xgetcwd (Depends-on): Likewise.
106423         * modules/xnanosleep (Depends-on): Likewise.
106424         * modules/xstrtod (Depends-on): Likewise.
106425         * modules/yesno (Depends-on): Likewise.
106427 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106429         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106430         needless checks.
106432 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106434         Merge from coreutils.  Among other things,
106435         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106436         * lib/fd-safer.c: New file.
106437         * lib/fcntl-safer.h, open-safer.c: Remove.
106438         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106439         * lib/dup-safer.c: Include unistd-safer.h first.
106440         Don't include errno.h.
106441         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106442         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106443         * lib/file-type.c: Rely on file-type.h change.
106444         * lib/getloadavg.c: Include unistd-safer.h.
106445         (getloadavg): Use safer open.
106446         * lib/getusershell.c: Include "stdio-safer.h".
106447         (getusershell): Use safer fopen.
106448         * lib/long-options.c (long_options): Use NULL rather than 0.
106449         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106450         'free'.
106451         * lib/modechange.c: Likewise.
106452         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106453         (MODE_DONE): New constant.
106454         (struct mode_change): Remove 'next' member.
106455         (make_node_op_equals): New function; like the old one of the
106456         same name, except it allocates an array.
106457         (mode_compile, mode_create_from_ref): Use it.
106458         (mode_compile): Allocate result as an array, not a linked list.
106459         Parse octal string ourself, so that we catch mistakes like "+0".
106460         (mode_adjust): Arg is an array, not a linked list.
106461         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106462         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106463         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106464         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106465         Remove.  This is now stat-macros.h's job.
106466         (talloc): Remove.  All callers replaced by xalloc, so that
106467         our invokers don't have to worry about reporting memory failures.
106468         (make_node_op_equals): Remove.
106469         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106470         New constants.
106471         (struct mode_change): Moved here from modechange.h.
106472         (mode_append_entry): Remove.
106473         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106474         apps to have incorrect behavior.  Use simpler algorithm for head
106475         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106476         Detect more invalid usages rather than having somewhat-random behavior.
106477         Don't insert an "a=" action, as that leads to incorrect behavior.
106478         (mode_compile, mode_create_from_ref): Return NULL on error instead
106479         of an enum, since now there's only one way to have an error.  All
106480         callers changed.
106481         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106482         at the correct time.  Simplify calculation of "+u" and its ilk.
106483         Don't mishandle "+X".
106484         (mode_free): Remove "register" and localize decls.
106485         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106486         (struct mode_change): Move to modechange.c; callers don't
106487         need to see this stuff.
106488         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106489         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106490         (mode_change, mode_adjust): Reflect the new signatures noted above.
106491         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106492         that might redefine system include files.
106493         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106494         (my_usleep): Use NULL rather than (void *) 0.
106495         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106496         Use siginterrupt to specify that system calls should be interrupted.
106497         (rpl_nanosleep): Move initialization of suspended closer to call of
106498         my_usleep.
106499         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106500         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106501         (desirable_utmp_entry): New function.
106502         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106503         using x2nrealloc, to simplify logic.
106504         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106505         size calculation.  Do not assume utmp file is a regular file.
106506         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106507         (READ_UTMP_CHECK_PIDS): New constant.
106508         * lib/save-cwd.c: Include unistd-safer.h.
106509         (save_cwd): Use fd_safer.
106510         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106511         [!_LIBC] Include "stat-macros.h" instead.
106512         * lib/unistd-safer.h (fd_safer): New decl.
106514 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106516         * modules/getloadavg (Depends-on): Add unistd-safer.
106517         * modules/getusershell (Depends-on): Add stdio-safer.
106518         * modules/lstat (Depends-on): Remove xalloc.
106519         * modules/mkstemp (Depends-on): Add stat-macros.
106520         * modules/modechange (Depends-on): Remove xstrtol.
106521         Add stat-macros, xalloc.
106522         * modules/save-cwd (Depends-on): Add unistd-safer.
106523         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106524         * modules/unistd-safer (Files): Add lib/fd-safer.c
106525         (Makefile.am): Remove lib_SOURCES.
106527         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106528         Remove fcntl-safer; unistd-safer supersedes it.
106530 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106532         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106533         AC_HEADER_STAT.
106534         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106535         (gl_PREREQ_CHOWN): Remove.
106536         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106537         it.  Don't require AC_HEADER_STAT.
106538         (gl_PREREQ_LSTAT): Remove.
106539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106540         Don't require AC_HEADER_STAT.
106541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106542         (gl_PREREQ_RMDIR): Remove.
106543         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106544         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106545         the stat-macros module a prerequisite.
106546         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106547         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106548         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106549         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106550         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106551         variable names.
106552         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106553         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106554         variable prefixes.
106555         * m4/fcntl-safer.m4: Remove.
106556         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106557         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106558         Invoke gl_PREREQ_FD_SAFER.
106559         (gl_PREREQ_FD_SAFER): New macro.
106560         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106561         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106562         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106563         Remove duplicate call to AC_LIBOBJ(readutmp).
106564         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106566         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106567         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106569 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106571         * MODULES.html.sh (Misc): Add byteswap.
106573 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106575         * modules/getcwd (Depends-on): Add extensions.
106576         * modules/openat (Depends-on): Likewise.
106578 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106580         * modules/byteswap: New file.
106582 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106584         * m4/byteswap.m4: New file.
106586 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106588         * lib/byteswap_.h: New file.
106590 2005-04-25  Karl Berry  <karl@gnu.org>
106592         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106594 2005-04-25  Albert Chin  <china@thewrittenword.com>
106596         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106597         Toolkit C bug.
106599 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106601         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106602         (func_ln_if_changed): Remove forcibly for no error message
106603         in case file does not exist.
106605 2005-04-19  Simon Josefsson  <jas@extundo.com>
106607         * gnulib-tool (Options): Make --symlink mean --symbolic.
106609 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106611         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106613 2005-04-16  Simon Josefsson  <jas@extundo.com>
106615         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106617 2005-04-15  Simon Josefsson  <jas@extundo.com>
106619         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106621 2005-04-15  Simon Josefsson  <jas@extundo.com>
106623         * gnulib-tool: Rename --symlink to --symbolic.
106625 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106627         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106628         symbolic links to files instead of copying/moving.  Add --aux-dir,
106629         specifying directory relative --dir where auxiliary build tools
106630         are placed.
106632 2005-04-14  Bruno Haible  <bruno@clisp.org>
106634         * modules/allocsa (License): Change to LGPL.
106635         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106637 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106639         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106640         that "UTC +1 second" continues to work.  Problem reported
106641         by Dmitry V. Levin.
106642         (relunit_snumber): New rule.
106643         (relunit): Use it.
106645 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106647         * lib/getdate.y (universal_time_zone_table): New constant.
106648         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106649         universal_time_zone_table.
106650         (lookup_zone): Prefer universal_time_zone_table to
106651         local_time_zone_table, so that "GMT" time stamps are allowed in
106652         London during the summer.  Problem reported by Ian Abbott.
106654 2005-04-12  Jim Meyering  <jim@meyering.net>
106656         * lib/human.c (humblock): Set *options even when returning due to
106657         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106658         warning from gcc-4.
106660 2005-04-09  Jim Meyering  <jim@meyering.net>
106662         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106663         -Wuninitialized: initialize tm0.tm_year.
106665 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106667         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106668         count, since there's no maximum.  All uses changed.
106669         Add member dsts_seen.
106670         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106671         not being INT_MAX.
106672         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106673         Use pc_rels_seen to decide whether a date is absolute.
106675         * lib/getdate.y (number): Don't overwrite year.
106676         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106677         check.
106679 2005-04-02  Simon Josefsson  <jas@extundo.com>
106681         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106682         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106684 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106686         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106687         where no absolute path name can be longer than PATH_MAX.
106689 2005-03-27  Jim Meyering  <jim@meyering.net>
106691         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106693 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106695         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106696         "one's complement" -> "ones' complement" in comment, as per Knuth.
106697         "value of type" -> "type or expression" in comment.
106698         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106700 2005-03-26  Jim Meyering  <jim@meyering.net>
106702         Comment nits.
106703         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106704         Correct typos: s/or/of/.
106706 2005-03-26  Jim Meyering  <jim@meyering.net>
106708         * modules/check-include-files: Move to ../ and rename to...
106709         * check-module: ...this.
106711 2005-03-25  Jim Meyering  <jim@meyering.net>
106713         * modules/xvasprintf (Files): Add xalloc.h.
106715 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106717         * modules/gettext (Files): config/config.rpath ->
106718         build-aux/config.rpath
106719         * modules/iconv (Files): Likewise.
106720         Problem reported by Oskar Liljeblad.
106722 2005-03-23  Jim Meyering  <jim@meyering.net>
106724         * modules/check-include-files: New script to check for
106725         missing dependencies, multiple includes, etc.
106727         * modules/c-strtold (Depends-on): Add xalloc.
106728         * modules/c-strtod (Depends-on): Add xalloc.
106729         * modules/hash (Depends-on): Add xalloc.
106730         (Files): Remove lib/xalloc.h.
106732         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106733         * modules/userspec (Files): Add lib/inttostr.h.
106735 2005-03-23  Jim Meyering  <jim@meyering.net>
106737         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106739 2005-03-22  Jim Meyering  <jim@meyering.net>
106741         * modules/stat-macros: New module.
106742         * modules/canonicalize, modules/euidaccess, modules/file-type,
106743         * modules/filemode, modules/lchown, modules/makepath,
106744         * modules/rmdir, modules/stat: Depend on new stat-macros module
106745         rather than listing lib/stat-macros.h manually.
106746         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106748 2005-03-22  Jim Meyering  <jim@meyering.net>
106750         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106752 2005-03-22  Bruno Haible  <bruno@clisp.org>
106754         * config/srclist.txt: Replace target directory 'config' with
106755         'build-aux'.
106756         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106757         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106758         ../build-aux/.
106760 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106762         * modules/chdir-long (Depends-on): Add mempcpy.
106764         * modules/acl, modules/backupfile, modules/c-strtod,
106765         modules/c-strtold, modules/canon-host, modules/canonicalize,
106766         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106767         modules/exclude, modules/exitfail, modules/file-type,
106768         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106769         modules/getdate, modules/getline, modules/getpagesize,
106770         modules/getpass, modules/getugroups, modules/group-member,
106771         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106772         modules/inttostr, modules/long-options, modules/makepath,
106773         modules/md5, modules/memcasecmp, modules/memcoll,
106774         modules/modechange, modules/mountlist, modules/path-concat,
106775         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106776         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106777         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106778         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106779         modules/strftime, modules/strndup, modules/strverscmp,
106780         modules/timespec, modules/unlocked-io, modules/userspec,
106781         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106782         modules/yesno:
106783         Remove lib_SOURCES line from Makefile.am section, as this is now
106784         done automatically by the corresponding Autoconf macro.
106786 2005-03-21  Jim Meyering  <jim@meyering.net>
106788         Changes imported from coreutils.
106790         * lib/cycle-check.c: Don't include xalloc.h.
106792         * lib/path-concat.c: Don't include assert.h.
106793         (path_concat): Remove assertion that would have triggered
106794         for ABASE starting with more than one slash.
106795         Reported by Andreas Schwab.
106797         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106798         properly when ABASE is an absolute file name.
106799         Correct the description of this function.
106800         Include <assert.h>.
106801         Add an assertion and a test driver.
106802         This fixes a bug introduced on 2004-07-02.
106803         Andreas Schwab reported the resulting failure of cp --parents:
106804         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106806 2005-03-21  Jim Meyering  <jim@meyering.net>
106808         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106811 2005-03-21  Jim Meyering  <jim@meyering.net>
106812         and  Paul Eggert  <eggert@cs.ucla.edu>
106814         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106815         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106816         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106817         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106818         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106819         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106820         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106821         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106822         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106823         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106824         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106825         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106826         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106827         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106828         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106829         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106830         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106831         for these modules.
106833 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106835         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106836         (which shouldn't happen), generate nothing instead of returning 0
106837         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106839 2005-03-16  Bruno Haible  <bruno@clisp.org>
106841         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106842         HAVE_LONGLONG_64BIT.
106844 2005-03-16  Bruno Haible  <bruno@clisp.org>
106846         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106847         HAVE_LONGLONG_64BIT.
106849 2005-03-16  Bruno Haible  <bruno@clisp.org>
106851         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106852         HAVE_LONGLONG_64BIT.
106854 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106856         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106857         reliably distinguish strftime failure from empty output on POSIX
106858         hosts.
106860 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106862         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106863         (iconv_string): Don't guess a size-zero buffer, as that might cause
106864         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106865         result would be 'too large', where 'too large' is (heuristically)
106866         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106867         overflow concerns.  This will prevent some unwanted malloc failures
106868         when the inputs are very large.
106870 2005-03-15  Karl Berry  <karl@gnu.org>
106872         * config/srclist.txt (config.rpath): from gettext.
106873         * config/config.rpath: update.
106875 2005-03-15  Bruno Haible  <bruno@clisp.org>
106877         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106878         to 'negate'.
106880         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106881         variable.
106883         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106884         results.
106886 2005-03-14  Simon Josefsson  <jas@extundo.com>
106888         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106889         <fx@gnu.org>.
106891 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106893         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106894         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106895         intprops.h.
106896         * lib/strtol.c: Likewise.
106898 2005-03-14  Jim Meyering  <jim@meyering.net>
106900         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106901         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106902         to be nonzero so that we (and caller) can detect the difference
106903         between a valid zero-length expansion and an error return, even
106904         when the underlying strftime fails before writing anything into
106905         that location.
106907 2005-03-14  Bruno Haible  <bruno@clisp.org>
106909         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106910         Update from GNU gettext 0.14.3.
106912 2005-03-10  Jim Meyering  <jim@meyering.net>
106914         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106916 2005-03-10  Jim Meyering  <jim@meyering.net>
106918         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106919         so that this module works on systems without fchdir.
106921 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106923         Factor int-properties macros into a single file, except for
106924         glibc-related files.
106925         * lib/intprops.h: New file.
106926         * lib/getloadavg.c: Include it instead of limits.h.
106927         (INT_STRLEN_BOUND): Remove.
106928         * lib/human.c: Include intprops.h.
106929         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106930         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106931         302/1000.
106932         * lib/inttostr.h: Include intprops.h instead of limits.h.
106933         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106934         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106935         for consistency with intprops.h.
106936         (time_t_is_integer, twos_complement_arithmetic): Use them.
106937         * lib/sig2str.h: Include <signal.h>, intprops.h.
106938         (INT_STRLEN_BOUND): Remove.
106939         * lib/strftime.c (TYPE_SIGNED): Remove.
106940         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106941         * lib/strtol.c: Adjust comments to match intprops.h.
106942         * lib/userspec.c: Include intprops.h.
106943         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106944         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106945         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106946         instead of rolling our own expressions.
106947         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106949         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106950         instead of int.
106951         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106952         the right thing even if adding 1900 would overflow.  Similarly
106953         for tm_mon + 1 and tm_yday + 1.
106954         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106955         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106956         (DO_SIGNED_NUMBER): New macro.
106957         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106959 2005-03-07  Bruno Haible  <bruno@clisp.org>
106961         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106963 2005-03-07  Bruno Haible  <bruno@clisp.org>
106965         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106967 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106969         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106970         (func_import): Only replace files via --import when they have actually
106971         changed.
106973 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106975         * m4/mmap-anon.m4: New file.
106976         * m4/pagealign_alloc.m4: New file.
106978 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106979             Bruno Haible  <bruno@clisp.org>
106981         * modules/pagealign_alloc: New file.
106982         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106984 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106985             Bruno Haible  <bruno@clisp.org>
106987         * lib/pagealign_alloc.h: New file.
106988         * lib/pagealign_alloc.c: New file.
106990 2005-03-03  Bruno Haible  <bruno@clisp.org>
106992         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106993         Use an all-permissive copyright notice, recommended by RMS.
106995 2005-03-02  Bruno Haible  <bruno@clisp.org>
106997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106998         of AIX, the replacement has to be done only after <string.h> is
106999         included, therefore not in config.h. stpncpy.h does the replacement,
107000         and stpncpy.c uses it.
107002 2005-03-02  Bruno Haible  <bruno@clisp.org>
107004         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
107005         stpncpy.c uses it.
107007 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107009         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
107010         The workaround isn't strictly needed for POSIX conformance, and
107011         it's too much of a pain to configure and maintain.  We'll ask
107012         people to fix their kernels instead.
107013         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
107014         (NANOSLEEP_BUG_WORKAROUND): Remove.
107015         (xnanosleep): Remove the workaround.
107017 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107019         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
107020         Reported by Derek Price.
107021         (Include): Add "timespec.h".
107023         * modules/xnanosleep (Depends-on): Remove gethrxtime.
107025 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107027         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
107028         to detect nanosleep bug.
107030 2005-03-01  Bruno Haible  <bruno@clisp.org>
107032         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
107034 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107036         * modules/gethrxtime: New file.
107037         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
107038         (Depends-on): Add gethrxtime.
107039         (configure.ac): Add gl_XNANOSLEEP.
107040         (Makefile.am): Remove lib_SOURCES line.
107042 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107044         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
107045         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
107047 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107049         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
107050         * lib/timespec.h (gettime): Return void, since it always
107051         succeeds now.  All uses changed.
107052         * lib/gettime.c (gettime): Likewise.
107053         [HAVE_NANOTIME]: Prefer nanotime.
107054         Assume gettimeofday succeeds, as POSIX requires.
107055         Assime time () succeeds, since other code already does.
107056         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
107057         (timespec_subtract): Remove.
107058         (NANOSLEEP_BUG_WORKAROUND): New constant.
107059         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
107060         things considerably.  Use it only on GNU/Linux hosts, since the
107061         workaround shouldn't be needed elsewhere.
107063 2005-02-24  Bruno Haible  <bruno@clisp.org>
107065         * modules/gettext (Files): Add m4/glibc2.m4.
107067 2005-02-24  Bruno Haible  <bruno@clisp.org>
107069         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
107070         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
107071         * m4/progtest.m4:
107072         Update from GNU gettext 0.14.2.
107073         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
107075 2005-02-24  Bruno Haible  <bruno@clisp.org>
107077         * lib/localcharset.c: Update from GNU gettext 0.14.2.
107078         * lib/config.charset: Update from GNU gettext 0.14.2.
107080 2005-02-24  Bruno Haible  <bruno@clisp.org>
107082         * lib/gettext.h: Update from GNU gettext 0.14.2.
107084 2005-02-23  Simon Josefsson  <jas@extundo.com>
107086         * m4/iconvme.m4: New file.
107088 2005-02-23  Jim Meyering  <jim@meyering.net>
107090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
107091         change.
107092         Thanks to Bruno Haible for catching it.
107094 2005-02-22  Simon Josefsson  <jas@extundo.com>
107096         * modules/iconvme: New file.
107098         * MODULES.html.sh: Add iconvme.
107100 2005-02-22  Simon Josefsson  <jas@extundo.com>
107102         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
107104 2005-02-22  Simon Josefsson  <jas@extundo.com>
107106         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
107108 2005-02-22  Jim Meyering  <jim@meyering.net>
107110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
107111         s/ifndef/ifdef/.
107113 2005-02-20  Neil Conway  <neilc@samurai.com>
107115         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
107116         returned by OSX/Darwin if the specified buffer is not large
107117         enough for the hostname.
107119 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107121         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
107122         pass it to _help, otherwise the latter coredumps trying to
107123         dereference state.root_argp.
107125 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107127         * modules/chdir-long (Depends-on): Add memrchr.
107128         * modules/memrchr (Files): Add lib/memrchr.h.
107129         (Include): "memrchr.h".
107131 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107135 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107137         * lib/memrchr.h: New file.
107138         * lib/chdir-long.c: Include it.
107139         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107140         Don't bother including stddef.h.
107142 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107144         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107145         inclusion.
107146         Include <sys/types.h>, for dev_t.
107147         (ME_DUMMY, ME_REMOTE): Move from here....
107148         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107149         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107150         Dmitry V. Levin.
107151         Include mountlist.h first, to test the interface.
107153 2005-01-29  Bruno Haible  <bruno@clisp.org>
107155         * lib/progname.c (program_name): Initialize.
107156         Needed when linking statically on MacOS X.
107158 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107160         Sync from coreutils.
107161         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107162         (Depends-on): Add c-strtod.
107163         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107165 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107167         Sync from coreutils.
107168         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107170         Remove files that are specific to coreutils.
107171         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107173 2005-01-28  Bruno Haible  <bruno@clisp.org>
107175         * modules/javacomp: New file.
107176         * MODULES.html.sh (Java): Add javacomp.
107178 2005-01-28  Bruno Haible  <bruno@clisp.org>
107180         * m4/javacomp.m4: New file, from GNU gettext.
107182 2005-01-28  Bruno Haible  <bruno@clisp.org>
107184         * lib/javacomp.sh.in: New file, from GNU gettext.
107185         * lib/javacomp.h: New file, from GNU gettext.
107186         * lib/javacomp.c: New file, from GNU gettext.
107188 2005-01-26  Simon Josefsson  <jas@extundo.com>
107190         * lib/gai_strerror.c: Use GPL in header.
107192 2005-01-26  Bruno Haible  <bruno@clisp.org>
107194         * modules/javaexec: New file.
107195         * MODULES.html.sh (Java): Add javaexec.
107197 2005-01-26  Bruno Haible  <bruno@clisp.org>
107199         * m4/javaexec.m4: New file, from GNU gettext.
107201 2005-01-26  Bruno Haible  <bruno@clisp.org>
107203         * lib/javaexec.sh.in: New file, from GNU gettext.
107204         * lib/javaexec.h: New file, from GNU gettext.
107205         * lib/javaexec.c: New file, from GNU gettext.
107207 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107209         * modules/lchown (Depends-on): Remove lchown.h
107211 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107213         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107214         must be defined if the header file was not found, in order
107215         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107217 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107219         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107220         initializers for struct pentry_state.
107221         (__argp_error): Check return value of __asprintf
107222         (__argp_failure): Translate error message
107224         * lib/argp-parse.c: Removed braces around the expansion of N_()
107226 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107228         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107229         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107230         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107231         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107232         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107233         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107234         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107235         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107236         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107237         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107238         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107239         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107240         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107241         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107242         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107243         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107244         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107245         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107246         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107247         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107248         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107249         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107250         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107251         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107252         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107253         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107254         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107255         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107256         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107257         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107258         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107259         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107260         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107261         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107262         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107263         Use an all-permissive copyright notice, recommended by RMS.
107265 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107267         * modules/chdir-long (Depends-on): Remove mempcpy.
107269 2005-01-21  Jim Meyering  <jim@meyering.net>
107271         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107272         same value as for Solaris 9.
107274         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107275         component length.  This included changing the parameter to be
107276         of type `char *' rather than `char const *'.
107277         * lib/chdir-long.h (chdir_long): Update prototype.
107279         * lib/openat.c (fdopendir, fstatat): New functions.
107280         * lib/openat.h: Include headers required for use of DIR and struct
107281         stat.
107282         [AT_SYMLINK_NOFOLLOW]: Define.
107283         (fdopendir, fstatat): Add prototypes.
107285 2005-01-21  Bruno Haible  <bruno@clisp.org>
107287         * modules/classpath: New file.
107288         * MODULES.html.sh (Java): Add classpath.
107290 2005-01-21  Bruno Haible  <bruno@clisp.org>
107292         * lib/classpath.h: New file, from GNU gettext.
107293         * lib/classpath.c: New file, from GNU gettext.
107295 2005-01-20  Simon Josefsson  <jas@extundo.com>
107297         * modules/version-etc-fsf: New file.
107299 2005-01-20  Simon Josefsson  <jas@extundo.com>
107301         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107302         * lib/version-etc.c: Remove version_etc_copyright.
107303         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107304         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107306 2005-01-20  Simon Josefsson  <jas@extundo.com>
107308         * lib/base64.h (isbase64): Add.
107310         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107311         using a unsigned prototype, don't inline.
107312         (base64_decode): Use it.
107314 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107316         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107317         it.
107319 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107321         * lib/save-cwd.c (save_cwd): Remove code to support the case
107322         where fchdir is missing or flaky.
107324 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107326         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107328 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107330         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107331         AC_LIBSOURCES now does this.
107332         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107333         with new ullong_max module.
107335 2005-01-19  Bruno Haible  <bruno@clisp.org>
107337         * modules/sh-quote: New file.
107338         * MODULES.html.sh (Executing programs): Add sh-quote.
107340 2005-01-19  Bruno Haible  <bruno@clisp.org>
107342         * lib/sh-quote.h: New file, from GNU gettext.
107343         * lib/sh-quote.c: New file, from GNU gettext.
107345 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107347         Merge from coreutils.
107348         * m4/ullong_max.m4: New file.
107349         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107350         (gl_MACROS): Assume localeconv exists.
107352 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107354         Merge changes from coreutils, as described below in several
107355         changelogs dated today.
107357         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107358         (O_DIRECTORY): Remove; not needed here, since "." must be
107359         a directory.  All uses removed.
107360         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107361         universal on Suns, and we also need to test for IRIX.
107362         Revamp code to use 'if' rather than '#if'.
107363         Avoid unnecessary comparison of cwd->desc to 0.
107365         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107366         for known valid error numbers rather than observed invalid ones.
107368 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107370         * modules/ullong_max: New file.
107372         * modules/chdir-long, modules/openat: New files.
107373         * modules/save-cwd (Depends-on): Depend on chdir-long.
107374         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107376 2005-01-18  Jim Meyering  <jim@meyering.net>
107378         Merge from coreutils.
107379         * m4/chdir-long.m4, m4/openat.m4: New files.
107380         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107381         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107382         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107383         is sane and DOES follow symlinks.  Besides, testing 20 different
107384         systems found no broken chown implementations.
107385         Prompted by a change in rsync's copy of this macro.
107386         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107390         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107391         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107392         NULL-means-set-to-current-time semantics.
107393         Remove temporary file immediately, rather than waiting
107394         for configure's at-exit trap code to do it.
107396 2005-01-18  Jim Meyering  <jim@meyering.net>
107398         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107400         * lib/utimens.c (futimens): Account for the fact that futimes
107401         can also fail with errno == ENOSYS or errno == ENOENT.
107402         Patch from Dmitry V. Levin.
107404         Change the name of the robust chdir function from chdir to chdir_long.
107405         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107406         (restore_cwd): Use chdir_long, not chdir.
107407         * lib/chdir-long.c: Renamed from chdir.c.
107408         * lib/chdir-long.h: Renamed from chdir.h.
107409         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107410         Hurd.
107412 2005-01-18  Bruno Haible  <bruno@clisp.org>
107414         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107415         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107416         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107417         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107418         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107419         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107420         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107421         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107422         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107423         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107424         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107425         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107426         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107427         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107428         Use an all-permissive copyright notice, recommended by RMS.
107430 2005-01-18  Bob Proulx  <bob@proulx.com>
107432         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107433         simplify offsetof() macro construct to avoid compile failure with
107434         native HP-UX 11.0 ANSI C compiler.
107436 2005-01-17  Bruno Haible  <bruno@clisp.org>
107438         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107439         redundant because stpncpy.m4 takes care of it.
107441 2005-01-17  Bruno Haible  <bruno@clisp.org>
107443         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107445 2005-01-17  Bruno Haible  <bruno@clisp.org>
107447         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107448         used.
107450 2005-01-17  Bruno Haible  <bruno@clisp.org>
107452         * lib/fwriteerror.h (fwriteerror): Change specification to include
107453         fclose.
107454         * lib/fwriteerror.c: Include <stdbool.h>.
107455         (fwriteerror): At the end, close the file stream. Record whether
107456         stdout was already closed.
107458 2005-01-17  Bruno Haible  <bruno@clisp.org>
107460         * lib/execute.c (environ): Declare if needed.
107461         * lib/pipe.c (environ): Likewise.
107462         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107464 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107466         * modules/argp: Depend on vsnprintf
107468 2005-01-10  Jim Meyering  <jim@meyering.net>
107470         * modules/closeout (Depends-on): Add atexit.
107472 2005-01-06  Bruno Haible  <bruno@clisp.org>
107474         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107476 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107478         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107479         definitions to be after all include files, to avoid collisions.
107480         Problem reported by Bob Proulx.
107482 2005-01-04  Jim Meyering  <jim@meyering.net>
107484         Changes imported from coreutils.
107485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107486         as the mkstemp template, use a temporary directory and an
107487         8.3-friendly template to avoid trouble on systems like DJGPP.
107488         Reported by Juan M. Guerrero via Stepan Kasal.
107489         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107490         close. Remove the temporary directory right away, rather than waiting
107491         for configure's at-exit trap code to do it.
107492         Suggestion from Stepan Kasal.
107494 2005-01-01  Simon Josefsson  <jas@extundo.com>
107496         * gnulib-tool: Print #include directives when --import'ing.
107498 2004-12-28  Simon Josefsson  <jas@extundo.com>
107500         * tests/test-base64.c: Include required header files.  Remove
107501         unused variables.
107503 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107505         * modules/error (Depends-on): Remove gettext.
107507 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107509         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107510         not needed.  This removes a dependency on the gettext module.
107511         [defined _LIBC]: Do not include <libintl.h>; not needed.
107513 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107515         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107516         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107518 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107520         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107521         HAVE_DECL_STRTOLD.
107523 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107525         * modules/getdate (Depends-on): Remove alloca-opt.
107527 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107529         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107531 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107533         * lib/argp-parse.c: Include <stddef.h>.
107534         (alignof, alignto): New macros.
107535         (parser_init): Don't assume that void * is aligned sufficiently
107536         for struct option.
107538         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107539         need to extend the stack.
107540         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107541         large.
107543 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107545         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107547 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107549         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107550         (2004-10-24) change.  Apparently this was a false alarm.
107552         * modules/getdate: Depend on alloca-opt, not alloca.
107554 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107556         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107557         Remove now-obsolete comment about AIX.
107558         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107559         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107560         (YYMAXDEPTH): New macro.
107562 2004-12-18  Simon Josefsson  <jas@extundo.com>
107564         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107566 2004-12-18  Bruno Haible  <bruno@clisp.org>
107568         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107570 2004-12-18  Bruno Haible  <bruno@clisp.org>
107572         * lib/fatal-signal.c (fatal_signals): Make non-const.
107573         (init_fatal_signals): New function.
107574         (uninstall_handlers, install_handlers): Ignore signals that were set to
107575         SIG_IGN.
107576         (at_fatal_signal): Call init_fatal_signals.
107577         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107578         SIG_IGN.
107579         Reported by Paul Eggert.
107581 2004-12-18  Bruno Haible  <bruno@clisp.org>
107583         * doc/alloca.texi: New file.
107584         * doc/alloca-opt.texi: New file.
107586 2004-12-17  Jim Meyering  <jim@meyering.net>
107588         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107589         Otherwise, install-sh could exit with improper exit status when
107590         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107592 2004-12-16  Simon Josefsson  <jas@extundo.com>
107594         * tests/test-base64.c: Add license.
107596 2004-12-15  Stepan Kasal  <address@hidden>
107598         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107600 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107602         * modules/getcwd (Files): Add m4/d-ino.m4.
107603         Suggested by Mark D. Baushke.
107605 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107607         * lib/getdate.y (textint): New member "negative".
107608         (time_zone_hhmm): New function.
107609         Expect 14 shift-reduce conflicts, not 13.
107610         (o_colon_minutes): New rule.
107611         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107612         (yylex): Set the "negative" member of signed numbers.
107614 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107616         * doc/getdate.texi (Time of day items, Time zone items):
107617         Describe new formats +00:00, UTC+00:00.
107619 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107621         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107622         spurious "-l"s.  Problem reported by Stepan Kasal.
107624 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107626         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107627         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107629 2004-12-04  Simon Josefsson  <jas@extundo.com>
107631         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107632         Vandoorselaere <yoann@prelude-ids.org>.
107634 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107636         Changes imported from coreutils.
107637         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107638         exist.
107639         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107641 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107643         Changes imported from coreutils.
107644         * lib/hard-locale.c: Assume <locale.h> exists.
107645         Include "strdup.h".
107646         (GLIBC_VERSION): New macro.
107647         (hard_locale): Assume setlocale exists.
107648         Rewrite to avoid #ifdef.
107649         Use strdup rather than malloc + strcpy.
107650         * lib/human.c: Assume <locale.h> exists.
107651         (human_readable): Assume localeconv exists.
107653 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107655         * modules/hard-locale (Depends-on): Add strdup.
107657 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107659         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107660         convert T2, not T.  (Imported from libc.)
107662 2004-11-30  Simon Josefsson  <jas@extundo.com>
107664         * modules/restrict (License): Change to LGPL.
107666 2004-11-30  Simon Josefsson  <jas@extundo.com>
107668         * m4/restrict.m4: Add copyright and copying conditions.
107670 2004-11-30  Simon Josefsson  <jas@extundo.com>
107672         * m4/base64.m4: New file.
107674 2004-11-30  Simon Josefsson  <jas@extundo.com>
107676         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107677         base64.
107679         * tests/test-base64.c: New file.
107681         * modules/base64: New file.
107683 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107686         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107688         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107690 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107692         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107693         (__getcwd.c): Don't restore errno; glibc doesn't.
107694         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107695         first, falling back to our code only if its results look suspicious.
107696         Ensure that the resulting buffer is only as large as necessary.
107698         * lib/readutmp.c: Include readutmp.h first.
107699         Include <errno.h>, since readutmp.h no longer does that.
107700         * lib/readutmp.h: Don't include <errno.h>,
107701         <sys/param.h>, <time.h>; not needed to establish interface.
107702         (errno): Remove decl.
107703         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107704         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107705         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107707 2004-11-28  Simon Josefsson  <jas@extundo.com>
107709         * lib/base64.h, base64.c: New file.
107711 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107713         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107715 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107717         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107718         (Depends-on): Remove pathmax, same.  Add mempcpy.
107719         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107720         (Makefile.am): Append getcwd.h to lib_SOURCES.
107721         (Include): Add getcwd.h.
107722         (Maintainer): Change from Jim Meyering to "all, glibc",
107723         since getdate now uses intended-for-glibc code.
107724         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107725         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107727 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107729         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107730         HP's ANSI C compiler.
107731         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107732         Declaring int functions causes warnings on some modern systems and
107733         shouldn't be needed to compile on ancient ones.
107734         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107735         defined.
107737         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107738         with the following changes.
107739         (__set_errno): Parenthesize properly.
107740         Include <stdbool.h>.
107741         (MIN, MAX, MATCHING_INO): New macros.
107742         (__getcwd): Define with prototype, not K&R form.
107743         Use heuristics to allocate default buffer on stack if possible.
107744         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107745         behavior, and to avoid the PATH_MAX limit when computing
107746         ../../../../...
107747         Use MATCHING_INO to compare inode number to file.
107748         Check for arithmetic overflow in size calculations.
107749         Fix bug in reallocation of dot array that caused getcwd to fail
107750         on directories nested deeper than 75.
107751         Be more careful about saving errno on error.
107752         Do not use realloc; use only free+malloc, as this is a bit
107753         more flexible and avoids a needless copy operation.
107754         Do not inspect st_dev and st_ino for symbolic links; POSIX
107755         doesn't specify the latter.
107756         Check for closedir errors.
107757         Avoid needless casts.
107758         Use "#ifdef weak_alias" around weak_alias, to be like other
107759         glibc code.
107760         The following changes to getcwd.c have effect only when used in
107761         gnulib; they have no effect inside glibc proper.
107762         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107763         as alloca isn't used.
107764         (alloca, __alloca): Likewise.
107765         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107766         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107767         unconditionally, as gnulib assumes C89 or better.
107768         Do not include <sys/param.h>.
107769         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107770         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107771         better.
107772         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107773         Include <dirent.h> in a way that is compatible with modern Autoconf.
107774         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107775         New macros, if not already defined.
107776         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107777         Use "_LIBC", not "defined _LIBC", for consistency.
107778         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107779         a mempcpy module.
107780         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107781         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107782         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107783         credit only to Jim Meyering and adjust the copyright dates.
107784         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107785         <stdlib.h>, <unistd.h>, "pathmax.h".
107786         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107787         (INITIAL_BUFFER_SIZE): Remove.
107788         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107790 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107793         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107794         Use the _ONCE methods, for efficiency.
107795         Check for fcntl.h.  In test program, include <errno.h>
107796         and <fcntl.h> if available.  Remove old K&R cruft from
107797         test program.  Check for common errors in GNU/Linux,
107798         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107799         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107800         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107801         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107802         name accordingly.
107803         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107804         accommodate new getcwd.c.
107805         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107806         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107807         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107808         that's all we need now.
107810 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107812         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107813         argp-parse.c depends on getopt internals, that means we should
107814         always use our getopt, to be on the safe side.
107815         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107816         order not to spoil the result of an eventual previous invocation
107817         of gl_GETOPT_SUBSTITUTE.
107819 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107821         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107822         redefinition warnings. To avoid them, include the defines
107823         in `#if !defined __need_getopt ... #endif'. The only place
107824         where __getopt_argv_const is used is in definitions
107825         of getopt_long and getopt_long_only below, which are as well
107826         protected by `#ifndef __need_getopt'.
107827         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107828         __need_getopt after including <stdio.h> and <unistd.h> These
107829         headers might have defined it.
107831 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107833         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107835 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107837         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107838         (futimens): New function, which uses futimes if available.
107839         (futimens, utimens): Support timespec==NULL, with same semantics
107840         as utime and utimens.
107841         * lib/utimens.h (futimens): New decl.
107843 2004-11-23  Jim Meyering  <jim@meyering.net>
107845         * lib/getopt_.h: Remove trailing blanks.
107847 2004-11-23  Jim Meyering  <jim@meyering.net>
107849         * lib/__fpending.c: Add comment.
107851 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107853         * modules/canonicalize (Depends-on): Add xreadlink.
107854         Problem reported by James Youngman.
107856 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107858         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107859         New macros.
107860         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107861         optopt): Use them instead of invoking ## directly; otherwise, the
107862         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107864 2004-11-19  Bruno Haible  <bruno@clisp.org>
107866         * lib/strtok_r.c: Move comments from here...
107867         * lib/strtok_r.h: ... to here.
107869 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107872         implementations that mishandle size_t overflow.
107874 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107876         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107877         might fail.  Problem reported by Yoann Vandoorselaere.
107878         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107879         implementations that mishandle size_t overflow.
107881 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107883         * modules/canon-host (Depends-on): Add strdup.
107885 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107887         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107889 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107891         * lib/canon-host.c: Include "strdup.h".
107892         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107893         Use strdup instead of malloc/strcpy to duplicate strings.
107895         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107896         (human_space_before_unit): New constant.
107897         * lib/human.c (human_readable): Support it.
107899         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107900         (xgetcwd): Set errno correctly when failing.
107901         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107902         the failure is actually due to a PATH_MAX problem.
107904         Further getopt changes to make it more likely that glibc will
107905         buy the changes back.
107906         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107907         (getopt): Use it, so to preserve glibc semantic
107908         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107909         when compiling for libc.
107910         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107911         (getopt_long, getopt_long_only): Use it.
107913         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107914         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107915         (getopt): Argv is now char * const *, as per standard.
107916         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107917         not char *__getopt_argv_const *.
107918         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107919         _getopt_long_only_r): Likewise.
107920         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107921         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107922         _getopt_long_r, _getopt_long_only_r): Likewise.
107923         * lib/getopt_.h (__getopt_argv_const): Remove.
107924         (getopt): Argv is now char * const *, as per standard.
107926         * lib/getdate.y (tORDINAL): New token.
107927         (day, relunit): Allow it for relative times.
107928         (relative_time_table): Use tORDINAL for ordinals.
107930 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107932         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107933         Document that "second" isn't allowed as an ordinal number.
107935 2004-11-16  Jim Meyering  <jim@meyering.net>
107937         * modules/closeout (Depends-on): Add fpending.
107939 2004-11-15  Jim Meyering  <jim@meyering.net>
107941         * lib/closeout.c: Include "__fpending.h" once again.
107942         Include <stdbool.h>.
107943         (close_stdout): Don't fail just because stdout was closed initially,
107944         since some programs don't write to stdout in the normal course of
107945         operation (other than --version and --help), and we don't want this
107946         function to make e.g. `touch file >&-' fail.
107947         But do fail if it was closed and someone has tried to write to it.
107948         E.g., `printf foo >&-' must fail.
107950 2004-11-13  Jim Meyering  <jim@meyering.net>
107952         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107954 2004-11-12  Simon Josefsson  <jas@extundo.com>
107956         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107957         small doc fix is still pending.
107959 2004-11-11  Simon Josefsson  <jas@extundo.com>
107961         * modules/strtok_r: New file.
107963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107964         strtok_r.
107966 2004-11-11  Simon Josefsson  <jas@extundo.com>
107968         * m4/strtok_r.m4: New file.
107970         * m4/getopt.m4: Replace opterr.
107972 2004-11-11  Simon Josefsson  <jas@extundo.com>
107974         * lib/strtok_r.h, strtok_r.c: New file.
107976 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107978         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107979         of replacing opterr, getopt, etc.  This should handle the
107980         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107982 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107984         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107985         we can stop lying to compilers about the constness of argv when we
107986         are compiled outside glibc.
107987         (getopt, getopt_long, getopt_long_only): Use it.
107988         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107989         _getopt_internal, getopt): Likewise.
107990         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107991         _getopt_long_only_r): Likewise.
107992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107993         _getopt_long_r, _getopt_long_only_r): Likewise.
107995         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107996         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107997         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107998         the other external symbols.
107999         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
108000         declaration, since the above renaming now works around collisions.
108002 2004-11-11  Jim Meyering  <jim@meyering.net>
108004         * lib/linebreak.c: Remove trailing blanks.
108005         * lib/alloca_.h: Likewise.
108006         * lib/acosl.c: Likewise.
108007         * lib/euidaccess.c: Likewise.
108008         * lib/allocsa.h: Likewise.
108010 2004-11-10  Simon Josefsson  <jas@extundo.com>
108012         * m4/getaddrinfo.m4: New file.
108014 2004-11-10  Simon Josefsson  <jas@extundo.com>
108016         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
108018 2004-11-10  Simon Josefsson  <jas@extundo.com>
108020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108021         getaddrinfo.
108023         * modules/getaddrinfo: New file.
108025 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108027         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
108029 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108031         * lib/mktime.c (SHR): New macro, which is a portable
108032         substitute for >> that should work even on Crays.
108033         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
108034         Problem reported by Mark D. Baushke in
108035         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
108036         * lib/getdate.y (SHR): Likewise.
108037         (tm_diff): Use it.
108038         * lib/strftime.c (SHR): Likewise.
108039         (tm_diff): Use it.
108040         * lib/quotearg.c (struct quoting_options): Use unsigned int for
108041         quote_these_too, so that right shifts are well defined.  All uses
108042         changed.
108044 2004-11-10  Jim Meyering  <jim@meyering.net>
108046         Ensure that no close failure goes unreported.
108047         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
108048         return early when it seems there's nothing to flush.
108049         Don't include __fpending.h.
108051 2004-11-10  Jim Meyering  <jim@meyering.net>
108053         * modules/closeout (Depends-on): Remove fpending.
108055 2004-11-10  Jim Meyering  <jim@meyering.net>
108057         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
108059 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108061         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
108062         gl_FUNC_STRFTIME.
108063         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
108064         and AC_REQUIRE when possible, to avoid duplicate checks.
108065         Check for <wchar.h>.
108067 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108069         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
108071 2004-11-09  Bruno Haible  <bruno@clisp.org>
108073         * m4/sockpfaf.m4: New file.
108075 2004-11-05  Bruno Haible  <bruno@clisp.org>
108077         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
108078         Reported by Mark D. Baushke <mdb@cvshome.org>.
108080 2004-11-04  Bruno Haible  <bruno@clisp.org>
108082         2004-09-11  Bruno Haible  <bruno@clisp.org>
108083                 * allocsa.valgrind: New file.
108084         2004-02-06  Bruno Haible  <bruno@clisp.org>
108085                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
108086                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
108087                 Reported by Christopher Seip <chris.seip@hp.com>.
108089 2004-11-04  Bruno Haible  <bruno@clisp.org>
108091         * modules/allocsa (Files): Add lib/allocsa.valgrind.
108092         (Makefile.am): Distribute it.
108094 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108096         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
108097         with errno == ERANGE if the buffer is too small.
108098         Problem reported by Mark D. Baushke.
108100 2004-11-03  Albert Chin  <china@thewrittenword.com>
108101             Paul Eggert  <eggert@cs.ucla.edu>
108103         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
108104         equivalent, substitute $ac_type for equivalent type rather than
108105         blindly using uint32_t *always* which won't work if uint32_t is not
108106         available.  Define _UINT32_T to work around typedef of uint32_t if
108107         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
108108         2.5.1.
108110 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108112         * m4/jm-macros.m4: Sync from coreutils.
108113         (gl_MACROS): Check for mbrlen, for pathchk.
108114         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
108116 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108118         * lib/xreadlink.c (MAXSIZE): New macro.
108119         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
108120         size does not exceed MAXSIZE.  Avoid cast.
108121         As suggested by Mark D. Baushke in
108122         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
108123         if readlink fails with buffer size just under MAXSIZE, try again
108124         with MAXSIZE.
108126 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108128         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108130 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108131         and  Paul Eggert  <eggert@cs.ucla.edu>
108133         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108134         (get_date): Overparenthesize to avoid GCC warning.
108136 2004-11-02  Bruno Haible  <bruno@clisp.org>
108138         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108139         returns void.
108141 2004-11-02  Bruno Haible  <bruno@clisp.org>
108143         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108144         function returns void.
108146 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108148         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108149         fflush_unlocked, flockfile, funlockfile, funlockfile,
108150         fputs_unlocked, putc_unlocked.
108152 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108154         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108155         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108156         already declared.
108158 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108160         * modules/getdate (Files): Add doc/getdate.texi.
108161         (Depends-on): Add setenv, xalloc.
108163 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108165         * lib/getdate.y: Add support for TZ="foo" within a date string.
108166         Fix some bugs near time_t boundaries.  Reject dates with
108167         out-of-range components, e.g., "Sept 31".
108168         Include <stdlib.h>, "setenv.h", "xalloc.h".
108169         (ISDIGIT_LOCALE): Remove; unused.
108170         Note that the TZ and time functions used here are not reentrant.
108171         (mktime_ok, get_tz): New functions.
108172         (TZBUFSIZE): New constant.
108173         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108174         This requires that we sometimes generate our own TZ="XXX..." setting.
108176 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108178         * doc/getdate.texi: New file, from coreutils with modifications for
108179         the new TZ parsing.
108181 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108183         * lib/mktime.c (not_equal_tm): Remove redundant check.
108185 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108187         * modules/regex (lib_SOURCES): Add regex.c.
108188         Reported by James Youngman in
108189         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108191 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108193         * lib/getdate.y: Use Bison 1.875 features, and some minor
108194         code cleanups.  This change does not affect semantics.
108195         Don't include <stdlib.h>; no longer needed.
108196         Don't include unlocked-io.h; only the "#if TEST" code uses
108197         stdio, and performance isn't crucial there.
108198         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108199         Bison 1.875 features as described below.
108200         All uses of "PC." replaced by "pc->".
108201         (YYSTYPE): Add a forward declaration.
108202         (yylex, yyerror): Use full prototypes in forward decls.
108203         Use "%pure-parser" rather than obsolescent "%pure_parser".
108204         Use %parse-param and %lex-param instead of obsolescent
108205         YYPARSE_PARAM and YYLEX_PARAM.
108206         (meridian_table, month_and_day_table, time_units_table,
108207         relative_time_table, time_zone_table, military_table,
108208         lookup_zone, lookup_word, get_date):
108209         Use NULL instead of 0 where appropriate.
108210         (to_hour): Avoid abort (), to avoid a dependency on
108211         stdlib.h.
108212         (yyerror, yylex): Now accepts parser_control * arg.
108213         (main) [TEST]: Use '\0' rather than 0 for char.
108215 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108217         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108219 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108221         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108222         It's now the caller's responsibility to handle the case where
108223         !HAVE_GETPAGESIZE && !defined getpagesize.
108225         * lib/mktime.c (leapyear): Arg is long int, not int.
108227 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108229         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108231 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108233         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108234         missing.  Problem reported by James Youngman.
108236 2004-10-16  Simon Josefsson  <jas@extundo.com>
108238         * gnulib-tool: Fix comments.  Fix parse problem.
108239         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108241 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108243         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108244         implementation of getopt_long.  Problem reported by Alexander Taler in:
108245         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108247 2004-10-15  Bruno Haible  <bruno@clisp.org>
108249         * gnulib-tool: Untabify. Initialize supplied_libname.
108250         (func_usage): More homogenous output.
108251         (func_modules_transitive_closure, func_modules_to_filelist,
108252         func_emit_lib_Makefile_am): New functions.
108253         (func_import): New function, extracted from big case statement. Use
108254         func_get_license, func_modules_transitive_closure,
108255         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108256         opt_lgpl. Don't use test -a, as it's not portable.
108257         (func_create_testdir): Use func_modules_transitive_closure,
108258         func_modules_to_filelist, func_emit_lib_Makefile_am.
108260 2004-10-15  Bruno Haible  <bruno@clisp.org>
108262         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108264 2004-10-15  Bruno Haible  <bruno@clisp.org>
108266         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108267         the portions belonging to each module.
108268         Suggested by Derek Robert Price <derek@ximbiot.com>.
108270 2004-10-12  Simon Josefsson  <jas@extundo.com>
108272         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108273         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108274         to real functions.
108276 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108278         * modules/vsnprintf: New file.
108280 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108282         * m4/vsnprintf.m4: New file.
108284 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108286         * lib/vsnprintf.h: New file.
108287         * lib/vsnprintf.c: New file.
108289 2004-10-11  Bruno Haible  <bruno@clisp.org>
108291         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108292         vsnprintf.
108294 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108296         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108298 2004-10-07  Bruno Haible  <bruno@clisp.org>
108300         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108301         fits into the provided buffer.
108303 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108305         * lib/diacrit.c, diacrit.h: Add GPL notice.
108307         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108308         notice.
108309         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108310         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108311         This avoids a potential constant-folding bug.
108313 2004-10-05  Bruno Haible  <bruno@clisp.org>
108315         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108316         for the declaration of strsep.
108318 2004-10-05  Bruno Haible  <bruno@clisp.org>
108320         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108322 2004-10-04  Simon Josefsson  <jas@extundo.com>
108324         * modules/memmem: New file.
108325         * tests/test-memmem.c: New file.
108326         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108328 2004-10-04  Simon Josefsson  <jas@extundo.com>
108330         * m4/memmem.m4: New file.
108332 2004-10-04  Simon Josefsson  <jas@extundo.com>
108334         * lib/memmem.h: New file.
108335         * lib/memmem.c: New file, taken from glibc.
108337 2004-10-04  Simon Josefsson  <jas@extundo.com>
108339         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108340         '#ifdef USE_UNLOCKED_IO'.
108342 2004-10-04  Simon Josefsson  <jas@extundo.com>
108344         * config/srclist.txt: Add memmem from glibc.
108346 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108348         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108350         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108351         modules/exclude, modules/getdate, modules/getline,
108352         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108353         modules/getusershell, modules/linebuffer, modules/md5,
108354         modules/mountlist, modules/posixtm, modules/readtokens,
108355         modules/readutmp, modules/regex, modules/sha1,
108356         modules/version-etc, modules/yesno:
108357         Remove dependency on unlocked-io.
108359 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108361         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108363         * m4/unlocked-io.m4: Add copyright notice.
108364         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108366 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108368         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108369         * lib/xmalloc.c (xmemdup): Likewise.
108370         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108371         XFREE): Remove these long-obsolescent macros.
108372         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108373         * lib/xstrdup.c: Remove.
108375         * lib/regex.c (re_comp): Cast gettext return value to char *,
108376         Problem reported by Martin Neitzel via Mark D. Baushke.
108378 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108380         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108381         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108382         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108383         regex.c, sha1.c, version-etc.c, yesno.c:
108384         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108385         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108386         the includer's responsibility.
108388         Sync from coreutils.
108390         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108391         points to the start of a string, as the C Standard says the
108392         resulting behavior is undefined.
108394         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108395         simple -> simple_backups, numbered_existing ->
108396         numbered_existing_backups, numbered -> numbered_backups
108397         to avoid shadowing problems.  All uses changed.
108398         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108399         * lib/backupfile.c (check_extension, numbered_backup):
108400         Rename locals to avoid shadowing 'basename'.
108401         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108402         once.
108404         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108405         * lib/.cvsignore: Add getopt.h.
108407 2004-10-04  Bruno Haible  <bruno@clisp.org>
108409         * modules/README: New file.
108410         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108411         not a module.
108413 2004-10-02  Jim Meyering  <jim@meyering.net>
108415         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108417 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108419         * modules/strsep: New file.
108421 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108423         * m4/strsep.m4: New file.
108425 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108427         * lib/strsep.h: New file.
108428         * lib/strsep.c: New file.
108430 2004-10-01  Simon Josefsson  <jas@extundo.com>
108432         * lib/snprintf.c (snprintf): Handle size==0.
108434 2004-10-01  Simon Josefsson  <jas@extundo.com>
108435             Bruno Haible  <bruno@clisp.org>
108437         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108438         (snprintf): Declare 'args'.
108440 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108442         * lib/snprintf.c: Remove comments as to why each header is needed.
108444 2004-10-01  Bruno Haible  <bruno@clisp.org>
108446         * MODULES.html.sh: Add strsep.
108448 2004-09-30  Simon Josefsson  <jas@extundo.com>
108450         * modules/snprintf: New file.
108452 2004-09-30  Simon Josefsson  <jas@extundo.com>
108454         * m4/snprintf.m4: New file.
108456 2004-09-30  Simon Josefsson  <jas@extundo.com>
108458         * lib/snprintf.h, lib/snprintf.c: New files.
108460 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108462         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108463         (hol_entry_help): Never translate an empty string.
108464         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108465         * lib/argp.h (OPTION_NO_TRANS): New option.
108467 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108469         * modules/argp (Maintainer): Replace Simon Josefsson
108470         by Sergey Poznyakoff.
108472 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108474         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108475         changes merged back into glibc.
108477 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108479         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108481 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108483         * lib/xvasprintf.c: Include xalloc.h.
108484         (xvasprintf): Use xalloc_die, not xmalloc_die.
108486 2004-09-29  Bruno Haible  <bruno@clisp.org>
108488         * modules/alloca-opt: New file, derived from modules/alloca.
108489         * modules/allocsa: Depend on alloca-opt instead of alloca.
108490         * modules/setenv: Likewise.
108491         * modules/vasnprintf: Likewise.
108492         * MODULES.html.sh: Add alloca-opt.
108494 2004-09-28  Simon Josefsson  <jas@extundo.com>
108496         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108497         LGPL, and to replace license template from GPL to LGPL.
108499 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108501         * modules/dummy: Change license to LGPL.
108503 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108505         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108507 2004-09-24  Simon Josefsson  <jas@extundo.com>
108509         * modules/minmax (License): Change from GPL to LGPL.
108511 2004-09-23  Simon Josefsson  <jas@extundo.com>
108513         * gnulib-tool (--import): Typo.
108515 2004-09-23  Simon Josefsson  <jas@extundo.com>
108517         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108519 2004-09-22  Bruno Haible  <bruno@clisp.org>
108521         * modules/*: Add 'License' field.
108522         * gnulib-tool: Accept --extract-license option.
108523         (func_get_license): New function.
108525 2004-09-21  Bruno Haible  <bruno@clisp.org>
108527         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108528         Reported by Simon Josefsson.
108530 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108532         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108533         gl_AC_TYPE_LONG_LONG.
108535 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108537         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108539 2004-09-18  Simon Josefsson  <jas@extundo.com>
108540         and  Paul Eggert  <eggert@cs.ucla.edu>
108542         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108543         calls with autoreconf.  Define GL_LIB.
108545 2004-09-14  Karl Berry  <karl@gnu.org>
108547         * config/srclist.txt: unsync setenv.c, sigh.
108549 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108551         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108552         Problem reported by Bruno Haible in:
108553         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108555 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108557         * config/srclist.txt: Comment out argp-pvh.c.
108559 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108561         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108562         in case some system header has #define'd it.  Problem reported by
108563         Soeren D. Schulze in
108564         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108566 2004-09-09  Karl Berry  <karl@gnu.org>
108568         * regex.[ch]: delete from the root.  These were supposed to be
108569                 synced with emacs cvs, but this has not happened for about
108570                 a year, and anyway nothing else uses emacs regex.[ch].
108571                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108572                 lib/regex[.ch] is untouched.
108574 2004-09-09  Bruno Haible  <bruno@clisp.org>
108576         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108578 2004-09-09  Bruno Haible  <bruno@clisp.org>
108580         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108581         modifications.
108582         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108584 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108586         * modules/xvasprintf: New file.
108587         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108589 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108591         * lib/xvasprintf.h: New file.
108592         * lib/xvasprintf.c: New file.
108593         * lib/xasprintf.c: New file.
108595 2004-09-08  Bruno Haible  <bruno@clisp.org>
108597         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108599 2004-09-08  Bruno Haible  <bruno@clisp.org>
108601         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108602         length is > INT_MAX.
108603         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108604         more.
108606 2004-09-08  Bruno Haible  <bruno@clisp.org>
108608         * lib/stdint_.h: New file, taken from GNU clisp.
108610 2004-09-08  Bruno Haible  <bruno@clisp.org>
108611             Oskar Liljeblad  <oskar@osk.mine.nu>
108613         * modules/stdint: New file.
108614         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108616 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108618         Import from coreutils.
108619         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108620         strings on unbounded length.  alloca's performance benefits aren't
108621         that important here.
108622         (V_STRDUP): Remove.
108623         (parse_with_separator): New function, with most of the internals
108624         of the old parse_user_spec.  Allow user to omit both user and group,
108625         for compatibility with FreeBSD.
108626         Clone only the user name, not the entire spec.
108627         Do not set *uid, *gid unless entirely successful.
108628         Avoid memory leak in some failing cases.
108629         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108630         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108631         (parse_user_spec): Rewrite to use parse_with_separator.
108633 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108635         * modules/userspec: Don't depend on alloca.
108637 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108639         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108641 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108643         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108644         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108645         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108647 2004-08-16  Simon Josefsson  <jas@extundo.com>
108649         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108650         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108651         Add --dry-run for --import.
108652         Let user provided command line parameters override configure.ac
108653         settings.
108655 2004-08-12  Simon Josefsson  <jas@extundo.com>
108657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108658         as discussed with Paul Eggert in threads rooted at
108659         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108660         and
108661         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108662         Before, the test was empty, and relied on ELIDE_CODE in source
108663         code.)
108664         (gl_PREREQ_GETOPT): New macro.
108665         (gl_GETOPT): Use them.
108667 2004-08-12  Simon Josefsson  <jas@extundo.com>
108669         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108670         * lib/getopt_.h: Renamed from getopt.h.
108672 2004-08-12  Simon Josefsson  <jas@extundo.com>
108674         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108675         Change default library name from libfoo to libgnu.
108676         Now, if you have a configure.ac that says:
108677                 gl_SOURCE_BASE(gl)
108678                 gl_M4_BASE(gl/m4)
108679                 gl_MODULES(error getopt etcetera)
108680                 gl_INIT
108681         you can import all you need by running:
108682                 ../gnulib/gnulib-tool --import
108684         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108685         (Makefile.am): Rewrite, use logic from argz.
108686         (Include): Use <getopt.h> instead of "getopt.h".
108688 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108690         * modules/argp (Files): Add m4/unlocked-io.m4.
108691         (Depends-on): Add extensions.
108693 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108695         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108696         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108697         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108698         Check for program_invocation_name, program_invocation_short_name,
108699         flockfile, funlockfile, features.h, _getopt_long_only_r.
108701 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108703         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108704         its complicated substitute.
108705         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108706         and program_invocation_name.
108707         (__argp_basename) [!_LIBC]: Remove; the only use was
108708         replaced by its body.
108709         (__argp_short_program_name): Change condition from
108710         !defined __argp_short_program_name to
108711         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108712         to match argp-namefrob.h.
108713         (__argp_failure): Don't assume strerror_r returns char *.
108714         * lib/argp-parse.c (N_): Define unconditionally.
108715         (argp_default_options): Fill out initializers with 0 to avoid
108716         gcc warnings.
108718 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108720         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108721         getopt1.c.
108723 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108725         Merge from coreutils.
108727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108729         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108730         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108732 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108734         Merge from coreutils.
108736         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108737         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108738         for Reliant Unix 5.43.
108740         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108741         (union fooround): Use uintmax_t, not long int.
108742         The rest is a merge from libc:
108743         [defined _LIBC]: Include <shlib-compat.h>.
108744         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108746         * lib/settime.c (settime): Recode to avoid warning with
108747         Sun Forte C 6U2.
108749         * lib/strverscmp.c: Convert to UTF-8.
108751 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108753         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108754         m4/uintmax_t.m4.
108756 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108758         * modules/xalloc-die: New file.
108759         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108761         * modules/md5 (Files): Add m4/uint32_t.m4.
108762         * modules/sha1: Renamed from modules/sha.
108763         (Files):
108764         Rename lib/sha.h to lib/sha1.h.
108765         Rename lib/sha.c to lib/sha1.c.
108766         Rename m4/sha.m4 to m4/sha1.m4.
108767         (lib_SOURCES): Likewise.
108768         (configure.ac): Rename gl_SHA to gl_SHA1.
108769         (Include): sha.h -> sha1.h.
108771 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108773         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108774         * m4/sha1.m4: Renamed from sha.m4.
108775         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108777 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108779         * lib/obstack.h (obstack_empty_p):
108780         Don't assume that chunk->contents is suitably aligned.
108781         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108782         Likewise. Problem reported by Benno in
108783         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108785         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108786         readable.  This could be improved further but it'd take some work.
108788 2004-08-08  Simon Josefsson  <jas@extundo.com>
108790         * modules/xgethostname (Depends-on): Remove exit and error (not
108791         used).
108793         * modules/getpass-gnu: Add getpass.h.
108794         (Depends-on): Add stdbool.
108795         * modules/getpass: Add getpass.h.
108797 2004-08-08  Simon Josefsson  <jas@extundo.com>
108799         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108800         Check getpass declaration.
108802 2004-08-08  Simon Josefsson  <jas@extundo.com>
108804         * lib/xgethostname.c: Don't include error.h (not used).
108806         * lib/getpass.h: Add.
108807         * lib/getpass.c: Include getpass.h first.
108809 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108811         * lib/xalloc-die.c: New file.
108812         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108813         All uses removed.
108814         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108815         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108816         xalloc-die.c.
108817         (_, N_, xalloc_die): Move to xalloc-die.c.
108818         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108819         so that we needn't mess with xalloc_msg_memory_exhausted.
108821         * lib/sha1.h: Renamed from sha.h.
108822         (SHA1_H): Renamed from _SHA_H.
108823         (sha1_ctx): Renamed from sha_ctx.
108824         (sha1_init_ctx): Renamed from sha_init_ctx.
108825         (sha1_process_block): Renamed from sha_process_block.
108826         (sha1_process_bytes): Renamed from sha_process_bytes.
108827         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108828         (sha1_read_ctx): Renamed from sha_read_ctx.
108829         (sha1_stream): Renamed from sha_stream.
108830         (sha1_buffer): Renamed from sha_buffer.
108831         * lib/sha1.c: Likewise; renamed from sha.c.
108832         Do not include <sys/types.h>.
108833         Include <stddef.h> rather than <stdlib.h>.
108835 2004-08-08  Bruno Haible  <bruno@clisp.org>
108837         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108838         FILESYSTEM_PREFIX_LEN.
108839         * lib/progreloc.c: Likewise.
108840         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108842 2004-08-06  Simon Josefsson  <jas@extundo.com>
108844         * modules/progname (Depends-on): Don't depend on stdbool.
108846 2004-08-06  Simon Josefsson  <jas@extundo.com>
108848         * modules/getsubopt: New file.
108849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108850         getsubopt.
108852 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108854         More merge from coreutils.
108856         * m4/utimens.m4, m4/utimecmp.m4: New files.
108857         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108858         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108859         prereq.m4, sha.m4: Import changes from coreutils.
108861 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108863         More merge from coreutils.
108864         * modules/raise, modules/readtokens0, modules/utimens:
108865         * modules/utimecmp, module/xnanosleep: New files.
108866         * modules/strftime: Add lib/strftime.h.
108867         Change include from <time.h> to "strftime.h".
108868         * modules/yesno: Add lib/yesno.h.
108869         * modules/backupfile: Remove lib/addext.c.
108870         * modules/euidaccess: Add stat-macros.h.
108871         * modules/canonicalize, modules/euidaccess,
108872         modules/filemode, modules/lchown, modules/makepath,
108873         modules/rmdir, modules/stat: Likewise.
108875 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108877         Merge from tar.
108878         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108879         SIZE_MAX is a valid preprocessor constant.
108880         (__argp_basename): Change from "#ifndef _LIBC"
108881         to "#ifndef __argp_short_program_name", so that
108882         we don't compile these functions for tar.
108884         More merges from coreutils.
108885         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108886         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108887         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108888         * lib/addext.c: Remove; no longer needed.
108889         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108890         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108891         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108892         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108893         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108894         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108895         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108896         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108897         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108898         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108899         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108900         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108901         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108902         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108903         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108904         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108905         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108906         Import changes from coreutils.
108908 2004-08-05  Simon Josefsson  <jas@extundo.com>
108910         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108912 2004-08-05  Simon Josefsson  <jas@extundo.com>
108914         * m4/getsubopt.m4: New file.
108916 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108918         Merge from coreutils.
108920         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108921         * m4/getcwd-path-max.m4: New files.
108923         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108924         FILESYSTEM_PREFIX_LEN ->
108925         FILE_SYSTEM_PREFIX_LEN.
108926         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108927         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108928         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108929         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108931         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108932         prerequisite modules now handle the DOS stuff.
108933         Don't check for unistd.h.
108935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108937         Merge from coreutils.
108939         * lib/.gdb-history: Remove; this doesn't belong here.
108941         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108942         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108943         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108944         * lib/getcwd.c: New files.
108946         * lib/dirname.h: Include <stdbool.h>.
108947         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108948         for consistency with POSIX terminology.  All uses changed.
108949         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108950         (strip_trailing_slashes): Use bool for booleans.
108951         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108953         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108954         sometimes returns a positive errno value even when it succeeds.
108955         (print_errno_message) [!LIBC]: Fall back on strerror if
108956         __strerror_r fails.
108958         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108959         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108960         (longest_relative_suffix): New function.
108961         (path_concat): Use it.  Assume first argument is not NULL.
108962         Port to DOS.  Omit redundant separators.
108963         Report an error instead of returning NULL.
108964         Use mempcpy instead of memcpy.
108965         (xpath_concat): Remove: not declared or used.
108967         * lib/same.h: Include <stdbool.h>
108968         (same_name): Return bool, not int.
108969         * lib/same.c (same_name): Likewise.
108970         (errno): Don't declare; we assume C89 or better now.
108972         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108973         if not already defined.
108975         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108976         * lib/dup-safer.c (errno): Likewise.
108978 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108980         Merge from coreutils.
108981         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108982         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108983         * modules/path-concat: Don't depend on strdup.
108985 2004-08-03  Simon Josefsson  <jas@extundo.com>
108987         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108988         * lib/progname.h: Don't include stdbool.h.
108990 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108992         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108993         * MODULES.html.sh (func_all_modules): Remove fatal.
108995 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108997         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108999 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109001         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
109002         working.
109004 2004-08-02  Simon Josefsson  <jas@extundo.com>
109006         * lib/getsubopt.h: New file, with comments from Bruno Haible.
109007         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
109008         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
109010 2004-08-01  Simon Josefsson  <jas@extundo.com>
109012         * lib/xgetdomainname.c: Include stdlib.h, for free().
109014 2004-07-19  Bruno Haible  <bruno@clisp.org>
109016         * MODULES.html.sh (func_all_modules): Add dummy.
109018 2004-07-16  Simon Josefsson  <jas@extundo.com>
109020         * modules/dummy: New file.
109022 2004-07-16  Simon Josefsson  <jas@extundo.com>
109024         * lib/dummy.c: New file.
109026 2004-07-16  Bruno Haible  <bruno@clisp.org>
109028         * lib/backupfile.h: Add extern "C" for C++.
109029         * lib/closeout.h: Likewise.
109030         * lib/copy-file.h: Likewise.
109031         * lib/findprog.h: Likewise.
109032         * lib/full-write.h: Likewise.
109033         * lib/pathname.h: Likewise.
109034         * lib/progname.h: Likewise.
109035         * lib/stpcpy.h: Likewise.
109036         * lib/stpncpy.h: Likewise.
109037         * lib/strcase.h: Likewise.
109038         * lib/strstr.h: Likewise.
109039         * lib/xalloc.h: Likewise.
109041         * lib/mbswidth.h: Add extern "C" for C++.
109042         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
109044 2004-07-13  Robert Millan  <robertmh@gnu.org>
109046         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
109048 2004-07-09  Simon Josefsson  <jas@extundo.com>
109050         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
109051         failed without this.)
109053 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109055         * modules/chown (Files): Add lib/fchown-stub.c, since
109056         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
109058 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109060         * lib/fchown-stub.c: New file.
109062 2004-06-24  Jim Meyering  <jim@meyering.net>
109064         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
109066 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109068         * modules/argz: Omit "#include".
109070         * MODULES.html.sh (func_all_modules): Add calloc, to match
109071         2004-06-01 addition of calloc module.
109073 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109075         * m4/argz.m4: New file, which is autoupdated from libtool.
109077 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109079         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
109080         libtool.
109082 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109084         * config/srclist-update: Don't insist on "USA." before the
109085         close-comment, as libtool omits the period and puts the */ on a
109086         separate line.
109087         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
109088         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
109090 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
109092         * modules/argz: New file.
109093         * MODULES.html.sh (func_all_modules): Add argz.
109095 2004-06-12  Jim Meyering  <jim@meyering.net>
109096         and  Paul Eggert  <eggert@cs.ucla.edu>
109098         * modules/hash (Files): Add lib/xalloc.h.
109099         * modules/pipe (Depends-on): Add wait-process.
109100         * modules/stat (Depends-on): Add xalloc.
109101         * modules/userspec (Files): Add lib/userspec.h.
109102         * modules/xstrto
109104         Upgrade from gettext-0.13.
109105         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
109106         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
109107         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
109109 2004-06-10  Jim Meyering  <jim@meyering.net>
109111         * lib/calloc.c: New file.
109113 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
109115         * lib/getdate.y (yylex): Allow space between sign and number.
109116         Problem reported by Dan Jacobson.
109118 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109120         Merge from coreutils CVS.
109122         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
109123         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109124         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109125         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109126         xstrtol.m4: Fix copyright date and/or serial number.
109128         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109129         See if we need an fchown replacement.
109130         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109131         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109132         and use the replacement function if we detect either defect.
109134         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109135         gl_UTIMECMP.
109137 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109138         and  Jim Meyering  <jim@meyering.net>
109140         Merge from coreutils CVS.
109142         * lib/stat-macros.h: New file, with contents from file-type.h
109143         and coreutils' system.h.
109144         * lib/file-type.c: Include "stat-macros.h".
109145         * lib/file-type.h (file_type): Move all macro definitions to new file,
109146         stat-macros.h.
109148         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109149         Wrap old code with this conditional.
109150         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109151         function that does not dereference symlinks.
109152         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109154         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109155         dependency problems.
109156         (xreadlink): Accept new arg SIZE, for efficiency.
109157         All decls and uses changed.
109158         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109160         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109161         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109163         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109164         sysexits.h.
109166 2004-06-01  Jim Meyering  <jim@meyering.net>
109168         * m4/calloc.m4: New file.
109170 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109173         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109174         Also, fix a typo in a diagnostic.
109176 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109178         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109179         or AC_FUNC_REALLOC.
109181 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109183         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109184         macros to be defined.
109185         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109186         the allocator returns NULL because the requested size is zero.
109188 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109190         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109191         var.  Add comment explaining why libc still defines it.  This
109192         merges the following patch from glibc:
109193         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109195 2004-05-20  Andreas Schwab  <schwab@suse.de>
109197         * m4/free.m4: Replace free if it not known to work, not the other
109198         way round.
109200 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109202         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109203         present in glibc since revision 1.1 of this file.
109204         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109205         obstack_alignment_mask, obstack_alloc, obstack_base,
109206         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109207         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109208         obstack_grow0, obstack_init, obstack_int_grow,
109209         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109210         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109211         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109212         nonexistent functions.
109214 2004-05-18  Karl Berry  <karl@gnu.org>
109216         * config/srclist.txt: break link for vasnprintf.c.
109218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109220         Port obstack to the AS/400, where pointers are 16 bytes wide and
109221         you cannot cast an integer to a valid pointer.  This patch is
109222         currently waiting to be integrated into glibc; see
109223         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109225         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109226         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109227         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109228         (struct obstack): temp member is now a union of a pointer and
109229         an integer, instead of an integer.  All integer uses changed.
109230         This does not affect the physical layout of struct obstack,
109231         except on hosts (like the AS/400) where the size or alignment of
109232         void * is greater than that of ptrdiff_t.
109233         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109234         __STDC__)]: Store temporary in pointer member of union, not
109235         integer member.
109236         * lib/obstack.c: Include <stddef.h>, for offsetof.
109237         (struct fooalign): Remove; it doesn't need a name.
109238         (union fooround): Change double to long double, and add void *.
109239         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109240         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109241         not a macro.  Hence the values are always int; so remove all
109242         casts-to-int in uses.
109244 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109246         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109247         we can get this patch merged into glibc.
109249 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109250             Paul Eggert  <eggert@cs.ucla.edu>
109252         * m4/argp: Depend on alloca.
109254 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109255             Paul Eggert  <eggert@cs.ucla.edu>
109257         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109258         freecoding.
109260 2004-05-17  Bruno Haible  <bruno@clisp.org>
109262         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109263         precision that consists of a '.' followed by an empty digit string.
109264         Patch by Tor Lillqvist <tml@iki.fi>.
109266 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109269         for backward compatibility with older code.  We need our own
109270         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109271         it under some other name, and our alloca.h will define it.
109273 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109274             Derek Price  <derek@ximbiot.com>
109276         * lib/alloca.c: Include <alloca.h>, to get our interface.
109277         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109278         include <alloca.h> first.  Use C89 prototype for alloca; this
109279         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109280         Use #elif for simplicity, since we can assume C89 now.
109281         Don't try to source the system alloca.h since it will not be found
109282         and to prevent recursively including its replacement.
109283         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109284         * lib/regex.c: Likewise.
109286 2004-05-16  Derek Price  <derek@ximbiot.com>
109287             Paul Eggert  <eggert@cs.ucla.edu>
109289         getline cleanup.  This changes the getndelim2 API: both order of
109290         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109291         no delimiter).
109293         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109294         interface does that.
109295         (getline): Always use getdelim, so that we don't have two
109296         copies of this code.
109297         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109298         if available.
109299         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109300         (GETNDELIM2_MAXIMUM): New macro.
109301         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109302         instead of the old practice of delim2==0.  All callers changed.
109303         Return -1 on overflow, instead of returning junk.
109304         Do not set *linesize unless allocation succeeds.
109305         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109306         that we include sys/types.h.
109307         * lib/getnline.h: Likewise.
109308         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109309         (getndelim2): Reorder arguments.
109310         * lib/getnline.c (getnline, getndelim):
109311         Don't discard the NMAX argument.
109312         (getnline): Invoke getndelim, to avoid code duplication.
109313         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109314         of (size_t) -1 by callers of the getnline family.
109316 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109318         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109319         Check for gettimeofday.
109320         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109321         Check for settimeofday, stime.
109323 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109325         * lib/nanosleep.c (suspended): Change its type from int to
109326         sig_atomic_t volatile.
109327         (first_call): Make it private to rpl_nanosleep, and have it
109328         be zero initially as that's a bit faster.
109329         (my_usleep): Round up fractional times instead of truncating them,
109330         as this is the usual meaning for 'sleep'.
109332         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109333         doesn't work.
109334         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109335         (ENOSYS): Define if not defined.
109336         (settime): Fall back on stime if it exists and settimeofday fails.
109337         But don't bother with fallbacks if a method fails with errno == EPERM.
109339 2004-05-11  Jim Meyering  <jim@meyering.net>
109341         Prior to this change, the save_cwd caller required read access to the
109342         current directory on most systems (ones with the fchdir function).
109344         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109345         fails, try write-only, and finally, resort to using xgetcwd.
109347 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109349         * lib/obstack.c, obstack.h: Import changes from libc.
109351 2004-04-28  Bruno Haible  <bruno@clisp.org>
109353         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109354         also implicitly appends .exe to executables.
109355         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109356         accepts Windows pathnames.
109357         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109358         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109359         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109360         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109361         Reported by Derek Robert Price <derek@ximbiot.com>.
109363 2004-04-21  Karl Berry  <karl@gnu.org>
109365         * config/srclist.txt (localcharset.c): break sync.
109367 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109369         * m4/host-os.m4: Add a copyright notice.
109371 2004-04-20  Jim Meyering  <jim@meyering.net>
109373         Change UTILS_ to gl_ in AC_DEFINE'd names.
109374         Change utils_- and jm_-prefixed variables, too.
109375         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109376         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109377         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109379         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109380         Don't emit trailing blanks.
109381         Also rename jm_-prefixed variables to have gl_ prefix.
109383         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109384         Also rename jm_-prefixed variables to have gl_ prefix.
109386         * m4/jm-macros.m4: Reflect the renamings.
109387         * m4/prereq.m4: Likewise.
109389 2004-04-20  Jim Meyering  <jim@meyering.net>
109391         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109392         memory.
109394 2004-04-20  Jim Meyering  <jim@meyering.net>
109395             Bruno Haible  <bruno@clisp.org>
109397         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109398         memory when realloc fails.
109400 2004-04-19  Jim Meyering  <jim@meyering.net>
109402         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109403         now that readutmp.c may call `free (0)'.
109405 2004-04-19  Bruno Haible  <bruno@clisp.org>
109407         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109408         * m4/inttypes_h.m4: Likewise.
109409         * m4/stdint_h.m4: Likewise.
109410         * m4/intmax_t.m4: Likewise.
109411         * m4/uintmax_t.m4: Likewise.
109413 2004-04-18  Jim Meyering  <jim@meyering.net>
109415         * m4/prereq.m4: Don't forbid jm_ prefix.
109417         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109418         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109419         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109420         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109421         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109422         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109423         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109424         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109425         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109426         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109427         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109428         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109429         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109430         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109431         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109432         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109433         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109434         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109435         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109437 2004-04-18  Jim Meyering  <jim@meyering.net>
109439         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109440         failure, don't leak memory and do call END_UTMP_ENT.
109442 2004-04-16  Jim Meyering  <jim@meyering.net>
109444         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109445         coreutils' stat program.
109446         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109448 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109450         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109451         C89.
109452         (CHAR_BIT): Remove, since we assume C89.
109453         Include <stdint.h> if available, as per current Autoconf CVS advice.
109455 2004-03-31  Jim Meyering  <jim@meyering.net>
109457         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109458         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109459         * m4/xalloc.m4: Likewise.
109461 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109463         Merge from coreutils.
109465         * m4/inttostr.m4: New file.
109466         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109467         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109468         Require gl_CLOCK_TIME.
109469         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109471 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109473         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109474         not bool, to be more consistent with Unix conventions.
109475         Suggested by Bruno Haible.
109477         Merge from coreutils.
109479         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109480         * lib/umaxtostr.c: New files.
109482         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109483         the usual <time.h> dance.
109484         (get_date): Change signature to support fractional time stamps.
109485         All callers changed.
109486         * lib/getdate.y: Include "getdate.h" first, as we can now
109487         assume C89 and don't need to worry about 'const'.
109488         Similarly, include "unlocked-io.h" near start, not in middle.
109489         Include <limits.h>.
109490         (textint.value): Use long int rather than int.
109491         (textint.digits): Use size_t rather than int.
109492         (BILLION, LOG10_BILLION): New constants.
109493         (parser_control): New member rel_ns.  Members day_ordinal,
109494         time_zone, month, day, hour, minutes, rel_year, rel_month,
109495         rel_day, rel_hour, rel_minutes, rel_seconds
109496         are now long int, not int.  Member seconds is now struct timespec,
109497         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109498         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109499         not int.
109500         (%union.intval): Now long int, not int.
109501         New member timespec.
109502         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109503         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109504         (spec): Now is a timespec or an item list.
109505         (timespec, items): New nonterminals.
109506         (time, rel, relunit, number, get_date):
109507         Add support for fractional seconds.
109508         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109509         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109510         (to_hour): First arg is now long int, not int.
109511         (to_year): Returns long int, not int.
109512         Don't treat year -70 like 70.
109513         (tm_diff): Returns long int, not int.
109514         (lookup_word): Use bool instead of int when appropriate.
109515         (yylex): Use size_t for count, not int.
109516         Detect overflow when parsing large integer constants.
109517         Add support for fractions.
109518         (get_date): Make pointers 'const' if possible.
109519         Use more-portable code to detect integer overflow.
109520         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109521         Don't use ctime; it's not reliable if the year has >4 digits.
109523         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109524         This is for compatibility with BSD.
109526         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109527         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109528         From coreutils' system.h.
109530         * lib/userspec.c: Don't include "posixver.h".
109531         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109532         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109533         compatible extension.  Simplify code by removing a boolean int
109534         that was always nonzero if a string was nonnull.
109536 2004-03-30  Jim Meyering  <jim@meyering.net>
109538         Merge from coreutils.
109540         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109541         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109542         on some systems one must include <grp.h> before it.
109543         Reported by Christian Krackowizer.
109545 2004-03-30  Jim Meyering  <jim@meyering.net>
109547         Merge from coreutils.
109549         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109551         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109552         an empty input stream.
109554         * lib/readtokens.c: Include <stdbool.h>.
109555         (readtoken): Use `size_t' rather than int/long.
109556         All callers adjusted.
109557         Use `bool' rather than `int' where appropriate.
109558         Use memset rather than an explicit loop.
109559         Use x2nrealloc rather than xrealloc.
109560         Allow the use of `\0' as a delimiter.
109561         (readtokens): Likewise.
109562         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109564 2004-03-30  Jim Meyering  <jim@meyering.net>
109566         * m4/realloc.m4: Remove file, since now it does no more than
109567         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109568         the `configure.ac' section of module/realloc.
109569         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109571 2004-03-30  Bruno Haible  <bruno@clisp.org>
109573         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109574         nonnull.
109576 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109578         Merge changes to getloadavg.c from coreutils and Emacs.
109580         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109581         Define to an expression, not to the empty string.
109582         Include cloexec.h and xalloc.h.
109583         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109584         Use set_cloexec_flag rather than rolling our own.
109585         * lib/cloexec.c, lib/cloexec.h: New files.
109587 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109589         * m4/cloexec.m4: New file.
109591 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109593         * lib/getopt.h: Sync with libc CVS.
109595 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109596             Bruno Haible  <bruno@clisp.org>
109598         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109599         mbswidth.
109601 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109602             Bruno Haible  <bruno@clisp.org>
109604         * lib/mbswidth.h: Include <wchar.h> only if
109605         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109606         <wchar.h>.
109607         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109609 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109611         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109612         Sync with libc CVS.
109613         * lib/getopt_int.h: New file, also synced from libc.
109615 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109617         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109618         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109619         Bring back getopt.c, getopt.h, getopt1.c.
109621 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109623         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109624         All uses changed.  Check for sa_sigaction member; this fixes
109625         a bug first reported by Jason Andrade in
109626         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109628 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109630         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109631         '#if' expressions.  Unlike the code it replaces, it does not
109632         depend on (defined _SC_PAGESIZE).  However, it does depend on
109633         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109634         first reported by Jason Andrade in
109635         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109637 2004-02-25  Simon Josefsson  <jas@extundo.com>
109639         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109641 2004-02-25  Simon Josefsson  <jas@extundo.com>
109643         * lib/strdup.h: New file.
109644         * lib/strdup.c: Include it.
109645         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109646         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109648 2004-02-23  Karl Berry  <karl@gnu.org>
109650         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109651         (from fencepost.gnu.org:/gd/gnuorg).
109653 2004-02-23  Karl Berry  <karl@gnu.org>
109655         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109656         * config/srclist.txt: add maintain/standards documents.
109658 2004-02-18  Bruno Haible  <bruno@clisp.org>
109660         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109661         Reported by Derek Robert Price <derek@ximbiot.com>.
109663 2004-02-16  Karl Berry  <karl@gnu.org>
109665         * config/mkinstalldirs, install-sh: update from automake.
109667 2004-02-06  Karl Berry  <karl@gnu.org>
109669         * m4/po.m4: update from gettext 0.14.1.
109671 2004-02-06  Karl Berry  <karl@gnu.org>
109673         * lib/config.charset: update from gettext 0.14.1.
109675 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109677         Add comments and code, prompted by suggestions from Bruno Haible
109678         for sh-quote.
109679         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109680         describing the enum quoting_style values.
109681         * lib/quotearg.c (quotearg_alloc): New function.
109682         (quotearg_buffer_restyled): Treat lone { and } as special.
109683         Treat = as special.  Work around bug with older shells
109684         that "see" a '\' that is really the 2nd byte of a multibyte char.
109685         Quote empty string with shell_quoting_style.
109687 2004-02-03  Bruno Haible  <bruno@clisp.org>
109689         * m4/pipe.m4: New file, from GNU gettext.
109691 2004-02-03  Bruno Haible  <bruno@clisp.org>
109693         * lib/pipe.h: New file, from GNU gettext.
109694         * lib/pipe.c: New file, from GNU gettext.
109696 2004-01-27  Bruno Haible  <bruno@clisp.org>
109698         * m4/execute.m4: New file, from GNU gettext.
109700 2004-01-27  Bruno Haible  <bruno@clisp.org>
109702         * lib/execute.h: New file, from GNU gettext.
109703         * lib/execute.c: New file, from GNU gettext.
109704         * lib/w32spawn.h: New file, from GNU gettext.
109706 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109708         Merge from diffutils.
109710         * lib/file-type.c (file_type): Add typed memory objects.
109711         * lib/file-type.h (S_TYPEISTMO): New macro.
109713         * lib/c-stack.h (c_stack_action): Remove argv argument.
109714         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109715         (die): Don't calculate message unless segv_action returns.
109716         (get_stack_location, min_address_from_argv, max_address_from_argv,
109717         volatile stack_base, volatile_stack_size): Remove.
109718         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109719         that every segmentation violation is a stack overflow.  (Ouch!)
109720         See Debian bug 136249 (still outstanding) for more info about why
109721         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109723 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109725         Exit-status fix from coreutils.
109727         Use exit_failure consistently in place of EXIT_FAILURE,
109728         so that program exit statuses are consistent on failure.
109730         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109731         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109732         * lib/argmatch.h: Comment fix to match the above.
109733         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109734         Now a macro referring to exit_failure, instead of a separate
109735         variable.  Include "exitfail.h" to get it.
109736         * lib/xstrtol.h: Include "exitfail.h".
109737         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109739         * lib/long-options.c (parse_long_options): Use prototype
109740         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109741         for clarity.
109743 2004-01-21  Jim Meyering  <jim@meyering.net>
109745         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109746         so as not to conflict with a different-sized __mktime_internal
109747         function in GNU libc.
109748         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109749         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109751 2004-01-20  Karl Berry  <karl@gnu.org>
109753         * config/config.guess: update from config.
109755         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109757 2004-01-20  Bruno Haible  <bruno@clisp.org>
109759         Safer stack allocation.
109760         * lib/setenv.c: Include allocsa.h.
109761         (alloca): Remove fallback definition.
109762         (freea): Remove macro.
109763         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109764         instead of freea.
109766 2004-01-20  Bruno Haible  <bruno@clisp.org>
109768         * m4/eealloc.m4: New file, from GNU gettext.
109770 2004-01-20  Bruno Haible  <bruno@clisp.org>
109772         * m4/allocsa.m4: New file, from GNU gettext.
109774 2004-01-20  Bruno Haible  <bruno@clisp.org>
109776         * lib/xallocsa.h: New file, from GNU gettext.
109777         * lib/xallocsa.c: New file, from GNU gettext.
109779 2004-01-20  Bruno Haible  <bruno@clisp.org>
109781         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109783 2004-01-20  Bruno Haible  <bruno@clisp.org>
109785         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109786         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109787         specially.
109789 2004-01-20  Bruno Haible  <bruno@clisp.org>
109791         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109792         patch.
109794 2004-01-20  Bruno Haible  <bruno@clisp.org>
109796         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109798 2004-01-20  Bruno Haible  <bruno@clisp.org>
109800         * lib/eealloc.h: New file.
109802 2004-01-20  Bruno Haible  <bruno@clisp.org>
109804         * lib/binary-io.h: Avoid warnings on Cygwin.
109806 2004-01-20  Bruno Haible  <bruno@clisp.org>
109808         * lib/allocsa.h: New file, from GNU gettext.
109809         * lib/allocsa.c: New file, from GNU gettext.
109811 2004-01-18  Karl Berry  <karl@gnu.org>
109813         * doc/gpl.texi, doc/lgpl.texi: new files.
109815 2004-01-18  Karl Berry  <karl@gnu.org>
109817         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109818         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109820 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109822         Merge from coreutils.
109824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109825         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109826         (gl_DEFAULT_POSIX2_VERSION): Move
109827         the documentation from 'configure' into 'config.hin',
109828         so that 'configure --help' isn't burdened by it and
109829         we don't have to worry about its formatting there.
109830         Reword the documentation so that it's more succinct
109831         and can be run together into a single paragraph.
109832         * m4/same.m4 (gl_SAME): Check for pathconf.
109834 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109836         Merge from coreutils.
109838         * lib/posixver.c: Include posixver.h.
109840         * lib/same.c: Include <stdbool.h>, <limits.h>.
109841         (_POSIX_NAME_MAX): Define if not defined.
109842         (MIN): New macro.
109843         (same_name): If file names are silently truncated, report
109844         that the file names are the same if they are the same after
109845         the silent truncation.
109847         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109848         conversion function.
109849         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109850         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109851         longer needed.
109853 2004-01-15  Jim Meyering  <jim@meyering.net>
109855         Merge from coreutils.
109857         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109858         if no library is required.
109859         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109860         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109861         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109862         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109863         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109864         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109865         value, $ac_cv_search_crypt, if it's "none required".
109866         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109867         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109868         not gl_FUNC_GETLOADAVG.
109869         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109870         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109872 2004-01-15  Jim Meyering  <jim@meyering.net>
109874         Merge from coreutils.
109876         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109877         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109878         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109880         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109881         optional configure-time default.
109883         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109885         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109887 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109889         Merge from coreutils.
109891         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109892         value, $ac_cv_search_nanosleep, if it's "none required".
109894 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109896         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109897         with like-named macro in fnmatch.c.
109898         (EXT): Use an internal constant instead.
109900         Merge fnmatch patches from glibc.
109901         * lib/fnmatch.c (mbsinit): Remove define.
109902         Add libc_hidden_ver (__fnmatch, fnmatch).
109903         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109904         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109906 2004-01-14  Karl Berry  <karl@gnu.org>
109908         * config/install-sh: update from automake.
109910 2004-01-13  Karl Berry  <karl@gnu.org>
109912         * config/install-sh: update from automake.
109914 2004-01-09  Karl Berry  <karl@gnu.org>
109916         * config/install-sh: update from automake.
109918 2004-01-05  Karl Berry  <karl@gnu.org>
109920         * config/config.{sub,guess}: update from config.
109922 2003-12-31  Karl Berry  <karl@gnu.org>
109924         * config/depcomp: update from automake.
109926 2003-12-14  Karl Berry  <karl@gnu.org>
109928         * lib/config.charset: update from gettext-runtime.
109930 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109932         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109933         Bug reported by Alfred M. Szmidt.
109935 2003-12-03  Bruno Haible  <bruno@clisp.org>
109937         * m4/gettext.m4: Upgrade from gettext-0.13.
109938         * m4/po.m4: Upgrade from gettext-0.13.
109939         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109940         * m4/intmax.m4: New file, from gettext-0.13.
109941         * m4/printf-posix.m4: New file, from gettext-0.13.
109943 2003-11-29  Karl Berry  <karl@gnu.org>
109945         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109947 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109948             Bruno Haible  <bruno@clisp.org>
109950         * lib/printf-parse.h: Don't include sys/types.h.
109951         (ARG_NONE): New macro.
109952         (char_directive): Change type of *arg_index fields to size_t.
109953         * lib/printf-parse.c: Don't include sys/types.h.
109954         (SSIZE_MAX): Remove macro.
109955         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109956         Remove unnecessary overflow check.
109957         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109958         fields.
109960 2003-11-25  Bruno Haible  <bruno@clisp.org>
109962         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109964 2003-11-25  Bruno Haible  <bruno@clisp.org>
109966         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109967         gt_TYPE_SSIZE_T.
109969 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109971         * modules/alloca: Remove dependency on xalloc.
109973 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109975         * lib/alloca.c: Remove dependency on xalloc module.
109976         (xalloc_die): Remove.
109977         (memory_full) [!defined emacs]: New macro.
109978         [!defined emacs]: Don't include xalloc.h.
109979         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109980         address arithmetic overflows.  Change datatypes a bit to avoid
109981         unnecessary casts.
109983 2003-11-22  Jim Meyering  <jim@meyering.net>
109985         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109986         s/size/size_t/.
109988 2003-11-21  Karl Berry  <karl@gnu.org>
109990         * config/config.{sub,guess}: update from config.
109992 2003-11-18  Karl Berry  <karl@gnu.org>
109994         * config/config.{sub,guess}: update from config.
109996         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109998 2003-11-17  Paul Eggert  <eggert@twinsun.com>
110000         * README: Mention that S+T cannot overflow if S is the size of
110001         an existing object and T is sufficiently small.
110003 2003-11-17  Jim Meyering  <jim@meyering.net>
110005         On systems without utime and without a utimes function capable of
110006         dealing with a NULL struct utimbuf* argument, this utime replacement
110007         could -- in unusual circumstances -- leak a file descriptor.
110008         * lib/utime.c: Include <unistd.h> and <errno.h>.
110009         (utime_null): Be sure to close `fd' and to preserve errno.
110010         Reported by Geoff Collyer via Arnold Robbins.
110012 2003-11-17  Bruno Haible  <bruno@clisp.org>
110014         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
110015         (Depends-on): Add xsize.
110017 2003-11-17  Bruno Haible  <bruno@clisp.org>
110019         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
110021 2003-11-17  Bruno Haible  <bruno@clisp.org>
110023         * lib/vasnprintf.c (alloca): Remove fallback definition.
110024         (freea): Remove definition.
110025         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
110026         Reported by Paul Eggert.
110028 2003-11-16  Paul Eggert  <eggert@twinsun.com>
110029             Bruno Haible  <bruno@clisp.org>
110031         Protect against address arithmetic overflow.
110032         * lib/printf-args.h: Include stddef.h.
110033         (arguments): Change type of field 'count' to size_t.
110034         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
110035         'unsigned int' where appropriate.
110036         * lib/printf-parse.h: Include sys/types.h.
110037         (char_directive): Change type of *arg_index fields to ssize_t.
110038         (char_directives): Change type of fields 'count', max_*_length to
110039         size_t.
110040         * lib/printf-parse.c: Include sys/types.h and xsize.h.
110041         (SSIZE_MAX): Define fallback value.
110042         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
110043         instead of 'int' where appropriate. Check a_allocated, d_allocated
110044         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
110045         * lib/vasnprintf.c: Include xsize.h.
110046         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
110047         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
110048         overflow. Avoid wraparound when converting a width or precision from
110049         decimal to binary.
110051 2003-11-16  Bruno Haible  <bruno@clisp.org>
110053         Update from GNU gettext.
110054         * lib/printf-parse.c: Generalize to it can be compiled for wide
110055         strings.
110056         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
110057         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
110058         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
110059         SNPRINTF): New macros.
110060         Don't include <alloca.h> if the file is used inside libintl.
110061         (local_wcslen): New function, for Solaris 2.5.1.
110062         (VASNPRINTF): Use it instead of wcslen.
110064 2003-11-16  Bruno Haible  <bruno@clisp.org>
110066         * lib/xsize.h (xmax): New function.
110067         (xsum, xsum3, xsum4): Declare as "pure" functions.
110069 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110071         * modules/xalloc (Files): Undo latest change, since xalloc.h
110072         no longer needs SIZE_MAX or PTRDIFF_MAX.
110074 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110076         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
110077         gl_PTRDIFF_MAX.
110079 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110081         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
110082         "return", to pacify some unknown compiler.  Problem reported
110083         by Joerg Schilling.
110085 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110087         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
110088         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
110089         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
110090         heuristic is just as accurate as far as we know, and it removes a
110091         dependency on size_max.m4 and ptrdiff_max.m4.
110093 2003-11-11  Bruno Haible  <bruno@clisp.org>
110095         * modules/xsize (Files): Add m4/size_max.m4.
110096         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
110098 2003-11-11  Bruno Haible  <bruno@clisp.org>
110100         * m4/size_max.m4: New file.
110101         * m4/ptrdiff_max.m4: New file.
110102         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
110103         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
110104         (gl_XALLOC): Invoke it.
110106 2003-11-11  Bruno Haible  <bruno@clisp.org>
110108         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
110109         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
110110         defined.
110112 2003-11-10  Paul Eggert  <eggert@twinsun.com>
110114         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
110115         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
110116         rejected some allocations of exactly SIZE_MAX - 2 bytes.
110117         From Bruno Haible.
110118         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
110119         not (size_t) -1, since it's defined here.
110121 2003-11-09  Karl Berry  <karl@gnu.org>
110123         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110125 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110127         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110128         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110129         Reject sizes of exactly SIZE_MAX bytes.
110130         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110131         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110133 2003-11-05  Bruno Haible  <bruno@clisp.org>
110135         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110136         SIZE_MAX defined in <limits.h> on Solaris.
110138 2003-11-04  Jim Meyering  <jim@meyering.net>
110140         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110141         variable names, rather than @VAR@.
110142         * modules/poll: Likewise.
110144 2003-11-04  Bruno Haible  <bruno@clisp.org>
110146         * modules/xsize: New file.
110147         * modules/linebreak: Depend on xsize.
110148         * MODULES.html.sh (func_all_modules): Add xsize.
110150 2003-11-04  Bruno Haible  <bruno@clisp.org>
110152         * m4/xsize.m4: New file.
110154 2003-11-04  Bruno Haible  <bruno@clisp.org>
110156         * lib/xsize.h: New file.
110157         * lib/linebreak.c: Include xsize.h.
110158         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110159         argument for overflow.
110160         Suggested by Paul Eggert.
110162 2003-11-03  Karl Berry  <karl@gnu.org>
110164         * config/config.{guess,sub}: update from config.
110166 2003-11-03  Jim Meyering  <jim@meyering.net>
110168         * modules/userspec (lib_SOURCES): Add userspec.h.
110169         (Include): Add "userspec.h".
110170         Improve description.
110172 2003-11-03  Jim Meyering  <jim@meyering.net>
110174         * lib/userspec.c: Include "userspec.h".
110175         * lib/userspec.h: New file.
110177 2003-11-03  Bruno Haible  <bruno@clisp.org>
110179         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110181 2003-11-03  Bruno Haible  <bruno@clisp.org>
110183         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110184         available, to avoid (extremely rare) race condition.
110185         Suggested by Paul Eggert.
110187 2003-11-02  Karl Berry  <karl@gnu.org>
110189         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110191 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110193         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110194         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110195         (read_filesystem_list): Set and use me_type_malloced.
110196         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110197         whatever the type happens to be), for brevity and consistency.
110198         Check for size calculation overflow on Alphas running OSF/1.
110200 2003-10-31  Jim Meyering  <jim@meyering.net>
110202         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110204         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110206 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110207             Bruno Haible  <bruno@clisp.org>
110209         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110210         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110212 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110214         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110215         netbsd*-gnu*.  Suggested by Robert Millan.
110217 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110219         * modules/group-member: Depend on stdbool.
110221 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110223         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110225 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110227         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110228         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110229         after the 'gnu' in these cases.  This fixes some bugs in the
110230         previous change, and is based on suggestions by Robert Millan.
110232 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110234         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110235         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110236         no longer needed.
110237         * lib/quotearg.c (quotearg_n_options): Use it.
110238         * lib/group-member.c: Include <stdbool.h>.
110239         (free_group_info): Arg is now const *; don't free arg.
110240         (get_group_info): Now returns bool and accepts struct group_info *,
110241         rather than returning a malloc'ed struct group_info *.
110242         All uses changed.  Check for overflow in internal size calculation.
110244         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110245         rather than xmalloc/xrealloc.
110246         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110247         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110248         conformance bug: the old code used a pointer after freeing the
110249         storage that it addressed.
110250         * lib/hash.c (hash_initialize): Simplify the code by using
110251         xalloc_oversized rather than doing it by hand.
110252         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110253         the buffer preserved.  Use free and xmalloc instead.
110254         * lib/quotearg.c (quotearg_n_options): Likewise.
110255         Use a simpler test for size overflow.  Don't use xalloc_oversized
110256         because unsigned int might be wider than size_t (!); this suggests
110257         that we should switch from unsigned int to size_t for slot numbers.
110259 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110261         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110262         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110263         NetBSD kernels.  Requested by Richard Stallman.
110265 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110267         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110268         to allocate the returned structure.  Do not allocate a subarray,
110269         as x2nrealloc will do that.
110270         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110271         instead of xnrealloc.
110272         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110274 2003-10-27  Bruno Haible  <bruno@clisp.org>
110276         * lib/stdbool_.h: Better support for BeOS.
110278 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110280         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110281         now uses inline.
110283 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110285         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110286         callers that want to do their own size-overflow checking.  Include
110287         <stdbool.h>, since xalloc_oversized returns bool.
110288         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110289         to use xalloc_oversized.
110291         Add two functions x2realloc, x2nrealloc, for programs that grow
110292         arrays dynamically by doubling their sizes.
110293         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110294         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110295         New functions.
110297         Port to C99 semantics for 'inline' of external functions.
110298         Bug reported by Bruno Haible.
110299         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110300         with the old contents of xnmalloc.
110301         (xnmalloc, xmalloc): Use it.
110302         (xnrealloc_inline): New static inline function,
110303         with the old contents of xnrealloc.
110304         (xnrealloc, xrealloc): Use it.
110306         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110307         that.
110309 2003-10-26  Karl Berry  <karl@gnu.org>
110311         * config/srclist.txt (COPYING.DOC): no longer available from
110312         /gd/gnuorg; don't know where the ultimate source is.
110314 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110316         Fix several address-calculation bugs in the hash modules,
110317         plus some minor code cleanup.
110319         * lib/hash.h: Include <stdbool.h>, for bool.
110320         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110321         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110322         hash_get_n_entries, hash_get_max_bucket_length,
110323         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110324         hash_rehash): Use size_t rather than unsigned.
110325         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110326         hash_get_n_buckets_used, hash_get_n_entries,
110327         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110328         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110329         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110330         Likewise.
110331         (SIZE_MAX): Define if not defined.
110332         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110333         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110334         hash_print):
110335         Use const * when possible.
110336         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110337         (check_tuning): Fix bug: if tuning parameters were very close to
110338         0 or 1, rounding errors could have caused subscript violations.
110339         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110340         (hash_initialize): Add 'fail:' label
110341         to free table and return NULL, and use it to simplify code.
110342         Use calloc rather than clearing the storage ourself.
110343         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110344         buffer size calculations.
110345         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110346         Include <stddef.h>, for size_t.
110347         * lib/hash-pjw.c (hash_pjw): Likewise.
110348         Switch to method described by Bruno Haible.
110349         Include <limits.h>, for CHAR_BIT.
110350         (SIZE_BITS): New macro.
110352 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110354         * m4/getline.m4 (AM_FUNC_GETLINE):
110355         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110356         hosts.  Problem reported by Derek Robert Price in
110357         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110358         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110359         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110361 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110363         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110364         ceiling the allocation at NMAX bytes rather than silently
110365         discarding input bytes before NMAX is reached.  This makes
110366         a difference only if NMAX exceeds SIZE_MAX / 2.
110368         * lib/obstack.c: Merge from glibc.
110369         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110370         Add libc_hidden_def (_obstack_newchunk).
110371         (_obstack_free) [! defined _LIBC]: Remove.
110372         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110373         a clone of the function body.
110374         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110375         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110377         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110378         glibc.
110379         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110380         arg to memcpy.
110382         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110383         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110384         Don't use lvalue casts, as GCC plans to remove support for them
110385         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110386         was also present in the non-GCC version, indicating that this
110387         code had always been buggy and had never been widely used.
110388         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110389         Use the fast variant of each macro, rather than copying the
110390         definiens of the fast variant; that way, we'll be more likely to
110391         catch future bugs in the fast variants.
110393 2003-10-20  Bruno Haible  <bruno@clisp.org>
110395         * modules/wait-process: New file.
110396         * MODULES.html.sh (func_all_modules): Add wait-process.
110398 2003-10-20  Bruno Haible  <bruno@clisp.org>
110400         * m4/wait-process.m4: New file.
110402 2003-10-20  Bruno Haible  <bruno@clisp.org>
110404         * lib/wait-process.h: New file, from GNU gettext.
110405         * lib/wait-process.c: New file, from GNU gettext.
110407 2003-10-19  Jim Meyering  <jim@meyering.net>
110409         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110410         HPUX 10.20.
110412 2003-10-18  Karl Berry  <karl@gnu.org>
110414         * config/config.guess: update from config.
110416 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110418         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110419         (getgroups): First arg is int, not size_t.
110420         Don't let 'free' mangle errno.
110422 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110424         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110426 2003-10-16  Karl Berry  <karl@gnu.org>
110428         * config/config.{guess,sub}: update from config.
110430 2003-10-16  Jim Meyering  <jim@meyering.net>
110432         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110433         memcpy.
110435 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110437         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110438         (SIZE_MAX): Remove.
110439         (new_exclude, add_exclude_file): Initial size no longer needs to
110440         be a power of 2.
110441         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110442         our own address arithmetic overflow checking.
110444         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110445         (fnmatch): Do not alloca more than 2000 wide characters;
110446         instead, use malloc for large buffers.
110447         Check for address arithmetic overflow, and return -1
110448         with errno set to ENOMEM in that case.
110449         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110450         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110451         instead, return -1.  Check for address arithmetic overflow.
110453 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110455         Handle invalid suffixes and overflow independently, so that
110456         callers can treat them independently as needed.  Fix some bugs in
110457         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110458         suffix for a human-readable blocksize.  The major caller-visible
110459         change is the addition of a new
110460         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110461         that both overflow and suffix chars were found.
110463         * lib/human.c (humblock): Don't check separately for invalid suffix
110464         char; that is xstrtoumax's job (now that its bug is fixed).
110465         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110466         INTMAX_MAX]: New macros.
110467         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110468         TYPE_MAXIMUM): New macros.
110469         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110470         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110471         if overflow occurs, as it's what __strtol does and it's more useful
110472         in practice.
110473         (__xstrtol): If __strtol reports some error other than ERANGE,
110474         reflect it to the caller as LONGINT_INVALID.  If it reports
110475         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110476         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110477         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110478         value.
110479         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110480         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110481         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110482         [defined UINTMAX_MAX]: New macros.
110484 2003-10-14  Bruno Haible  <bruno@clisp.org>
110486         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110488 2003-10-14  Bruno Haible  <bruno@clisp.org>
110490         * m4/sig_atomic_t: New file, from GNU gettext.
110491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110493 2003-10-14  Bruno Haible  <bruno@clisp.org>
110495         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110496         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110497         Also use volatile where needed.
110499 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110501         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110502         Change maintainer from Bruno Haible to 'all'.
110504 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110506         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110508 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110510         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110511         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110512         and define in terms of the other primitives.
110513         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110514         (SIZE_MAX): Define if not already defined.
110515         (array_size_overflow): New function.
110516         (xalloc_die): Abort instead of exiting if 'error' returns.
110517         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110518         (xmalloc, xrealloc): Use them.
110519         (xcalloc): Check for address arithmetic overflow.
110520         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110521         a bit faster than strcpy.
110523 2003-10-10  Simon Josefsson  <jas@extundo.com>
110525         * modules/argp (Depends-on): Add restrict and strcase.
110527 2003-10-10  Simon Josefsson  <jas@extundo.com>
110529         * m4/argp.m4: Add AC_C_INLINE.
110531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110533         Merge getpass from libc, plus a few fixes.
110535         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110536         Include <stdbool.h>.
110537         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110538         __fsetlocking to empty.
110539         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110540         do include <bits/libc-lock.h>.
110541         Do not include <fcntl.h>; not needed.
110542         [_LIBC]: Include <wchar.h>.
110543         (NOTCANCEL_MODE): New macro.
110544         (flockfile, funlockfile) [_LIBC]: New macros.
110545         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110546         [!_LIBC]: New macros.
110547         (call_fclose): New function.
110548         (getpass): Use it.  Save tty stream separately; this simplifies the
110549         code and makes it more reliable if stdin happens to equal stdout.
110550         Invoke __fsetlocking on tty.
110551         Handle thread cancellation if needed.
110552         Namespace cleanup (use __tcgetattr, __getline).
110553         Use bool for Booleans.
110554         [USE_IN_LIBIO]: Handle wide streams.
110555         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110556         stream might go where.
110558         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110559         doesn't have to include <stdio.h> before us.
110560         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110561         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110562         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110563         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110564         if not declared, so that we can use getpass.c code from libc without
110565         rewriting it.
110566         (flockfile, ftrylockfile, funlockfile): New macros.
110568 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110570         * modules/getpass: Depend on stdbool.
110572 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110574         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110576 2003-10-07  Karl Berry  <karl@gnu.org>
110578         * config/config.{guess,sub}: update from config.
110580 2003-10-06  Jim Meyering  <jim@meyering.net>
110581             Bruno Haible  <bruno@clisp.org>
110583         This lets translators provide better translations for the
110584         "Written by ..." part of --version output.
110585         * lib/version-etc.h: Include stdarg.h.
110586         (version_etc_copyright): Declare as readonly.
110587         (version_etc): Make this function variadic with a NULL-terminated list
110588         of author name strings.
110589         (version_etc_va): New declaration.
110590         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110591         (version_etc_copyright): Declare as readonly.
110592         (version_etc_va): New function. Provide a different translatable string
110593         for each possible number of authors < 10. Abbreviate when there are 10
110594         authors or more.
110595         (version_etc): Make this function variadic. Call version_etc_va.
110596         Suggestion from Gary V. Vaughan.
110598         * lib/long-options.h (parse_long_options): Change prototype: the
110599         authors string is moved to the end and becomes variadic.
110600         * lib/long-options.c: Include stdarg.h.
110601         (parse_long_options): Make this function variadic, too.
110602         Call version_etc_va, not version_etc.
110604 2003-10-06  Bruno Haible  <bruno@clisp.org>
110606         * modules/version-etc-2: Remove file.
110607         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110609 2003-10-06  Bruno Haible  <bruno@clisp.org>
110611         * modules/fatal-signal: New file.
110612         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110614 2003-10-06  Bruno Haible  <bruno@clisp.org>
110616         * m4/fatal-signal.m4: New file.
110617         * m4/signalblocking.m4: New file, from GNU gettext.
110619 2003-10-06  Bruno Haible  <bruno@clisp.org>
110621         * lib/version-etc-2.h: Remove file.
110622         * lib/version-etc-2.c: Remove file.
110624 2003-10-06  Bruno Haible  <bruno@clisp.org>
110626         * lib/fatal-signal.h: New file, from GNU gettext.
110627         * lib/fatal-signal.c: New file, from GNU gettext.
110629 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110631         * README: Rework advice for preventing empty .o files.
110632         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110633         not <sys/types.h>.
110635 2003-10-04  Karl Berry  <karl@gnu.org>
110637         * lib/argp*: update from libc.
110639 2003-10-04  Karl Berry  <karl@gnu.org>
110641         * config/config.{guess,sub}: update from config.
110643 2003-10-02  Bruno Haible  <bruno@clisp.org>
110645         * modules/lchown (Include): Add lchown.h.
110646         * modules/time_r (Include): Use "..." syntax.
110647         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110649 2003-10-01  Simon Josefsson  <jas@extundo.com>
110651         * MODULES.html.sh (func_all_modules): Move gethostname from section
110652         'based on' to section 'lacking' POSIX:2001.
110654 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110656         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110657         to output mode on the same stream.
110659 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110661         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110662         Fix arg typo in previous patch.
110664 2003-09-28  Jim Meyering  <jim@meyering.net>
110666         * lib/error.c: Correct cpp indentation.
110668 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110670         * modules/free: New file.
110672 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110674         * m4/free.m4: New file.
110676 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110678         * lib/minmax.h (MIN, MAX)
110679         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110680         Omit the special code that used __typeof__, since we worry that
110681         it could be more trouble than it's worth.  See:
110682         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110683         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110685         * lib/free.c: New file.
110687 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110689         Trivial fixes to Makefile.am parts of module listings.
110690         * modules/strstr: Append strstr.h to lib_SOURCES.
110691         * modules/strcase: Likewise, for strcase.h.
110693 2003-09-27  Karl Berry  <karl@gnu.org>
110695         * config/mkinstalldirs: update from automake.
110697 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110699         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110700         (error_tail): Do not loop, reallocating temporary buffer, since
110701         the output cannot contain more wide characters than the input
110702         contains bytes, the size must be big enough already.  This avoids
110703         one potential size overflow calculation.  Check for size overflow
110704         when calculating temporary buffer size.  Free temporary buffer
110705         when done, if it was allocated with malloc; this plugs a memory
110706         leak.  Remove casts from void * to pointers, that are no longer
110707         needed now that we're assuming C89 or better.
110709         Merge error changes from glibc.
110711         * lib/error.c, error.h: Update copyright notice header to match glibc.
110712         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110713         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110714         Disable cancellation while printing error.
110715         * lib/error.h: Prepend __ to parameter names.
110717 2003-09-26  Jim Meyering  <jim@meyering.net>
110719         * lib/error.c (error_tail): Move some declarations
110720         into inner scope where the local variables are used.
110722 2003-09-26  Bruno Haible  <bruno@clisp.org>
110724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110725         stpncpy().
110726         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110728 2003-09-26  Bruno Haible  <bruno@clisp.org>
110730         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110731         (stpncpy): Define as alias for gnu_stpncpy.
110732         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110734 2003-09-25  Simon Josefsson  <jas@extundo.com>
110736         * lib/xgetdomainname.h: New file.
110737         * lib/xgetdomainname.c: New file.
110739 2003-09-25  Simon Josefsson  <jas@extundo.com>
110740             Bruno Haible  <bruno@clisp.org>
110742         * modules/getdomainname: New file.
110743         * modules/xgetdomainname: New file.
110744         * MODULES.html.sh (func_all_modules): Add getdomainname,
110745         xgetdomainname.
110747 2003-09-25  Simon Josefsson  <jas@extundo.com>
110748             Bruno Haible  <bruno@clisp.org>
110750         * m4/getdomainname.m4: New file.
110752 2003-09-25  Simon Josefsson  <jas@extundo.com>
110753             Bruno Haible  <bruno@clisp.org>
110755         * lib/getdomainname.h: New file.
110756         * lib/getdomainname.c: New file.
110758 2003-09-25  Karl Berry  <karl@gnu.org>
110760         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110762 2003-09-25  Karl Berry  <karl@gnu.org>
110764         * config/install-sh: update from automake.
110766 2003-09-25  Bruno Haible  <bruno@clisp.org>
110768         * modules/version-etc-2: New file, from modules/version-etc with
110769         modifications.
110770         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110772 2003-09-25  Bruno Haible  <bruno@clisp.org>
110774         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110775         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110777 2003-09-24  Simon Josefsson  <jas@extundo.com>
110779         * modules/xgethostname: Add xgethostname.h.
110781 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110783         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110784         the buffer associated with the argument.  Bug reported by
110785         Simon Josefsson.
110787 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110789         * README: Document assumptions that 'int' is at least 32 bits
110790         wide, that integer arithmetic is 2's complement without overflow,
110791         that there are no holes in integer values, that adding sizes of
110792         two nonoverlapping objects can't overflow, and that all-bits-zero
110793         yields scalar zero.  Fix spelling and capitalization typos.
110795 2003-09-19  Karl Berry  <karl@gnu.org>
110797         * lib/argp.h: update from libc.
110799 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110802         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110803         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110805 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110807         * gnulib-tool: Use "test -h", not "test -L", for portability
110808         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110809         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110810         (sed_extract_prog): Issue s commands one-by-one, rather than
110811         using \| in one s command.
110813 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110815         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110816         input error, instead of returning NULL the next time we are called
110817         (and therefore losing track of errno).
110819 2003-09-16  Bruno Haible  <bruno@clisp.org>
110821         * gnulib-tool (func_create_testdir): Warn about duplicated
110822         dependencies.
110824 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110826         * modules/argmatch, modules/fatal, modules/obstack,
110827         modules/xalloc, modules/xgethostname: Sort dependencies by
110828         importance, not alphabetically.
110830 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110832         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110833         fails, so that the caller gets the proper errno.
110835         * lib/readutmp.c (read_utmp): Likewise.
110836         Check for fstat error.  Close stream and free storage
110837         when failing.
110839 2003-09-14  Karl Berry  <karl@gnu.org>
110841         * config/srclist.txt (strdup.c): disable for c89 changes.
110843 2003-09-14  Jim Meyering  <jim@meyering.net>
110845         * lib/getloadavg.c: Correct cpp indentation.
110846         * lib/strdup.c: Likewise.
110847         * lib/vasnprintf.c: Likewise.
110849 2003-09-14  Bruno Haible  <bruno@clisp.org>
110851         * modules/fwriteerror: New file.
110852         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110854 2003-09-14  Bruno Haible  <bruno@clisp.org>
110856         * lib/fwriteerror.h: New file.
110857         * lib/fwriteerror.c: New file.
110859 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110861         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110862         modules/xgethostname, modules/xalloc: Depend on exit.
110864 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110866         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110869         and AC_MINIX, too, so that their extensions are available.
110871         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110872         This macro has been superseded by gl_BACKUPFILE.
110874         More patches to assume C89 or better.
110876         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110878         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110879         unconditionally.
110880         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110881         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110882         Include <string.h>, <stdlib.h> unconditionally.
110883         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110884         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110885         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110886         headers or for string.h.
110887         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110888         or strtoul.
110890         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110891         headers.
110892         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110893         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110894         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110895         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110896         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110897         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110898         memcpy, memset.
110899         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110900         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110901         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110902         strtol.
110903         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110904         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110905         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110906         strtoul.
110908 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110910         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110911         * lib/obstack.c [!defined _LIBC]: Likewise.
110912         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110913         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110914         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110916         More changes to assume C89 or better.
110918         * lib/error.c (error_tail): Assume vprintf.
110920         * lib/argmatch.c (getenv): Remove decl.
110921         * lib/progreloc.c (get_full_program_name): Define via prototype.
110922         * lib/setenv.c (clearenv): Likewise.
110923         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110924         needed.
110925         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110926         (malloc, memcpy): Remove decls.
110927         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110928         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110929         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110930         (memcpy): Remove macro.
110931         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110932         (__P): Remove.  All uses removed.
110933         (PTR): Remove.  All uses changed to void *.
110934         (CHAR_BIT, NULL): Remove.
110935         (spaces, zeros, memset_space, memset_zero)
110936         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110937         Remove.
110938         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110939         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110940         Define with prototype.
110941         Remove now-unnecessary prototype decl.
110942         (extra_args_spec): Assume ANSI C.  All uses changed.
110943         (extra_args_spec_iso): Remove.
110944         (my_strftime, emacs_strftimeu): Define via prototype.
110945         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110946         unconditionally.
110947         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110948         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110949         (strtoul, strtol): Remove decls.
110950         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110951         LONG_MAX): Remove.
110952         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110953         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110954         (LOCALE_PARAM_PROTO): New macro.
110955         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110956         (INTERNAL (strtol), strtol): Define with a prototype.
110957         (PARAMS): Remove.  All uses removed.
110958         * lib/tempname.c: Include <string.h> unconditionally.
110959         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110960         * lib/xgethostname.c (main): Define with a prototype.
110961         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110962         Include <stdlib.h> unconditionally.
110963         (calloc, malloc, realloc, free): Remove decls.
110964         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110965         Include <stdlib.h> unconditionally.  Sort include file names.
110966         (strtod): Remove.
110967         (xstrtod): Define with a prototype.
110968         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110969         (strtol, strtoul): Remove decls.
110971 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110973         More patches to assume C89 or better.
110974         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110975         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110976         string.h, memchr, STDC_HEADERS.
110978 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110980         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110981         Include <stdlib.h>, <string.h> unconditionally.
110982         Remove now-unnecessary cast to char *.
110983         * lib/strnlen.c: Include <string.h> unconditionally.
110984         * lib/yesno.c (yesno): Define with a prototype.
110986 2003-09-11  Bruno Haible  <bruno@clisp.org>
110988         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110990 2003-09-10  Jim Meyering  <jim@meyering.net>
110992         * lib/error.c: Correct indentation of cpp directives.
110994 2003-09-10  Bruno Haible  <bruno@clisp.org>
110996         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110997         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110998         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110999         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
111000         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
111001         <stdlib.h> and <string.h> checks.
111002         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
111003         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
111005 2003-09-10  Bruno Haible  <bruno@clisp.org>
111007         * lib/strcspn.c: Include <string.h> unconditionally.
111008         * lib/strpbrk.c: Include <string.h> unconditionally.
111009         * lib/strstr.c: Include <string.h> unconditionally.
111010         * lib/unicodeio.c: Include <string.h> unconditionally.
111011         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
111012         * lib/unsetenv.c: Likewise.
111013         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
111014         * lib/yesno.c: Include <stdlib.h> unconditionally.
111015         (rpmatch): Add prototype.
111017 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111019         More patches to assume C89 or better.
111020         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
111021         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
111022         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
111023         or for string.h.
111024         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
111025         stdlib.h.
111026         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
111027         C headers.
111028         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
111029         string.h.
111030         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
111031         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
111032         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
111033         or for string.h.
111034         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
111035         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
111036         C headers.
111037         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
111038         memcpy.
111039         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
111040         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
111041         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
111042         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
111043         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
111044         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
111045         string.h, free.
111046         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
111047         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
111048         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
111049         C headers, or for string.h.
111050         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
111051         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
111052         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
111053         headers, memory.h, stdlib.h, string.h, strings.h.
111054         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
111055         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
111056         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
111057         strchr.
111058         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
111059         headers, memory.h, string.h.
111060         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
111061         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
111062         free.
111063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
111064         headers.
111065         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
111066         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
111067         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
111068         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
111069         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
111071 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111073         More K&R removal.
111075         * lib/acosl.c (main): Use a prototype.
111076         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
111077         tanl.c: Likewise.
111079         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
111081         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
111082         (getopt, etopt_long, getopt_long_only, _getopt_internal)
111083         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
111084         with a prototype.
111085         * lib/getopt.c (const): Remove macro.
111086         Include <string.h> unconditionally.
111087         (my_index): Remove; all uses changed to strchr.
111088         (strlen): Remove decl.
111089         (exchange): Remove forward decl; no longer needed.
111090         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
111091         Define with prototype.
111092         * lib/getopt1.c (const): Remove macro.
111093         (getopt_long, getopt_long_only, main): Define with prototype.
111095         * lib/getugroups.c: Include <string.h> unconditionally.
111097         * lib/getusershell.c: Include <stdlib.h> unconditionally.
111098         (getusershell, setusershell, endusershell, readname, main):
111099         Define with prototypes.
111101         * lib/group-member.c: Include group-member.h first.
111102         Include <stdlib.h> unconditionally.
111104         * lib/hard-locale.c: Include hard-locale.h first.
111105         Include <stdlib.h>, <string.h> unconditionally.
111107         * lib/hash.c (free, malloc): Remove decls.
111108         Include <stdlib.h> unconditionally.
111110         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
111111         (getenv): Do not declare.
111113         * lib/idcache.c: Include <string.h> unconditionally.
111115         * lib/long-options.c: Include long-options.h first, to test interface.
111116         Include <stdlib.h> unconditionally.
111118         * lib/makepath.c: Include makepath.h first, to test interface.
111119         Include <stdlib.h> and <string.h> unconditionally.
111121         * lib/linebuffer.c: Include <stdlib.h>.
111122         (free): Remove decl.
111124         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111125         stddef.h. rpl_malloc returns void *, not char *.
111126         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111127         prototype.
111129         * lib/md5.h: Include <limits.h> unconditionally.
111130         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111131         (__P): Remove; all uses removed.
111132         * lib/md5.c: Include "md5.h" first.
111133         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111134         md5_buffer, md5_process_bytes, md5_process_block):
111135         Define with prototypes.
111136         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111137         * lib/sha.c: Include "sha.h" first.
111138         Include <stdlib.h>, <string.h> unconditionally.
111140         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111141         * lib/memcmp.c (__ptr_t): Likewise.
111142         * lib/memrchr.c (__ptr_t): Likewise.
111143         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111144         Include <string.h> unconditionally.
111145         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111146         * lib/memchr.c: Include <stdlib.h> unconditionally.
111147         * lib/memchr.c (LONG_MAX): Remove.
111148         * lib/memrchr.c (LONG_MAX): Likewise.
111149         * lib/memchr.c (__memchr): Define via a prototype.
111150         * lib/memrchr.c (__memrchr): Likewise.
111151         * lib/memcmp.c (__P): Remove, and remove all uses.
111152         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111153         Remove forward decls; no longer needed.
111154         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111155         Use types required by C89 in prototype.
111157         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111158         * lib/savedir.c: Likewise.
111159         * lib/mkdir.c (free): Remove decl.
111160         * lib/rmdir.c (rmdir): Define with a prototype.
111161         * lib/savedir.c: Include savedir.h first, to test interface.
111163         * lib/mktime.c (STDC_HEADERS): Remove.
111164         Include <stdlib.h>, <string.h> unconditionally.
111166         * lib/modechange.c: Include <stdlib.h> unconditionally.
111167         (malloc): Remove decl.
111169         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111170         (free): Remove decl.
111172         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111173         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111174         (This type really should be intptr_t, but that's a C99ism.)
111175         (_obstack_memcpy): Remove: all uses changed to memcpy.
111176         Include <string.h> unconditionally.
111177         (struct obstack): Assume __STDC__ for types of members
111178         chunkfun, freefun, extra_arg.
111179         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111180         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111181         obstack_begin, obstack_specify_allocation,
111182         obstack_specify_allocation_with_arg, obstack_chunkfun,
111183         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111184         Remove unprototyped decls and the macros that use them.
111185         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111186         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111187         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111188         (defined __STDC__ && __STDC__)]:
111189         Remove nonprototyped code.
111190         Include <stdlib.h> unconditionally.
111191         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111192         _obstack_allocated_p, _obstack_free, obstack_free,
111193         _obstack_memory_used, print_and_abort):
111194         Define using prototypes.
111195         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111196         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111197         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111198         obstack_next_free, obstack_object_size, obstack_room) [0]:
111199         Remove unused, unprototyped code.
111201         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111203         * lib/physmem.c (physmem_total, physmem_available, main): Define
111204         with prototypes.
111206         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111207         (main): Define with a prototype.
111209         * lib/posixver.c (getenv): Remove decl.
111211         * lib/putenv.c (malloc): Returns void *, not char *.
111212         Include <string.h> unconditionally.
111213         (strchr, memcpy, NULL): Do not define.
111215         * lib/readtokens.c: Include readtokens.h first, to test interface.
111216         Include <stdlib.h>, <string.h> unconditionally.
111217         (init_tokenbuffer): Define with a prototype.
111219         * lib/regex.c (PARAMS): Remove.  All uses removed.
111220         All uses of _RE_ARGS removed, too.
111221         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111222         unconditionally.
111223         (bzero): Assume memset exists.
111224         (memcmp, memcpy, NULL): Remove.
111225         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111226         char, or assignments to local vars of type signed char.
111227         (init_syntax_once, PREFIX(extract_number_and_incr),
111228         PREFIX(print_partial_compiled_pattern),
111229         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111230         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111231         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111232         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111233         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111234         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111235         wcs_compile_range, byte_compile_range, truncate_wchar,
111236         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111237         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111238         count_mbs_length, wcs_re_match_2_internal,
111239         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111240         PREFIX(alt_match_null_string_p),
111241         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111242         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111243         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111244         now-unnecessary declaration, if any.
111245         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111246         regcomp, regexec):
111247         Remove now-unnecessary casts among pointer types.
111248         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111250         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111251         (free): Remove decl.
111253         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111255         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111256         (free): Remove decl.
111258         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111259         * lib/xgetcwd.c: Likewise.
111261         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111262         (free): Remove decl.
111264         * lib/strchrnul.c (strchrnul): Define with a prototype.
111265         Fix bug: c_in was not converted to char before searching.
111267         The following changes are not K&R related:
111269         * lib/group-member.h: Include <sys/types.h>, so that this file is
111270         self-contained.
111271         * lib/makepath.h: Likewise.
111273         * lib/getusershell.c (readname, default_index, line_size, readname):
111274         Use size_t, not int, for sizes.
111275         (readname): If the size overflows, report an error instead of
111276         looping forever.
111278 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111280         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111281         libc.
111283 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111285         * README: New section: portability guidelines.
111287 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111289         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111290         C89 spec.
111292 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111294         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111296 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111298         Assume C89 or better; remove K&R cruft.
111299         A few of these changes were first proposed by Derek Robert Price
111300         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111302         * lib/addext.c: Include <string.h> unconditionally.
111303         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111304         Don't declare getenv or malloc.
111306         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111307         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111308         (NULL): Remove.
111309         (find_stack_direction, alloca): Use prototypes.
111311         * lib/atexit.c (atexit): Define using a prototype.
111313         * lib/basename.c, dirname.c, stripslash.c:
111314         Include <string.h> unconditionally.
111316         * lib/bcopy.c: Include <stddef.h>.
111317         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111319         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111321         * lib/error.h (error, error_at_line, error_print_progname)
111322         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111323         * lib/error.c: Include error.h first, to check interface.
111324         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111325         (VA_START): Remove; all uses changeed to va_start.
111326         (exit, strerror): Remove decls.
111327         (error_print_progname): Prototype uncondionally.
111328         Don't include <errno.h>; no longer needed.
111329         (private_strerror): Remove.
111330         (error_tail): Always define.
111331         (error, error_at_line): Assume C89 or better; always use prototypes.
111332         * lib/fatal.c: Include "fatal.h" first, to test interface.
111333         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111334         (VA_START): Remove; all uses changed to va_start.
111335         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111336         this case.
111337         (exit): Remove decl.
111338         (fatal): Prototype unconditionally.  Assume va_start works.
111339         Abort at end, to pacify gcc.
111341         * lib/euidaccess.c (main): Define with a prototype.
111343         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111345         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111347         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111348         prototypes.
111349         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111350         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111351         (getenv): Remove decl.
111352         (fnmatch): Define using a prototype.
111353         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111354         (FCT): Define using a prototype.
111356         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111358         * lib/gethostname.c: Include <stddef.h>.
111359         (gethostname): Define with prototype.  Length is size_t, not int.
111361 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111363         Assume C89 or better; remove K&R cruft.
111364         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111365         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111366         string.h, getenv, malloc.
111367         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111368         headers.
111369         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111370         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111371         do not check for strerror.
111372         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111373         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111374         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111375         do not check for doprnt or vprintf.
111376         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111377         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111379 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111381         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111382         getversion.c should have been removed then, but was accidentally
111383         preserved.
111385         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111386         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111388 2003-09-08  Karl Berry  <karl@gnu.org>
111390         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111391                 config, forget about prep.
111393         * config/depcomp, missing: update from automake.
111395 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111397         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111398         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111400 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111402         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111403         copy_tm_result.  Bug reported by Simon Josefsson in
111404         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111408         * m4/time_r.m4: New file.
111409         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111410         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111411         is. Check for timegm declaration.
111412         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111413         Do not check for gmtime_r.
111414         Replace mktime if __mktime_internal does not exist and if mktime
111415         hasn't been replaced already.
111417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111419         * lib/time_r.c, lib/time_r.h: New files.
111421         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111422         __localtime_r.
111423         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111424         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111426         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111427         __gmtime_r.
111428         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111429         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111430         Include <time_r.h>.
111432         * lib/timegm.c: Switch to glibc implementation, with the following
111433         changes:
111434         [defined HAVE_CONFIG_H]: Include <config.h>.
111435         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111436         (__mktime_internal) [!defined _LIBC]: New decl.
111437         (__gmtime_r) [!defined _LIBC]: New macro and function.
111438         (timegm): Use a prototype, since gnulib assumes C89.
111439         Do not bother declaring tmp to be const, as it's not really usefu.
111440         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111441         (timegm): Declare only if HAVE_DECL_TIMEGM.
111443 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111445         * MODULES.html.sh (func_all_modules): Add time_r.
111446         * modules/time_r: New file.
111447         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111448         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111450 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111452         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111453         Bug reported by Lute Kamstra in
111454         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111456         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111457         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111458         course with correspondingly smaller numbers for tomorrow and
111459         yesterday.  From Tadayoshi Funaba.  Originally installed into
111460         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111461         coreutils merge?).
111463 2003-08-31  Simon Josefsson  <jas@extundo.com>
111465         * modules/timegm: New file.
111466         * MODULES.html.sh (func_all_modules): Add timegm.
111468 2003-08-31  Simon Josefsson  <jas@extundo.com>
111470         * m4/timegm.m4: New file.
111472 2003-08-31  Simon Josefsson  <jas@extundo.com>
111474         * lib/timegm.h: New file.
111475         * lib/timegm.c: New file.  Based on
111476         wget-1.8.2/src/http.c:mktime_from_utc.
111478 2003-08-31  Karl Berry  <karl@gnu.org>
111480         * lib/argp.h: update from libc.
111482 2003-08-28  Bruno Haible  <bruno@clisp.org>
111484         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111485         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111486         followed by '#define fnmatch fnmatch_posix' gives an error.
111488 2003-08-28  Bruno Haible  <bruno@clisp.org>
111490         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111491         warning on QNX, which defines O_BINARY to 000000.
111493 2003-08-27  Jim Meyering  <jim@meyering.net>
111495         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111496         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111497         would fail after 32.  Reported by Danny Levinson.  Details here:
111498         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111500 2003-08-24  Bruno Haible  <bruno@clisp.org>
111502         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111503         MSVC7 <stdio.h> is included later.
111505 2003-08-22  Simon Josefsson  <jas@extundo.com>
111507         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111509 2003-08-20  Karl Berry  <karl@gnu.org>
111511         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111513 2003-08-20  Bruno Haible  <bruno@clisp.org>
111515         * modules/progname: New file.
111516         * MODULES.html.sh (func_all_modules): Add progname.
111518 2003-08-20  Bruno Haible  <bruno@clisp.org>
111520         * lib/progname.h: New file, from GNU gettext.
111521         * lib/progname.c: New file, from GNU gettext.
111522         * lib/progreloc.c: New file, from GNU gettext.
111524 2003-08-19  Jim Meyering  <jim@meyering.net>
111526         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111527         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111529 2003-08-19  Bruno Haible  <bruno@clisp.org>
111531         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111532         more.
111534 2003-08-19  Bruno Haible  <bruno@clisp.org>
111536         * lib/xstrdup.c: Assume <string.h> exists.
111538 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111540         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111541         in makefile rules.
111543 2003-08-18  Jim Meyering  <jim@meyering.net>
111545         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111546         * m4/lib-ld.m4: Likewise.
111548 2003-08-18  Jim Meyering  <jim@meyering.net>
111550         * lib/setenv.h: Indent nested cpp directive.
111551         * lib/vasnprintf.c: Remove trailing blanks.
111553 2003-08-17  Simon Josefsson  <jas@extundo.com>
111555         * modules/xstrndup: New file.
111556         * MODULES.html.sh (func_all_modules): Add xstrndup.
111558 2003-08-17  Simon Josefsson  <jas@extundo.com>
111560         * modules/argp: Fix autoconf macro name. Add more dependencies.
111562 2003-08-17  Simon Josefsson  <jas@extundo.com>
111564         * m4/xstrndup.m4: New file.
111566 2003-08-17  Simon Josefsson  <jas@extundo.com>
111568         * m4/argp.m4: New file.
111570 2003-08-17  Simon Josefsson  <jas@extundo.com>
111571             Bruno Haible  <bruno@clisp.org>
111573         * lib/xstrndup.h: New file.
111574         * lib/xstrndup.c: New file.
111576 2003-08-17  Bruno Haible  <bruno@clisp.org>
111578         * modules/strndup (Files, Include): Add lib/strndup.h.
111580 2003-08-17  Bruno Haible  <bruno@clisp.org>
111582         * modules/euidaccess (Files): Add lib/euidaccess.h.
111584 2003-08-17  Bruno Haible  <bruno@clisp.org>
111586         * lib/strndup.h: New file.
111588 2003-08-17  Bruno Haible  <bruno@clisp.org>
111590         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111591         like AC_GNU_SOURCE.
111592         * modules/extensions (configure.ac): Comment out the invocation of
111593         gl_USE_SYSTEM_EXTENSIONS.
111595 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111597         Merges from coreutils, etc.
111598         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111599         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111600         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111601         fixing a typo.
111602         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111603         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111605 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111607         Document merge from coreutils.
111608         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111609         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111610         * modules/utime: Add m4/utimes-null.m4.
111612 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111614         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111615         space, undoing this 2003-08-12 change:
111616         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111620         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111621         strtoul.c from libc, undoing this 2003-08-12 change:
111622         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111624 2003-08-16  Jim Meyering  <jim@meyering.net>
111626         Merges from coreutils.
111627         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111628         prefix.  Adjust cache variables similarly.  Create 500 rather than
111629         just 300 files, to exercise bug on Darwin6.5, too.
111630         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111631         $missing_dir.
111632         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111633         AM_SYS_POSIX_TERMIOS.
111634         Reported by mkc@mathdogs.com.
111635         Also change use of $am_cv_sys_posix_termios
111636         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111637         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111638         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111639         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111640         in /proc/mounts until it finds one with matching device number.  This
111641         is unnecessary when the FILE argument *is* a mount point.  No stat call
111642         is necessary in that case.  So, disable the statvfs-testing code on
111643         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111644         as RedHat bug# 84846.
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>
111653         Merge from coreutils.
111654         * lib/xstrtoimax.c: #else #if -> #elif.
111655         * lib/xstrtoumax.c: Likewise.
111657 2003-08-16  Jim Meyering  <jim@meyering.net>
111659         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111660         * m4/utimes.m4: Removed.
111661         * m4/utimes-null.m4: Renamed from utimes.m4.
111663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111664         to 1MB, so as not to render systems with no stack size limit (e.g.,
111665         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111666         Include <unistd.h>.  On some systems,
111667         it is required for the definition of _SC_PAGESIZE.
111669 2003-08-16  Jim Meyering  <jim@meyering.net>
111670         and Paul Eggert  <eggert@cs.ucla.edu>
111672         Merges from coreutils, etc.
111674         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111675         using the latest version from cvs.  This avoids problems with #line
111676         directives using a vendor (Sun) compiler.
111677         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111678         Don't set GETGROUPS_LIB here; now it's
111679         done via getgroups.m4's wrapper function.
111680         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111681         rather than just in sh-util/configure.in, so that the
111682         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111683         same.
111684         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111685         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111686         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111687         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111688         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111689         Remove code that is now done by the newly-required macros.
111690         Append $(EXEEXT) to DF_PROG.
111691         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111692         Do not invoke or require the following here,
111693         since prereq.m4 or some gnulib .m4 now does this for us:
111694         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111695         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111696         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111697         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111698         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111699         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111700         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111701         AC_FUNC_OBSTACK.
111702         Do not replace the following functions, as this is now the job
111703         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111704         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111705         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111706         atexit getpass, strdup, getpagesize.
111707         Replace 'raise'.
111708         Do not check for the following functions, as this is now the job
111709         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111710         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111711         setregid.
111712         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111713         Check for sys/sysctl.h.
111714         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111715         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111716         of checking for ssize_t ourselves.
111718         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111719         Require every macro that gnulib/modules/* suggests for us.
111720         (jm_PREREQ_ADDEXT): New macro.
111721         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111722         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111724         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111725         (gl_PHYSMEM): Use it.
111726         Also check for `table' function.
111727         Check for new headers and functions.
111728         Add check for sys/sysmp.h.
111729         With suggestions from Kaveh Ghazi.
111730         Ignore headers that are present but cannot be compiled.  This
111731         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111732         C 5.4.
111734 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111736         Document merge from coreutils.
111737         * modules/userspec: Depend on posixver.
111738         * modules/strftime: Depend on tzset.
111740 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111742         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111743         rather than tab, after '#' in shell-script copyright notices.
111744         Suggested by Bruno Haible.
111746 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111748         * config/srclist-update: Use three spaces, rather than tab, after '#'
111749         in shell-script copyright notices.  Suggested by Bruno Haible.
111750         Remove unnecessary parenthesization in regular expression.
111752 2003-08-15  Jim Meyering  <jim@meyering.net>
111754         Merge from coreutils.
111755         * lib/xgethostname.c: Include <stdlib.h>.
111756         (xghostname): Don't exit for anything other than memory-related
111757         failure; just return NULL.
111758         * lib/userspec.c: Include "posixver.h".
111759         (parse_user_spec): Accept `.' as a separator only
111760         in pre-POSIX-200112 mode.
111761         * lib/strtoimax.c: Use #elif rather than #else #if.
111762         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111763         Remove function, now that we can rely on a working tzset function.
111764         [!_LIBC]: Ensure that the required autoconf test has been run.
111765         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111766         Use underlying_strftime for %r.
111767         * lib/sha.c: Merge in some clean-up and optimization changes from
111768         glibc.
111769         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111770         Ensure that it is a multiple of 64.
111771         Rearrange loop exit tests so as to avoid performing an
111772         additional fread after encountering an error or EOF.
111773         * lib/realloc.c: Update copyright date.
111775 2003-08-15  Jim Meyering  <jim@meyering.net>
111776         and Paul Eggert  <eggert@twinsun.com>
111778         Merge from coreutils.
111779         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111780         member but strut utmpx does not.  Needed for AIX 4.3.3.
111781         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111783 2003-08-15  Jim Meyering  <jim@meyering.net>
111784         and Paul Eggert  <eggert@cs.ucla.edu>
111786         Merges from coreutils, etc.
111787         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111788         Require gl_FUNC_TZSET_CLOBBER.
111789         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111790         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111791         members.
111793 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111795         Help the merge from coreutils.
111796         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111797         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111798         * m4/tzset.m4: Use it too.
111800 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111802         * modules/tzset: New file.
111804 2003-08-14  Jim Meyering  <jim@meyering.net>
111806         Merges from coreutils.
111807         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111808         variable names, rather than @FNMATCH_H@.
111809         * modules/alloca: Likewise for $(ALLOCA_H).
111811         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111812         the three copies of the literal target, `fnmatch.h'.
111813         * modules/alloca (alloca.h): Likewise.
111815 2003-08-14  Jim Meyering  <jim@meyering.net>
111817         Merge from coreutils.
111818         * m4/tzset.m4: New file.
111819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111820         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111821         otherwise, AIX 5.1 systems would end up using the latter.
111822         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111823         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111824         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111825         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111827 2003-08-14  Jim Meyering  <jim@meyering.net>
111829         Merge from coreutils.
111830         * lib/obstack.h: Whitespace changes.
111831         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111832         and xcalloc return values.
111833         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111834         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111835         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111836         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111837         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111838         error from mntctl.
111839         Use mntctl's return value to drive the entry-processing loop, since
111840         we can't rely on the value of the vmt_length member in the last
111841         entry.  On some systems doing so could result in exhausting
111842         virtual memory.  Based in part on a patch from Mike Jetzer.
111844 2003-08-14  Jim Meyering  <jim@meyering.net>
111845         and Paul Eggert  <eggert@twinsun.com>
111847         Merges from coreutils, plus other fixes.
111848         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111849         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111850         for credits and details.  Thanks to Kaveh Ghazi for helping
111851         to keep these files in sync.
111852         (ARRAY_SIZE): Define it.
111853         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111854         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111855         (memcasecmp): Don't assume size_t fits in unsigned int.
111856         Remove casts and duplicate code.
111857         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111858         (memcpy): Remove definition.
111859         Merge in some clean-up and optimization changes from glibc.
111860         [BLOCKSIZE]: Move definition to top of file.
111861         Ensure that it is a multiple of 64.
111862         Rearrange loop exit tests so as to avoid performing an
111863         additional fread after encountering an error or EOF.
111864         * lib/md5.h (md5_uintptr): Define.
111865         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111866         return to the initial working directory.  Preserve errno
111867         for caller.
111868         * lib/idcache.c: Include "xalloc.h".
111869         (xmalloc, xrealloc): Remove decls.
111870         (getuser): Remove casts no longer required in C89.
111871         * lib/human.c: Include stdio.h, for sprintf.
111872         * lib/group-member.c: Include "xalloc.h".
111873         (xmalloc, xrealloc): Remove decls.
111874         (get_group_info): Remove casts no longer required in C89.
111875         * lib/getusershell.c (readname): Remove casts no longer required in
111876         C89.
111877         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111878         * lib/getline.c: Whitespace fix, from coreutils.
111880 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111882         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111883         Check for isascii.
111885         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111886         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111887         Undo previous (whitespace-only) change.
111889 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111891         * lib/exclude.c: Include <ctype.h>
111892         (IN_CTYPE_DOMAIN): New macro.
111893         (is_space): New fn.
111894         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111895         and empty lines.
111897         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111898         Undo previous (whitespace-only) change.
111900 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111902         * config/srclist-update: Change update back to the old behavior,
111903         leaving whitespace alone.  Use one 'sed' command rather than a
111904         pipeline.
111905         (fixlicense): Now a variable, not a function.
111906         (remove_trailing_blanks): Remove.
111907         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111908         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111909         Undo previous (whitespace-only) change.
111911 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111913         Merge from coreutils.
111914         * modules/euidaccess: Add lib_SOURCES, include for new
111915         file euidaccess.h
111917 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111919         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111920         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111921         Normalize leading white space and remove trailing white space.
111923         Merge from coreutils
111924         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111926         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111927         0.12.1.  These files are now being upgraded automatically by
111928         ../config/srclist-update.
111930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111932         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111933         Normalize leading white space and remove trailing white space.
111934         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111935         notice, as per ../config/srclist-update.
111937         Merge from coreutils.
111938         * lib/euidaccess.h: New file.
111939         * lib/euidaccess.c: Include it.
111940         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111941         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111942         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111944 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111946         * config/srclist-update: Add copyright notice.
111947         (remove_id_lines, remove_trailing_blanks): New constants.
111948         (fixfile): Use them to normalize spacing a bit in copied files.
111949         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111950         Normalize leading white space and remove trailing white space.
111952         * config/texinfo.tex: Sync with texinfo.
111954         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111955         strtoul.c from libc, to merge coreutils whitespace changes.
111957         * config/srclist.txt: Get the following m4 files from gettext:
111958         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111959         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111960         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111961         wint_t.m4.
111963 2003-08-12  Karl Berry  <karl@gnu.org>
111965         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111966         been made.
111968 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111970         * modules/gnu-source, m4/gnu-source.m4:
111971         Remove; we're assuming Autoconf 2.54 or later now.
111972         Suggested by Bruno Haible.
111973         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111975 2003-08-11  Bruno Haible  <bruno@clisp.org>
111977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111979 2003-08-11  Bruno Haible  <bruno@clisp.org>
111981         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111982         (vasnprintf): Use it instead of wcslen.
111984 2003-08-11  Bruno Haible  <bruno@clisp.org>
111986         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111987         value to ensure that _Bool promotes to int. Use #define for _Bool when
111988         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111990 2003-08-10  Karl Berry  <karl@gnu.org>
111992         * lib/regex.h: update from libc (whitespace fix).
111994 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111996         Merge some files from coreutils.  These changes were
111997         originally made by Jim Meyering.
111998         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111999         many older Unixes require this.
112000         * lib/alloca.c (alloca): Remove cast to argument of free;
112001         no longer needed in C89.
112002         * lib/alloca_.h, regex.h: Fix white space to match
112003         what GNU indent does.
112005 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112007         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
112008         apparently Emacs's Unicode mode got confused before my 2003-08-05
112009         checkin.
112011 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112013         * m4/extensions.m4: New file.
112014         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
112015         Require gl_USE_SYSTEM_EXTENSIONS.
112016         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
112017         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
112019 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112021         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
112022         * modules/extensions, modules/gnu-source: New files.
112023         * modules/timespec, modules/unlocked-io: Depend on extensions.
112025 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112027         * modules/restrict: New file.
112028         * MODULES.html.sh (func_all_modules): Add restrict.
112029         * modules/regex: Depend on restrict.
112031 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112033         * m4/restrict.m4: New file.
112034         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
112036 2003-08-07  Bruno Haible  <bruno@clisp.org>
112038         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
112039         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
112041 2003-08-07  Bruno Haible  <bruno@clisp.org>
112043         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
112044         makes the module 'getndelim2' compatible with the module 'getline'.
112046 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112048         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
112049         byte with "\201" to avoid glitches when editing that source file
112050         with multi-gnome-terminal.
112052 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112054         * lib/bumpalloc.h: Remove.
112056 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112058         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
112059         * modules/bumpalloc: Remove.
112061 2003-08-04  Paul Eggert  <eggert@twinsun.com>
112063         * lib/getloadavg.c: Change copyright notice and spacing to conform to
112064         GNU coding style.
112066         Merge from coreutils.
112067         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
112068         1. From glibc.
112069         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
112070         from Karl Berry, implemented by Jim Meyering.
112071         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
112072         from Dmitry V. Levin.
112073         Remove anachronistic cast of xrealloc.
112074         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
112075         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
112076         type. Otherwise, it wouldn't compile with at least /bin/cc on
112077         ymp-cray-unicos9.0.2.X.
112078         Combine two mostly-identical uses of alloca into one.
112079         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
112081 2003-08-04  Dave Love  <d.love@dl.ac.uk>
112083         [From Emacs.]
112085         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
112086         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
112087         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
112088         obsolete NLIST_NAME_UNION.
112089         [__GNU__]: Undef BSD and FSCALE.
112090         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
112092 2003-08-03  Paul Eggert  <eggert@twinsun.com>
112094         * lib/stdbool_.h (_Bool): Make it signed char, instead of
112095         an enum type, so that it's guaranteed to promote to int.  See:
112096         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
112098 2003-08-03  Karl Berry  <karl@gnu.org>
112100         * config/depcomp: update from automake.
112102 2003-07-31  Paul Eggert  <eggert@twinsun.com>
112104         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
112105         (strerror): Don't assume that a printable int fits in 14 bytes.
112107 2003-07-31  Bruno Haible  <bruno@clisp.org>
112109         * modules/getpass-gnu: New file.
112110         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
112112 2003-07-31  Bruno Haible  <bruno@clisp.org>
112114         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
112116 2003-07-24  Karl Berry  <karl@gnu.org>
112118         * config/missing: update from automake.
112120 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
112121             Bruno Haible  <bruno@clisp.org>
112123         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112124         * lib/getline.c (getline, getdelim): Likewise.
112125         Remove _GNU_SOURCE define; now it's defined in config.h through
112126         m4/getline.m4.
112128 2003-07-23  Karl Berry  <karl@gnu.org>
112130         * config/config.sub: update from prep.
112132 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112134         * modules/xalloc (Depends-on): Add exitfail.
112135         * modules/xmemcoll: Likewise.
112137 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112139         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112140         over-parenthesization in macros.
112142         Sync with coreutils.
112144         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112145         required by C99.
112147         Use `exit_failure' for xalloc and xmemcoll instead of their own
112148         private exit-failure variables.
112149         * lib/xalloc.h (xalloc_exit_failure): Remove.
112150         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112151         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112152         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112153         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112154         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112156 2003-07-20  Jim Meyering  <jim@meyering.net>
112158         * modules/closeout (Depends-on): Add exitfail.
112159         Suggestion from Bruno Haible.
112161 2003-07-19  Karl Berry  <karl@gnu.org>
112163         * config/config.sub: update from prep.
112165 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112167         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112168         Remove.
112169         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112170         to test that it can stand by itself.  Include "exitfail.h".
112171         Clients should set exit_failure instead.
112172         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112174 2003-07-18  Bruno Haible  <bruno@clisp.org>
112176         * modules/getndelim2: New file.
112177         * modules/getline: Share files with module getndelim2.
112178         * modules/getnline: Depend on getndelim2 instead of sharing files with
112179         it. Add getnline.c to lib_SOURCES.
112180         * MODULES.html.sh (func_all_modules): Add getndelim2.
112182 2003-07-18  Bruno Haible  <bruno@clisp.org>
112184         * m4/getndelim2.m4: New file.
112185         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112186         invoke gl_PREREQ_GETNDELIM2.
112187         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112188         gl_PREREQ_GETNDELIM2.
112189         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112190         gl_GETNDELIM2.
112192 2003-07-18  Bruno Haible  <bruno@clisp.org>
112194         * lib/getndelim2.h: New file.
112195         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112196         getndelim2.h.
112197         (getndelim2): Make non-static. Change return type to ssize_t.
112198         * lib/getline.h: Change argument names.
112199         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112200         * lib/getnline.c: Include getndelim2.h.
112202 2003-07-18  Andreas Schwab  <schwab@suse.de>
112204         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112206 2003-07-17  Karl Berry  <karl@gnu.org>
112208         * config/config.sub: update from prep.
112210 2003-07-17  Bruno Haible  <bruno@clisp.org>
112212         * modules/getnline: New file.
112213         * modules/getline: Add lib/getndelim2.c to source file list.
112214         * MODULES.html.sh (func_all_modules): Add getnline.
112216 2003-07-17  Bruno Haible  <bruno@clisp.org>
112218         * m4/getnline.m4: New file.
112220 2003-07-17  Bruno Haible  <bruno@clisp.org>
112222         * m4/Makefile.am.in: Remove file.
112223         * m4/Makefile.am: Remove file.
112224         * m4/Makefile.in: Remove file.
112226 2003-07-17  Bruno Haible  <bruno@clisp.org>
112228         * lib/getnline.h: New file.
112229         * lib/getnline.c: New file.
112230         * lib/getndelim2.c: New file, extracted from getline.c.
112231         (getndelim2): Renamed from getdelim2, with added nmax argument.
112232         * lib/getline.c: Include getndelim2.c.
112233         (getdelim2): Moved out to getndelim2.c.
112234         (getline, getdelim): Update.
112236 2003-07-17  Bruno Haible  <bruno@clisp.org>
112238         * lib/Makefile.am: Remove file.
112239         * lib/Makefile.in: Remove file.
112241 2003-07-17  Bruno Haible  <bruno@clisp.org>
112243         * configure.in: Remove file.
112244         * Makefile.in: Remove file.
112246 2003-07-17  Bruno Haible  <bruno@clisp.org>
112248         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112250 2003-07-16  Karl Berry  <karl@gnu.org>
112252         * config/srclist-update: was running fixlicense twice, which caused
112253                 texinfo.tex to be nullified for some reason.  Simplify,
112254                 $gplsrc is no longer needed as far as I can see?
112256 2003-07-16  Jim Meyering  <jim@meyering.net>
112258         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112260 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112262         * config/srclist.txt: Get the following files from gettext-runtime/intl
112263         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112264         ref-del.sin.  From Bruno Haible.
112265         * config/srclist-update (fixfile): Change grep pattern again, since the
112266         previous fix didn't work (there was another trailing $).  Use
112267         '[$]' to escape the $s.
112269 2003-07-15  Karl Berry  <karl@gnu.org>
112271         * lib/vasnprintf.c: update from gettext.
112273 2003-07-15  Karl Berry  <karl@gnu.org>
112275         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112276         gets expanded when surrounded by '$'.
112278 2003-07-15  Jim Meyering  <jim@meyering.net>
112280         * modules/save-cwd: Don't depend on error.  From Derek Price.
112282 2003-07-15  Jim Meyering  <jim@meyering.net>
112284         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112286 2003-07-14  Simon Josefsson  <jas@extundo.com>
112288         * modules/mempcpy: New file.
112289         * MODULES.html.sh (func_all_modules): Add mempcpy.
112291 2003-07-14  Simon Josefsson  <jas@extundo.com>
112293         * m4/mempcpy.m4: New file.
112295 2003-07-14  Simon Josefsson  <jas@extundo.com>
112297         * lib/mempcpy.h: New file.
112298         * lib/mempcpy.c: New file.
112300 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112302         * modules/getdate, modules/posixtm: Depend on mktime.
112304 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112306         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112307         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112308         unicodeio.c, unicodeio.h, unlocked-io.h:
112309         Switch from LGPL to GPL.
112311 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112313         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112314         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112315         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112316         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112317         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112318         updated automatically by ../config/srclist-update.  This changes
112319         their license from LPGL to GPL.
112321 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112323         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112324         assumed to refer to the root of the most recent stable gettext version.
112325         * config/srclistvars.sh: Add defaults for eggert.
112326         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112327         Match "This program" as well as "The program".  This is needed
112328         for gettext.
112330 2003-07-14  Jim Meyering  <jim@meyering.net>
112332         Don't emit diagnostics.  Let callers do that.
112333         * lib/save-cwd.c: Don't include "error.h".
112334         (save_cwd): Don't call error.  Ensure that errno is valid
112335         when returning nonzero.
112337         * lib/save-cwd.h (restore_cwd): Update prototype.
112338         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112339         Simplify.  Don't call error upon failure.  Let callers do that.
112340         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112341         when auditing is enabled.  But don't bother updating the #if.
112343 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112345         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112346         it breaks C++ compilation.
112347         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112349 2003-07-10  Simon Josefsson  <jas@extundo.com>
112351         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112353 2003-07-10  Jim Meyering  <jim@meyering.net>
112355         * m4/clock_time.m4: Remove trailing blank.
112356         * m4/intmax_t.m4: Likewise.
112358 2003-07-10  Jim Meyering  <jim@meyering.net>
112360         * lib/vasnprintf.c: Remove trailing blanks.
112361         Make cpp indentation consistent.
112363 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112365         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112366         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112367         Switch from LGPL to GPL.
112369 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112371         * config/srclist.txt: Sort sublists.  Add
112372         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112373         that differ from gnulib for one reason or another; we'd like this list
112374         to be smaller but for now let's document what we have.
112376 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112378         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112379         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112380         and sweeter "eval x=$x".
112381         * config/srclist.txt: Get lib/argp* from glibc.
112383 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112385         * lib/mktime.c: Fix some boundary cases and remove need for floating
112386         point.
112388         Issue a compile-time diagnostic if time_t is floating point, or if
112389         two's complement arithmetic is not in effect, or if arithmetic
112390         right shift does not propagate the sign.  These assumptions were
112391         all in the original code but they weren't checked.
112393         (TIME_T_MIDPOINT, verify): New macros.
112394         (__isleap): Remove; it has integer overflow problems.
112395         (leapyear): New function, without those problems.
112396         (ydhms_tm_diff): Remove; splitting into two parts.
112397         (ydhms_diff): New function, containing the arithmetic part of
112398         the old ydhms_tm_diff function.  Issue a compile-time
112399         diagnostic if we are not using C99 integer division.
112400         Avoid casts when possible.
112401         (guess_time_tm): New function, containing the checking part of
112402         the old ydhms_tm_diff function.  Return the new value, rather than
112403         the difference between it and the old.  Accept a new argument T
112404         so that *T specifies the old value.  Check for overflow in the result.
112406         (__mktime_internal): Use a time_t offset, not a long int offset.
112407         This undoes the 2003-06-04 change, which is no longer needed now
112408         that we have better overflow checking.
112409         (localtime_offset): Likewise.
112411         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112412         and long are 64-bit but int is only 32-bit.
112413         (ydhms_diff): Use long int to store year1 and yday1.
112414         Issue a compile-time diagnostic if long int is not wide enough.
112416         (__mktime_internal): Use long int to store adjusted year and yday.
112417         Use plain C rather than preprocessor commands, if that doesn't
112418         affect efficiency.
112419         Check for overflow (and try to repair) after each probe
112420         rather than checking only at the very end.  This avoids some bugs
112421         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112422         does not equal GMT offset at maximum time).
112423         Use integer to check for overflow rather than floating point; this
112424         is more portable to non-IEEE hosts, and is a tad faster.
112425         When we detect that we are oscillating between two values,
112426         don't check whether tm_isdst has the requested value, since
112427         we already know the answer.  When tm_isdst has the wrong value,
112428         use a different heuristic to find the right one, based on the
112429         extreme values actually observed in practice in tz2003a,
112430         rather than the (overly optimistic) "previous 3 calendar quarters".
112432         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112433         "T const" to accommodate glibc style.
112434         (check_result): Use less-confusing report format.  "long" -> "long int.
112435         (main): Likewise.
112436         Don't loop if the iteration overflows time_t.
112437         Allow a negative step in the iteration.
112439 2003-07-06  Karl Berry  <karl@gnu.org>
112441         * config/depcomp: update from automake.
112442         * config/config.sub: update from prep.
112444 2003-07-03  Karl Berry  <karl@gnu.org>
112446         * config/config.guess: update from prep.
112448 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112450         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112451         xreadlink.c now includes it unconditionally.
112453 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112455         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112456         having it depend on HAVE_SYS_TYPES_H.
112458 2003-07-01  Bruno Haible  <bruno@clisp.org>
112460         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112461         <sys/types.h> should be sufficient.
112462         Reported by Paul Eggert.
112464 2003-06-26  Karl Berry  <karl@gnu.org>
112466         * config/depcomp: update from automake.
112468 2003-06-26  Bruno Haible  <bruno@clisp.org>
112470         * modules/human: Depend on module stdbool.
112472 2003-06-25  Bruno Haible  <bruno@clisp.org>
112474         * modules/readlink: New file.
112475         * modules/xreadlink: Depend on it.
112476         * MODULES.html.sh (func_all_modules): Add readlink.
112478 2003-06-25  Bruno Haible  <bruno@clisp.org>
112480         * m4/readlink.m4: New file.
112482 2003-06-25  Bruno Haible  <bruno@clisp.org>
112484         * lib/readlink.c: New file.
112486 2003-06-22  Karl Berry  <karl@gnu.org>
112488         * config/srclist.txt: update mkinstalldirs from automake.
112489         * config/mkinstalldirs: update.
112491 2003-06-22  Bruno Haible  <bruno@clisp.org>
112493         Portability to mingw32.
112494         * m4/ssize_t.m4: New file, from GNU gettext.
112495         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112496         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112498 2003-06-22  Bruno Haible  <bruno@clisp.org>
112500         * modules/safe-read: Add m4/ssize_t.m4.
112501         * modules/xreadlink: Add m4/ssize_t.m4.
112503 2003-06-20  Bruno Haible  <bruno@clisp.org>
112505         Assume C89, so PARAMS isn't needed.
112506         * lib/unicodeio.h (PARAMS): Remove.
112507         * lib/unicodeio.c: Don't use PARAMS.
112509 2003-06-18  Karl Berry  <karl@gnu.org>
112511         * config/config.{guess,sub}: update from prep.
112513 2003-06-18  Jim Meyering  <jim@meyering.net>
112515         Merge changes from coreutils.
112516         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112517         Remove explicit declarations of xmalloc and realloc.
112518         Include xalloc.h.
112519         (read_utmp): Remove anachronistic cast of xmalloc.
112521 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112523         Assume C89, so PARAMS isn't needed.
112524         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112525         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112526         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112527         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112528         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112529         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112530         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112531         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112532         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112533         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112534         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112535         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112536         no longer needed. Anyway, config.h should always be included before any
112537         other file.
112539 2003-06-11  Simon Josefsson  <jas@extundo.com>
112541         * modules/sysexits: New file.
112542         * MODULES.html.sh (func_all_modules): Add sysexits.
112544 2003-06-11  Simon Josefsson  <jas@extundo.com>
112546         * lib/sysexit_.h: New file.
112548 2003-06-11  Derek Price  <derek@ximbiot.com>
112550         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112551         necessary.
112553 2003-06-11  Bruno Haible  <bruno@clisp.org>
112555         * m4/sysexits.m4: New file.
112557 2003-06-10  Simon Josefsson  <jas@extundo.com>
112559         * lib/argp.h: New file, from glibc.
112560         * lib/argp-ba.c: New file, from glibc.
112561         * lib/argp-eexst.c: New file, from glibc.
112562         * lib/argp-fmtstream.c: New file, from glibc.
112563         * lib/argp-fmtstream.h: New file, from glibc.
112564         * lib/argp-fs-xinl.c: New file, from glibc.
112565         * lib/argp-help.c: New file, from glibc.
112566         * lib/argp-namefrob.h: New file, from glibc.
112567         * lib/argp-parse.c: New file, from glibc.
112568         * lib/argp-pv.c: New file, from glibc.
112569         * lib/argp-pvh.c: New file, from glibc.
112570         * lib/argp-xinl.c: New file, from glibc.
112572 2003-06-10  Simon Josefsson  <jas@extundo.com>
112574         * modules/strchrnul: New file.
112576 2003-06-10  Simon Josefsson  <jas@extundo.com>
112578         * modules/argp: New file.
112580 2003-06-10  Simon Josefsson  <jas@extundo.com>
112582         * m4/strchrnul.m4: New file.
112584 2003-06-10  Simon Josefsson  <jas@extundo.com>
112586         * lib/strchrnul.h: New file.
112587         * lib/strchrnul.c: New file.
112589 2003-06-10  Bruno Haible  <bruno@clisp.org>
112591         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112593 2003-06-07  Karl Berry  <karl@gnu.org>
112595         * config/config.{guess,sub}: update from prep.
112597 2003-06-07  Jim Meyering  <jim@meyering.net>
112599         * modules/strtod: Use $(...) notation, not @...@ for
112600         AC_REPLACE'd variables.
112601         * modules/localcharset: Likewise.
112603 2003-06-07  Jim Meyering  <jim@meyering.net>
112605         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112606         in place of my name in the copyright comment.
112607         Remove definition and uses of __P.
112609         From coreutils.
112610         * lib/stat.c: Don't declare xmalloc explicitly.
112611         Instead, include "xalloc.h".
112612         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112613         xrealloc, and xcalloc return values.
112614         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112615         Improve comment.
112616         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112618 2003-06-07  Bruno Haible  <bruno@clisp.org>
112620         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112621         avoid AC_CONFIG_LINKS.
112622         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112623         fnmatch.h, to avoid AC_CONFIG_LINKS.
112624         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112626 2003-06-07  Bruno Haible  <bruno@clisp.org>
112628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112629         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112631         directory.
112632         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112633         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112634         directory.
112636 2003-06-06  Jim Meyering  <jim@meyering.net>
112638         Merge from coreutils.
112639         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112640         Consolidate declarations and initializations of *_base* locals.
112642         Merge from coreutils.
112643         This avoids a core dump on systems without GNU putenv,
112644         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112645         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112646         (unsetenv): New static function, from GNU libc.
112647         (rpl_putenv): Use it.
112649         * lib/modechange.c: Remove trailing blanks.
112651         Merge from coreutils.
112652         * lib/fsusage.c: Remove declaration of statfs.
112653         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112655         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112657 2003-06-06  Jim Meyering  <jim@meyering.net>
112659         * lib/stdbool_.h: Renamed from stdbool.h.in.
112661 2003-06-06  Jim Meyering  <jim@meyering.net>
112662             Bruno Haible  <bruno@clisp.org>
112664         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112665         Adjust Makefile.am snippet not to redirect directly to target.
112666         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112668 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112670         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112671         mismatch, look in future quarters as well as past.  This fixes a
112672         bug when processing fall-backwards gaps immediately after a long
112673         period of daylight-saving time.
112675         * lib/mktime.c: Assume freestanding C89 or better.
112676         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112677         (__P): Remove; not used.
112678         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112679         (mktime, not_equal_tm, print_tm, check_result,
112680         main): Use prototypes.  Use const * where appropriate.
112681         (main): Fix typo in testing code that uncovered by above changes.
112682         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112686         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112687         locale.h, localeconv.  This merges changes from coreutils.
112689         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112690         It can be removed after the next Autoconf is released.
112691         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112692         needed.
112694 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112696         * lib/mktime.c: Fix Debian bug 177940
112697         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112698         (localtime_offset): Now long int, not time_t, because we want it
112699         to be guaranteed to be signed.  All uses changed.
112700         (__mktime_internal): If overflow would occur when adding offset,
112701         don't add it.
112703         Merge 'human' changes from coreutils.  Rewrite to support
112704         locale-specific notations like thousands separators.
112705         * lib/human.c: Simplify authorship notice.
112706         Include human.h immediately after config.h.
112707         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112708         <limits.h>: Do not include, since human.h does.
112709         (SIZE_MAX, UINTMAX_MAX): New macros.
112710         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112711         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112712         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112713         (power_letter): Renamed from suffixes.
112714         (generate_suffix_backwards): Remove.
112715         (adjust_value): Now takes int style (because of human.h changes)
112716         and long double value (for greater precision on some platforms).
112717         (group_number): New function.
112718         (human_readable): Use it.  Use integer options, not enum.
112719         Put the options before the sizes in the arg list.
112720         Support all the new options.
112721         The old human_readable function has been removed;
112722         use inttostr.h instead.
112723         (human_readable, default_block_size, humblock):
112724         Use uintmax_t, not int, for block sizes.
112725         (human_readable_inexact, block_size_types): Remove.
112726         (block_size_opts): New constant.
112727         (human_options): Renamed from human_block_size, with new signature
112728         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112729         * lib/human.h: Add copyright and authorship notice.
112730         Include <limits.h> and <stdbool.h> unconditionally.
112731         (PARAMS): Remove.  All uses removed.
112732         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112733         (enum human_inexact_style): Remove tag; now a nameless enum.
112734         (human_floor, human_ceiling, human_round_to_even): Now have
112735         values 2, 0, 1 rather than -1, 1, 0.
112736         (human_group_digits, human_suppress_point_zero, human_autoscale,
112737         human_base_1024, human_SI, human_B): New constants.
112738         (human_readable_inexact, human_block_size): Remove.
112739         (human_readable): Size args are now uintmax_t, not int.
112740         (human_options): New decl.
112742         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112743         unnecessary now that we assume C89 or better.  This change
112744         imported from coreutils.
112746         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112747         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112748         in the 2003-05-30 sync from glibc.
112750         .h files should stand alone, but we shouldn't include <sys/types.h>
112751         if we can get away with just <stddef.h>.
112753         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112754         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112755         rather than <sys/types.h>, as we merely need size_t.
112756         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112757         to get size_t.
112758         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112759         Include <stdio.h>, to get FILE.
112760         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112761         memcasecmp.h has included <stddef.h> and all we need is size_t.
112762         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112763         our interface, instead of including <sys/types.h>
112765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112767         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112768         now, as glibc mktime is buggy on non-glibc systems.
112770 2003-06-03  Karl Berry  <karl@gnu.org>
112772         * config/config.sub: update from prep.
112774 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112776         [from coreutils]
112777         Fix some minor time-related bugs with POSIX time arguments.
112778         Some valid time stamps were being rejected (notably -1, and
112779         time stamps before 1900 on 64-bit hosts).  And some invalid
112780         time stamps were being accepted, e.g. September 31.
112782         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112783         that we can return (time_t) -1 successfully.
112784         * lib/posixtm.c: Likewise.
112785         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112786         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112787         (t): Remove static var.
112788         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112789         of static var.  All uses changed.
112790         (year): Do not reject years before 1900; they can occur with
112791         64-bit time_t.
112792         (posix_time_parse): Do not check for out-of-range components;
112793         that is now the caller's responsibility, since our checks were
112794         only approximations.
112795         (posixtime): Use mktime to check for out-of-range components,
112796         since it knows them exactly.
112797         If mktime returns (time_t) -1, check whether an error actually occurred
112798         by invoking localtime on -1.
112799         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112800         posixtime failures better.
112801         Improve the test data (in comments only).
112803 2003-06-02  Karl Berry  <karl@gnu.org>
112805         * config/mkinstalldirs (version): new variable.
112806         (--version): new option.
112807         (usage): improve message.
112809 2003-05-30  Karl Berry  <karl@gnu.org>
112811         * lib/mktime.c: update from libc.
112813 2003-05-30  Bruno Haible  <bruno@clisp.org>
112815         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112816         * config/config.rpath: Upgrade to gettext-0.12.1.
112818 2003-05-30  Bruno Haible  <bruno@clisp.org>
112820         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112821         * m4/nls.m4: New file, from gettext-0.12.1.
112822         * m4/po.m4: New file, from gettext-0.12.1.
112823         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112825 2003-05-30  Bruno Haible  <bruno@clisp.org>
112827         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112828         * lib/localcharset.h: Likewise.
112829         * lib/localcharset.c: Likewise.
112831 2003-05-29  Karl Berry  <karl@gnu.org>
112833         * config/config.rpath: update from gettext.
112835 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112837         Assume the headers required for C89 freestanding compilers.
112838         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112839         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112840         * m4/human.m4 (gl_HUMAN): Likewise.
112841         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112842         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112843         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112844         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112846         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112848 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112850         Assume the headers required for C89 freestanding compilers.
112851         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112852         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112853         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112854         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112855         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112856         define, since <limits.h> is guaranteed to do that.
112857         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112858         * lib/exclude.c: Include <stdbool.h> unconditionally.
112859         * lib/tempname.c: Include <stddef.h> unconditionally.
112860         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112861         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112862         <stddef.h> does that.
112863         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112864         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112865         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112866         needed.
112867         * lib/xstrtol.c: Likewise.
112868         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112869         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112871         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112872         warnings on some platforms.
112874         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112875         arbitrarily.
112877 2003-05-26  Jim Meyering  <jim@meyering.net>
112879         Merge in a change from coreutils:
112880         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112881         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112882         that condition, rather than `-1' which is slightly misleading.
112883         Change the name of the cache variable to have the gl_ prefix.
112884         Prompted by a patch from Richard Dawe for DJGPP.
112886 2003-05-24  Karl Berry  <karl@gnu.org>
112888         * config/config.guess: update from prep.
112890 2003-05-22  Karl Berry  <karl@gnu.org>
112892         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112894 2003-05-20  Karl Berry  <karl@gnu.org>
112896         * config/config.guess: update from prep.
112898 2003-05-18  Karl Berry  <karl@gnu.org>
112900         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112901         might actually be set by the user.
112903         * config/depcomp, install-sh, mdate-sh: update from automake.
112905 2003-05-17  Bruno Haible  <bruno@clisp.org>
112907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112908         invalid expansion for AC_EGREP_CPP.
112909         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112910         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112911         Suggested by Akim Demaille <akim@epita.fr> in
112912         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112914 2003-05-12  Jim Meyering  <jim@meyering.net>
112916         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112917         the space-padded-by-default conversion specifiers, %e, %k, %l.
112919 2003-05-12  Bruno Haible  <bruno@clisp.org>
112921         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112922         the string is longer than 4 KB.
112924 2003-05-11  Karl Berry  <karl@gnu.org>
112926         * config/config.{guess,sub}: update from prep.
112928 2003-05-09  Bruno Haible  <bruno@clisp.org>
112930         * modules/error: Add m4/strerror_r.m4 to file list.
112932 2003-05-03  Bruno Haible  <bruno@clisp.org>
112934         Upgrade to Unicode-4.0.
112935         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112936         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112937         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112938         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112939         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112940         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112941         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112942         Change width of U+E0100..U+E01EF from 1 to 0.
112944 2003-04-25  Jim Meyering  <jim@meyering.net>
112946         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112947         of type size_t, not int.
112949 2003-04-25  Bruno Haible  <bruno@clisp.org>
112951         * lib/copy-file.c: Include <stddef.h>, for size_t.
112953 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112955         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112956         code which expansion is under static control.  Patch imported from
112957         Akim Demaille's patch to Bison; see
112958         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112960 2003-04-14  Bruno Haible  <bruno@clisp.org>
112962         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112964 2003-04-11  Jim Meyering  <jim@meyering.net>
112966         Merge changes from Coreutils.
112968         2003-03-22  Jim Meyering  <jim@meyering.net>
112970         * lib/strftime.c (widen): Cast alloca return value to proper type.
112972         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112974         From GNU libc.
112975         * lib/strftime.c (my_strftime): Handle very large width
112976         specifications for numeric values correctly.  Improve checks for
112977         overflow.
112979         2003-01-19  Jim Meyering  <jim@meyering.net>
112981         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112982         definitions.
112983         (nl_get_alt_digit) [! defined my_strftime]: Define.
112984         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112985         _nl_get_alt_digit and _nl_get_walt_digit.
112987         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112988         libc. These changes have no effect outside of _LIBC.
112990 2003-04-10  Bruno Haible  <bruno@clisp.org>
112992         * modules/findprog: New file.
112993         * MODULES.html.sh (func_all_modules): Add it.
112995 2003-04-10  Bruno Haible  <bruno@clisp.org>
112997         * m4/findprog.m4: New file.
112998         * m4/eaccess.m4: New file.
113000 2003-04-10  Bruno Haible  <bruno@clisp.org>
113002         * lib/findprog.h: New file, from GNU gettext.
113003         * lib/findprog.c: New file, from GNU gettext.
113005 2003-04-05  Jim Meyering  <jim@meyering.net>
113007         Merge changes from Coreutils.
113009         * lib/exclude.h (PARAMS): Remove definition and uses.
113010         * lib/exclude.c: Remove uses of `PARAMS'.
113012         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
113013         Add test-cases for DOS filenames. Declare program_name.
113014         (main): Set up program_name.  Patch by Rich Dawe.
113016         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
113017         error from mntctl.
113018         Use mntctl's return value to drive the entry-processing loop, since
113019         we can't rely on the value of the vmt_length member in the last
113020         entry.  On some systems doing so could result in exhausting
113021         virtual memory.  Based in part on a patch from Mike Jetzer.
113023 2003-04-04  Bruno Haible  <bruno@clisp.org>
113025         * modules/linebreak: New file.
113026         * MODULES.html.sh (func_all_modules): Add it.
113028 2003-04-04  Bruno Haible  <bruno@clisp.org>
113030         * m4/linebreak.m4: New file.
113032 2003-04-04  Bruno Haible  <bruno@clisp.org>
113034         * lib/linebreak.h: New file, from GNU gettext.
113035         * lib/linebreak.c: New file, from GNU gettext with slight
113036         modifications.
113037         * lib/lbrkprop.h: New file, from GNU gettext.
113039 2003-04-03  Bruno Haible  <bruno@clisp.org>
113041         * modules/utf8-ucs4: New file.
113042         * modules/utf16-ucs4: New file.
113043         * modules/ucs4-utf8: New file.
113044         * modules/ucs4-utf16: New file.
113045         * MODULES.html.sh (func_all_modules): Add them.
113047 2003-04-03  Bruno Haible  <bruno@clisp.org>
113049         * m4/utf-ucs4.m4: New file.
113050         * m4/ucs4-utf.m4: New file.
113052 2003-04-03  Bruno Haible  <bruno@clisp.org>
113054         * lib/utf8-ucs4.h: New file, from GNU gettext.
113055         * lib/utf16-ucs4.h: New file, from GNU gettext.
113056         * lib/ucs4-utf8.h: New file, from GNU gettext.
113057         * lib/ucs4-utf16.h: New file, from GNU gettext.
113059 2003-04-02  Bruno Haible  <bruno@clisp.org>
113061         * modules/binary-io: New file.
113062         * MODULES.html.sh (func_all_modules): Add it.
113064 2003-04-02  Bruno Haible  <bruno@clisp.org>
113066         * lib/binary-io.h: New file, from GNU gettext.
113068 2003-04-01  Bruno Haible  <bruno@clisp.org>
113070         * modules/pathname: New file.
113071         * MODULES.html.sh (func_all_modules): Add it.
113073 2003-04-01  Bruno Haible  <bruno@clisp.org>
113075         * lib/pathname.h: New file, from GNU gettext.
113076         * lib/concatpath.c: New file, from GNU gettext.
113078 2003-03-30  Bruno Haible  <bruno@clisp.org>
113080         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
113082 2003-03-30  Bruno Haible  <bruno@clisp.org>
113084         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
113085         function chown() doesn't exist.
113087 2003-03-28  Bruno Haible  <bruno@clisp.org>
113089         * modules/copy-file: New file.
113090         * MODULES.html.sh (func_all_modules): Add it.
113092 2003-03-28  Bruno Haible  <bruno@clisp.org>
113094         * m4/copy-file.m4: New file.
113096 2003-03-28  Bruno Haible  <bruno@clisp.org>
113098         * lib/copy-file.h: New file, from GNU gettext.
113099         * lib/copy-file.c: New file, from GNU gettext.
113101 2003-03-18  Jim Meyering  <jim@meyering.net>
113103         * lib/quote.c (quote_n): Fix typo in comment.
113105 2003-03-18  Bruno Haible  <bruno@clisp.org>
113107         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
113108         checking.
113109         * m4/onceonly_2_57.m4: Likewise.
113111 2003-03-17  Bruno Haible  <bruno@clisp.org>
113113         * m4/onceonly.m4: Require autoconf 2.54 or newer.
113114         (m4_quote): Remove macro.
113115         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
113117 2003-03-14  Jim Meyering  <jim@meyering.net>
113119         Merge changes from Coreutils.
113120         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
113121         to be const, in order to avoid warnings.
113122         (obstack_room): Likewise.
113123         (obstack_empty_p): Likewise.
113125 2003-03-14  Bruno Haible  <bruno@clisp.org>
113127         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113128         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113130 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113132         Merge changes from Bison.
113133         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113134         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113135         when compiling Bison 1.875's `bitset bset = obstack_alloc
113136         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113137         * lib/hash.c: Include <stdbool.h> unconditionally.
113139 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113141         * m4/onceonly.m4 (m4_quote): New macro.
113142         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113143         Quote AC_FOREACH variable-expansions properly.
113145 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113147         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113149 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113151         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113152         Reported by Bruce Becker; see:
113153         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113155 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113156             Bruno Haible  <bruno@clisp.org>
113158         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113159         Reported by John Hughes, see
113160         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113162 2003-02-20  Bruno Haible  <bruno@clisp.org>
113164         * MODULES.html.sh (func_all_modules): Add poll.
113166 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113168         * modules/poll: New file.
113170 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113172         * lib/poll_.h: New file.
113173         * lib/poll.c: New file.
113175 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113177         * m4/poll.m4: New file.
113179 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113181         * modules/mathl: New file.
113183 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113185         * lib/mathl.h: New file.
113186         * lib/acosl.c: New file.
113187         * lib/asinl.c: New file.
113188         * lib/atanl.c: New file.
113189         * lib/ceill.c: New file.
113190         * lib/cosl.c: New file.
113191         * lib/expl.c: New file.
113192         * lib/floorl.c: New file.
113193         * lib/frexpl.c: New file.
113194         * lib/ldexpl.c: New file.
113195         * lib/logl.c: New file.
113196         * lib/sincosl.c: New file.
113197         * lib/sinl.c: New file.
113198         * lib/sqrtl.c: New file.
113199         * lib/tanl.c: New file.
113200         * lib/trigl.c: New file.
113201         * lib/trigl.h: New file.
113203 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113205         * m4/mathl.m4: New file.
113207 2003-02-18  Bruno Haible  <bruno@clisp.org>
113209         * MODULES.html.sh (func_all_modules): Add mathl.
113211 2003-02-17  Bruno Haible  <bruno@clisp.org>
113213         * modules/mkdtemp: New module.
113214         * MODULES.html.sh (func_all_modules): Add it.
113216 2003-02-17  Bruno Haible  <bruno@clisp.org>
113218         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113220 2003-02-17  Bruno Haible  <bruno@clisp.org>
113222         * lib/mkdtemp.h: New file, from GNU gettext.
113223         * lib/mkdtemp.c: New file, from GNU gettext.
113225 2003-02-02  Jim Meyering  <jim@meyering.net>
113227         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113228         e.g. glibc-2.2.93.
113230 2003-01-31  Bruno Haible  <bruno@clisp.org>
113232         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113233         'rpl_rename'.
113234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113235         'rpl_strnlen'.
113236         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113237         'rpl_strtod'.
113238         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113239         'rpl_utime'.
113241 2003-01-31  Bruno Haible  <bruno@clisp.org>
113243         * lib/rename.c: #undef rename before defining rpl_rename.
113244         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113246 2003-01-30  Bruno Haible  <bruno@clisp.org>
113248         * modules/vasnprintf, modules/vasprintf: New modules.
113249         * MODULES.html.sh (func_all_modules): Add them.
113251 2003-01-30  Bruno Haible  <bruno@clisp.org>
113253         * m4/signed.m4: New file, from GNU gettext.
113254         * m4/longdouble.m4: New file, from GNU gettext.
113255         * m4/wchar_t.m4: New file, from GNU gettext.
113256         * m4/wint_t.m4: New file, from GNU gettext.
113257         * m4/vasnprintf.m4: New file.
113258         * m4/vasprintf.m4: New file.
113260 2003-01-30  Bruno Haible  <bruno@clisp.org>
113262         * lib/printf-args.h: New file, from GNU gettext.
113263         * lib/printf-args.c: New file, from GNU gettext.
113264         * lib/printf-parse.h: New file, from GNU gettext.
113265         * lib/printf-parse.c: New file, from GNU gettext.
113266         * lib/vasnprintf.h: New file, from GNU gettext.
113267         * lib/vasnprintf.c: New file, from GNU gettext.
113268         * lib/asnprintf.c: New file, from GNU gettext.
113269         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113270         * lib/vasprintf.c: New file, from GNU gettext.
113271         * lib/asprintf.c: New file, from GNU gettext.
113273 2003-01-29  Bruno Haible  <bruno@clisp.org>
113275         * modules/stpncpy: New module.
113276         * MODULES.html.sh (func_all_modules): Add it.
113278 2003-01-29  Bruno Haible  <bruno@clisp.org>
113280         * m4/stpncpy.m4: New file.
113282 2003-01-29  Bruno Haible  <bruno@clisp.org>
113284         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113285         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113287 2003-01-28  Bruno Haible  <bruno@clisp.org>
113289         * modules/c-ctype: New module.
113290         * MODULES.html.sh (func_all_modules): Add it.
113292 2003-01-28  Bruno Haible  <bruno@clisp.org>
113294         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113295         Paul Eggert.
113296         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113297         Paul Eggert.
113299 2003-01-27  Bruno Haible  <bruno@clisp.org>
113301         * modules/xsetenv: New module.
113302         * MODULES.html.sh (func_all_modules): Add it.
113304 2003-01-27  Bruno Haible  <bruno@clisp.org>
113306         * lib/xsetenv.h: New file, from GNU gettext.
113307         * lib/xsetenv.c: New file, from GNU gettext.
113309 2003-01-23  Jim Meyering  <jim@meyering.net>
113311         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113312         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113314 2003-01-23  Bruno Haible  <bruno@clisp.org>
113316         * modules/minmax: New module.
113317         * MODULES.html.sh (func_all_modules): Add it.
113319 2003-01-23  Bruno Haible  <bruno@clisp.org>
113321         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113322         Eggert.
113324 2003-01-22  Bruno Haible  <bruno@clisp.org>
113326         * modules/exit: New module.
113327         * MODULES.html.sh (func_all_modules): Add it.
113329 2003-01-22  Bruno Haible  <bruno@clisp.org>
113331         * lib/exit.h: New file, from GNU gettext.
113333 2003-01-19  Bruno Haible  <bruno@clisp.org>
113335         * gnulib-tool: Recognize option --extract-maintainer.
113336         (func_get_maintainer): New function.
113337         * modules/*: Add Maintainer entry.
113339 2003-01-16  Jim Meyering  <jim@meyering.net>
113341         * m4/regex.m4: The `regex' struct is both input and output.
113342         Initialize it before each use.  Patch by Tim Waugh.
113344 2003-01-16  Bruno Haible  <bruno@clisp.org>
113346         * MODULES.html.sh: Add a table of contents. Add the module name as
113347         leftmost column. Add hyperlinks.
113349 2003-01-15  Bruno Haible  <bruno@clisp.org>
113351         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113353 2003-01-15  Bruno Haible  <bruno@clisp.org>
113355         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113356         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113357         suffix.
113359 2003-01-15  Bruno Haible  <bruno@clisp.org>
113361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113363 2003-01-15  Bruno Haible  <bruno@clisp.org>
113365         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113366         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113368 2003-01-14  Jim Meyering  <jim@meyering.net>
113370         * lib/same.c (same_name): Tweak a comment.
113372 2003-01-14  Bruno Haible  <bruno@clisp.org>
113374         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113375         when a string comparison is sufficient.
113377 2003-01-14  Bruno Haible  <bruno@clisp.org>
113379         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113380         'unsigned int'.
113382 2003-01-14  Bruno Haible  <bruno@clisp.org>
113384         * lib/hash-pjw.c: Add comment about low quality of this function.
113386 2003-01-13  Bruno Haible  <bruno@clisp.org>
113388         * modules/stpcpy: Distribute lib/stpcpy.h.
113389         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113391 2003-01-13  Bruno Haible  <bruno@clisp.org>
113393         * modules/*: Add a description.
113394         * modules/strpbrk: Fix Makefile.am snippet.
113395         * modules/strtoimax: Fix dependencies.
113396         * modules/strtoumax: Likewise.
113398 2003-01-13  Bruno Haible  <bruno@clisp.org>
113400         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113401         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113402         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113404 2003-01-13  Bruno Haible  <bruno@clisp.org>
113406         * gnulib-tool (func_create_testdir): Store config/* files in the main
113407         directory.
113408         * config.rpath: Move to ...
113409         * config/config.rpath: ... here.
113410         * modules/gettext: Contains config/config.rpath, not config.rpath.
113411         * modules/iconv: Likewise.
113413 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113415         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113416         to avoid collisions with libcurses and libreadline.
113418         * m4/getstr.m4: Remove.
113419         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113421 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113423         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113424         to avoid collisions with libcurses and libreadline.
113426         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113427         * lib/getstr.h, getstr.c: Remove.
113428         * lib/getline.c: Include "getline.h", to check interface.
113429         Move body of old getstr.c here: this defines MIN_CHUNK and
113430         declares getdelim2, which is renamed from getstr.
113431         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113433         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113434         All uses changed.
113435         * lib/linebuffer.h: Likewise.
113436         (readline): Remove backward-compatibility macro.
113438 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113440         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113441         to avoid collisions with libcurses and libreadline.
113442         * getstr: Remove.
113443         * MODULES.html.sh: Remove getstr.
113444         * modules/getline: Depend on unlocked-io, not getstr.
113446 2003-01-12  Jim Meyering  <jim@meyering.net>
113448         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113450 2003-01-10  Bruno Haible  <bruno@clisp.org>
113452         * modules/alloca: Change Makefile.am requirements. Simplify Include
113453         requirements. Add lib/alloca_.h to file list.
113455 2003-01-10  Bruno Haible  <bruno@clisp.org>
113457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113459 2003-01-10  Bruno Haible  <bruno@clisp.org>
113461         * lib/alloca_.h: New file.
113462         * lib/getdate.y: Unconditionally include alloca.h.
113463         * lib/makepath.c: Likewise.
113464         * lib/setenv.c: Likewise.
113465         * lib/userspec.c: Likewise.
113467 2003-01-09  Karl Berry  <karl@gnu.org>
113469         * MODULES.html.sh: include `dirname $0` in PATH, to find
113470         gnulib-tool.
113472 2003-01-09  Bruno Haible  <bruno@clisp.org>
113474         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113475         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113477 2003-01-09  Bruno Haible  <bruno@clisp.org>
113479         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113481 2003-01-09  Bruno Haible  <bruno@clisp.org>
113483         * lib/stdbool.h.in: New file.
113485 2003-01-09  Bruno Haible  <bruno@clisp.org>
113487         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113488         * MODULES.html.sh: Likewise.
113490 2003-01-08  Jim Meyering  <jim@meyering.net>
113492         * lib/full-write.c: Undefine and define-away `const' after inclusion
113493         of errno.h, not before.  Suggestion from Bruno Haible.
113495 2003-01-08  Bruno Haible  <bruno@clisp.org>
113497         * modules/full-read: Depend on full-write.
113499 2003-01-08  Bruno Haible  <bruno@clisp.org>
113501         * lib/safe-read.c: Include specification header first, to ensure its
113502         selfcontainedness.
113503         * lib/full-write.c: Likewise.
113505 2003-01-07  Jim Meyering  <jim@meyering.net>
113507         * lib/full-write.c: Rework so that it may serve to define full_read,
113508         too.
113509         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113511 2003-01-07  Bruno Haible  <bruno@clisp.org>
113513         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113514         <inttypes.h>.
113515         * lib/xstrtol.h: Likewise.
113516         * lib/xstrtoimax.c: Likewise.
113517         * lib/xstrtoumax.c: Likewise.
113518         * lib/human.h: Likewise.
113520         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113521         on systems that have <inttypes.h> but not <stdint.h>.
113523 2003-01-07  Bruno Haible  <bruno@clisp.org>
113525         * MODULES.html.sh: Add copyright notice.
113526         (missed_files): Omit CVS directory entries.
113527         (func_module): Make it work with sed-3.02.
113528         * MODULES.txt: Remove file.
113530 2003-01-06  Jim Meyering  <jim@meyering.net>
113532         * lib/version-etc.c: Update year in translatable copyright string.
113534 2003-01-03  Karl Berry  <karl@gnu.org>
113536         * config/config.{guess,sub}: update from prep.
113538 2003-01-02  Karl Berry  <karl@gnu.org>
113540         * doc/COPYING.DOC: belatedly updated to 1.2.
113542 2003-01-01  Karl Berry  <karl@gnu.org>
113544         * gnulib-tool (func_verify_module): report module name $module in
113545         error message, not $1.
113546         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113547         be created, only if it doesn't exist.
113548         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113550 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113552         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113554 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113556         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113557         memcmp if strcoll doesn't work.
113559 2002-12-31  Bruno Haible  <bruno@clisp.org>
113561         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113562         nonempty.
113564 2002-12-31  Bruno Haible  <bruno@clisp.org>
113566         * lib/memcoll.c (STRCOLL): New macro.
113567         (memcoll): Use it.
113569 2002-12-31  Bruno Haible  <bruno@clisp.org>
113571         * lib/localcharset.h: New file.
113572         * lib/localcharset.c: Include it.
113573         * lib/unicodeio.c: Likewise.
113575 2002-12-31  Bruno Haible  <bruno@clisp.org>
113577         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113578         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113580 2002-12-31  Bruno Haible  <bruno@clisp.org>
113582         * lib/getline.h: Include <stddef.h>, for size_t.
113584         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113585         * lib/unicodeio.c: Don't include <stddef.h>.
113587 2002-12-31  Bruno Haible  <bruno@clisp.org>
113589         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113590         HAVE_TM_ZONE.
113592 2002-12-24  Karl Berry  <karl@gnu.org>
113594         * config/config.guess: update from prep.
113596 2002-12-24  Bruno Haible  <bruno@clisp.org>
113598         General infrasructure.
113599         * m4/README: Rewritten.
113600         * m4/onceonly.m4: New file.
113601         * m4/onceonly_2_57.m4: New file.
113603         Module atexit.
113604         * m4/atexit.m4: New file.
113606         Module strtod.
113607         * m4/strtod.m4: New file.
113609         Module strtol.
113610         * m4/strtol.m4: New file.
113612         Module strtoul.
113613         * m4/strtoul.m4: New file.
113615         Module memchr.
113616         * m4/memchr.m4: New file.
113618         Module memcmp.
113619         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113620         (jm_FUNC_MEMCMP): Invoke it.
113622         Module memcpy.
113623         * m4/memcpy.m4: New file.
113625         Module memmove.
113626         * m4/memmove.m4: New file.
113628         Module memset.
113629         * m4/memset.m4: New file.
113631         Module strcspn.
113632         * m4/strcspn.m4: New file.
113634         Module strpbrk.
113635         * m4/strpbrk.m4: New file.
113637         Module strstr.
113638         * m4/strstr.m4: New file.
113640         Module strerror.
113641         * m4/strerror.m4: New file.
113643         Module mktime.
113644         * m4/mktime.m4: Renamed from jm-mktime.m4.
113645         (gl_PREREQ_MKTIME): New macro.
113646         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113648         Module malloc.
113649         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113650         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113651         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113653         Module realloc.
113654         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113655         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113656         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113658         Module strftime.
113659         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113660         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113661         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113662         gl_TM_GMTOFF.
113663         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113665         Module xalloc.
113666         * m4/xalloc.m4: New file.
113668         Module alloca.
113669         * m4/alloca.m4: New file.
113671         Module putenv.
113672         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113673         (jm_FUNC_PUTENV): Invoke it.
113675         Module setenv.
113676         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113677         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113678         when invoked twice.
113679         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113680         gt_FUNC_SETENV.
113682         Module memrchr.
113683         * m4/memrchr.m4: New file.
113685         Module stpcpy.
113686         * m4/stpcpy.m4: New file.
113688         Module strcase.
113689         * m4/strcase.m4: New file.
113691         Module strdup.
113692         * m4/strdup.m4: New file.
113694         Module strnlen.
113695         * m4/strnlen.m4: New file.
113697         Module strndup.
113698         * m4/strndup.m4: New file.
113700         Module xstrtod.
113701         * m4/xstrtod.m4: New file.
113703         Module xstrtol.
113704         * m4/xstrtol.m4: New file.
113706         Module getdate.
113707         * m4/getdate.m4: New file.
113709         Module unlocked-io.
113710         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113711         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113712         * m4/jm-glibc-io.m4n: Remove file.
113714         Module long-options.
113715         * m4/long-options.m4: New file.
113717         Module md5.
113718         * m4/md5.m4: New file.
113720         Module sha.
113721         * m4/sha.m4: New file.
113723         Module getstr.
113724         * m4/getstr.m4: New file.
113726         Module getline.
113727         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113728         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113729         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113730         simply getline. Infoke gl_PREREQ_GETLINE.
113732         Module obstack.
113733         * m4/obstack.m4: New file.
113735         Module hash.
113736         * m4/hash.m4: New file.
113738         Module readtokens.
113739         * m4/readtokens.m4: New file.
113741         Module strverscmp.
113742         * m4/strverscmp.m4: New file.
113744         Module stdbool.
113745         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113746         OSF/1.
113748         Module strtoll.
113749         * m4/strtoll.m4: New file.
113751         Module strtoull.
113752         * m4/strtoull.m4: New file.
113754         Module strtoimax.
113755         * m4/strtoimax.m4: New file.
113757         Module strtoumax.
113758         * m4/strtoumax.m4: New file.
113760         Module xstrtoimax.
113761         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113762         jm_AC_PREREQ_XSTRTOIMAX.
113763         Moved the strtol prerequisites to strtol.m4.
113764         Moved the strtoll prerequisites to strtoll.m4.
113765         Moved the strtoimax prerequisites to strtoimax.m4.
113767         Module xstrtoumax.
113768         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113769         jm_AC_PREREQ_XSTRTOUMAX.
113770         Moved the strtoul prerequisites to strtoul.m4.
113771         Moved the strtoull prerequisites to strtoull.m4.
113772         Moved the strtoumax prerequisites to strtoumax.m4.
113774         Module chown.
113775         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113776         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113778         Module dup2.
113779         * m4/dup2.m4: New file.
113781         Module ftruncate.
113782         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113783         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113785         Module getgroups.
113786         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113787         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113789         Module gettimeofday.
113790         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113791         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113792         gl_PREREQ_GETTIMEOFDAY.
113794         Module mkdir.
113795         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113796         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113798         Module mkstemp.
113799         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113800         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113801         jm_AC_TYPE_UINTMAX_T.
113802         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113804         Module stat.
113805         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113806         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113808         Module lstat.
113809         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113810         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113812         Module timespec.
113813         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113814         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113815         * m4/st_mtim.m4: Indentation.
113817         Module nanosleep.
113818         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113819         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113820         gl_PREREQ_NANOSLEEP.
113822         Module regex.
113823         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113824         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113825         (gl_REGEX): New macro.
113827         Module rename.
113828         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113829         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113831         Module rmdir.
113832         * m4/rmdir.m4: New file.
113834         Module utime.
113835         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113836         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113837         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113839         Module dirname.
113840         * m4/dirname.m4: New file.
113842         Module getopt.
113843         * m4/getopt.m4: New file.
113845         Module unistd-safer.
113846         * m4/unistd-safer.m4: New file.
113848         Module fnmatch.
113849         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113850         declaration.
113851         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113852         (gl_FUNC_FNMATCH_POSIX): New macro.
113853         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113854         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113855         simply fnmatch.
113857         Module exclude.
113858         * m4/exclude.m4: New file.
113860         Module human.
113861         * m4/human.m4: New file.
113863         Module acl.
113864         * m4/acl.m4: Nop.
113866         Module backupfile.
113867         * m4/backupfile.m4: New file.
113868         * m4/d-ino.m4: Indentation.
113870         Module fsusage.
113871         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113872         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113873         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113875         Module dirfd.
113876         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113877         requirements.
113879         Module euidaccess.
113880         * m4/euidaccess.m4: New file.
113882         Module file-type.
113883         * m4/file-type.m4: New file.
113885         Module fileblocks.
113886         * m4/fileblocks.m4: New file.
113888         Module filemode.
113889         * m4/filemode.m4: New file.
113891         Module isdir.
113892         * m4/isdir.m4: New file.
113894         Module lchown.
113895         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113896         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113898         Module makepath.
113899         * m4/makepath.m4: New file.
113901         Module modechange.
113902         * m4/modechange.m4: New file.
113904         Module mountlist.
113905         * m4/mountlist.m4: New file.
113906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113907         Indentation.
113909         Module path-concat.
113910         * m4/path-concat.m4: New file.
113912         Module pathmax.
113913         * m4/pathmax.m4: New file.
113915         Module same.
113916         * m4/same.m4: New file.
113918         Module save-cwd.
113919         * m4/save-cwd.m4: New file.
113921         Module savedir.
113922         * m4/savedir.m4: New file.
113924         Module xgetcwd.
113925         * m4/xgetcwd.m4: New file.
113926         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113928         Module xreadlink.
113929         * m4/xreadlink.m4: New file.
113931         Module safe-read.
113932         * m4/safe-read.m4: New file.
113934         Module safe-write.
113935         * m4/safe-write.m4: New file.
113937         Module closeout.
113938         * m4/closeout.m4: New file.
113940         Module stdio-safer.
113941         * m4/stdio-safer.m4: New file.
113943         Module getpass.
113944         * m4/getpass.m4: New file.
113946         Module getugroups.
113947         * m4/getugroups.m4: New file.
113949         Module group-member.
113950         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113951         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113953         Module idcache.
113954         * m4/idcache.m4: New file.
113956         Module userspec.
113957         * m4/userspec.m4: New file.
113959         Module gettime.
113960         * m4/clock_time.m4: New file.
113961         * m4/gettime.m4: New file.
113963         Module settime.
113964         * m4/settime.m4: New file.
113966         Module posixtm.
113967         * m4/posixtm.m4: New file.
113969         Module gethostname.
113970         * m4/gethostname.m4: New file.
113972         Module canon-host.
113973         * m4/canon-host.m4: New file.
113975         Module gettext.
113976         * m4/codeset.m4: New file, from gettext-0.11.5.
113977         * m4/gettext.m4: New file, from gettext-0.11.5.
113978         * m4/glibc21.m4: New file, from gettext-0.11.5.
113979         * m4/iconv.m4: New file, from gettext-0.11.5.
113980         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113981         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113982         * m4/inttypes.m4: New file, from gettext-0.11.5.
113983         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113984         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113985         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113986         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113987         * m4/lib-link.m4: New file, from gettext-0.11.5.
113988         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113989         * m4/progtest.m4: New file, from gettext-0.11.5.
113990         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113991         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113992         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113994         Module localcharset.
113995         * m4/localcharset.m4: New file.
113997         Module hard-locale.
113998         * m4/hard-locale.m4: New file.
114000         Module mbswidth.
114001         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
114002         onceonly macros.
114003         * m4/mbrtowc.m4: Add comment.
114005         Module memcasecmp.
114006         * m4/memcasecmp.m4: New file.
114008         Module memcoll.
114009         * m4/memcoll.m4: New file.
114011         Module unicodeio.
114012         * m4/unicodeio.m4: New file.
114014         Module rpmatch.
114015         * m4/rpmatch.m4: New file.
114017         Module yesno.
114018         * m4/yesno.m4: New file.
114020         Module exitfail.
114021         * m4/exitfail.m4: New file.
114023         Module c-stack.
114024         * m4/c-stack.m4 (gl_C_STACK): New macro.
114025         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
114027         Module error.
114028         * m4/error.m4 (gl_ERROR): New macro.
114029         (jm_PREREQ_ERROR): Use onceonly macros.
114031         Module fatal.
114032         * m4/fatal.m4: New file.
114034         Module getloadavg.
114035         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
114036         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
114038         Module getpagesize.
114039         * m4/getpagesize.m4: New file.
114041         Module getusershell.
114042         * m4/getusershell.m4: New file.
114044         Module physmem.
114045         * m4/physmem.m4: New file.
114047         Module posixver.
114048         * m4/posixver.m4: New file.
114050         Module quotearg.
114051         * m4/quotearg.m4: New file.
114053         Module quote.
114054         * m4/quote.m4: New file.
114056         Module readutmp.
114057         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
114059         Module sig2str.
114060         * m4/sig2str.m4: New file.
114062         Other.
114063         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
114064         ulonglong.m4.
114065         * m4/intmax_t.m4: New file.
114066         * m4/d-type.m4: Indentation.
114067         * m4/jm-macros.m4: Update.
114068         * m4/prereq.m4 (jm_PREREQ): Update.
114069         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
114070         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
114071         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
114072         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
114073         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
114074         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
114075         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
114076         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
114077         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
114078         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
114079         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
114080         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
114081         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
114082         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
114083         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
114084         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
114085         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
114086         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
114087         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
114089 2002-12-24  Bruno Haible  <bruno@clisp.org>
114091         * MODULES.txt: Update according to m4/ changes.
114093         Module gettext.
114094         * config.rpath: New file, from gettext-0.11.5.
114096         * modules/*: New module descriptions.
114097         * gnulib-tool: New file.
114098         * MODULES.html.sh: New file.
114100 2002-12-21  Karl Berry  <karl@gnu.org>
114102         * doc/fdl.texi: update to version 1.2.
114104 2002-12-19  Karl Berry  <karl@gnu.org>
114106         * config/config.guess: update from prep.
114108 2002-12-18  Bruno Haible  <bruno@clisp.org>
114110         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
114111         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
114113 2002-12-17  Bruno Haible  <bruno@clisp.org>
114115         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
114116         stdlib.h, string.h.
114118 2002-12-17  Bruno Haible  <bruno@clisp.org>
114120         * lib/canon-host.c (strdup): Remove unused declaration.
114122         * lib/fsusage.c: Include full_read.h.
114123         (get_fs_usage): Use full_read instead of safe_read.
114125         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114127 2002-12-12  Karl Berry  <karl@gnu.org>
114129         * config/config.guess: update from prep.
114131 2002-12-11  Bruno Haible  <bruno@clisp.org>
114133         * m4/setenv.m4: New file, from gettext-0.11.5.
114135 2002-12-11  Bruno Haible  <bruno@clisp.org>
114137         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114138         not unsetenv().
114139         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114140         modifications:
114142         2002-12-11  Bruno Haible  <bruno@clisp.org>
114144                 * setenv.c (alloca): Fall back to malloc.
114145                 (freea): New macro.
114146                 (setenv): Use freea() to free memory allocated with alloca().
114148         2002-11-13  Bruno Haible  <bruno@clisp.org>
114150                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114151                 function declarations.
114152                 * unsetenv.c (unsetenv): Likewise.
114154         2002-03-04  Bruno Haible  <bruno@clisp.org>
114156                 Portability to AIX 4.3.3.
114157                 * unsetenv.c: New file, extracted from setenv.c.
114158                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114160         2001-12-20  Bruno Haible  <bruno@clisp.org>
114162                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114163                 use malloc instead. For SunOS 4.
114165         2001-12-11  Bruno Haible  <bruno@clisp.org>
114167                 * setenv.c: Declare alloca.
114168                 (compar_fn_t): New typedef.
114169                 (KNOWN_VALUE, STORE_VALUE): Use it.
114171         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114172         setenv.h.
114174 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114176         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114177         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114178         Choose values that are less likely to collide with system fnmatch
114179         options.
114180         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114181         defined (e.g., a pure POSIX system).
114182         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114183         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114185 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114187         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114188         a pain in practice to deal with generated m4 files.  This change
114189         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114191         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114192         and jm-glibc-io.m4, as they are no longer a special case.
114193         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114194         kludge and the auto-generation stuff.  Check only whether the
114195         functions are declared, not whether they exist, since older hosts
114196         that don't declare the functions can't use the optimization anyway.
114198 2002-12-06  Jim Meyering  <jim@meyering.net>
114200         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114202         Merge in changes from libc's misc/error.c, in preparation
114203         for the merge of gnulib's changes back into libc.
114205         * lib/error.c (_): Define only if not already defined.
114206         Move definition to follow all #include directives.
114207         Include unlocked-io.h only if !_LIBC.
114208         [_LIBC]: Include <libio/libioP.h>.
114209         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114210         (fflush): Tweak definition to use INTUSE.
114211         (putc): Define.
114213 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114215         * lib/alloca.c [defined emacs]: Include "lisp.h".
114216         (xalloc_die) [defined emacs]: New macro.
114217         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114218         [! defined emacs]: Include <xalloc.h>.
114219         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114220         (pointer): Typedef to POINTER_TYPE *.
114221         (malloc): Remove decl; we now always use xmalloc.
114222         (alloca): Use old-style definition, since Emacs needs this.
114223         Check for arithmetic overflow when computing combined size.
114225 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114227         Do not generate unlocked-io.h automatically, since it's easier to
114228         maintain it by hand.
114230         * lib/unlocked-io.h: New file, from GNU diffutils,
114231         but with proper copyright notice and attribution.
114232         * lib/gen-uio: Remove.
114233         * lib/Makefile.am: Add copyright notice.
114234         (libfetish_a_SOURCES): Add unlocked-io.h.
114235         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114236         (DISTCLEANFILES, io_functions): Remove macros.
114237         (EXTRA_DIST): Remove gen_uio.
114238         (unlocked-io.h): Remove rule.
114240 2002-12-04  Jim Meyering  <jim@meyering.net>
114242         Reflect the fact that stat.c and lstat.c are no longer generated.
114243         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114244         (DISTCLEANFILES): Likewise.
114245         (EXTRA_DIST): Likewise.
114246         (all_local): Don't depend on stat.c or lstat.c.
114247         (stat.c, lstat.c): Remove rules.
114248         (EXTRA_DIST): Remove xstat.in.
114250         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114251         * lib/stat.c: New file.  Contents mostly from xstat.in.
114252         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114253         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114255         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114256         too.
114257         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114259 2002-12-03  Jim Meyering  <jim@meyering.net>
114261         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114262         but not semantics, to minimize the differences between these two files.
114263         (safe_read): Change comment to mention SAFE_READ_ERROR.
114265         * lib/safe-read.c (IS_EINTR): Define.
114266         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114268 2002-12-02  Jim Meyering  <jim@meyering.net>
114270         * lib/safe-read.c (EINTR): Define.
114271         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114272         (INT_MAX): Provide fallback.
114273         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114275         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114277 2002-12-02  Bruno Haible  <bruno@clisp.org>
114279         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114280         Define, taken from safe-read.c.
114281         (INT_MAX): Provide fallback.
114282         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114283         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114285         * lib/safe-read.c (EINTR): Remove definition.
114286         (safe_read): Don't use EINTR if it is absent.
114288 2002-12-01  Jim Meyering  <jim@meyering.net>
114290         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114291         zero.
114292         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114294 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114296         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114297         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114298         with `if (! (value < limit)) abort ();', for readability.
114300 2002-11-26  Karl Berry  <karl@gnu.org>
114302         * lib/strdup.c: copy from libc again, with jim's ok.
114303         * lib/.cppi-disable: re-add strdup.c
114305 2002-11-25  Karl Berry  <karl@gnu.org>
114307         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114308         instead of "strtol.c".
114310 2002-11-25  Karl Berry  <karl@gnu.org>
114312         * config/install-sh: update from automake for variable quoting, $0 in
114313         error msgs, etc.
114315         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114316         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114317         entry.
114319 2002-11-25  Jim Meyering  <jim@meyering.net>
114321         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114323 2002-11-24  Karl Berry  <karl@gnu.org>
114325         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114326         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114328 2002-11-24  Jim Meyering  <jim@meyering.net>
114330         Update from coreutils:
114332         * lib/mktime.c: Merge in changes from libc.
114334         Avoid a link-time failure on some Linux systems.
114335         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114336         (otherwise).
114337         (__mon_yday): Declare with the STATIC attribute.
114338         (__mktime_internal): Likewise.
114339         Based on a report from Greg Schafer.
114341 2002-11-23  Jim Meyering  <jim@meyering.net>
114343         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114344         Use `unsigned', not `int', as type of index.
114346         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114348         * lib/fsusage.c: Remove unneeded parentheses around operands of
114349         `defined'.
114351 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114353         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114354         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114355         so that we can be included first.
114356         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114357         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114358         No need to include stddef.h or sys/types.h any more.
114359         Surround local include files with "", not "<>".
114360         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114361         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114362         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114363         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114364         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114365         (ISPRINT): Remove; no longer needed now that we assume C89.
114367         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114368         Preserve errno.
114370         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114371         quotearg_char): Use SIZE_MAX rather than
114372         (size_t) -1 when we are talking about "infinity".
114374         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114376 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114378         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114379         hint that one should use `if (! x) abort ();' rather than `assert
114380         (x);', and anyway it's one less thing to worry about configuring.
114381         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114382         hash_rehash, hash_insert): Use abort rather than assert.
114384 2002-11-22  Bruno Haible  <bruno@clisp.org>
114386         * lib/safe-read.h: Assume C89. Add comments.
114387         (safe_read): Change return type to size_t.
114388         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114389         byte counts > SSIZE_MAX correctly.
114390         * lib/safe-write.h: New file.
114391         * lib/safe-write.c: New file.
114392         * lib/full-read.h: New file.
114393         * lib/full-read.c: New file.
114394         * lib/full-write.h: Assume C89. Add comments.
114395         * lib/full-write.c: Include safe-write.h.
114396         (full_write): Rewritten to use safe_write.
114397         Suggested by Jim Meyering and Paul Eggert.
114399 2002-11-21  Jim Meyering  <jim@meyering.net>
114401         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114403         Merge in changes from the coreutils.
114405         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114406         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114407         <stdint.h>.
114408         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114409         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114410         int.  Work more efficiently if X is the same width as uintmax_t.
114411         Do not compare X to -1, to avoid bogus compiler warning.
114412         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114413         Don't assume that f_frsize and f_bsize are the same type.
114415         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114416         warning on FreeBSD.
114418         * lib/makepath.c (make_path): Restore umask *before* creating the final
114419         component.
114420         (make_path): Minor reformatting.
114422         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114423         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114424         HAVE_MALLOC/HAVE_REALLOC.
114426         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114427         dummy ones.  At least on GNU/Linux systems, `auto' means something
114428         else.
114429         From Michael Stone.
114431 2002-11-21  Bruno Haible  <bruno@clisp.org>
114433         Remove case insensitive option matching.
114434         * lib/argmatch.h (argcasematch): Remove declaration.
114435         (ARGCASEMATCH): Remove macro.
114436         (__xargmatch_internal): Remove case_sensitive argument.
114437         (XARGMATCH): Update.
114438         (XARGCASEMATCH): Remove macro.
114439         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114440         case_sensitive argument.
114441         (argcasematch): Remove function.
114442         (__xargmatch_internal): Remove case_sensitive argument.
114443         (main): Use XARGMATCH instead of XARGCASEMATCH.
114445         * lib/xmalloc.c: Change compile-time error message. Add comment about
114446         required autoconf version.
114448 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114450         Merge argmatch cleanups from Bison.  Assume C89.
114452         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114453         Include stdlib.h, for EXIT_FAILURE.
114454         Always include <string.h>, since we assume C89.
114455         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114456         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114457         Include <stddef.h> instead, since it's all we need for size_t.
114458         (PARAMS): Remove.  All uses removed.
114459         (ARRAY_CARDINALITY): Do not bother to #undef.
114460         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114461         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114462         Remove unnecessary parentheses.
114463         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114464         Insert necessary parentheses.
114465         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114466         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114468 2002-11-19  Bruno Haible  <bruno@clisp.org>
114470         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114471         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114473         * lib/mbswidth.h (PARAMS): Remove macro.
114474         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114475         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114477         * lib/gcd.h (PARAMS): Remove macro.
114478         (gcd): Use ANSI C function declarations.
114479         * lib/gcd.c (gcd): Likewise.
114481 2002-11-15  Bruno Haible  <bruno@clisp.org>
114483         * lib/strcspn.c: Include <stddef.h>.
114484         (strcspn): Use ANSI C function declaration. Change return type to
114485         size_t. Use NULL.
114486         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114487         (strpbrk): Use NULL.
114488         * lib/strpbrk.h (PARAMS): Remove macro.
114489         (strpbrk): Use ANSI C function declaration.
114490         * lib/strstr.c: Don't include <sys/types.h>.
114491         * lib/strstr.h (PARAMS): Remove macro.
114492         (strstr): Use ANSI C function declarations.
114494 2002-11-14  Karl Berry  <karl@gnu.org>
114496         * config/mkinstalldirs: `do' on separate line, instead of
114497         `for var; do'.
114499 2002-11-06  Bruno Haible  <bruno@clisp.org>
114501         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114502         * lib/gcd.c (gcd): Likewise.
114504 2002-11-05  Bruno Haible  <bruno@clisp.org>
114506         * lib/gcd.h: New file, from gettext-0.11.5.
114507         * lib/gcd.c: New file, from gettext-0.11.5.
114509 2002-11-05  Bruno Haible  <bruno@clisp.org>
114511         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114512         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114513         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114514         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114516         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114517         <libintl.h>.
114518         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114519         <libintl.h>.
114521         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114522         * lib/human.c: Include gettext.h instead of <libintl.h>.
114523         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114524         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114525         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114526         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114527         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114528         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114529         (textdomain): Remove definition.
114530         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114532         * lib/long-options.c: Remove include of <libintl.h> and definition of
114533         _.
114534         * lib/same.c: Remove include of <libintl.h> and definition of _.
114536 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114538         * lib/config.charset: A few additions for Solaris.
114540 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114542         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114543         * lib/localcharset.c (locale_charset): Declare as extern "C".
114545 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114547         * lib/config.charset: msdos in uk_UA uses CP1125.
114549 2002-11-04  Bruno Haible  <bruno@clisp.org>
114551         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114552         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114553         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114554         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114555         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114557 2002-11-04  Bruno Haible  <bruno@clisp.org>
114559         * lib/localcharset.c (locale_charset): Don't return an empty string.
114561 2002-11-04  Bruno Haible  <bruno@clisp.org>
114563         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114564         aliases.
114566 2002-11-04  Bruno Haible  <bruno@clisp.org>
114568         * lib/config.charset: Update for newest glibc. Add canonical names
114569         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114571 2002-11-04  Bruno Haible  <bruno@clisp.org>
114573         * lib/config.charset: Add support for NetBSD.
114575 2002-11-04  Bruno Haible  <bruno@clisp.org>
114577         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114579 2002-11-01  Bruno Haible  <bruno@clisp.org>
114581         * configure.in: Add AC_CONFIG_AUX_DIR call.
114582         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114583         test/Makefile.
114584         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114586 2002-09-28  Karl Berry  <karl@gnu.org>
114588         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114589         installed automake until the next release, since changes have been
114590         made.
114592 2002-09-25  Karl Berry  <karl@gnu.org>
114594         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114595         * lib/getopt*: copy from libc/posix.
114596         * lib/gettext.h: copy from gettext.
114597         * lib/.cppi-disable: add strdup.c, gettext.h.
114599 2002-09-25  Karl Berry  <karl@gnu.org>
114601         * config/srclist.txt: enable gettext.h check.
114602         * config/config.{guess,sub}: update from prep.
114603         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114604                 from automake 1.6.3.
114605         See srclist*.
114607 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114609         * regex.c (PATFETCH): Remove the translating fetch.
114610         (PATFETCH_RAW): Rename to PATFETCH.
114611         (set_image_of_range): New fun.
114612         (SET_RANGE_TABLE_WORK_AREA): Use it.
114613         (regex_compile): Don't translate the pattern chars so eagerly.
114614         Only do it when inserting an `exactn' bytecode or when handling
114615         a char-range.
114616         (mutually_exclusive_p): Avoid empty statement.
114618 2002-07-06  Jim Meyering  <meyering@lucent.com>
114620         * m4/README: Don't mention Makefile.am.in.
114621         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114623 2002-07-01  Jim Meyering  <meyering@lucent.com>
114625         * lib/c-stack.c: Include sys/time.h.
114626         From Volker Borchert.
114628 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114632 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114634         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114635         New macro.  Use it uniformly instead of
114636         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114637         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114638         reported by Vin Shelton.
114640 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114642         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114643         Do not assume SA_SIGINFO behavior.
114644         Bug reported by Jim Meyering on NetBSD 1.5.2.
114646 2002-06-22  Jim Meyering  <meyering@lucent.com>
114648         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114652         now that configure.ac uses AC_GNU_SOURCE.
114653         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114654         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114656         Update to latest tools.  Suggestions from Paul Eggert.
114657         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114658         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114659         * m4/fnmatch.m4: Likewise.
114660         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114661         to AC_HEADER_STDBOOL
114663 2002-06-22  Jim Meyering  <meyering@lucent.com>
114665         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114666         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114668 2002-06-22  Jim Meyering  <meyering@lucent.com>
114670         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114672         * lib/exitfail.c, exitfail.h: Likewise.
114673         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114675         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114676         of fnmatch.h.
114677         (EXTRA_DIST): Add fnmatch_loop.c.
114678         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114680         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114681         * lib/fnmatch.c: Update from diffutils-2.8.2.
114682         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114683         * lib/fnmatch.h: Remove file.
114685 2002-06-21  Jim Meyering  <meyering@lucent.com>
114687         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114688         * m4/mbrtowc.m4: Likewise.
114690         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114691         * m4/mbswidth.m4: Reflect name change:
114692         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114695         * m4/lib-link.m4: Update from gettext-0.11.2.
114696         * m4/gettext.m4: Likewise.
114698         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114699         From Alfred M. Szmidt.
114701 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114703         * lib/file-type.h: Report an error if neither S_ISREG nor
114704         S_IFREG is defined, instead of using a test specific to glibc
114705         2.2.  This should be safe, since POSIX requires S_ISREG and
114706         Unix Version 7 had S_IFREG.  We don't need to check for
114707         <sys/types.h> since we don't use any symbols that it defines.
114709 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114711         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114712         $@-t, so that each temporary file name is unique and valid in the first
114713         8 characters, for operation under DOS.
114715 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114719 2002-06-15  Jim Meyering  <meyering@lucent.com>
114721         Work even with DJGPP 2.03, which lacks support for symlinks.
114722         From Richard Dawe.
114723         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114724         is defined.
114725         * lib/lchown.c (S_ISLNK): Likewise.
114727 2002-06-15  Jim Meyering  <meyering@lucent.com>
114729         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114730         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114731         have been included before this file.
114733 2002-06-14  Jim Meyering  <meyering@lucent.com>
114735         * lib/file-type.h: Use the version from diffutils-2.8.2.
114736         * lib/file-type.c: Likewise.
114738 2002-06-07  Jim Meyering  <meyering@lucent.com>
114740         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114741         They're needed at least for NetBSD 1.5.2.
114742         ($statxfs_includes): Include those same headers.
114743         ($statxfs_includes): Include sys/vfs.h if available.
114744         ($statxfs_includes): Likewise for sys/statvfs.h.
114745         Check for the following members in both structs statfs and statvfs:
114746         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114748 2002-06-01  Jim Meyering  <meyering@lucent.com>
114750         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114751         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114753 2002-05-28  Jim Meyering  <meyering@lucent.com>
114755         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114756         Reported by Volker Borchert.
114758 2002-05-27  Jim Meyering  <meyering@lucent.com>
114760         Fix a problem seen only on nonconforming systems whereby ls.c's
114761         use of localtime, and then of gettimeofday would cause trouble:
114762         the localtime call used to initialize rpl_gettimeofday's save
114763         mechanism would clobber ls's current local time information so
114764         that in any long listing the first file would always be listed
114765         with date 1970-01-01.  Analysis by Volker Borchert.
114767         * lib/gettimeofday.c (localtime): Undefine.
114768         (rpl_localtime): New function.
114770 2002-05-27  Jim Meyering  <meyering@lucent.com>
114772         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114773         localtime.
114775         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114776         use the replacement function; it wouldn't resolve at link time.
114777         Reported by Volker Borchert.
114779 2002-05-22  Jim Meyering  <meyering@lucent.com>
114781         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114782         file-type.h.
114783         * lib/file-type.h: New file.
114784         * lib/file-type.c (file_type): New file/function.  Extracted from
114785         diffutils.
114787 2002-04-30  Jim Meyering  <meyering@lucent.com>
114789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114791 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114793         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114795 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114797         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114798         Do not check for alloca.h (no longer used) or stdbool.h (was never
114799         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114801 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114803         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114805 2002-04-29  Jim Meyering  <meyering@lucent.com>
114807         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114808         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114809         Use AC_FUNC_STRNLEN here instead.
114811         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114812         With autoconf-2.53a, it's part of AC_PROG_CC.
114814 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114816         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114819 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114821         * lib/sig2str.h, lib/sig2str.c: New files.
114822         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114824 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114826         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114827         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114828         of 127, since 64 is the largest conceivable number for ancient
114829         nonstandard hosts.
114830         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114832 2002-04-28  Jim Meyering  <meyering@lucent.com>
114834         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114836 2002-04-24  Jim Meyering  <meyering@lucent.com>
114838         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114839         (jm_PREREQ): Use it.
114841         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114842         mach/mach.h fcntl.h.
114843         Check for this function: setlocale.
114845 2002-04-24  Jim Meyering  <meyering@lucent.com>
114847         * lib/gettext.h: New file, from Gettext.
114848         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114849         (libfetish_a_SOURCES): Add gettext.h.
114851 2002-04-16  Jim Meyering  <meyering@lucent.com>
114853         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114854         ut_pid, ut_id, ut_exit.
114856 2002-04-16  Jim Meyering  <meyering@lucent.com>
114858         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114859         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114860         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114862 2002-04-12  Jim Meyering  <meyering@lucent.com>
114864         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114865         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114866         existence of the getmntinfo function.  Needed for Darwin 5.3.
114868         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114869         This is necessary at least on Darwin 5.3.
114871         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114872         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114873         strnlen.o in the library, and that makes some versions of ranlib
114874         object.
114876 2002-04-12  Jim Meyering  <meyering@lucent.com>
114878         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114880 2002-04-09  Jim Meyering  <meyering@lucent.com>
114882         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114883         to be more precise.  Rather than saying we're checking whether the
114884         function `works', say what we're testing.
114885         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114886         Reported by Bruno Haible.
114888 2002-03-10  Jim Meyering  <meyering@lucent.com>
114890         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114891         Suggestion from Santiago Vila.
114893 2002-03-08  Jim Meyering  <meyering@lucent.com>
114895         * lib/rename.c: Mention that this wrapper is needed also on
114896         mips-dec-ultrix4.4 systems.
114898 2002-03-02  Jim Meyering  <meyering@lucent.com>
114900         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114901         not HAVE_CLOCK_SETTIME.
114903 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114905         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114906         Check for clock_settime.
114908 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114910         * lib/nanosleep.h: Rename to....
114911         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114913         * lib/gettime.c: New file.
114914         * lib/settime.c: New file.
114915         * lib/stime.c: Remove.
114917         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114918         timespec.h.  Remove nanosleep.h.
114920 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114922         * m4/acl.m4: New file.
114923         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114924         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114926 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114928         * lib/acl.c, lib/acl.h: New files.
114929         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114931 2002-02-24  Jim Meyering  <meyering@lucent.com>
114933         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114934         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114935         cause trouble.  Reported by Nelson Beebe.
114937 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114939         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114940         compilers that don't know that xalloc_die never returns.
114942 2002-02-20  Jim Meyering  <meyering@lucent.com>
114944         * lib/getdate.c: Regenerate using bison-1.33.
114946 2002-02-17  Jim Meyering  <meyering@lucent.com>
114948         * config/config.guess (main): Don't use `head -1'; it's no longer
114949         portable. Use `sed 1q' instead.
114951 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114953         * m4/codeset.m4: Upgrade to gettext-0.11.
114954         * m4/gettext.m4: Upgrade to gettext-0.11.
114955         * m4/glibc21.m4: Upgrade to gettext-0.11.
114956         * m4/iconv.m4: Upgrade to gettext-0.11.
114957         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114958         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114959         * m4/lib-ld.m4: New file, from gettext-0.11.
114960         * m4/lib-link.m4: New file, from gettext-0.11.
114961         * m4/lib-prefix.m4: New file, from gettext-0.11.
114962         * m4/progtest.m4: Upgrade to gettext-0.11.
114964 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114966         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114967         (jm_PREREQ): Use it.
114969 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114971         * lib/posixver.c, lib/posixver.h: New files.
114972         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114974 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114975             Bruno Haible  <bruno@clisp.org>
114977         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114978         (fwrite_success_callback): New declaration.
114979         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114980         print_unicode_char. Call failure callback instead of error.
114981         (fwrite_success_callback): New function.
114982         (exit_failure_callback): New function.
114983         (fallback_failure_callback): New function.
114984         (print_unicode_char): Call unicode_to_mb.
114986 2002-01-26  Jim Meyering  <meyering@lucent.com>
114988         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114989         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114991 2002-01-26  Jim Meyering  <meyering@lucent.com>
114993         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114995 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114997         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114999 2002-01-22  Jim Meyering  <meyering@lucent.com>
115001         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
115002         Otherwise, some versions of automake would omit the rule that makes
115003         Makefile from Makefile.in.
115005 2002-01-21  Paul Eggert  <eggert@twinsun.com>
115007         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
115008         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115009         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
115010         (memcoll): Set errno to zero if there is no error.
115012         * lib/quotearg.c (quotearg_buffer_restyled):
115013         Fix bug with quoting buffers containing NUL when backslashing escapes.
115014         This bug was exposed by the other changes in this patch.
115015         (quotearg_n_options): New arg ARGSIZE.
115016         All callers changed.
115017         (quoting_options_from_style): New function.
115018         (quotearg_n_style): Use it.
115019         (quotearg_n_style_mem): New function.
115021         * lib/quotearg.h (quotearg_n_style_mem): New function.
115023 2002-01-19  Jim Meyering  <meyering@lucent.com>
115025         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
115026         Remove useless quotes: DF_PROG="df".
115027         * m4/strnlen.m4: New file.
115029 2002-01-16  Paul Eggert  <eggert@twinsun.com>
115031         * lib/backupfile.c (ISDIGIT): Comment fix.
115032         * lib/getdate.y (ISDIGIT): Likewise.
115033         * lib/posixtm.c (ISDIGIT, year): Likewise.
115034         * lib/strverscmp.c (ISDIGIT): Likewise.
115035         * lib/userspec.c (ISDIGIT): Likewise.
115037 2002-01-16  Jim Meyering  <meyering@lucent.com>
115039         * lib/getdate.y: Add three semicolons, each just before a closing
115040         brace. Bison (as of version 1.31) no longer papers over that mistake.
115042 2002-01-05  Jim Meyering  <meyering@lucent.com>
115044         * lib/version-etc.c (version_etc_copyright): Update copyright year.
115046 2001-12-19  Paul Eggert  <eggert@twinsun.com>
115048         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
115049         not silently exit merely because the output buffer happens to
115050         have nothing pending.
115052 2001-12-18  Paul Eggert  <eggert@twinsun.com>
115054         See the big note in ../ChangeLog.
115055         * lib/human.c (suffixes): Prefer K to k for 1024.
115056         (generate_suffix_backwards): New function.
115057         (human_readable_inexact): Use it.
115058         * lib/xstrtol.c (__xstrtol): If there is no number but there
115059         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
115060         Accept 'K' as well as 'k'.
115062 2001-12-15  Jim Meyering  <meyering@lucent.com>
115064         * lib/regex.h (__restrict_arr): Update from libc.
115066         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
115067         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
115068         (STREQ): Define.
115070 2001-12-14  Jim Meyering  <meyering@lucent.com>
115072         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
115073         Suggestion from Bruno Haible.
115075 2001-12-10  Jim Meyering  <meyering@lucent.com>
115077         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
115078         xrealloc, Instead, include "xalloc.h".
115079         (initbuffer): Don't cast xmalloc return value to char*.
115080         (readline): Reword comment.
115081         Don't cast xrealloc return value to char*
115082         Return NULL, not 0.
115084 2001-12-09  Jim Meyering  <meyering@lucent.com>
115086         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
115087         about `signed and unsigned type in conditional expression'.
115088         * lib/posixtm.c (posix_time_parse): Likewise.
115090         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
115092         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
115093         to avoid a pedantic warning.
115095         * lib/getstr.c: Don't include assert.h.
115096         (getstr): Remove warning-evoking assertions.
115097         Return -1 if offset parameter is out of bounds.
115098         Change the type of a local from int to size_t.
115100         * lib/strftime.c (my_strftime_localtime_r): Include this function
115101         definition in the `#if ! HAVE_TM_GMTOFF' block.
115103         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
115104         Include xalloc.h instead.
115106 2001-12-02  Jim Meyering  <meyering@lucent.com>
115108         * lib/tempname.c: Don't declare getenv, thus reverting the change of
115109         2001-11-18.  It's no longer necessary, now that stdlib.h is always
115110         included.
115112         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
115113         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
115115 2001-11-30  Akim Demaille  <akim@epita.fr>
115117         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
115118         before being defined.
115120 2001-11-27  Paul Eggert  <eggert@twinsun.com>
115122         * lib/quotearg.h (quotearg_n, quotearg_n_style):
115123         First arg is int, not unsigned.
115124         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115125         (SIZE_MAX, UINT_MAX): New macros.
115126         (quotearg_n_options): Abort if N is negative.
115127         Avoid overflow check on hosts where size_t is 64 bits and int
115128         is 32 bits, as overflow is impossible there.
115129         Fix off-by-one typo that caused unnecessary reallocation.
115131 2001-11-27  Jim Meyering  <meyering@lucent.com>
115133         * lib/tempname.c: Merge with version from libc.
115134         * lib/regex.c: Likewise.
115136         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115137         systems for which STDC_HEADERS is 0, it was not included, resulting in
115138         a warning about an integer-to-pointer conversion problem with getenv.
115139         Reported by Volker Borchert.
115141 2001-11-26  Jim Meyering  <meyering@lucent.com>
115143         * lib/gtod.h: Remove file.
115144         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115145         * lib/gettimeofday.c: Don't include gtod.h.
115146         (GTOD_init): Remove function.
115147         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115148         Suggestion from Volker Borchert.
115150 2001-11-23  Jim Meyering  <meyering@lucent.com>
115152         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115153         it.
115154         * lib/hash.c (struct hash_table): Define it here instead.
115156 2001-11-22  Jim Meyering  <meyering@lucent.com>
115158         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115160 2001-11-20  Jim Meyering  <meyering@lucent.com>
115162         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115163         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115165 2001-11-19  Jim Meyering  <meyering@lucent.com>
115167         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115168         directory.  Use "conftestXXXXXX" as the template.
115169         Suggestion from Paul Eggert.
115171         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115172         immediately, so the test doesn't mistakenly hit the max-open-files
115173         limit.
115175 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115177         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115178         (TEMPORARIES): New macro.
115179         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115180         removes an artificial limitation (e.g. HP-UX 10.20, where
115181         TMP_MAX is 17576).
115183 2001-11-18  Jim Meyering  <meyering@lucent.com>
115185         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115187 2001-11-18  Jim Meyering  <meyering@lucent.com>
115189         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115190         on SunOS 4.
115192         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115193         files will be created before anything else.
115195 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115197         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115198         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115200 2001-11-17  Jim Meyering  <meyering@lucent.com>
115202         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115203         Prompted by a report from Bob Proulx.
115205         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115206         Instead, require UTILS_FUNC_MKSTEMP.
115208 2001-11-17  Jim Meyering  <meyering@lucent.com>
115210         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115211         Now, that's done as part of AC_FUNC_STRTOD.
115213 2001-11-17  Jim Meyering  <meyering@lucent.com>
115215         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115216         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115217         rather than group writable.  Patch by Juan F. Codagnone.
115219         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115220         xrealloc, Instead, include "xalloc.h".
115222         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115223         Remove explicit declarations of xmalloc, xrealloc,
115224         and xstrdup.  Instead, include "xalloc.h".
115226         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115227         unlocked-io.h.
115228         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115229         Likewise.
115230         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115232         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115233         Reported by Padraig Brady.
115235         * lib/mkstemp.c: #undef mkstemp.
115236         Include config.h.
115237         (rpl_mkstemp): Rename from mkstemp.
115238         Protoize.
115240 2001-11-16  Jim Meyering  <meyering@lucent.com>
115242         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115243         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115244         determine the amount of total physical memory, use pstat_getstatic.
115245         HPUX-11 doesn't define _SC_PHYS_PAGES.
115246         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115247         If sysconf couldn't be used to determine the amount of available
115248         physical memory, use both pstat_getstatic and pstat_getdynamic.
115249         Based on a patch from Bob Proulx.
115251 2001-11-10  Jim Meyering  <meyering@lucent.com>
115253         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115254         (jm_PREREQ): Use it.
115256 2001-11-09  Jim Meyering  <meyering@lucent.com>
115258         * m4/jm-macros.m4: Require autoconf-2.52f.
115259         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115260         Use these AC_-prefixed names, not the AM_-prefixed ones.
115262         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115264 2001-11-05  Jim Meyering  <meyering@lucent.com>
115266         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115268 2001-11-04  Jim Meyering  <meyering@lucent.com>
115270         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115271         $DEFS.
115273 2001-11-03  Jim Meyering  <meyering@lucent.com>
115275         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115276         of AC_DEFUN.
115278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115279         know the name of the variable in the macro definition.
115281 2001-11-03  Jim Meyering  <meyering@lucent.com>
115283         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115284         in argmatch_to_argument call.
115286         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115287         argument.
115289         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115290         e.g., a fault due to an attempt to free a NULL pointer.
115292 2001-11-01  Jim Meyering  <meyering@lucent.com>
115294         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115295         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115297 2001-11-01  Jim Meyering  <meyering@lucent.com>
115299         * lib/dirfd.c, lib/dirfd.h: New files.
115300         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115302         * lib/hash.c (hash_print) [TESTING]: Clean up.
115304 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115306         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115307         to avoid a warning if -Wall.
115309 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115311         * README: New file
115312         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115313         (per RMS's instructions, this is now the canonical source)
115314         * lgpl/, gpl/: New directories.
115316 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115318         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115320 2001-10-21  Jim Meyering  <meyering@lucent.com>
115322         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115323         this code would end up calling gettext even in packages built
115324         with --disable-nls.
115325         * lib/getopt.c (_): Likewise.
115326         * lib/regex.c (_): Likewise.
115328 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115330         * m4/error.m4 (jm_PREREQ_ERROR):
115331         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115332         AC_FUNC_STRERROR_R does that.
115333         Check for strerror declaration.
115335         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115336         are supposed to have them these days.
115337         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115338         Merge changes from latest Autoconf CVS.
115339         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115340         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115341         POSIX decided to standardize on the int flavor of strerror_r.
115343 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115345         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115346         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115347         Use strerror_r that is only a macro, even if it is not a function.
115348         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115349         (private_strerror): Use prototypes, not old-style function definition.
115350         (print_errno_message): New function.
115351         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115352         char*-flavored one.
115353         (error_tail, error, error_at_line): Use it.
115355 2001-10-11  Jim Meyering  <meyering@lucent.com>
115357         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115358         and quote_n (1, ... to avoid clobbering a buffer.
115360 2001-10-05  Jim Meyering  <meyering@lucent.com>
115362         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115363         hash-pjw.h.
115364         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115365         * lib/hash-pjw.h: New file.
115367 2001-09-30  Jim Meyering  <meyering@lucent.com>
115369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115370         `struct fsstat' has the `f_fstypename' member.
115371         Use that to define FS_TYPE, which is now used to make
115372         the getfsstat link test tighter.
115374 2001-09-30  Jim Meyering  <meyering@lucent.com>
115376         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115377         Include <sys/ucred.h>, for Apple Darwin.
115378         Include sys/mount.h and sys/fs_types.h only if available.
115379         (FS_TYPE): Define.
115380         (read_filesystem_list): Use FS_TYPE.
115382 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115384         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115385         a boolean context.
115387 2001-09-29  Jim Meyering  <meyering@lucent.com>
115389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115390         [one-argument getmntent function]): Include stdio.h before mntent.h.
115391         SunOS 4.1.x needs it for the declaration of `FILE'.
115392         Patch by Volker Borchert.
115394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115395         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115396         sys/fs_types.h, and make the link-test for getfsstat guard #include
115397         directives with appropriate #if HAVE_*_H tests so that we can
115398         detect getfsstat on Apple Darwin1.3.7 systems.
115399         Reported by Nelson Beebe.
115400         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115402 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115404         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115405         #defines strtoimax.  Also treat the other strto* functions
115406         like strtoimax.
115408         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115409         Check for strtoul and strtoumax,
115410         as those declarations are made even in the signed case.
115411         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115412         Likewise, for strtol and strtoimax.
115414 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115416         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115417         #defines strtoimax.  Also treat the other strto* functions
115418         like strtoimax.
115420         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115421         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115422         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115424 2001-09-26  Jim Meyering  <meyering@lucent.com>
115426         Most macros in unlocked-io.h had the wrong number of arguments.
115427         * lib/gen-uio: New script.
115428         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115429         * lib/unlocked-io.hin: Remove file.
115430         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115431         rather than trying to embed it here.
115432         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115433         Reported by Padraig Brady.
115435 2001-09-25  Volker Borchert  <bt@teknon.de>
115437         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115438         `result'.
115440 2001-09-24  Jim Meyering  <meyering@lucent.com>
115442         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115444 2001-09-23  Jim Meyering  <meyering@lucent.com>
115446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115447         instead of the mere test for existence of mntent.h.  The latter
115448         would get a false-positive on AIX 3.4 systems.
115449         In the outer getmntent if-block, don't die if neither of the getmntent
115450         tests succeeds.  Instead, just fall through and continue with the
115451         remaining tests.
115453 2001-09-23  Jim Meyering  <meyering@lucent.com>
115455         * lib/mountlist.c: Remove useless parentheses in #if directives.
115456         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115457         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115459 2001-09-22  Jim Meyering  <meyering@lucent.com>
115461         * m4/gettext.m4: New file.  From gettext.
115462         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115463         * m4/progtest.m4: Likewise
115464         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115465         * m4/glibc21.m4: Likewise.
115467         * m4/libintl.m4: Remove.  No longer used.
115469 2001-09-22  Jim Meyering  <meyering@lucent.com>
115471         * lib/localcharset.c: Update from latest gettext.
115472         * lib/config.charset: Likewise.
115474 2001-09-20  Jim Meyering  <meyering@lucent.com>
115476         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115477         strtoimax.
115478         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115479         strtoumax.
115481 2001-09-20  Jim Meyering  <meyering@lucent.com>
115483         * lib/xstrtol.c (strtoimax): Guard declaration with
115484         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115485         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115486         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115487         (strtoumax): Likewise, for completeness (it wasn't necessary).
115489 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115491         * lib/strtoimax.c (HAVE_LONG_LONG):
115492         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115493         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115494         to work around bug in IBM C compiler.
115496 2001-09-17  Jim Meyering  <meyering@lucent.com>
115498         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115499         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115500         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115501         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115502         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115503         whenever the right hand side need not be expanded by the shell.
115505 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115507         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115508         library.  It's not correct, as some older glibcs are buggy.
115509         fnmatch wasn't fixed until glibc 2.2.
115511         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115512         special shell magic here.
115514 2001-09-16  Jim Meyering  <meyering@lucent.com>
115516         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115517         * m4/jm-macros.m4: Require it.
115519 2001-09-16  Jim Meyering  <meyering@lucent.com>
115521         * lib/mkdir.c: New file.
115523 2001-09-15  Jim Meyering  <meyering@lucent.com>
115525         * m4/jm-macros.m4: Check for help2man.
115527 2001-09-11  Jim Meyering  <meyering@lucent.com>
115529         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115530         The body, by Paul Eggert, was moved here from configure.in.
115531         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115533 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115535         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115536         (jm_PREREQ): Use it.
115538 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115540         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115541         Use ssize_t, not int, to store result of readlink.
115542         Check for ssize_t overflow as well as size_t overflow,
115543         as POSIX says the result of readlink is implementation-defined
115544         when ssize_t overflows.
115545         Remove unnecessary cast to char*.
115546         Use free+malloc instead of realloc, as the storage doesn't need
115547         to be preserved and it's clearer and can be more efficient that way.
115548         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115549         * lib/xreadlink.h (xreadlink): Update prototype.
115551 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115553         * lib/xgetcwd.c: Revert some of the previous change; intead,
115554         fix the HAVE_GETCWD_NULL code to behave more like the
115555         !HAVE_GETCWD_NULL code used to.
115557         Include "xalloc.h".
115558         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115559         invoke xalloc_die.
115561 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115563         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115564         sys/param.h, as pathmax.h includes them.
115566 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115569         (jm_PREREQ_XGETCWD): New macro.
115571         * m4/getcwd.m4: New file.
115573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115575         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115576         like the HAVE_GETCWD_NULL code.
115577         Include pathmax.h if not HAVE_GETCWD.
115578         Do not include xalloc.h.
115579         (INITIAL_BUFFER_SIZE): New symbol.
115580         Do not use xmalloc / xrealloc, since the caller is responsible for
115581         handling errors.  Preserve errno around `free' during failure.
115582         Do not overrun buffer when using getwd.
115584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115586         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115587         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115588         getcwd (NULL, 0).
115590 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115592         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115593         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115594         spotted by Jim Meyering.
115596 2001-09-03  Jim Meyering  <meyering@lucent.com>
115598         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115599         failure.
115601 2001-09-02  Jim Meyering  <meyering@lucent.com>
115603         * lib/error.c: Update from GNU libc.
115605 2001-09-01  Jim Meyering  <meyering@lucent.com>
115607         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115608         Used by df.
115610 2001-09-01  Jim Meyering  <meyering@lucent.com>
115612         * lib/xreadlink.c: New file.
115613         * lib/xreadlink.h: New file.
115614         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115615         xreadlink.h.
115617         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115618         doesn't conflict with sparc Solaris 7's definition in
115619         /usr/include/sys/int_types.h.
115621         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115622         files.
115623         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115624         and strncasecmp as r-values.  Unixware didn't have declarations.
115626 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115628         * lib/xstrtol.h: Add copyright notice.
115629         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115630         LONGINT_INVALID_SUFFIX_CHAR.
115632 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115634         * lib/xstrtol.c (strtoimax): New decl.
115636 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115638         * lib/xgetcwd.c: Don't include pathmax.h.
115639         Include stdlib.h and unistd.h if available.
115640         Include xalloc.h.
115641         (xmalloc, xstrdup, free): Remove decls.
115642         (xgetcwd): Don't assume sizes fit in unsigned.
115643         Check for overflow when computing sizes.
115644         Simplify reallocation code.
115646 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115648         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115649         a directory's st_size can have an arbitrary value, so the old
115650         usage could waste an arbitrary amount of memory.  All uses
115651         changed.
115652         * lib/savedir.h: Update prototype.
115654 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115656         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115658         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115659         old strtoimax.c.
115661         Also, make the following further changes to make this file's
115662         configuration more similar to that of strtol.c:
115663         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115664         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115665         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115666         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115667         changed to signed values.
115669         And make the following changes as well:
115670         Fix copyright notice, as 1999 was missing.
115671         (verify): New macro.
115672         (strtoimax): Check sizes at compile-time, not run-time.
115673         Prefer strtol to strtoll if both work.
115674         (main): Remove; it was not that useful and was a pain to maintain.
115676         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115678 2001-08-31  Jim Meyering  <meyering@lucent.com>
115680         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115681         Use an initial, malloc'd, buffer of length 128 rather than
115682         a statically allocated one of length 1024.
115684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115686         Simplify code, partly by assuming autoconf 2.52 semantics.
115688         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115690         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115691         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115692         All uses removed.
115693         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115694         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115695         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115696         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115697         jm_AC_HEADER_INTTYPES_H.
115698         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115700         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115702         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115703         Quote first arg of AC_DEFUN.
115704         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115705         since they are needed to parse the include file even if we need
115706         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115707         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115708         but with opposite signedness.
115710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115712         Merge 'exclude' changes from tar 1.13.22.
115713         This fixes one or two unlikely storage allocation overflow bugs,
115714         but doesn't change user-visible behavior otherwise.
115716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115719         (jm_PREREQ_EXCLUDE): New macro.
115721 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115723         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115724         tm to be declared.
115726 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115728         * lib/hash.c: Remove '2001' from copyright notice.
115730 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115732         * lib/full-write.h: New file.
115733         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115734         * lib/full-write.c: Correct credits, as cccp.c no longer
115735         exists and anyway it was so heavily changed from the old cccp
115736         code as to be unrecognizable.  Include full-write.h.
115737         (full_write): Return size_t, with short writes meaning failure.
115738         All callers changed.  This fixes a bug with large buffers
115739         on 64-bit hosts.
115740         * lib/utime.c: Include full-write.h.
115742 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115744         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115745         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115746         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115747         Include if available.
115748         (<xalloc.h>): Include
115749         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115750         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115751         collide with FNM macros.
115752         (struct patopts): New struct.
115753         (struct exclude): Use it, as exclude patterns now come with options.
115754         (new_exclude): Support above changes.
115755         (new_exclude, add_exclude_file):
115756         Initial size must now be a power of two to simplify overflow checking.
115757         (free_exclude, fnmatch_no_wildcards): New function.
115758         (excluded_filename): No longer requires options arg, as the options
115759         are determined by add_exclude.  Now returns bool, not int.
115760         (excluded_filename, add_exclude):
115761         Add support for the fancy new exclusion options.
115762         (add_exclude, add_exclude_file): Now takes int options arg.
115763         Check for arithmetic overflow when computing sizes.
115764         (add_exclude_file): xrealloc might modify errno, so don't
115765         realloc until after errno might be used.
115767         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115768         New macros.
115769         (free_exclude): New decl.
115770         (add_exclude, add_exclude_file): Now takes int options arg.
115771         (excluded_filename): No longer requires options arg, as the options
115772         are determined by add_exclude.  Now returns bool, not int.
115774 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115776         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115778 2001-08-27  Jim Meyering  <meyering@lucent.com>
115780         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115782         * lib/version-etc.c (N_): Remove definition.
115783         Revert most of last change.
115784         Instead, simply don't mark the `Copyright...' string for translation.
115785         Based on advice from Paul Eggert.
115787         * lib/strtoxmax.c: Tweak comment.
115789 2001-08-26  Jim Meyering  <meyering@lucent.com>
115791         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115793         * m4/xstrtoimax.m4: New file.
115794         * m4/xstrtoumax.m4: Add comments explaining why we
115795         AC_REPLACE_FUNCS(strtol).
115797 2001-08-26  Jim Meyering  <meyering@lucent.com>
115799         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115800         of copyright with `%s' so translators don't get an untranslated
115801         message in 2002.
115802         (COPYRIGHT_YEAR): Define.
115803         (version_etc): Use fprintf rather than fputs.
115804         Suggestion from Ulrich Drepper.
115806         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115808         * lib/strtoll.c: New file, from GNU libc.
115809         * lib/xstrtoimax.c: New file.
115811         * lib/xstrtol.h: Add xstrtoimax.
115812         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115813         * lib/strtoimax.c: New file.  Likewise, but first define
115814         STRTOUXMAX_SIGNED.
115816         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115817         ...
115818         * lib/strtoxmax.c: ... then renamed to this.
115820 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115822         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115823         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115824         (jm_AC_TYPE_INTMAX_T): New macro.
115825         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115827         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115829         * m4/longlong.m4: Renamed from ulonglong.m4.
115830         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115831         * m4/uintmax_t.m4: Removed.
115833 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115835         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115836         Port to Solaris 8, where 'sed' requires a space after the 'r'
115837         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115838         Redirect output to $tmp just once.
115840 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115842         * lib/addext.c (<errno.h>): Include.
115843         (errno): Declare if not defined.
115844         (addext): Work correctly when pathconf returns -1 and leaves
115845         errno alone because there is no limit.  Also, work even if
115846         pathconf returns a value greater than SIZE_MAX.
115848 2001-08-12  Jim Meyering  <meyering@lucent.com>
115850         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115851         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115852         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115853         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115854         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115855         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115856         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115857         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115858         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115859         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115860         utime.m4, utimes.m4, xstrtoumax.m4:
115861         Quote the first argument in each use of AC_DEFUN.
115863 2001-08-12  Jim Meyering  <meyering@lucent.com>
115865         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115866         Simply `return getcwd (NULL, 0);'.
115867         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115868         Use 1300 as initial value for length, not PATH_MAX.
115870         * lib/pathmax.h: Clean up cpp syntax.
115872 2001-08-12  Jim Meyering  <meyering@lucent.com>
115874         * lib/gettimeofday.c: New file.
115875         * lib/gtod.h: New file.
115876         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115878 2001-08-05  Jim Meyering  <meyering@lucent.com>
115880         * m4/jm-macros.m4: Require autoconf-2.52.
115882 2001-08-04  Jim Meyering  <meyering@lucent.com>
115884         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115885         stmt, to get in sync with glibc.
115887 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115889         The following changes are from gettext 0.10.39 as maintained by
115890         Bruno Haible.
115892         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115893         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115894         with inverted sense.  All uses changed.
115896         * lib/mbswidth.c: Don't include <limits.h>.
115897         Include <stdlib.h> and <string.h> unconditionally.
115898         (iswcntrl, mbsinit, ISCNTRL): New macros.
115899         (mbsnwidth): Use K&R style function declarations.
115900         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115901         can optimize it when MB_CUR_MAX == 1.
115902         The width of control characters is zero, not 1.
115904 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115906         The following changes are from gettext 0.10.39 as maintained by
115907         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115909         * m4/codeset.m4: Upgrade to serial AM1.
115910         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115911         all uses changed.  Quote first arg of AC_DEFUN.
115912         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115914         * m4/iconv.m4: Upgrade to serial AM2.
115915         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115916         Add --with-libconv-prefix.
115917         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115918         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115919         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115920         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115921         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115923         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115924         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115925         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115926         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115927         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115928         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115930         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115931         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115933         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115934         string.h any more.
115936         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115937         not the default value.
115939         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115940         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115941         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115942         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115943         Also check for iswcntrl, used for wcwidth fallback.
115944         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115945         to Autoconf 2.13.
115947 2001-08-03  Jim Meyering  <meyering@lucent.com>
115949         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115950         as it was in the original.  Reported by Paul Eggert.
115952 2001-07-16  Jim Meyering  <meyering@lucent.com>
115954         * m4/gettimeofday.m4: New file.
115955         Prompted by a report from Bernhard Baehr.
115957 2001-07-15  Jim Meyering  <meyering@lucent.com>
115959         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115960         stuff. Now it's in ../Makefile.cfg.
115962 2001-07-15  Jim Meyering  <meyering@lucent.com>
115964         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115965         (BUILT_SOURCES): Add unlocked-io.h.
115966         (io_functions): Define.
115967         (unlocked-io.h): New rule.
115968         (DISTCLEANFILES): Add unlocked-io.h.
115969         (all-local): Depend on unlocked-io.h, to ensure it is created.
115971         * lib/unlocked-io.hin: New file
115973         * lib/regex.c: Update from glibc.
115975 2001-07-05  Jim Meyering  <meyering@lucent.com>
115977         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115978         recommendation.
115979         (libfetish_a_SOURCES): Put all .h files here instead.
115980         Remove a thus-exposed (better checks in automake) duplicate and
115981         two unnecessary .h files.
115983 2001-07-04  Jim Meyering  <meyering@lucent.com>
115985         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115986         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115987         distcheck failure.
115989 2001-07-02  Jim Meyering  <meyering@lucent.com>
115991         The following changes were prompted by suggestions from Bruno Haible.
115993         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115994         is now generated.
115995         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115996         definition of EXTRA_DIST.
115997         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115998         ensure that the generated file is created/updated whenever the list
115999         of $(unlocked_functions) is changed.
116000         (jm-glibc-io.m4): New rule.
116001         (unlocked-io.h): New rule -- currently unused.
116003 2001-06-24  Jim Meyering  <meyering@lucent.com>
116005         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
116006         unmatched right bracket, rather than kludging it with an extra,
116007         falsely-matching quote in a comment.  Patch by Akim Demaille.
116009 2001-06-11  Jim Meyering  <meyering@lucent.com>
116011         * lib/regex.c: Update from GNU libc.
116013 2001-05-27  Jim Meyering  <meyering@lucent.com>
116015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
116016         Check for ut_type in struct utmp.
116018 2001-05-27  Jim Meyering  <meyering@lucent.com>
116020         * lib/readutmp.h (UT_TYPE): Define.
116022 2001-05-24  Jim Meyering  <meyering@lucent.com>
116024         * lib/argmatch.c: Include "quote.h".
116025         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
116026         quote function.  Reported by Göran Uddeborg.
116028 2001-05-22  Jim Meyering  <meyering@lucent.com>
116030         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
116031         now that we use the package-supplied version unconditionally.
116032         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
116034 2001-05-21  Jim Meyering  <meyering@lucent.com>
116036         * m4/regex.m4: Change a couple backticks to single quotes to avoid
116037         shell syntax errors.
116039 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116041         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
116043 2001-05-20  Paul Eggert  <eggert@twinsun.com>
116045         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
116046         Don't bother to check library strftime, since
116047         we'll be using our own my_strftime function anyway.
116048         Define my_strftime instead of strftime.
116050 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
116052         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
116053         which is not yet declared.
116055 2001-05-15  Jim Meyering  <meyering@lucent.com>
116057         * m4/regex.m4: Use proper quoting so brackets appear in the test
116058         program.
116059         Reported by, and with help from, Bruno Haible.
116061 2001-05-13  Jim Meyering  <meyering@lucent.com>
116063         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
116064         undefined.
116066 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116068         dirname code cleanup.  base_name now behaves more compatibly
116069         with POSIX basename when given file names that have trailing
116070         slashes, and similarly for dir_name.  Add new primitives
116071         base_len and dir_len.  Put the directory-name-related decls
116072         into dirname.h.
116074         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
116075         * lib/backupfile.c (base_name): Likewise.
116076         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
116077         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
116078         * lib/makepath.c (strip_trailing_slashes): Likewise.
116079         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
116080         ISSLASH): Likewise.
116081         * lib/rename.c (strip_trailing_slashes): Likewise.
116082         * lib/same.c (base_name): Likewise.
116083         * lib/stripslash.c (ISSLASH): Likewise.
116085         * lib/addext.c: Include <dirname.h> after size_t is defined.
116086         * lib/backupfile.c: Likewise.
116088         * lib/addext.c (addext): Use base_len to trim redundant
116089         trailing slashes instead of doing it ourselves.
116090         But do not trim the last slash if it is not redundant.
116092         * lib/backupfile.c (find_backup_file_name,
116093         max_backup_version): Use base_len instead of rolling it ourselves.
116094         Handle the case of "" and (on DOS) "C:" correctly.
116096         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
116097         needed. Include <string.h>, <dirname.h>.
116098         (base_name): Allow file names ending in slashes, other than names
116099         that are all slashes.  In this case, return the basename followed
116100         by the slashes.  This is more general, and can be used in places
116101         where the original base_name purposely had an assertion failure.
116102         (base_len): New function.
116104         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
116105         Do not include <assert.h>; no longer needed.
116106         Include xalloc.h.
116107         (memrchr): Remove decl.
116108         (dir_name_r): Remove.
116109         (dir_len): Renamed from dirlen.  All callers changed.
116110         Rewrite in terms of base_name, for simplicity and consistency.
116111         (dir_name): Never return NULL.  All callers changed.
116112         Do not include <stdlib.h> in test program; no longer needed.
116113         return 0; is fine for test program.
116115         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
116116         New macros.
116117         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
116119         * lib/path-concat.c (path_concat): Use base_len to compute
116120         base length, not strlen; this means we cannot rely on memcpy
116121         to null-terminate.
116123         * lib/same.c (STREQ): Remove.
116124         (same_name): Handle the case where the basename ends in trailing '/'.
116126         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116127         a slash was stripped.  Do not strip the last slash after a
116128         file system prefix.
116130 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116132         * lib/Makefile.am (libfetish_a_SOURCES):
116133         Add strftime.c, since we now compile it on all hosts.
116135         * lib/strftime.c (my_strftime):
116136         Define to nstrftime if emacs, but only if my_strftime is not defined.
116137         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116138         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116139         Add one more extra argument: a nanoseconds value.
116140         All uses changed.
116141         (ns): New macro.
116142         (my_strftime function): Add %N format.
116143         (emacs_strftimeu): Renamed from emacs_strftime,
116144         with extra ut argument.
116146 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116148         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116150 2001-04-21  Jim Meyering  <meyering@lucent.com>
116152         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116153         doesn't interfere.
116155 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116157         * m4/ftruncate.m4: Check for chsize.
116158         Link with ftruncate.o unconditionally if ftruncate is missing.
116159         This was required when cross-compiling to i586-mingw32msvc.
116161 2001-04-08  Jim Meyering  <meyering@lucent.com>
116163         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116164         recomputed; that's necessary when the offset spans a DST transition.
116165         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116167 2001-04-02  Jim Meyering  <meyering@lucent.com>
116169         * lib/regex.h, regex.c: Update from GNU libc.
116171 2001-03-24  Jim Meyering  <meyering@lucent.com>
116173         * m4/jm-macros.m4: Require autoconf-2.49d.
116175 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116177         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116179 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116181         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116183 2001-03-17  Jim Meyering  <meyering@lucent.com>
116185         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116186         now that the version in autoconf is equivalent.
116187         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116189         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116190         Suggestion from Akim Demaille.
116192         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116193         (jm_PREREQ_TEMPNAME): New function.
116195 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116197         * lib/tempname.c (uint64_t): Define to uintmax_t if
116198         not defined, and if UINT64_MAX is not defined.
116199         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116200         Reported by John David Anglin.
116202 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116204         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116205         resolve alias if codeset is empty.
116206         * lib/config.charset (BeOS): Use wildcard syntax.
116208 2001-03-13  Jim Meyering  <meyering@lucent.com>
116210         * lib/path-concat.c (path_concat)
116211         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116212         concatenating e.g., `C:' and `foo'.
116213         From Bruno Haible.
116215 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116217         * lib/localcharset.c (locale_charset): Don't use
116218         setlocale(LC_CTYPE,NULL). Don't return NULL.
116219         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116221 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116223         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116224         support for DOS/DJGPP.
116226 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116228         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116229         lacks mkstemp.  Compile our own tempname.c if we compile our own
116230         mkstemp.c, as mkstemp relies on tempname.
116232 2001-03-01  Jim Meyering  <meyering@lucent.com>
116234         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116235         AH_VERBATIM really does output its argument verbatim.
116237 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116239         * lib/Makefile.am (libfetish_a_SOURCES):
116240         Add dup-safer.c, fopen-safer.c.
116241         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116243         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116244         * lib/unistd-safer.h: New files.
116246 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116248         The mkstemp replacement is taken from glibc 2.2.2, with some
116249         portability fixes for use outside glibc, as follows:
116251         * lib/tempname.c (struct_stat64): New macro.
116252         (direxists, __gen_tempname): Use it.
116253         This avoids a portability problem with Solaris 8.
116255         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116256         (<stddef.h>, <stdint.h>, <string.h>):
116257         Include only if STDC_HEADERS || _LIBC.
116258         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116259         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116260         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116261         (__set_errno): Define this macro if <errno.h> doesn't.
116262         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116263         Define these macros if <stdio.h> doesn't.
116264         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116265         Define these macros if <sys/stat.h>
116266         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116267         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116268         __xstat64): Define if not _LIBC.
116269         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116270         (__gen_tempname): Invoke gettimeofday only if
116271         HAVE_GETTIMEOFDAY || _LIBC;
116272         otherwise, fall back on plain "time".
116273         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116275         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116277         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116279 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116281         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116283 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116285         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116286         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116287         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116290 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116292         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116293         Remove workaround macros for hosts that have mbrtowc but not
116294         mbstate_t, as we now insist on proper declarations for both
116295         before using mbrtowc.
116297 2001-02-17  Jim Meyering  <meyering@lucent.com>
116299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116300         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116301         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116302         UnixWare 7.1.1.
116304         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116305         rather than AC_CACHE_VAL.
116307 2001-02-17  Jim Meyering  <meyering@lucent.com>
116309         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116310         around included file name.
116312         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116314         * lib/strftime.c: Update from GNU libc (the only changes were to
116315         comments).
116317 2001-02-17  Jim Meyering  <meyering@lucent.com>
116319         * lib/regex.c: Update from libc.
116321 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116323         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116324         clash.
116326 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116328         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116329         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116330         Reported by Mark Hounschell via Paul Eggert.
116332 2001-02-07  Jim Meyering  <meyering@lucent.com>
116334         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116336 2001-02-05  Jim Meyering  <meyering@lucent.com>
116338         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116339         it includes the patch required for `large file' support with at least
116340         HP-UX's 10.20 /bin/cc.
116342 2001-02-03  Jim Meyering  <meyering@lucent.com>
116344         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116345         AS_IF, now that it works once again (mysteriously).
116346         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116348 2001-01-30  Jim Meyering  <meyering@lucent.com>
116350         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116351         * m4/chown.m4: Rename conftestchown to conftest.chown.
116352         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116353         s/conftestdir2/conftest.d2/.
116354         * m4/utimes.m4: s/conftestdata/conftest.data/
116355         Inspired by Pavel Roskin's change in autoconf.
116357 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116359         * lib/config.charset: Update for FreeBSD 4.2.
116361 2001-01-27  Jim Meyering  <meyering@lucent.com>
116363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116364         a use of AS_IF.
116365         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116367 2001-01-26  Jim Meyering  <meyering@lucent.com>
116369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116370         quotearg.c includes it.
116372 2001-01-26  Jim Meyering  <meyering@lucent.com>
116374         * lib/quotearg.c: Include stddef.h.
116375         * lib/quote.c: Include stddef.h.
116376         Reported by Axel Kittenberger.
116378         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116379         line in double quotes so that it evokes a better diagnostic.
116380         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116381         Reported by Axel Kittenberger.
116383 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116385         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116386         as if it was a `charset'.
116388 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116390         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116391         has const.
116393 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116395         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116396         to avoid a warning.  Add back 'const' to inptr.
116398 2001-01-20  Jim Meyering  <meyering@lucent.com>
116400         Be sure that headers are checked before used in code compiled
116401         for the type checks.
116402         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116403         In place of that, invoke jm_CHECK_ALL_TYPES.
116404         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116405         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116406         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116407         The check for ssize_t was mistakenly run before the test for unistd.h.
116409         The configure-time check for stdbool.h was missing.
116410         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116411         (jm_PREREQ_HASH): New function.
116413 2001-01-17  Jim Meyering  <meyering@lucent.com>
116415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116416         for autoconf-2.49c.
116417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116419 2001-01-16  Jim Meyering  <meyering@lucent.com>
116421         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116422         From Bruno Haible.
116424 2001-01-14  Jim Meyering  <meyering@lucent.com>
116426         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116427         foo and bar.  Create conftestdir/ in the script, not in the C code.
116428         Remove directories in the script, not in the C code.
116429         Remove conftestdir{,2} before trying to create the directory.
116430         Make the entire configure script fail if the mkdir fails.
116432 2001-01-14  Jim Meyering  <meyering@lucent.com>
116434         * lib/rename.c: New file.  From Volker Borchert.
116435         Include stdlib.h, string.h or strings.h, and xalloc.h.
116436         Use strip_trailing_slashes rather than open-coding it.
116438 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116440         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116442 2001-01-03  Jim Meyering  <meyering@lucent.com>
116444         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116445         of local `inptr' to avoid warning with some system declarations of
116446         iconv.
116448 2001-01-02  Volker Borchert  <bt@teknon.de>
116450         * m4/rename.m4: New file.
116451         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116453 2001-01-01  Jim Meyering  <meyering@lucent.com>
116455         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116456         even on systems with utmpx.h.  It's necessary for the declaration of
116457         utmp's ut_user member.  Reported by Andreas Jaeger.
116459         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116460         available. They are required for the declarations of getgrgid and
116461         getpwuid resp.
116462         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116463         Reported by Andreas Jaeger.
116465 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116467         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116468         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116469         so `make install' also works in VPATH builds.
116471 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116473         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116474         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116475         can be used in subdirectories.
116477 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116479         * lib/modechange.c: Do not assume that mode_t uses the
116480         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116481         the other-execute bit of FOO even if S_IXOTH != 1.
116483         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116484         WOTH, XOTH, ALLM): New macros.
116485         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116486          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116487         Use them.
116488         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116489         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116490         (mode_compile):
116491         No need to use uintmax_t; unsigned long is long enough.
116492         Don't bother to get suffix since we don't use it.
116494 2000-12-26  Jim Meyering  <meyering@lucent.com>
116496         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116497         better with autoheader.
116499 2000-12-24  Jim Meyering  <meyering@lucent.com>
116501         * lib/hash.c (is_prime): Return explicit boolean values.
116502         (hash_get_first): Return NULL to appease Irix5.6's 89.
116503         Reported by Nelson Beebe.
116505 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116507         * lib/localcharset.c (locale_charset): Add support for Win32.
116509 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116511         * lib/physmem.h, lib/physmem.c: New files.
116513         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116514         (noinst_HEADERS): Add physmem.h.
116516         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116517         't' for compatibility with Solaris 8 sort.
116519 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116521         * lib/config.charset: Add support for BeOS.
116523 2000-12-17  Jim Meyering  <meyering@lucent.com>
116525         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116526         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116528 2000-12-16  Jim Meyering  <meyering@lucent.com>
116530         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116531         N and M) would have treated it like `chown N:N FILE'.
116533         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116535 2000-12-16  Jim Meyering  <meyering@lucent.com>
116537         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116538         SHELLS_FILE to a file name that's useful on djgpp systems.
116539         Include stdlib.h.
116540         (ADDITIONAL_DEFAULT_SHELLS): Define.
116541         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116542         Based mostly on a patch from Prashant TR.
116544 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116546         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116547         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116548         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116550 2000-12-08  Andreas Schwab  <schwab@suse.de>
116552         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116553         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116555 2000-12-07  Jim Meyering  <meyering@lucent.com>
116557         * lib/stripslash.c (ISSLASH): Define.
116558         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116559         `/'.
116560         From Prashant TR.
116562         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116563         (dir_name_r): Declare this function as static.
116564         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116565         manifest itself on a name containing a mix of slashes and
116566         backslashes.
116567         Make this function work with names starting with a DOS-style
116568         drive letter and colon prefix.
116569         (dir_name): Append `.' if necessary.
116570         Based mostly on patches from Prashant TR and Eli Zaretskii.
116572         * lib/dirname.h (dir_name_r): Remove prototype.
116574 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116576         * m4/off_t-format.m4: Remove this file.
116577         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116579 2000-12-06  Jim Meyering  <meyering@lucent.com>
116581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116582         replacement strtoull, we may well need the replacement strtoul, too.
116583         Check for declarations of strtoul and strtoull.
116584         Check for strtol.  Mainly as a cue to cause automake to include
116585         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116586         Check for limits.h -- strtol.c needs it.
116588 2000-12-05  Jim Meyering  <meyering@lucent.com>
116590         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116592 2000-12-04  Jim Meyering  <meyering@lucent.com>
116594         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116595         Also include memory.h, stdlib.h, unistd.h if appropriate.
116596         Reported by Andreas Jaeger (conflicting declaration of malloc).
116598 2000-12-02  Jim Meyering  <meyering@lucent.com>
116600         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116601         * m4/jm-macros.m4 (jm_MACROS): require it.
116603 2000-12-02  Jim Meyering  <meyering@lucent.com>
116605         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116607 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116609         * lib/memrchr.c: Include <config.h> before any system include file.
116611 2000-11-30  Jim Meyering  <meyering@lucent.com>
116613         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116615 2000-11-30  Jim Meyering  <meyering@lucent.com>
116617         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116619 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116621         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116623 2000-11-26  Jim Meyering  <meyering@lucent.com>
116625         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116627 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116629         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116630         size of (size_t) -1; it's not portable.
116632 2000-11-17  Jim Meyering  <meyering@lucent.com>
116634         * lib/strstr.c: Update from GNU libc.
116636 2000-11-17  Akim Demaille  <akim@epita.fr>
116638         * lib/obstack.h: Formatting changes.
116639         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116640         prevent type checking.
116641         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116642         cast the value to (void *): assigning a `foo *' to a `void *'
116643         variable is valid.
116644         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116646 2000-11-16  Jim Meyering  <meyering@lucent.com>
116648         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116650 2000-11-11  Jim Meyering  <meyering@lucent.com>
116652         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116654 2000-11-10  Jim Meyering  <meyering@lucent.com>
116656         * lib/obstack.h: Update from GNU libc.
116657         * lib/obstack.c: Likewise.
116659 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116661         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116663 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116665         * lib/getusershell.c (setusershell): Use rewind rather than
116666         fseek/fseeko, to avoid configuration hassles with fseeko.
116667         Don't bother opening SHELLS_FILE if shellstream is NULL;
116668         it's not necessary.
116670 2000-11-05  Jim Meyering  <meyering@lucent.com>
116672         * lib/makepath.h (make_dir): Declare.
116673         * lib/makepath.c (make_dir): Remove `static' attribute.
116674         Tweak a comment.
116676 2000-11-04  Jim Meyering  <meyering@lucent.com>
116678         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116680 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116682         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116683         last one in a bucket, advance to the next bucket.
116685 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116687         * lib/fnmatch.c: Do not comment out all the code if we are using
116688         the GNU C library, because in some cases we are replacing buggy
116689         code in the GNU C library itself.
116691 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116693         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116694         (regex_compile): Catch bogus \(\1\).
116696 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116698         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116699         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116700         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116702 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116704         * lib/error.h, getline.h, modechange.h:
116705         Remove "2000" from Copyright line, as the file hasn't been
116706         changed this year other than in the copyright notice.
116708         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116709         was changed this year.
116711 2000-10-29  Jim Meyering  <meyering@lucent.com>
116713         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116714         renaming.
116715         * m4/ls-mntd-fs.m4: Likewise
116717 2000-10-29  Jim Meyering  <meyering@lucent.com>
116719         * lib/xstat.in: Fix grammar in comment.
116721 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116723         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116724         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116725         doesn't define __restrict_arr.
116727 2000-10-28  Jim Meyering  <meyering@lucent.com>
116729         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116730         (jm_PREREQ_MEMCHR): New function.
116732 2000-10-28  Jim Meyering  <meyering@lucent.com>
116734         * lib/memchr.c: Update from libc.
116735         Adjust for portability:
116736         [HAVE_STDLIB_H]: Include stdlib.h.
116737         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116738         Undef __memchr, too.
116739         [!weak_alias]: Define __memchr to memchr.
116741         * lib/regex.c: Update from libc.
116742         * lib/regex.h: Likewise.
116743         * lib/getopt1.c: Likewise.
116744         * lib/memcmp.c: Likewise.
116746         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116747         Avoid using fseek, when possible -- it's broken by design.
116748         Patch by Ulrich Drepper.
116750 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116752         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116753         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116754         Giving in to popular pressure to shut up the compiler with casts.
116756 2000-10-26  Jim Meyering  <meyering@lucent.com>
116758         * lib/strftime.c: Update from libc.
116760 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116762         * regex.c: More `unsigned char' -> `re_char' changes.
116763         Also change several `int' into `re_wchar_t'.
116764         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116765         (PUSH_FAILURE_POINTER): Don't cast any more.
116766         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116767         We want GCC to complain, since this piece of code makes
116768         re_match non-reentrant, which *should* be fixed.
116769         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116770         (EXTEND_BUFFER): Use RETALLOC.
116771         (SET_LIST_BIT): Don't cast.
116772         (re_wchar_t): New type.
116773         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116774         that those two functions will always properly return.
116775         (IMMEDIATE_QUIT_CHECK): Cast to void.
116776         (analyse_first): Use recursion rather than an explicit stack.
116777         (re_compile_fastmap): Can't fail anymore.
116778         (re_search_2): Don't check re_compile_fastmap for failure.
116779         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116780         Now also sets the new value (passed in a new argument).
116781         (re_match_2_internal): Use it.
116782         Also, use a new var `reg' of type size_t when looping through regs
116783         rather than reuse the inappropriate `mcnt'.
116785 2000-10-25  Jim Meyering  <meyering@lucent.com>
116787         * lib/obstack.c: Update from libc.
116789 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116791         * regex.c (regex_compile): Change the way of handling a range from
116792         a char less than 256 to a char not less than 256.
116794 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116796         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116797         NT-Emacs only.
116798         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116799         so that re_search functions only quit when callers expect them to.
116801 2000-10-23  Jim Meyering  <meyering@lucent.com>
116803         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116804         wrong.  That set_locale call must not have any side effects.
116805         From Paul Eggert.
116807 2000-10-22  Jim Meyering  <meyering@lucent.com>
116809         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116810         [CYCLIC]: Remove now-unused definition.
116812         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116813         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116814         Suggestion from Ulrich Drepper.
116816 2000-10-21  Jim Meyering  <meyering@lucent.com>
116818         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116819         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116822 2000-10-21  Jim Meyering  <meyering@lucent.com>
116824         * lib/dirname.c (memrchr): Declare if necessary.
116825         (dir_name): Remove the restriction that there be no
116826         trailing slashes.  Now, this code skips past them, effectively
116827         ignoring them.
116828         [TEST_DIRNAME] (main): New unit tests.
116830         * lib/memrchr.c: New file from GNU libc.
116831         Undef __memrchr, too.
116832         [!weak_alias]: Define __memrchr to memrchr.
116833         Guard weak_alias use with `#ifdef weak_alias'.
116835 2000-10-21  Jim Meyering  <meyering@lucent.com>
116837         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116838         (dir_name): Use dir_name_r.
116839         * lib/dirname.h (dir_name_r): Declare it.
116841 2000-10-17  Jim Meyering  <meyering@lucent.com>
116843         * lib/quote.h (PARAMS): Define and use.
116844         Reported by Akim Demaille.
116846         * lib/getopt.c: Update from libc.
116848 2000-10-16  Jim Meyering  <meyering@lucent.com>
116850         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116851         setlocale.
116852         From Jan Fedak.
116854 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116856         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116858 2000-09-25  Jim Meyering  <meyering@lucent.com>
116860         * lib/md5.h (rol): Define (from GnuPG).
116862         * lib/sha.c: Give credit (GnuPG) where due.
116863         (M): Use rol rather than open-coding it.
116864         Add a FIXME comment.
116866 2000-09-21  Jim Meyering  <meyering@lucent.com>
116868         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116869         Reported by Michael Stone.
116871 2000-09-20  Jim Meyering  <meyering@lucent.com>
116873         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116874         (noinst_HEADERS): Add sha.h.
116875         Based on code from Scott G. Miller and from GnuPG.
116877 2000-09-18  Jim Meyering  <meyering@lucent.com>
116879         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116880         LIBS. Otherwise, everyone ends up linking with -lelf for some
116881         configurations.
116882         Reported by Mike Stone.
116884 2000-09-15  Jim Meyering  <meyering@lucent.com>
116886         * lib/regex.c: Update from libc.
116888 2000-09-10  Jim Meyering  <meyering@lucent.com>
116890         * lib/getopt.c (_getopt_internal): Update from glibc.
116892 2000-09-09  Jim Meyering  <meyering@lucent.com>
116894         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116895         think it should be used as a general replacement for isascii.
116896         * lib/fnmatch.c: Likewise.
116897         * lib/mbswidth.c: Likewise
116898         * lib/regex.c: Likewise.
116900         Don't use atoi.
116901         * lib/userspec.c: Include sys/param.h and limits.h.
116902         Include xstrtol.h.
116903         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116904         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116905         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116906         UID, GID.  Check range.
116908 2000-09-06  Jim Meyering  <meyering@lucent.com>
116910         * lib/getopt.c (_getopt_internal): Update from glibc.
116912 2000-08-30  Jim Meyering  <meyering@lucent.com>
116914         * lib/strftime.c: Merge in changes from GNU libc.
116916 2000-08-26  Jim Meyering  <meyering@lucent.com>
116918         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116919         * m4/fpending.m4: New file.
116921 2000-08-26  Jim Meyering  <meyering@lucent.com>
116923         * lib/closeout.c: Include "__fpending.h".
116924         (close_stdout_status): Return right away if there's nothing to flush.
116926         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116927         * lib/__fpending.c: New file.
116928         * lib/__fpending.h: New file.
116930 2000-08-20  Jim Meyering  <meyering@lucent.com>
116932         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116933         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116934         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116936 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116938         Improve fileutils installation on systems where running
116939         programs (like install) can't be unlinked.
116940         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116941         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116943 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116945         Standardize on "memory exhausted" instead of "Memory exhausted"
116946         or "virtual memory exhausted".
116947         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116948         "virtual memory exhausted".
116949         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116950         our own message.
116951         * lib/userspec.c (parse_user_spec): Likewise.
116952         * lib/bumpalloc.h: comment fix
116953         * lib/same.c, userspec.c: Include xalloc.h.
116955         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116956         not char *const and pointing to a constant array.
116957         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116958         (xrealloc): Comment fix.
116960         * lib/userspec.c (parse_user_spec):
116961         Don't translate a message until just before returning,
116962         to avoid unnecessary translation.
116964 2000-08-07  Jim Meyering  <meyering@lucent.com>
116966         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116967         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116968         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116969         getgroups.c, gethostname.c, getopt.h, group-member.c,
116970         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116971         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116972         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116973         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116974         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116975         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116976         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116977         yesno.c: Back out Copyright date changes for each file with no change
116978         this year.  This eases coordination with other programs using the same
116979         source code modules.  From Paul Eggert.
116981 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116983         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116984         not char, for compatibility with glibc 2.1.3 strftime.c.
116986 2000-08-03  Greg McGary  <greg@mcgary.org>
116988         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116989         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116990         (EXTEND_BUFFER): Use them.
116992 2000-08-01  Jim Meyering  <meyering@lucent.com>
116994         * lib/dirname.c (ISSLASH): Define.
116995         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116996         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116997         both `\' and `/' may be use as path separators.
116998         Based on a patch from Prashant TR.
117000 2000-07-31  Paul Eggert  <eggert@twinsun.com>
117002         * lib/quotearg.c (quotearg_n_options): Don't make the initial
117003         slot vector a constant, since it might get modified.
117005 2000-07-31  Jim Meyering  <meyering@lucent.com>
117007         * lib/xmalloc.c: Use `virtual memory exhausted', not
117008         `Memory exhausted'.
117009         * lib/obstack.c (print_and_abort): Likewise.
117011 2000-07-30  Paul Eggert  <eggert@twinsun.com>
117013         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
117014         buffer, so that the caller can always quote one small
117015         component of a "memory exhausted" message in slot 0.
117016         From a suggestion by Jim Meyering.
117018 2000-07-30  Jim Meyering  <meyering@lucent.com>
117020         * lib/makepath.c (make_path): Quote the other instance, too.
117022         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
117023         (STATIC_BUF_SIZE): Define.
117024         (quotearg_n_options): Use only statically allocated storage when
117025         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
117026         than STATIC_BUF_SIZE.
117028 2000-07-29  Jim Meyering  <meyering@lucent.com>
117030         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
117031         * lib/dirname.c (dir_name): Likewise.
117033         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
117034         `/'.
117036         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
117037         (dir_name): Assert that there are no trailing slashes.
117039 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
117041         * lib/mbswidth.h (mbswidth): Add a flags argument.
117042         (mbswidth): New declaration.
117043         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
117044         * lib/mbswidth.c (mbswidth): Add a flags argument.
117045         (mbsnwidth): New function.
117047 2000-07-24  Jim Meyering  <meyering@lucent.com>
117049         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
117051 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117053         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
117055 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117057         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
117058         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
117059         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
117060         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
117061         invoke multibyte primitives.
117063 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117065         * lib/quotearg.c:
117066         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
117067         so that mbstate_t is always defined.
117069         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
117070         be 1 in at least one GCC installation, and this configuration
117071         error is likely to be common.  Ignoring MB_LEN_MAX hurts
117072         performance on hosts that have mbrtowc but have only unibyte
117073         locales, but I assume these hosts are rare.
117075 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117077         * lib/mbswidth.c (_XOPEN_SOURCE):
117078         Don't define; this causes problems on Solaris 7.
117079         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
117081 2000-07-23  Jim Meyering  <meyering@lucent.com>
117083         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
117084         too: getgrgid, getpwuid, getuid.
117086 2000-07-23  Jim Meyering  <meyering@lucent.com>
117088         * lib/basename.c (base_name): Add an assertion.
117090 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
117092         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
117093         shadow its mbsinit function.
117095 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117097         * lib/mbswidth.h: New file.
117098         * lib/mbswidth.c: New file.
117099         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
117100         (noinst_HEADERS): Add mbswidth.h.
117102 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117104         * lib/config.charset: Add support for FreeBSD. Improve support for
117105         HP-UX and IRIX 6.
117107 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
117109         * m4/mbswidth.m4: New file.
117110         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
117112 2000-07-15  Jim Meyering  <meyering@lucent.com>
117114         * lib/makepath.c: Include quote.h.
117115         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
117116         corresponding argument in a `quote (...)' call.
117117         Give better diagnostics.
117119         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
117120         (noinst_HEADERS): Add quote.h.
117122         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
117123         from tar's src/misc.c.
117124         * lib/quote.h: New file.  Prototypes for same.
117126 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117128         From a suggestion by Bruno Haible.
117129         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117130         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117131         to decide whether to define the BeOS workaround macro;
117132         this adjusts to the change to AC_MBSTATE_T.
117134 2000-07-14  Jim Meyering  <meyering@lucent.com>
117136         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117137         jm_AC_TYPE_UINTMAX_T.
117139 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117141         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117143         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117144         quotearg_buffer_restyled): Add support for
117145         clocale_quoting_style.  Undo previous change to
117146         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117147         and "{RIGHT QUOTATION MARK}" msgids.
117149 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117151         From a suggestion by Bruno Haible.
117152         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117153         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117154         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117155         and mbstate_t, to a single-part test that simply defines mbstate_t.
117156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117157         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117159 2000-07-10  Jim Meyering  <meyering@lucent.com>
117161         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117163         * m4/gnu-source.m4: Output to confdefs.h directly.
117164         Suggestion from Akim Demaille.
117166 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117168         The old behavior of quoting `like this' doesn't look good with
117169         newer, ISO-style fonts.  See:
117170         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117172         Instead, quote "like this" by default.  Let the translator
117173         tailor the locale-specific quoting behavior by providing
117174         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117176         * lib/quotearg.c (N_): New macro.
117177         (gettext_default): New function.
117178         (quotearg_buffer_restyled): Use
117179         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117180         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117182 2000-07-09  Jim Meyering  <meyering@lucent.com>
117184         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117185         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117187         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117190 2000-07-09  Jim Meyering  <meyering@lucent.com>
117192         * lib/Most files: Update copyright dates to include 2000.
117194 2000-07-08  Jim Meyering  <meyering@lucent.com>
117196         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117197         if not defined.
117198         (xgethostname): Remove now-unnecessary #ifdef.
117199         Move declaration of `err' into loop where it's used.
117201 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117202         and Bruno Haible  <haible@clisp.cons.org>
117204         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117205         only if the test for an object-type mbstate_t fails.  This
117206         prevents us from mistakenly reporting that mbstate_t is a
117207         system object type after we "#define mbstate_t int" to work
117208         around its lack.
117210 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117211         and Bruno Haible  <haible@clisp.cons.org>
117213         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117215 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117217         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117218         to strerror_r.
117219         Include <ctype.h> for use of isalpha.
117221 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117223         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117224         by allocating a larger buffer. Test the gethostname return value for
117225         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117226         returns an error and ENAMETOOLONG isn't defined.
117228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117230         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117231         dimension.
117233 2000-07-04  Jim Meyering  <meyering@lucent.com>
117235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117236         of the deprecated AC_CHECKING.
117238 2000-07-04  Jim Meyering  <meyering@lucent.com>
117240         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117241         Reported by Bruno Haible.
117243 2000-07-04  Jim Meyering  <meyering@lucent.com>
117245         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117246         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117247         lacks mbrtowc.
117249 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117251         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117252         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117254 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117255         and Bruno Haible  <haible@clisp.cons.org>
117257         * lib/quotearg.c (mbrtowc):
117258         Assign to *pwc, and return 1 only if result is nonzero.
117259         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117261 2000-07-03  Jim Meyering  <meyering@lucent.com>
117263         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117265 2000-07-03  Jim Meyering  <meyering@lucent.com>
117267         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117268         This is necessary to get a definition of e.g., UTMP_FILE on
117269         HP-UX 10.20.
117270         From Bob Proulx.
117272 2000-07-02  Jim Meyering  <meyering@lucent.com>
117274         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117276         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117277         AC_LIBOBJ(function_name).
117278         * m4/chown.m4: Likewise.
117279         * m4/fnmatch.m4: Likewise.
117280         * m4/ftruncate.m4: Likewise.
117281         * m4/getgroups.m4: Likewise.
117282         * m4/getline.m4: Likewise.
117283         * m4/group-member.m4: Likewise.
117284         * m4/jm-macros.m4: Likewise.
117285         * m4/lstat.m4: Likewise.
117286         * m4/malloc.m4: Likewise.
117287         * m4/memcmp.m4: Likewise.
117288         * m4/nanosleep.m4: Likewise.
117289         * m4/putenv.m4: Likewise.
117290         * m4/realloc.m4: Likewise.
117291         * m4/regex.m4: Likewise.
117292         * m4/stat.m4: Likewise.
117293         * m4/strftime.m4: Likewise.
117295 2000-07-02  Jim Meyering  <meyering@lucent.com>
117297         * lib/quotearg.c (mbstate_t): Don't define here.
117299 2000-07-02  Jim Meyering  <meyering@lucent.com>
117301         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117303 2000-07-01  Jim Meyering  <meyering@lucent.com>
117305         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117307 2000-07-01  Jim Meyering  <meyering@lucent.com>
117309         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117310         problem.
117312 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117315         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117317 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117319         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117320         per change in ../m4/ls-mntd-fs.m4.
117321         (read_filesystem_list): Ignore symbolic links.
117323 2000-06-29  Jim Meyering  <meyering@lucent.com>
117325         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117326         for declaration of strcmp.
117328         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117330         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117331         Avoid warning by casting result to `char *' to remove `const'.
117333 2000-06-28  Jim Meyering  <meyering@lucent.com>
117335         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117336         included by quotearg.c, for which we perform this test.  From
117337         Bruno Haible.
117339 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117341         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117342         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117343         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117345 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117347         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117349 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117351         savedir now sets errno on failure and invokes xmalloc to get memory.
117352         Fix a couple of other minor bugs while we're at it.
117354         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117355         (NAMLEN): Remove macro.
117356         (malloc, realloc): Remove decls.
117357         (stpcpy): Likewise.
117358         ("xalloc.h"): Include.
117359         (NAME_SIZE_DEFAULT): New macro.
117360         (savedir): Use xmalloc / xrealloc to allocate memory.
117361         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117362         Skip "" directory entries.
117363         Use strlen to calculate directory entry length, since the old method
117364         is rarely used these days and isn't worth supporting.
117365         Don't use a pointer after freeing it.
117366         Check for integer overflow when calculating allocation size.
117367         Use memcpy to copy entries, instead of stpcpy.
117368         Set errno properly when returning NULL.
117369         Check for readdir error.
117371 2000-06-26  Jim Meyering  <meyering@lucent.com>
117373         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117375 2000-06-25  Jim Meyering  <meyering@lucent.com>
117377         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117378         Linux header bug when _XOPEN_SOURCE is defined to 500.
117380 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117382         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117383         deficiency.
117385 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117387         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117388         Include xalloc.h.
117389         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117391 2000-06-24  Jim Meyering  <meyering@lucent.com>
117393         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117394         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117395         for which strerror does return char*, but which lacks a conveniently
117396         accessible declaration of the function.  If the compile-test says
117397         strerror_r doesn't work, then resort to a `run'-test that works on
117398         BeOS and segfaults on DEC Unix.
117400 2000-06-24  Jim Meyering  <meyering@lucent.com>
117402         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117404 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117406         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117409 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117411         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117412         (mbrtowc, mbstate_t): Define substitutes if
117413         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117414         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117415         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117417 2000-06-23  Jim Meyering  <meyering@lucent.com>
117419         * m4/afs.m4: Add missing AC_MSG_RESULT.
117420         Reported by Bruno Haible.
117422         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117423         Suggestion from Bruno Haible.
117425 2000-06-23  Jim Meyering  <meyering@lucent.com>
117427         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117429 2000-06-21  Jim Meyering  <meyering@lucent.com>
117431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117433 2000-06-21  Jim Meyering  <meyering@lucent.com>
117435         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117436         (noinst_HEADERS): Add getstr.h.
117438         * lib/getline.c (getstr): Move into a separate file.
117439         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117440         the following changes: new parameter, delim2; both delim[12]
117441         parameters have type `int', not `char'.  The latter would lose
117442         with 8-bit delimiters.
117443         * lib/getstr.h: New file.
117445 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117447         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117448         than 1024, return a memory chunk of least possible size, instead
117449         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117450         Use free/xmalloc instead of xrealloc to avoid copying for very long
117451         paths.
117453 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117455         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117456         the empty string.
117458 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117460         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117461         address, not strdup.  Include <stdlib.h> and don't declare free().
117463 2000-06-19  Jim Meyering  <meyering@lucent.com>
117465         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117467 2000-06-18  Jim Meyering  <meyering@lucent.com>
117469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117471         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117472         `checking whether...' message to be consistent with that of the
117473         lstat test.
117475 2000-06-18  Jim Meyering  <meyering@lucent.com>
117477         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117478         Besides, these days every porting target provides a mkdir function.
117480         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117481         needed. (this snippet comes from src/system.h).
117483 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117485         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117487 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117489         * lib/human.c (adjust_value): New function.
117490         (human_readable_inexact): Apply rounding style even when
117491         printing approximate values.
117493 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117495         * lib/human.c (human_readable_inexact): Allow an input block
117496         size that is not a multiple of the output block size, and vice versa.
117497         Reported by Piergiorgio Sartor.
117499 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117501         * lib/getdate.y (get_date): Apply relative times after time
117502         zone indicator, not before.  Reported by Todd A. Jacobs.
117504 2000-06-13  Jim Meyering  <meyering@lucent.com>
117506         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117508         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117510 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117512         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117514 2000-06-12  Jim Meyering  <meyering@lucent.com>
117516         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117517         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117518         optional argument.
117519         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117520         the optional argument, `lib'.
117522 2000-06-08  Jim Meyering  <meyering@lucent.com>
117524         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117526 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117528         Rewrite largefile configuration so that we don't need to run
117529         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117530         AC_CANONICAL_HOST in configure.in -- jmm]
117532         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117533         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117534         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117535         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117536         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117537         All uses changed.
117538         Instead of inspecting the output of getconf, try to compile the
117539         test program without and with the macro definition.
117540         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117541         for getconf.  Instead, check for the needed flags by compiling
117542         test programs.
117544 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117546         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117548 2000-06-04  Jim Meyering  <meyering@lucent.com>
117550         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117551         SunOS 4.1.4 for which gid_t is an unsigned type.
117553 2000-06-03  Jim Meyering  <meyering@lucent.com>
117555         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117556         now that autoconf requires that.
117558         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117559         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117560         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117562 2000-06-03  Jim Meyering  <meyering@lucent.com>
117564         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117566 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117568         * m4/glibc21.m4: New file.
117569         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117571 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117573         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117574         newer, don't install charset.alias.
117575         * lib/config.charset: Change the Linux/glibc rules so they become empty
117576         on glibc-2.1 or newer.
117578 2000-06-02  Jim Meyering  <meyering@lucent.com>
117580         * lib/mountlist.c: Back out last change.  Instead, do this...
117581         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117582         me_dummy member using the same `ignore'-testing code.
117583         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117584         fs_type strings.
117585         From Mark D. Roth.
117587 2000-05-29  Jim Meyering  <meyering@lucent.com>
117589         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117590         mounts with the `ignore' attribute.  Based on a patch from
117591         Mark D. Roth.
117593 2000-05-28  Jim Meyering  <meyering@lucent.com>
117595         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117596         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117597         * m4/stat.m4: Likewise.
117598         * m4/lstat.m4: Likewise.
117599         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117601         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117602         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117604 2000-05-26  Jim Meyering  <meyering@lucent.com>
117606         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117608 2000-05-24  Jim Meyering  <meyering@lucent.com>
117610         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117611         autoconf requires that.
117612         * m4/lib-check.m4: Likewise.
117613         * m4/jm-macros.m4: Likewise.
117614         * m4/strftime.m4: Likewise.
117616         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117617         AC_CHECK_DECLS, now that autoconf requires that.
117619 2000-05-22  Jim Meyering  <meyering@lucent.com>
117621         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117622         * m4/lstat.m4: Likewise.
117624 2000-05-22  Jim Meyering  <meyering@lucent.com>
117626         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117628 2000-05-20  Jim Meyering  <meyering@lucent.com>
117630         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117631         (jm_PREREQ): Use it.
117633 2000-05-18  Jim Meyering  <meyering@lucent.com>
117635         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117636         back, too, since it may have been modified by allocate_entry.
117637         (hash_delete): Rewrite to use neither the assignment operator
117638         nor the comma operator in an if-expression.
117640 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117642         * lib/closeout.c:
117643         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117644         Remove; no longer needed.
117645         "quotearg.h": Add include.
117646         (file_name): Do not bother to explicitly initialize to NULL; it's less
117647         efficient on some hosts.
117648         (close_stdout_status): Remove test as to whether stdout was already
117649         closed; it breaks for the case "echo x | sort >&-".
117650         Quote file name colons.
117651         Do not assume that _("write error") lacks format strings.
117653 2000-05-15  Jim Meyering  <meyering@lucent.com>
117655         * lib/version-etc.c (version_etc_copyright): Update the copyright
117656         string used in all --version output.
117658 2000-05-14  Jim Meyering  <meyering@lucent.com>
117660         * lib/closeout.c (close_stdout_set_file_name): New function.
117661         (close_stdout_status): Use new file-scoped global.
117662         Return right away if fstat says the stdout file descriptor is invalid.
117663         * lib/closeout.h (close_stdout_set_file_name): Declare.
117665 2000-05-10  Jim Meyering  <meyering@lucent.com>
117667         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117668         (close_stdout_set_status): New function.
117669         * lib/closeout.h (close_stdout_set_status): Declare.
117671 2000-05-09  Jim Meyering  <meyering@lucent.com>
117673         * m4/gettext.m4: Rename this...
117674         * m4/libintl.m4: ...to this.
117676 2000-05-08  Jim Meyering  <meyering@lucent.com>
117678         * lib/long-options.c: Don't include closeout.h.
117679         (parse_long_options): Don't call close_stdout for --version.
117681 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117683         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117684         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117685         2.1.3 bug.  This avoids a clash when files like regex.c define
117686         _GNU_SOURCE.
117688 2000-05-06  Jim Meyering  <meyering@lucent.com>
117690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117691         (AC_REPLACE_FUNCS): Add strnlen.
117693         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117694         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117697         AC_SEARCH_LIBS call for nanosleep.
117698         (LIB_NANOSLEEP): Set and AC_SUBST.
117700 2000-05-06  Jim Meyering  <meyering@lucent.com>
117702         * lib/strnlen.c: Undefine __strnlen and strnlen.
117703         [!weak_alias]: Define __strnlen to strnlen.
117705         * lib/atexit.c: New file, from libiberty.
117707 2000-05-06  Jim Meyering  <meyering@lucent.com>
117709         * lib/closeout.c (close_stdout_status): Also check for errors on the
117710         stderr stream.
117712 2000-05-05  Jim Meyering  <meyering@lucent.com>
117714         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117715         AC_SEARCH_LIBS call for clock_gettime.
117716         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117718         * m4/search-libs.m4: Update from autoconf.
117720         su doesn't work on Solaris 2.6.
117721         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117722         <shadow.h>.  Reported by Dragos Harabor.
117724 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117726         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117727         memcpy instead of xmalloc, xrealloc, path_concat.
117728         (locale_charset): Treat empty environment variables as absent.
117729         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117731 2000-05-04  Jim Meyering  <meyering@lucent.com>
117733         * lib/getopt.c: Update from glibc.
117734         * lib/obstack.c: Likewise.
117735         * lib/obstack.h: Likewise.
117736         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117737         file
117739         * lib/regex.h: Likewise.
117740         * lib/strndup.c: Likewise.
117741         * lib/strnlen.c: New file, from glibc.
117743 2000-05-03  Jim Meyering  <meyering@lucent.com>
117745         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117747 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117749         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117750         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117751         compile-time test, rather than inspecting host and OS, to
117752         decide whether to define _LARGEFILE_SOURCE.
117754 2000-05-01  Jim Meyering  <meyering@lucent.com>
117756         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117759         Based on a patch from Bruno Haible.
117761 2000-05-01  Jim Meyering  <meyering@lucent.com>
117763         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117765 2000-04-29  Jim Meyering  <meyering@lucent.com>
117767         * lib/path-concat.c: Declare strdup only if it's not defined.
117768         * lib/canon-host.c: Likewise.
117770 2000-04-28  Jim Meyering  <meyering@lucent.com>
117772         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117773         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117774         is included first, then limits.h is included by locale.h by libintl.h.
117775         From John David Anglin.
117777 2000-04-25  Jim Meyering  <meyering@lucent.com>
117779         * lib/makepath.c (S_IRWXUGO): Define.
117780         (make_path): Always perform explicit chmod if MODE specifies any
117781         of the `special' permission bits.  Prompted by a bug report against
117782         install from Mate Wierdl and Joost van Baal.
117784 2000-04-18  Jim Meyering  <meyering@lucent.com>
117786         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117787         (jm_PREREQ): Use it.
117789 2000-04-18  Jim Meyering  <meyering@lucent.com>
117791         * lib/README: New file.
117793         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117794         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117796 2000-04-17  Jim Meyering  <meyering@lucent.com>
117798         Get it right :-)
117799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117800         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117801         Suggestion from Akim Demaille.
117803 2000-04-17  Jim Meyering  <meyering@lucent.com>
117805         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117806         the definition of it to rpl_strftime also defined-away the system's
117807         declaration.
117809 2000-04-15  Jim Meyering  <meyering@lucent.com>
117811         Use `C' to denote so-called `contiguous' files, the same way
117812         that tar does.
117813         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117814         (ftypelet): Use S_ISCTG.
117815         From Michael Deutschmann.
117817 2000-04-14  Jim Meyering  <meyering@lucent.com>
117819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117820         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117821         clobbered.
117823 2000-04-14  Jim Meyering  <meyering@lucent.com>
117825         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117827 2000-04-13  Jim Meyering  <meyering@lucent.com>
117829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117830         AH_VERBATIM to insert required #ifndef into config.h.in.
117831         Suggestion from Akim Demaille.
117833 2000-04-12  Jim Meyering  <meyering@lucent.com>
117835         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117836         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117837         Christian Krackowizer.
117839         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117840         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117841         (AC_SYS_LARGEFILE): Require.
117842         (AM_C_PROTOTYPES): Require.
117844 2000-04-08  Jim Meyering  <meyering@lucent.com>
117846         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117847         names don't conflict.  Reported by Eli Zaretskii.
117849 2000-04-07  Jim Meyering  <meyering@lucent.com>
117851         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117852         sys/types.h, to work around system header problems on AIX 3.2.5.
117853         From Bruno Haible.
117855 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117857         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117858         bug.  Deal with the different error behavior of Irix iconv.
117860 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117862         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117863         IRIX if the installer said otherwise.
117865 2000-04-05  Jim Meyering  <meyering@lucent.com>
117867         Portability tweaks required for ultrix4.3.
117868         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117869         (jm_CHECK_DECLS): Add getutent to the list of functions.
117870         (_jm_DECL_HEADERS): Add utmpx.h.
117871         From John David Anglin.
117873         * m4/strftime.m4: Back out the 2000-04-02 change.
117874         Instead of that change, simply undefine putenv in the test program.
117876 2000-04-05  Jim Meyering  <meyering@lucent.com>
117878         Portability tweaks required for ultrix4.3.
117879         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117880         getutent.
117881         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117882         * lib/canon-host.c: Declare strdup.
117883         * lib/path-concat.c: Likewise.
117884         From John David Anglin.
117886 2000-04-04  Jim Meyering  <meyering@lucent.com>
117888         Be more DOS 8.3-friendly.
117889         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117890         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117891         * lib/Makefile.am: Reflect renaming.
117892         Reported by Eli Zaretskii.
117894         Use a temporary file name that won't clash with `charset.alias'
117895         in the DOS 8.3 name space.
117896         * lib/Makefile.am (charset_tmp): Define.
117897         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117898         (uninstall-local): Likewise.
117899         Reported by Eli Zaretskii.
117901 2000-04-03  Jim Meyering  <meyering@lucent.com>
117903         * m4/gettext.m4: Fix typo in comment.
117905         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117906         textutils/configure.in).  Suggestion from Paul Eggert.
117907         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117909 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117911         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117912         variable in the shell rather than using putenv, which isn't
117913         portable.  This avoids the configure-time inter-test dependency
117914         on the potentially-renamed putenv function.
117916 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117919         before checking struct stat.st_blksize, so that
117920         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117922 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117925         since strftime.c uses HAVE_STRFTIME to decide whether to use
117926         the underlying strftime.
117928 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117930         * lib/time/strftime.c (my_strftime): Make sure we call the system
117931         strftime, not ourselves, when invoking the underlying strftime.
117933 2000-03-24  Jim Meyering  <meyering@lucent.com>
117935         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117936         (charset_alias): Define.
117937         (install-exec-local): Factor out common code.
117938         (uninstall-local): Split lines longer than 80.
117939         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117940         (SUFFIXES): Define.
117941         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117942         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117944 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117946         * lib/config.charset: Output a line containing "Packages using this
117947         file".
117948         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117949         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117950         ref-del.sed): New rules.
117952 2000-03-17  Jim Meyering  <meyering@lucent.com>
117954         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117955         Otherwise, include <strings.h>
117957 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117959         * lib/unicodeio.c (utf8_wctomb): New function.
117960         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117961         format instead of in UCS-4 with platform dependent endianness.
117963 2000-03-10  Jim Meyering  <meyering@lucent.com>
117965         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117966         From Marco Franzen.
117968 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117970         * lib/savedir.c (savedir): Work even if directory size is
117971         negative; this can happen with some screwy NFS configurations.
117973 2000-03-06  Jim Meyering  <meyering@lucent.com>
117975         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117976         if it's NULL (because we ran out of memory).  From Bruno Haible.
117978 2000-03-05  Jim Meyering  <meyering@lucent.com>
117980         * lib/localcharset.c ("path-concat.h"): Include.
117981         (get_charset_aliases): Use path_concat instead of ANSI string
117982         concatenation.
117984         * lib/unicodeio.h (PARAMS): Define.
117985         Use it to guard prototype.
117987 2000-03-04  Jim Meyering  <meyering@lucent.com>
117989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117990         for lib/localcharset.c.
117992 2000-03-04  Jim Meyering  <meyering@lucent.com>
117994         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117995         installing into it.
117996         (uninstall-local): Uncomment this rule so `make distcheck' works
117997         once again.
117999         * lib/unicodeio.c (<errno.h>): Include it.
118000         (errno): Declare if not defined.
118002         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
118004         * lib/config.charset: New version, incorporating remarks from a linux
118005         i18n mailing list.  From Bruno Haible.
118007 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
118009         * m4/codeset.m4: New file.
118010         * m4/iconv.m4: New file.
118011         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
118013 2000-03-03  Jim Meyering  <meyering@lucent.com>
118015         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
118017 2000-03-02  Jim Meyering  <meyering@lucent.com>
118019         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
118020         the messages come out on separate lines.
118022         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
118023         rather than jm_CHECK_DECLARATIONS.
118024         * m4/decl.m4: Remove now-unused file.
118026         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
118027         geteuid.
118029 2000-03-02  Jim Meyering  <meyering@lucent.com>
118031         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
118033 2000-03-01  Jim Meyering  <meyering@lucent.com>
118035         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
118036         * lib/unicodeio.c: Likewise.
118038 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
118040         * lib/config.charset: New file.
118041         * lib/localcharset.c: New file.
118042         * lib/unicodeio.h, lib/unicodeio.c: New files.
118043         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
118044         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
118045         (noinst_HEADERS): Add unicodeio.h.
118046         (all-local, install-exec-local, charset.alias): New targets.
118048 2000-02-28  Paul Eggert  <eggert@twinsun.com>
118050         * lib/quotearg.c (ALERT_CHAR): New macro.
118051         (quotearg_buffer_restyled): Use it.
118053 2000-02-27  Jim Meyering  <meyering@lucent.com>
118055         * m4/check-decl.m4: Add getenv to the list.
118057 2000-02-27  Jim Meyering  <meyering@lucent.com>
118059         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
118060         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
118062         * lib/backupfile.c: Guard inclusion of stdlib.h with
118063         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
118064         Declare malloc if needed.
118066         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
118067         `#ifndef HAVE_DECL..'
118068         now that autoconf always defines the HAVE_DECL_ symbols.
118069         * lib/human.c: Likewise.
118070         * lib/same.c: Likewise.
118071         * lib/strtoumax.c: Likewise.
118073         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
118074         declaration check was not run.
118075         * lib/hash.c: Likewise.
118076         * lib/human.c: Likewise.
118077         * lib/same.c: Likewise.
118078         * lib/strtoumax.c: Likewise.
118080         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
118081         `.', then first look up the entire `.'-containing string as a login
118082         name.
118084 2000-02-23  Jim Meyering  <meyering@lucent.com>
118086         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
118087         in place of my hack.
118089 2000-02-18  Paul Eggert  <eggert@twinsun.com>
118091         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
118092         (textint): New typedef.
118093         (parser_control): Member year changed from int to textint.
118094         All uses changed.
118095         (YYSTYPE): Removed; replaced by %union with int and textint members.
118096         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
118097         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
118098         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
118099         (tSNUMBER, tUNUMBER): Now of type <textintval>.
118100         (date, number, to_year): Use width of number in digits, not its value,
118101         to determine whether it's a 2-digit year, or a 2-digit time.
118102         (yylex): Store number of digits of numeric tokens.
118103         Reported by John Kendall.
118105         (parser_control): Changed from struct parser_control to typedef (for
118106         consistency).  All uses changed.
118108         (tID): Removed; not used.
118109         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
118111 2000-02-14  Paul Eggert  <eggert@twinsun.com>
118113         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
118114         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
118116 2000-02-12  Jim Meyering  <meyering@lucent.com>
118118         * lib/userspec.c (ISDIGIT): Define it.
118119         (isdigit): Remove definition.
118120         (is_number): Use ISDIGIT, not isdigit.
118121         <libintl.h>: Include.
118122         (_ and N_): Define.
118123         (parse_user_spec): Mark translatable strings.
118125 2000-02-10  Jim Meyering  <meyering@lucent.com>
118127         With these changes, nanosleep.[ch] are finally enough like the other
118128         lib/* replacement files to compile on a few more losing systems.
118130         * lib/nanosleep.h: Don't include config.h.
118131         Remove prototype from declaration of nanosleep.
118132         (PARAMS): Remove now-unneeded definition.
118133         * lib/nanosleep.c: #undef nanosleep.
118134         (rpl_nanosleep): Rename from nanosleep.
118136 2000-02-10  Jim Meyering  <meyering@lucent.com>
118138         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118139         gnu_nanosleep to rpl_nanosleep.
118141 2000-02-09  Jim Meyering  <meyering@lucent.com>
118143         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118144         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118146 2000-02-08  Akim Demaille  <akim@epita.fr>
118148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118149         `[' and `]' and remove uses of `changequote'.
118150         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118151         (AC_SYS_LARGEFILE): Likewise.
118152         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118153         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118154         of changequote.
118155         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118156         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118157         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118158         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118160 2000-02-05  Jim Meyering  <meyering@lucent.com>
118162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118163         Remove explicit use of AC_HEADER_TIME.  It is required by
118164         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118165         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118166         in autoconf whereby the expansion of the latter ended up preceding
118167         the expansion of its prerequisite, AC_HEADER_TIME.
118168         Reported by Volker Borchert.
118170 2000-02-03  Jim Meyering  <meyering@lucent.com>
118172         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118174 2000-02-03  Jim Meyering  <meyering@lucent.com>
118176         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118177         rather than with `#if HAVE_UTMPNAME'.
118179 2000-02-02  Jim Meyering  <meyering@lucent.com>
118181         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118182         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118183         Reported by Eli Zaretskii.
118185 2000-02-01  Jim Meyering  <meyering@lucent.com>
118187         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118189 2000-01-31  Jim Meyering  <meyering@lucent.com>
118191         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118192         functions.  Add the time.h and sys/time.h headers along with the
118193         AC_REQUIRE'ment of AC_HEADER_TIME.
118195 2000-01-31  Jim Meyering  <meyering@lucent.com>
118197         * lib/nanosleep.h (nanosleep): Guard declaration with
118198         `#if ! HAVE_DECL_NANOSLEEP'.
118199         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118200         the declaration in that vendor's sys/timers.h.
118201         Reported by Christian Krackowizer.
118203         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118204         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118205         (ISPRINT): Likewise.
118206         Reported by Tom Tromey.
118208 2000-01-30  Jim Meyering  <meyering@lucent.com>
118210         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118212         * m4/prereq.m4 (utmp_includes): Define.
118213         Check for ut_user and ut_name members in both struct utmpx
118214         and struct utmp.
118216 2000-01-30  Jim Meyering  <meyering@lucent.com>
118218         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118219         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118220         header files where only utmpx.ut_user is declared.
118222         * lib/readutmp.h (UT_USER): Define.
118224 2000-01-29  Jim Meyering  <meyering@lucent.com>
118226         * m4/lib-check.m4: New file containing library-related checks from
118227         fileutils and sh-utils (textutils had none).
118229 2000-01-28  Jim Meyering  <meyering@lucent.com>
118231         * m4/perl.m4: Change format of warning message to look more like that
118232         from the missing script.  Suggestion from François Pinard.
118234 2000-01-25  Jim Meyering  <meyering@lucent.com>
118236         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118237         well as time.h in the compile check.
118238         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118239         Fix typo in cross-compiling case: s/yes/no/.
118241 2000-01-23  Jim Meyering  <meyering@lucent.com>
118243         * m4/jm-macros.m4: Move df-related tests here from
118244         fileutils/configure.in
118246         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118247         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118249         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118250         s/space/ac_fsusage_space/.
118251         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118253         * m4/ftruncate.m4: New file (derived from part of
118254         fileutils/configure.in).
118255         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118256         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118258         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118259         AC_SUBST these here, rather than just in sh-util/configure.in, so
118260         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118261         all the same.
118262         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118263         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118264         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118265         (AC_SUBST(POW_LIBM)): Likewise.
118266         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118268 2000-01-23  Jim Meyering  <meyering@lucent.com>
118270         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118271         obstack.c.
118273 2000-01-22  Jim Meyering  <meyering@lucent.com>
118275         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118279         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118280         configure.in
118281         (AC_CHECK_HEADERS): Likewise for sh-utils.
118282         (AC_CHECK_HEADERS): Likewise for textutils.
118283         Merge the three lists of headers.
118285         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118286         from fileutils' configure.in.
118288         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118289         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118290         check-decl.m4.
118292         * m4/check-decl.m4: Use #if rather than #ifdef.
118293         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118294         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118295         (_jm_DECL_HEADERS): Define new function.
118296         (jm_CHECK_DECLARATIONS): Require it.
118298 2000-01-22  Jim Meyering  <meyering@lucent.com>
118300         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118301         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118302         Required for some AIX systems.  Reported by Christian Krackowizer.
118303         [TESTING] (main): New function.
118305         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118306         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118307         letters.
118309         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118310         iswprint.
118312         * lib/strverscmp.c (ISDIGIT): Define.
118313         (strverscmp): Use ISDIGIT, not isdigit.
118315 2000-01-19  Jim Meyering  <meyering@lucent.com>
118317         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118318         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118319         defines `struct timespec' in <sys/time.h>
118321         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118322         Thanks to Akim for explaining.
118324 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118326         * lib/nanosleep.c (nanosleep):
118327         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118328         POSIX.1 doesn't require SA_INTERRUPT and some systems
118329         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118330         it's been part of POSIX.1 since day 1 (in 1988).
118332 2000-01-17  Jim Meyering  <meyering@lucent.com>
118334         * lib/interlock: Remove unused file.  Reported by François Pinard.
118336 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118338         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118339         alert, backslash, formfeed, and vertical tab unnecessarily in
118340         shell quoting style.
118342 2000-01-16  Jim Meyering  <meyering@lucent.com>
118344         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118345         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118346         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118347         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118349 2000-01-16  Jim Meyering  <meyering@lucent.com>
118351         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118352         because the latter didn't work.
118354 2000-01-15  Jim Meyering  <meyering@lucent.com>
118356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118357         (AC_REPLACE_FUNCS): Add memcpy and memset.
118358         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118359         Add strpbrk.
118360         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118362 2000-01-12  Jim Meyering  <meyering@lucent.com>
118364         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118365         (jm_PREREQ): Use it.
118366         (jm_PREREQ_READUTMP): New macro.
118367         (jm_PREREQ): Use it.
118369 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118371         Quote multibyte characters correctly.
118372         * m4/c-bs-a.m4: New file.
118373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118374         (jm_PREREQ): Use it.
118376 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118378         * m4/uintmax_t.m4: Port to autoconf 2.13.
118380 2000-01-08  Jim Meyering  <meyering@ascend.com>
118382         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118383         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118385 2000-01-04  Jim Meyering  <meyering@ascend.com>
118387         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118388         jm_STRUCT_DIRENT_D_TYPE.
118389         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118390         jm_STRUCT_DIRENT_D_INO.
118391         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118392         jm_STRUCT_UTIMBUF.
118393         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118394         renamings.
118395         * m4/utime.m4: Likewise.
118397         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118398         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118400 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118403         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118405 2000-01-02  Jim Meyering  <meyering@ascend.com>
118407         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118408         remember if this is necessary.
118410 1999-12-26  Jim Meyering  <meyering@ascend.com>
118412         * m4/jm-macros.m4: Use it here.
118413         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118415 1999-12-23  Jim Meyering  <meyering@ascend.com>
118417         * m4/jm-macros.m4: Check for clock_gettime (moved from
118418         fileutils/configure.in)
118419         Check for gettimeofday.
118421 1999-12-20  Jim Meyering  <meyering@ascend.com>
118423         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118424         autoconf-2.14a-1999-12-20.
118426 1999-12-19  Jim Meyering  <meyering@ascend.com>
118428         * m4/lstat-slash.m4: New file.
118429         * m4/jm-macros.m4: Use the new macro:
118430         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118432 1999-12-07  Jim Meyering  <meyering@ascend.com>
118434         * m4/perl.m4: Require that File::Compare be available, too.
118435         Too many systems seem to lack it.
118437         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118438         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118440 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118442         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118443         problem with the QNX 4.25 shell, which doesn't propagate exit
118444         status of failed commands inside shell assignments.
118446 1999-11-17  Jim Meyering  <meyering@ascend.com>
118448         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118450 1999-11-07  Jim Meyering  <meyering@ascend.com>
118452         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118454 1999-11-06  Jim Meyering  <meyering@ascend.com>
118456         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118457         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118459 1999-11-05  Jim Meyering  <meyering@ascend.com>
118461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118462         configure.in of textutils, fileutils, and sh-utils into this one
118463         (shared between those packages) file.
118464         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118465         AC_STRUCT_ST_BLKSIZE.
118467 1999-11-03  Jim Meyering  <meyering@ascend.com>
118469         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118470         of AC_CHECK_TYPE checks includes unistd.h.
118471         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118472         Suggestion from Akim Demaille.
118474 1999-10-30  Jim Meyering  <meyering@ascend.com>
118476         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118477         m4-quoted string.
118478         * m4/ls-mntd-fs.m4: Likewise.
118479         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118480         * m4/jm-winsz1.m4: Likewise.
118482         * m4/const.m4: Remove file, since the fix made it into the experimental
118483         version of autoconf.
118484         * m4/mktime.m4: Likewise.
118486         * m4/check-type.m4: Remove file, now that the latest version of
118487         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118489         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118490         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118491         AC_CHECK_TYPE.
118493 1999-10-04  Jim Meyering  <meyering@ascend.com>
118495         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118497 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118500         2.95.1 bug with HP-UX 10.20.
118502 1999-09-17  Jim Meyering  <meyering@ascend.com>
118504         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118505         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118506         due to missing strdup (against sh-utils-2.0).
118508 1999-08-29  Jim Meyering  <meyering@ascend.com>
118510         * m4/jm-macros.m4: Require jm_BISON.
118511         * m4/bison.m4: New file.
118513 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118515         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118516         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118518 1999-08-05  Jim Meyering  <meyering@ascend.com>
118520         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118521         to avoid conflicts with `conftest' on 8+3 filesystems.
118522         Suggestion from Eli Zaretskii.
118524 1999-08-04  Jim Meyering  <meyering@ascend.com>
118526         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118527         fileutils and sh-utils (textutils's getline test was inadequate).
118528         (AM_FUNC_GETLINE): Run this test.
118529         (AC_CHECK_FUNCS): Check for getdelim.
118530         Reported by Bob Proulx.
118532 1999-08-02  Jim Meyering  <meyering@ascend.com>
118534         * m4/jm-macros.m4: Add a comment.
118536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118539         <inttypes.h> defines strtoumax as a macro (and not as a
118540         function).
118542 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118545         that we can shift, multiply and divide unsigned long long
118546         values; Ultrix cc can't do it.
118548 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118550         * m4/mktime.m4: New file, which is a preview of what should appear
118551         in the next public autoconf release.
118553 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118555         * m4/lfs.m4: Remove this file.
118556         * m4/largefile.m4: New file.  It contains the old contents of
118557         lfs.m4, except that all names with prefix AC_LFS have been
118558         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118559         compatible with future autoconf versions.  Also, some minor m4
118560         quoting problems have been fixed.
118562 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118564         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118565         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118566         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118567         and simplify the shell code.
118569 1999-08-01  Jim Meyering  <meyering@ascend.com>
118571         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118572         m4.
118574 1999-07-20  Jim Meyering  <meyering@ascend.com>
118576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118578 1999-07-15  Jim Meyering  <meyering@ascend.com>
118580         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118582 1999-05-22  Jim Meyering  <meyering@ascend.com>
118584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118586 1999-05-20  Jim Meyering  <meyering@ascend.com>
118588         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118589         Add a colon after each `then' in case $4 is empty.
118591 1999-05-16  Jim Meyering  <meyering@ascend.com>
118593         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118595 1999-05-10  Jim Meyering  <meyering@ascend.com>
118597         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118599         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118600         AC_FUNC_MKTIME.
118602 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118604         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118606 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118608         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118609         not CPPFLAGS, so that linking works correctly in IRIX.
118611 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118615 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118617         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118618         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118620         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118621         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118623         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118625 1999-04-20  Jim Meyering  <meyering@ascend.com>
118627         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118628         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118629         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118631 1999-04-18  Jim Meyering  <meyering@ascend.com>
118633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118634         * m4/jm-macros.m4: Use it.
118636 1999-04-06  Jim Meyering  <meyering@ascend.com>
118638         * m4/strftime.m4: Remove test for %f.
118640 1999-03-29  Jim Meyering  <meyering@ascend.com>
118642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118643         superset of the AC_TYPE_* checks in the textutils, fileutils,
118644         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118645         AC_TYPE_PID_T.
118647 1999-03-28  Jim Meyering  <meyering@ascend.com>
118649         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118650         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118651         replaced e.g., in the *.sh files of the sh-utils.
118653 1999-03-20  Jim Meyering  <meyering@ascend.com>
118655         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118656         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118657         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118659 1999-03-19  Jim Meyering  <meyering@ascend.com>
118661         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118663 1999-03-12  Jim Meyering  <meyering@ascend.com>
118665         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118667 1999-03-07  Jim Meyering  <meyering@ascend.com>
118669         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118670         declared.
118672 1999-02-17  Jim Meyering  <meyering@ascend.com>
118674         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118675         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118677 1999-02-07  Jim Meyering  <meyering@ascend.com>
118679         * m4/group-member.m4: New file -- extracted from sh-utils'
118680         configure.in.
118682         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118683         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118685 1999-02-06  Jim Meyering  <meyering@ascend.com>
118687         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118688         * m4/fnmatch.m4: Likewise.
118689         * m4/getgroups.m4: Likewise.
118690         * m4/lstat.m4: Likewise.
118691         * m4/malloc.m4: Likewise.
118692         * m4/putenv.m4: Likewise.
118693         * m4/realloc.m4: Likewise.
118694         * m4/regex.m4: Likewise.
118695         * m4/stat.m4: Likewise.
118696         * m4/strftime.m4: Likewise.
118697         Suggestion from Alain Magloire.
118699         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118700         * m4/fnmatch.m4: Likewise.
118701         * m4/getgroups.m4: Likewise.
118702         * m4/getline.m4: Likewise.
118703         * m4/lstat.m4: Likewise.
118704         * m4/malloc.m4: Likewise.
118705         * m4/memcmp.m4: Likewise.
118706         * m4/putenv.m4: Likewise.
118707         * m4/realloc.m4: Likewise.
118708         * m4/regex.m4: Likewise.
118709         * m4/stat.m4: Likewise.
118710         * m4/strftime.m4: Likewise.
118711         Suggestion from Alain Magloire.
118713         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118714         an argument.
118716         * m4/regex.m4: Add a run-time Test for proper operation of
118717         re_compile_pattern.
118719 1999-01-31  Jim Meyering  <meyering@ascend.com>
118721         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118723 1999-01-30  Jim Meyering  <meyering@ascend.com>
118725         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118727         * m4/jm-mktime.m4: Make this a wrapper around the official
118728         AM_FUNC_MKTIME rather than my private copy, now that the official one
118729         is up to date.
118730         * m4/mktime.m4: Remove file.
118732         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118733         * m4/uptime.m4: Likewise.
118734         * m4/uintmax_t.m4: Likewise.
118736 1999-01-28  Jim Meyering  <meyering@ascend.com>
118738         * m4/jm-macros.m4: Use jm_AFS.
118739         * m4/afs.m4: New file (from fileutils' configure.in).
118741         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118742         * m4/chown.m4: Likewise.
118743         * m4/d-ino.m4: Likewise.
118744         * m4/d-type.m4: Likewise.
118745         * m4/fnmatch.m4: Likewise.
118746         * m4/getgroups.m4: Likewise.
118747         * m4/gettext.m4: Likewise.
118748         * m4/jm-mktime.m4: Likewise.
118749         * m4/jm-winsz2.m4: Likewise.
118750         * m4/lcmessage.m4: Likewise.
118751         * m4/ls-mntd-fs.m4: Likewise.
118752         * m4/malloc.m4: Likewise.
118753         * m4/memcmp.m4: Likewise.
118754         * m4/putenv.m4: Likewise.
118755         * m4/realloc.m4: Likewise.
118756         * m4/st_mtim.m4: Likewise.
118757         * m4/strftime.m4: Likewise.
118759 1999-01-16  Jim Meyering  <meyering@ascend.com>
118761         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118762         (ARGMATCH_DIE_DECL): Define.
118764 1999-01-12  Jim Meyering  <meyering@ascend.com>
118766         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118767         Reported by Lars Hecking.
118769 1999-01-10  Jim Meyering  <meyering@ascend.com>
118771         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118772         gross kludge.
118773         * m4/inttypes_h.m4: Likewise.
118774         * m4/lstat.m4: Likewise.
118775         * m4/malloc.m4: Likewise.
118776         * m4/readdir.m4: Likewise.
118777         * m4/realloc.m4: Likewise.
118778         * m4/st_dm_mode.m4: Likewise.
118779         * m4/stat.m4: Likewise.
118780         * m4/utimbuf.m4: Likewise.
118781         * m4/utimes.m4: Likewise.
118783         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118784         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118785         comments in config.h.in are meaningful.
118787         * m4/jm-macros.m4: Require autoconf-2.13 here.
118789         * m4/regex.m4: By default, don't use the included regex.c on systems
118790         with glibc 2.  Suggestion from Uli Drepper.
118792 1999-01-02  Jim Meyering  <meyering@ascend.com>
118794         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118796 1998-12-18  Jim Meyering  <meyering@ascend.com>
118798         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118799         Based on a suggestion from Lars Hecking.
118801 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118803         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118805 1998-11-16  Jim Meyering  <meyering@ascend.com>
118807         * m4/lfs.m4: Double-quote the `uname...` expression.
118809 1998-11-14  Jim Meyering  <meyering@ascend.com>
118811         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118812         * m4/stat.m4: Likewise.
118814 1998-11-03  Jim Meyering  <meyering@ascend.com>
118816         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118817         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118819 1998-10-18  Jim Meyering  <meyering@ascend.com>
118821         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118823 1998-10-17  Jim Meyering  <meyering@ascend.com>
118825         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118826         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118827         calls for those previously hard-coded headers.  Instead, take a new
118828         parameter.
118829         (jm_CHECK_DECLARATIONS): Reflect interface change.
118830         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118831         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118833         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118835 1998-10-14  Jim Meyering  <meyering@ascend.com>
118837         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118838         instead of "TZ=America/Vancouver".  From Paul Eggert.
118840 1998-10-11  Jim Meyering  <meyering@ascend.com>
118842         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118843         This adds a test for a recently added compatibility fix for mktime.c.
118844         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118846 1998-09-27  Jim Meyering  <meyering@ascend.com>
118848         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118850         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118851         ../configure.in, including a change from Gordon Matzigkeit to allow
118852         cross-compiling for the Hurd.
118854         * m4/glibc.m4: New file/macro to test for the GNU C Library
118855         versions 1 and 2.  From Gordon Matzigkeit.
118856         Indent.
118858 1998-09-21  Jim Meyering  <meyering@ascend.com>
118860         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118862 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118864         Port nanosecond-resolution times to UnixWare 2.1.2 and
118865         pedantic Solaris 2.6.
118867         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118868         AC_STRUCT_ST_MTIM.
118869         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118870         Generate name of ns member, instead of just 1 or undef.
118871         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118873 1998-08-15  Jim Meyering  <meyering@ascend.com>
118875         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118876         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118877         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118878         instead of jm_TYPE_SSIZE_T.
118880 1998-08-12  Jim Meyering  <meyering@ascend.com>
118882         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118884 1998-08-02  Jim Meyering  <meyering@ascend.com>
118886         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118887         in acconfig.h manually.
118889 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118891         * m4/st_mtim.m4: New file.
118893 1998-07-28  Jim Meyering  <meyering@ascend.com>
118895         * m4/utimes.m4: Undef stat.
118897 1998-07-25  Jim Meyering  <meyering@ascend.com>
118899         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118900         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118902 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118904         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118905         uid and gid actually remain unchanged.
118907 1998-07-07  Jim Meyering  <meyering@ascend.com>
118909         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118911 1998-07-04  Jim Meyering  <meyering@ascend.com>
118913         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118914         to prove that this macro can be used in packages without regex.c.
118916 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118918         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118919         is to be used.
118921 1998-07-03  Jim Meyering  <meyering@ascend.com>
118923         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118925         * m4/gettext.m4: New file -- from gettext-0.10.35.
118926         * m4/lcmessage.m4: Likewise.
118927         * m4/progtest.m4: Likewise.
118929         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118930         * m4/jm-macros.m4: Require the new macro.
118932 1998-06-29  Jim Meyering  <meyering@ascend.com>
118934         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118935         for the definition of NGROUPS (used in a system header included
118936         by sys/mount.h).
118938 1998-06-28  Jim Meyering  <meyering@ascend.com>
118940         * m4/ls-mntd-fs.m4: New file.
118941         * m4/fstypename.m4: New file.
118943         * m4/jm-macros.m4: Require the new macro.
118944         * m4/jm-glibc-io.m4: New file.
118946 1998-05-19  Jim Meyering  <meyering@ascend.com>
118948         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118949         * m4/lchown.m4: New file.
118951         * m4/Makefile.am.in: New file.
118952         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118954 1998-05-14  Jim Meyering  <meyering@ascend.com>
118956         * m4/Makefile.am (EXTRA_DIST): Add them.
118957         * m4/jm-macros.m4: New file.
118958         * m4/utimbuf.m4: New file.
118960 1998-05-12  Jim Meyering  <meyering@ascend.com>
118962         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118964 1998-05-11  Jim Meyering  <meyering@ascend.com>
118966         * m4/isc-posix.m4: New file.
118968 1998-05-10  Jim Meyering  <meyering@ascend.com>
118970         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118972 1998-05-09  Jim Meyering  <meyering@ascend.com>
118974         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118975         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118976         with automake.
118978         * m4/ssize_t.m4: New file.
118979         * m4/mktime.m4: Remove file -- the new automake has this now.
118981 1998-04-26  Jim Meyering  <meyering@ascend.com>
118983         * m4/assert.m4: New file.
118984         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118986 1998-04-05  Jim Meyering  <meyering@ascend.com>
118988         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118989         (jm_PREREQ): Use it here.
118991 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118993         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118994         in acconfig.h.
118996 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118998         * m4/prereq.m4: New file.
118999         * m4/error.m4: New file.
119000         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
119002 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
119004         * m4/getline.m4: Don't set am_cv_func_working_getline before the
119005         cache-check for the same variable -- that defeated the purpose of
119006         the test; the test program was never run.  This was a problem only
119007         on systems with losing getline functions -- HP-UX 10.20 is one.
119008         Reported by Bjorn Helgaas.
119010 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
119012         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
119014 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
119016         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
119018         * m4/const.m4: New file.  Use an initializer in this declaration
119019         typedef int charset[2]; const charset x;
119020         Reported by Bob Glickstein.
119022 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
119024         * m4/chown.m4: Fix reversed types on -1 args to chown.
119025         From Kaveh Ghazi.
119027 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
119029         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
119030         Add lseek and memchr.
119032         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
119033         T.E.Dickey <dickey@clark.net> said that some older preprocessors
119034         have a 20-character limit on names.
119036 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
119038         * m4/inttypes_h.m4: New file.
119039         * m4/uintmax_t.m4: New file.
119040         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
119043         -----
119045         Local Variables:
119046         coding: utf-8
119047         End:
119049         Copyright (C) 1997-2019 Free Software Foundation, Inc.
119051         Copying and distribution of this file, with or without
119052         modification, are permitted provided the copyright notice
119053         and this notice are preserved.